[U-Boot-Users] Question about CFG_ENV_ADDR during RAMBOOT

Timur Tabi timur at freescale.com
Tue May 22 22:36:52 CEST 2007

Doesn't anyone have an answer to this question?

Timur Tabi wrote:
> On a lot of boards, if CFG_RAMBOOT is defined, the following code is compiled:
>    #define CFG_ENV_ADDR		(CFG_MONITOR_BASE - 0x1000)
>    #define CFG_ENV_SIZE		0x2000
> This means that the environment is stored 0x1000 bytes before the start of u-boot.bin. 
> Doesn't that mean that if the environment is larger than 0x1000 bytes, that it will 
> overwrite the beginning of u-boot.bin whenever someone does a saveenv?

Timur Tabi
Linux Kernel Developer @ Freescale

More information about the U-Boot mailing list