Openwrt/package/boot/uboot-omap/files/boot.scr.txt
Andre Heider c5d121654e omap: support booting off different mmc devices
Tested with installing to/sysupgrading from sd and emmc on boneblack.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-11-20 10:46:19 +01:00

10 lines
254 B
Plaintext

if test -z "${devnum}"; then
setenv devnum 0
fi
setenv bootargs console=${console} root=/dev/mmcblk${devnum}p2 rootwait
load mmc ${devnum}:1 ${loadaddr} /zImage \
&& load mmc ${devnum}:1 ${fdtaddr} /dtbs/${fdtfile} \
&& bootz ${loadaddr} - ${fdtaddr}