ARM – Kernel 4.4-rc4 on the BananaPro..
Just got a ‘BananaPro‘ ARMv7 board, and updated it to Kernel 4.4-rc4 (from kernel.org) and Fedora 23.
More details are here: http://linux-sunxi.org/LeMaker_Banana_Pro
I compiled U-Boot from the latest (2015.10) released version, from ftp.denx.de/pub/u-boot/ :
# cd u-boot # make Bananapro_defconfig # make ARCH=arm CROSS_COMPILE=arm-linux-gnu- (or whatever cross-compiler you are using)
Then as root, copy to the SDCard (mounted via USB..)
# dd if=u-boot-sunxi-with-spl.bin of=/dev/sde bs=1024 seek=8
I used one of the standard Fedora 23 images (Workstation), from https://arm.fedoraproject.org/
The initial kernel (cross-)compile was done on an x86_64 system, and copied to the F23 SDCard. Further compiles will be done on the BananaPro itself, as follows:
make sunxi_defconfig make xconfig (select Allwinner A20 - sunx7i) make -j3 zImage make dtbs make -j3 modules make modules_install make firmware_install cp arch/arm/boot/zImage /boot/uboot cp arch/arm/boot/dts/sun7i-a20-bananapro.dtb /boot/uboot
Note that many BananaPro examples show uImage, but zImage works fine…. To avoid anything being overwritten by Fedora updates, I created a /boot/uboot directory for the compiled kernel image and dtb.. I modified the kernel config selections as necessary for Fedora (EXT4 POSIX, etc., and devtmpfs, and Tmpfs POSIX, etc..)
I modified the U-Boot parameters as follows:
setenv bootdelay 10 setenv bootargs "console=ttyS0,115200 console=tty0 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=deadline rootwait" setenv bootcmd "ext4load mmc 0:1 0x46000000 uboot/zImage; ext4load mmc 0:1 0x49000000 uboot/sun7i-a20-bananapro.dtb; bootz 0x46000000 - 0x49000000" < then saveenv to save to mmc >
Then the system booted OK:
Fedora 23 (Twenty Three) Kernel 4.4.0-rc4 on an armv7l (ttyS0) ................. ]# uname -a Linux rgpro 4.4.0-rc4 #4 SMP Thu Dec 10 15:35:50 PST 2015 armv7l armv7l armv7l GNU/Linux
Robert Gadsdon. December 13, 2015.
Comments
ARM – Kernel 4.4-rc4 on the BananaPro.. — No Comments