]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
u-boot: auto patch kernel version and change panda dtb in uEnv.txt.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 21 Dec 2014 11:43:45 +0000 (12:43 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 22 Dec 2014 09:01:06 +0000 (10:01 +0100)
config/u-boot/uEnv.txt [changed mode: 0644->0755]
lfs/u-boot

old mode 100644 (file)
new mode 100755 (executable)
index b3bfb47..bc3facc
@@ -1,3 +1,4 @@
 uenvcmd=if test "$board" = "panda" ;then run bootpanda; else run bootbananapi; fi;
-bootpanda=setenv initrd_high 90000000; fatload mmc 0:1 0x82000000 zImage-ipfire-multi; fatload mmc 0:1 ${fdtaddr} omap4-${board_name}.dtb; 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 sun7i-a20-bananapi.dtb;  setenv bootargs console=ttyS0,115200n8 rootwait root=/dev/mmcblk0p3 rootwait;                            bootz 0x46000000 - 0x49000000;
+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;
index 1552566e102243b5baa5c756038f342c5e2954ee..28f65083cf9659a9c93eb2f0a34c52d4e20f3902 100644 (file)
@@ -126,6 +126,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
        # config (uEnv.txt)
        cp -vf $(DIR_SRC)/config/u-boot/* /boot/
+       # patch real Kernel version to uEnv.txt
+       sed -e "s/xxxKVERxxx/$(KVER)/g" -i /boot/uEnv.txt
 
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)