diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2014-11-19 20:41:04 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-08 09:35:42 -0500 |
commit | a5a83dc9dc7f4b29f7ceda1007bdac1a49219e2c (patch) | |
tree | ced5afdd7aaeee2c96dd70a858d3b37db6dd22b6 /include | |
parent | 9316e14400c255e02f66bfb6d1e3d1dce3daf86a (diff) | |
download | u-boot-imx-a5a83dc9dc7f4b29f7ceda1007bdac1a49219e2c.zip u-boot-imx-a5a83dc9dc7f4b29f7ceda1007bdac1a49219e2c.tar.gz u-boot-imx-a5a83dc9dc7f4b29f7ceda1007bdac1a49219e2c.tar.bz2 |
ARM: rpi: support an environment
Enable ENV_IS_IN_FAT so that the environment can be stored persistently.
It's stored in the FAT partition that the RPi firmware requires. On most
RPis, this is on the SD card (which must be present in order for the
system to boot). On the CM this is on the built-in eMMC device.
Since we now have a persistent environment, there's no need to load
uEnv.txt at boot; we only did that to work around the lack of persistent
environment.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/rpi.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/configs/rpi.h b/include/configs/rpi.h index 4874c51..4d5426e 100644 --- a/include/configs/rpi.h +++ b/include/configs/rpi.h @@ -105,15 +105,15 @@ /* Environment */ #define CONFIG_ENV_SIZE SZ_16K -#define CONFIG_ENV_IS_NOWHERE +#define CONFIG_ENV_IS_IN_FAT +#define FAT_ENV_INTERFACE "mmc" +#define FAT_ENV_DEVICE_AND_PART "0:1" +#define FAT_ENV_FILE "uboot.env" +#define CONFIG_FAT_WRITE #define CONFIG_ENV_VARS_UBOOT_CONFIG #define CONFIG_SYS_LOAD_ADDR 0x1000000 #define CONFIG_CONSOLE_MUX #define CONFIG_SYS_CONSOLE_IS_IN_ENV -#define CONFIG_PREBOOT \ - "if load mmc 0:1 ${loadaddr} /uEnv.txt; then " \ - "env import -t -r ${loadaddr} ${filesize}; " \ - "fi" /* Shell */ #define CONFIG_SYS_MAXARGS 8 @@ -138,7 +138,6 @@ /* Some things don't make sense on this HW or yet */ #undef CONFIG_CMD_FPGA -#undef CONFIG_CMD_SAVEENV /* Environment */ #define ENV_DEVICE_SETTINGS \ |