[LITMUS^RT] Litmus on single-board computer

Martinez Garcia Jorge Luis (DGS-EC/ESB2) JorgeLuis.MartinezGarcia at de.bosch.com
Thu Dec 14 19:22:05 CET 2017


Hello Björn, 
I forgot to add the LITMUS^RT repository to my linux repository. Until now I have done the following.   

# I checked out the required kernel version
$ cd ~/linux-stable
$ git checkout v4.9.30

# I applied patch : https://github.com/archlinuxarm/PKGBUILDs/blob/cc8063b717385038c79befd86f6ba250bfbc1066/core/linux-aarch64/0001-net-smsc95xx-Allow-mac-address-to-be-set-as-a-parame.patch

# I applied the LITMUS^RT patches
$ git remote add litmus https://github.com/LITMUS-RT/litmus-rt.git
$ git fetch litmus
$ git remote -v
$ git cherry-pick v4.9.30..litmus/linux-4.9-litmus

# I got the Linaro Tool-chain
$ wget https://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/aarch64-linux-gnu/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz
§ tar -xf gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz 
$ export PATH=$PATH:$/home/osboxes/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu/bin

# I copied your .config file and set "CONFIG_MODULES=y" since it is needed to make "modules_install" later on.
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j4 

# I mounted my SD card  where my an aarch64 kernel is

$ mkdir mnt
$ mkdir mnt/fat32
$ mkdir mnt/ext4
$ sudo mount /dev/sdb1 mnt/fat32
$ sudo mount /dev/sdb2 mnt/ext4

# after compilation I copied "Image" and " bcm2837-rpi-3-b.dtb" to the mounted SD card 
$ cp /home/osboxes/linux-stable/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dtb /home/osboxes/mnt/fat32/dtbs/broadcom/
$ cp /home/osboxes/linux-stable/arch/arm64/boot/Image /home/osboxes/mnt/fat32/kernel8-litmus.img

# I tweaked config.txt
$ echo kernel=kernel8-litmus.img >> /home/osboxes/mnt/fat32/config.txt

# I installed kernel modules
$ sudo make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/ext4 modules_install
$ sudo umount /home/osboxes/mnt/fat32 
$ sudo umount /home/osboxes/mnt/ext4

Now, when I reboot the RPi 3, it gets stuck on the rainbow screen. Do I have to compress the kernel image or did I miss something? 

Jorge

-----Original Message-----
From: litmus-dev [mailto:litmus-dev-bounces at lists.litmus-rt.org] On Behalf Of Björn Brandenburg
Sent: Dienstag, 12. Dezember 2017 20:36
To: litmus-dev at lists.litmus-rt.org
Subject: Re: [LITMUS^RT] Litmus on single-board computer


> On 12. Dec 2017, at 20:14, Martinez Garcia Jorge Luis (DGS-EC/ESB2) <JorgeLuis.MartinezGarcia at de.bosch.com> wrote:
> 
> Thank you for your answer. I tried booting the aarch64 kernel on the RPi3 and it worked :). I got the Linux 4.9.30 kernel tree from git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git and applied the patch for the network. That worked too.
> Now, when trying to apply the LITMUS^RT patches to the afore-mentioned kernel tree ($ git cherry-pick v4.9.30..github/linux-4.9-litmus), I get the following error: 
> fatal: bad revision 'v4.9.30..github/linux-4.9-litmus'
> Did you use a different Linux kernel source? 

The string ‘github’ is just my local remote name. You have to substitute whatever you call the LITMUS^RT repo. 

	git cherry-pick v4.9.30..${NAME_OF_THE_REMOTE_THAT_REFERS_TO_THE_LITMUS_RT_REPO}/linux-4.9-litmus

- Björn



_______________________________________________
litmus-dev mailing list
litmus-dev at lists.litmus-rt.org
https://lists.litmus-rt.org/listinfo/litmus-dev


More information about the litmus-dev mailing list