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

Timur Tabi timur at freescale.com
Wed May 16 21:58:05 CEST 2007


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