diff options
author | John Rigby <john.rigby@linaro.org> | 2012-04-19 02:19:54 -0600 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-08-16 10:10:29 -0600 |
commit | 20129db2cad68d1095fdcc9e443df9eb91902eeb (patch) | |
tree | cd48d377daa57a52e219b59b019c513108b66920 | |
parent | 8ad68ea09f0cb0a47b6793672a31861174d3e043 (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 bad76150f..064ffb95d 100644 --- a/include/configs/omap3_beagle.h +++ b/include/configs/omap3_beagle.h @@ -269,6 +269,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 ...; " \ @@ -307,6 +311,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 " \ |