[U-Boot] [PATCHv2 11/15] config: ge_bx50v3: read boot script
Sebastian Reichel
sebastian.reichel at collabora.co.uk
Wed Jan 10 19:31:34 UTC 2018
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>
Signed-off-by: Sebastian Reichel <sebastian.reichel 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 1c1b82a77734..b9c73eb89999 100644
--- a/include/configs/ge_bx50v3.h
+++ b/include/configs/ge_bx50v3.h
@@ -131,15 +131,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.15.1
More information about the U-Boot
mailing list