aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-omap/files
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2019-09-07 12:36:52 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-11-20 10:46:19 +0100
commitc5d121654e74b74ca95df5efbca0db699ed07dbc (patch)
treeb761e2469bdc23a8bc8cf36f7144f531a2397b68 /package/boot/uboot-omap/files
parent1f37b2226ed3f5142906cdabd50e94d77e30505b (diff)
downloadupstream-c5d121654e74b74ca95df5efbca0db699ed07dbc.tar.gz
upstream-c5d121654e74b74ca95df5efbca0db699ed07dbc.tar.bz2
upstream-c5d121654e74b74ca95df5efbca0db699ed07dbc.zip
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>
Diffstat (limited to 'package/boot/uboot-omap/files')
-rw-r--r--package/boot/uboot-omap/files/boot.scr.txt10
1 files 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 3e6b5c351d..a97684b0e6 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}