diff options
author | John Rigby <john.rigby@linaro.org> | 2012-04-19 02:19:54 -0600 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-05-02 19:44:12 -0600 |
commit | b8454371c60d866c045b31e88d6938fb252e4354 (patch) | |
tree | dc3f4b275b1ae7686dc520289496b406e7946377 | |
parent | 74707515e74306a9793d900337116746ac4a8733 (diff) |
OMAP3 Beagle: add preEnv.txt support
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r-- | include/configs/omap3_beagle.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h index d5660ee6b..99721fa10 100644 --- a/include/configs/omap3_beagle.h +++ b/include/configs/omap3_beagle.h @@ -267,6 +267,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 ...; " \ @@ -305,6 +309,19 @@ "userbutton_xm=gpio input 4;\0" \ "userbutton_nonxm=gpio input 7;\0" /* "run userbutton" will return 1 (false) if is pressed and 0 (false) if not */ +#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 " \ "if run userbutton; then " \ |