From 1f84d624fd00d5d1895c024db939f40faaa5d4a6 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 20 Feb 2015 10:07:33 +0100 Subject: [PATCH] u-boot: uEnv.txt load initrd on sunxi boot. This is needed to be able to boot the rootfs also from sata. --- config/u-boot/uEnv.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/u-boot/uEnv.txt b/config/u-boot/uEnv.txt index bc3faccaf8..66ab24fd55 100755 --- a/config/u-boot/uEnv.txt +++ b/config/u-boot/uEnv.txt @@ -1,4 +1,5 @@ -uenvcmd=if test "$board" = "panda" ;then run bootpanda; else run bootbananapi; fi; KVER=xxxKVERxxx -bootpanda=setenv initrd_high 90000000; fatload mmc 0:1 0x82000000 zImage-ipfire-multi; fatload mmc 0:1 ${fdtaddr} dtb-${KVER}-ipfire-multi/${fdtfile}; setenv bootargs video=800x600 console=tty1 rootwait smsc95xx.macaddr=$usbethaddr root=/dev/mmcblk0p3 ro; bootz 0x82000000 - ${fdtaddr}; -bootbananapi=setenv fdt_high ffffffff; fatload mmc 0:1 0x46000000 zImage-ipfire-multi; fatload mmc 0:1 0x49000000 dtb-${KVER}-ipfire-multi/sun7i-a20-bananapi.dtb; setenv bootargs console=ttyS0,115200n8 rootwait root=/dev/mmcblk0p3 rootwait; bootz 0x46000000 - 0x49000000; +DTBSUNXI=sun7i-a20-bananapi.dtb +uenvcmd=if test "$board" = "panda" ;then run bootpanda; else run bootsunxi; fi; +bootpanda=setenv initrd_high 90000000; fatload mmc 0:1 0x82000000 zImage-ipfire-multi; fatload mmc 0:1 ${fdtaddr} dtb-${KVER}-ipfire-multi/${fdtfile}; setenv bootargs video=800x600 console=tty1 rootwait smsc95xx.macaddr=$usbethaddr root=/dev/mmcblk0p3; bootz 0x82000000 - ${fdtaddr}; +bootsunxi=setenv fdt_high ffffffff; fatload mmc 0:1 0x46000000 zImage-ipfire-multi; fatload mmc 0:1 0x49000000 dtb-${KVER}-ipfire-multi/${DTBSUNXI}; fatload mmc 0:1 0x49100000 uInit-ipfire-multi; setenv bootargs console=ttyS0,115200n8 rootwait root=/dev/mmcblk0p3 rootwait; bootz 0x46000000 0x49100000 0x49000000; -- 2.39.2