[U-Boot] [PATCH 12/16] config: ge_bx50v3: read boot script

Martyn Welch martyn.welch at collabora.co.uk
Wed Nov 8 15:59:46 UTC 2017


From: Ian Ray <ian.ray at ge.com>

Read boot script from shared partition, if available.

Signed-off-by: Ian Ray <ian.ray at ge.com>
Signed-off-by: Martyn Welch <martyn.welch at collabora.co.uk>
---
 include/configs/ge_bx50v3.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h
index 55719dd..ac69e85 100644
--- a/include/configs/ge_bx50v3.h
+++ b/include/configs/ge_bx50v3.h
@@ -133,15 +133,15 @@
 
 #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; " \
-- 
2.1.4



More information about the U-Boot mailing list