aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2012-02-16 08:43:39 -0700
committerJohn Rigby <john.rigby@linaro.org>2012-02-16 08:43:39 -0700
commitf31796bb61b5152f592ee5619e4d728ff0a21931 (patch)
treed034a942ea00bb97160ce2aa231adf7b690b9b0b
parent2265c2ee2558a2a0daa1a82ccbb27d9242a8029d (diff)
downloadu-boot-linaro-stable-f31796bb61b5152f592ee5619e4d728ff0a21931.tar.gz
OMAP3 Beagle: add preEnv.txt support
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--include/configs/omap3_beagle.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index f334d9649..ac7915282 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -258,6 +258,10 @@
"omapdss.def_disp=${defaultdisplay} " \
"root=${nandroot} " \
"rootfstype=${nandrootfstype}\0" \
+ "preenv=preEnv.txt\0" \
+ "loadpreenv=fatload mmc ${mmcdev} ${loadaddr} ${preenv}\0" \
+ "importpreenv=echo Importing preboot environment from mmc ...; " \
+ "env import -t $loadaddr $filesize\0" \
"bootenv=uEnv.txt\0" \
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
"importbootenv=echo Importing environment from mmc ...; " \
@@ -292,6 +296,18 @@
"ramdisk_addr_r=0x81600000\0" \
"pxefile_addr_r=0x86000000\0"
+#define CONFIG_PREBOOT \
+ "echo checking for ${preenv};" \
+ "if mmc rescan ${mmcdev}; then " \
+ "if run loadpreenv; then " \
+ "echo Loaded environment from ${preenv};" \
+ "run importpreenv;" \
+ "if test -n $preenvcmd; then " \
+ "echo Running preenvcmd ...;" \
+ "run preenvcmd;" \
+ "fi;" \
+ "fi; " \
+ "fi; " \
#define CONFIG_BOOTCOMMAND \
"if mmc rescan ${mmcdev}; then " \