aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Miao <eric.miao@linaro.org>2011-12-12 15:15:30 +0800
committerEric Miao <eric.miao@linaro.org>2012-01-02 21:54:14 +0800
commit07b567224cc2209c97b07b976f3c6a194440c284 (patch)
tree3927d41d31b3db6d1120a8eaaf675aa5b3331173
parentc7037ef948184e28e93daa2238c8f919e90c76c2 (diff)
downloadu-boot-linaro-07b567224cc2209c97b07b976f3c6a194440c284.tar.gz
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