From c5d121654e74b74ca95df5efbca0db699ed07dbc Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Sat, 7 Sep 2019 12:36:52 +0200 Subject: [PATCH] omap: support booting off different mmc devices Tested with installing to/sysupgrading from sd and emmc on boneblack. Signed-off-by: Andre Heider --- package/boot/uboot-omap/files/boot.scr.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package/boot/uboot-omap/files/boot.scr.txt b/package/boot/uboot-omap/files/boot.scr.txt index 3e6b5c351d1..a97684b0e62 100644 --- a/package/boot/uboot-omap/files/boot.scr.txt +++ b/package/boot/uboot-omap/files/boot.scr.txt @@ -1,5 +1,9 @@ -setenv bootargs console=${console} root=/dev/mmcblk0p2 rootwait +if test -z "${devnum}"; then + setenv devnum 0 +fi -load mmc 0:1 ${loadaddr} /zImage \ -&& load mmc 0:1 ${fdtaddr} /dtbs/${fdtfile} \ +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} -- 2.30.2