New recipe for upstream u-boot

Also add a basic boot.cmd with support for both uImage and zImage.
This commit is contained in:
Elric Milon
2015-06-08 13:28:44 +02:00
parent 59437d24b1
commit 46c2d5d4a1
2 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
setenv bootargs console=${console} console=tty1 root=/dev/mmcblk0p2 rootwait panic=10 ${extra}
load mmc 0:1 ${fdt_addr_r} ${fdtfile} || load mmc 0:1 ${fdt_addr_r} boot/${fdtfile}
load mmc 0:1 ${kernel_addr_r} zImage || load mmc 0:1 ${kernel_addr_r} boot/zImage || load mmc 0:1 ${kernel_addr_r} uImage || load mmc 0:1 ${kernel_addr_r} boot/uImage
bootz ${kernel_addr_r} - ${fdt_addr_r} || bootm ${kernel_addr_r} - ${fdt_addr_r}