config: ge_bx50v3: read boot script
authorIan Ray <ian.ray@ge.com>
Wed, 10 Jan 2018 19:31:34 +0000 (20:31 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
Read boot script from shared partition, if available.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
include/configs/ge_bx50v3.h

index 62c14b725b7eac999a2e52b39cf4ddc86636bb19..605d92e8eebe93549788af0910d3dea794f2045c 100644 (file)
 
 #define CONFIG_MMCBOOTCOMMAND \
        "setenv dev mmc; " \
-       "setenv rootdev mmcblk0p${partnum}; " \
+       "setenv devnum ${emmcdev}; " \
        \
-       "setenv devnum ${sddev}; " \
-       "if mmc dev ${devnum}; then " \
-               "run tryboot; " \
-               "setenv rootdev mmcblk1p${partnum}; " \
+       "if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/active/boot.img ; " \
+       "then " \
+               "source 0x7000A000; " \
        "fi; " \
        \
-       "setenv devnum ${emmcdev}; " \
+       "setenv rootdev mmcblk0p${partnum}; " \
+       \
        "if mmc dev ${devnum}; then " \
                "run tryboot; " \
        "fi; " \