OMAP3: fix default environment for mcx board
authorStefano Babic <sbabic@denx.de>
Fri, 14 Feb 2014 11:51:27 +0000 (12:51 +0100)
committerTom Rini <trini@ti.com>
Fri, 21 Feb 2014 18:55:41 +0000 (13:55 -0500)
Patch allows to load a script at the startup from MMC.

Signed-off-by: Stefano Babic <sbabic@denx.de>
include/configs/mcx.h

index 209c2bbd7cdc3fbd6891264657da095014080a8a..7c5c2f4d1c57972149ab04c97dc925e96b0ae9eb 100644 (file)
                        "${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