]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ge: bx50v3: add missing partnum variable
authorKimmo Surakka <kimmo.surakka@ge.com>
Tue, 24 May 2016 13:56:23 +0000 (15:56 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jun 2016 16:13:07 +0000 (18:13 +0200)
Add missing ${partnum} to set rootdev correctly when
booting from USB or MMC.

Signed-off-by: Kimmo Surakka <kimmo.surakka@ge.com>
[Rebased against v2016.05 and adjusted the variable name]
Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
include/configs/ge_bx50v3.h

index 98f20c6daabce57a0c395919d1f161a3e02d2634..40334601a3d338500eb6fd5a8006b14242d52173 100644 (file)
 
 #define CONFIG_MMCBOOTCOMMAND \
        "setenv dev mmc; " \
-       "setenv rootdev mmcblk0p1; " \
+       "setenv rootdev mmcblk0p${partnum}; " \
        \
        "setenv devnum ${sddev}; " \
        "if mmc dev ${devnum}; then " \
                "run tryboot; " \
-               "setenv rootdev mmcblk1p1; " \
+               "setenv rootdev mmcblk1p${partnum}; " \
        "fi; " \
        \
        "setenv devnum ${emmcdev}; " \
        "usb start; " \
        "setenv dev usb; " \
        "setenv devnum 0; " \
-       "setenv rootdev sda1; " \
+       "setenv rootdev sda${partnum}; " \
        "run tryboot; " \
        \
        CONFIG_MMCBOOTCOMMAND \