[U-Boot] [PATCH v1 3/3] OMAP3: fix default environment for mcx board

Stefano Babic sbabic at denx.de
Fri Feb 14 12:51:27 CET 2014


Patch allows to load a script at the startup from MMC.

Signed-off-by: Stefano Babic <sbabic at denx.de>
---

 include/configs/mcx.h |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/include/configs/mcx.h b/include/configs/mcx.h
index 209c2bb..7c5c2f4 100644
--- a/include/configs/mcx.h
+++ b/include/configs/mcx.h
@@ -264,10 +264,9 @@
 			"${mtdparts} "					\
 			"vram=6M omapfb.vram=1:2M,2:2M,3:2M "		\
 			"omapdss.def_disp=lcd;"				\
-		"bootm 0x82000000 0x84000000\0"
-
-#define CONFIG_BOOTCOMMAND \
-	"run nandboot"
+		"bootm 0x82000000 0x84000000\0"				\
+	"bootcmd=mmc rescan;if fatload mmc 0 82000000 loadbootscr.scr;"	\
+		"then source 82000000;else run nandboot;fi\0"
 
 #define CONFIG_AUTO_COMPLETE
 #define CONFIG_CMDLINE_EDITING
-- 
1.7.9.5



More information about the U-Boot mailing list