
16 May
2007
16 May
'07
9:58 p.m.
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