I posted a guide on getting Arch Linux ARM on the BananaPi last week. Now I was eager to get a mainline kernel working on the BananaPi for some ARM hacking and testing of new patches. In this post I’ll describe the steps required to get a mainline kernel booted next to the “normal” kernel.
Compiling mainline kernel
I am using Hans de Goede’s branch here, since he has some patches for USB OTG support for the BananP in there. But the normal mainline kernel should work with similiar steps
Now that we have a kernel compiled, mount the sdcard.
Now that we have copied the mainline kernel and dts files to the sdcard, it still won’t boot it. Since the boot.scr is specified to look dts/* and zImage. So we will need to copy a new scr file. (note that you cannot edit the scr file on the sdcard) You can either generate a new scr file or create on yourself!
Or generate a new scr file, which sounds more fun.
I haven’t figured out what the boot.scr exactly does or if there is a way to specify which kernel to boot with one boot.scr file. So expect some more posts while I explore more about U-boot and ARM :-)