diff options
author | Jon Nettleton <jon@solid-run.com> | 2018-06-25 13:39:03 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-07-23 10:56:06 +0200 |
commit | 55314608959e9f5977859362d70978a604d387a8 (patch) | |
tree | e2d09eb97f045bfda5ab86ff749714513ba2fb72 /include/configs/mx6cuboxi.h | |
parent | f97df68898eb080ccf712ee5845cf19660b5111b (diff) | |
download | u-boot-55314608959e9f5977859362d70978a604d387a8.tar.gz |
mx6cuboxi: Move the default environment for all devices
Previously we had stored the environment right after the
u-boot.img on the disk. I never liked this because with dtbs
being included and such the image could grow in size. Instead
we move the environment to be negatively offset from the 1MB
mark. Almost all our images start at 4MB's, and most standard
images start at 1MB, and all our storage devices are a minimum
1MB. Therefore we can store env there for all classes of devices
and have plenty of space in case u-boot.img needs to grow.
Signed-off-by: Jon Nettleton <jon@solid-run.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'include/configs/mx6cuboxi.h')
-rw-r--r-- | include/configs/mx6cuboxi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h index a647aaba68..7fa63fd935 100644 --- a/include/configs/mx6cuboxi.h +++ b/include/configs/mx6cuboxi.h @@ -146,6 +146,6 @@ /* Environment organization */ #define CONFIG_ENV_SIZE (8 * 1024) -#define CONFIG_ENV_OFFSET (8 * 64 * 1024) +#define CONFIG_ENV_OFFSET (SZ_1M - CONFIG_ENV_SIZE) #endif /* __MX6CUBOXI_CONFIG_H */ |