aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Miao <eric.miao@linaro.org>2011-12-12 15:15:30 +0800
committerJohn Rigby <john.rigby@linaro.org>2012-01-19 17:08:49 -0700
commitc05e5c7e9b44b4161d01faa975b5d3f972fcfc93 (patch)
tree3e7bbdb12e8d61e7ea9a04975714d701f56db7f9
parent732c0f20961b7dab23a034ddf0f3dfd51c58a7db (diff)
i.mx6q: mx6qsabrelite: Change default mmcdev and boot command
Signed-off-by: Eric Miao <eric.miao@linaro.org>
-rw-r--r--include/configs/mx6qsabrelite.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h
index ec9c94bf1..1cf75ba90 100644
--- a/include/configs/mx6qsabrelite.h
+++ b/include/configs/mx6qsabrelite.h
@@ -78,7 +78,7 @@
"script=boot.scr\0" \
"uimage=uImage\0" \
"console=ttymxc3\0" \
- "mmcdev=1\0" \
+ "mmcdev=0\0" \
"mmcpart=2\0" \
"mmcroot=/dev/mmcblk0p3 rootwait rw\0" \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
@@ -101,9 +101,13 @@
#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev};" \
"if mmc rescan ${mmcdev}; then " \
- "if run loaduimage; then " \
- "run mmcboot; " \
- "else run netboot; " \
+ "if run loadbootscript; then " \
+ "run bootscript; " \
+ "else " \
+ "if run loaduimage; then " \
+ "run mmcboot; " \
+ "else run netboot; "\
+ "fi; " \
"fi; " \
"else run netboot; fi"
@@ -151,7 +155,7 @@
#define CONFIG_ENV_OFFSET (6 * 64 * 1024)
#define CONFIG_ENV_SIZE (8 * 1024)
#define CONFIG_ENV_IS_IN_MMC
-#define CONFIG_SYS_MMC_ENV_DEV 1
+#define CONFIG_SYS_MMC_ENV_DEV 0
#define CONFIG_OF_LIBFDT