ankur_r
Posts: 66
Joined: Sat Nov 12, 2016 9:49 am

Linux Kernel Booting

Fri Feb 16, 2018 10:17 pm

Hi All,

I have a 16GB memory card containing Raspbian OS, and I am boot it properly and visualize with VNC Viewer.

Now I am willing to boot it with separate Linux kernel parallel to Raspbian in dual boot fashion i.e. selecting as needed from boot loader like grub.

Now I initiated accordingly https://www.raspberrypi.org/documentati ... uilding.md

In the step given I am able to cross compile the downloaded kernel properly till below given command
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs

After same, I am having doubt on

1. Which file need to copy and where in card ?
2. As we do in normal process while working with laptop/desktop computer the image file a location and update the grub.conf manually in 2.6 version of kernel and automatically updated automatically in the install process via make install and make modules_install commands.

So I need your selp at three points ..

1. Mounting the card and partition.
2. which file.
3. Where to copy.

Above doubt lies in

sudo cp mnt/fat32/$KERNEL.img mnt/fat32/$KERNEL-backup.img
sudo cp arch/arm/boot/zImage mnt/fat32/$KERNEL.img
sudo cp arch/arm/boot/dts/*.dtb mnt/fat32/
sudo cp arch/arm/boot/dts/overlays/*.dtb* mnt/fat32/overlays/
sudo cp arch/arm/boot/dts/overlays/README mnt/fat32/overlays/
sudo umount mnt/fat32
sudo umount mnt/ext4

Pl help in this last steps of commands..

--Thanks
Ankur

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13097
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Linux Kernel Booting

Sat Feb 17, 2018 1:44 pm

not really a beginners issue, moved to advanced users.

Return to “Advanced users”