Signed-off-by: Vagrant Cascadian <vagr...@debian.org>
---

 include/config_distro_bootcmd.h | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index be616e8..5e5e5e3 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -163,7 +163,7 @@
        "boot_prefixes=/ /boot/\0" \
        "boot_scripts=boot.scr.uimg boot.scr\0" \
        BOOTENV_BOOT_TARGETS \
-       "bootpart=1\0" \
+       "boot_partitions=1\0" \
        \
        "boot_extlinux="                                                  \
                "sysboot ${devtype} ${devnum}:${bootpart} any "           \
@@ -194,10 +194,13 @@
                "done\0"                                                  \
        \
        "scan_dev_for_boot="                                              \
-               "echo Scanning ${devtype} ${devnum}...; "                 \
-               "for prefix in ${boot_prefixes}; do "                     \
-                       "run scan_dev_for_extlinux; "                     \
-                       "run scan_dev_for_scripts; "                      \
+               "for partition in ${boot_partitions}; do "                \
+                       "echo Scanning ${devtype} ${devnum}:${partition}...; " \
+                       "setenv bootpart ${partition};"                   \
+                       "for prefix in ${boot_prefixes}; do "             \
+                               "run scan_dev_for_extlinux; "             \
+                               "run scan_dev_for_scripts; "              \
+                       "done;"                                           \
                "done\0"                                                  \
        \
        BOOT_TARGET_DEVICES(BOOTENV_DEV)                                  \
-- 
2.1.0

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to