From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Tue, 22 May 2007 15:36:52 -0500 Subject: [U-Boot-Users] Question about CFG_ENV_ADDR during RAMBOOT In-Reply-To: <464B624D.2050102@freescale.com> References: <464B624D.2050102@freescale.com> Message-ID: <46535464.6090206@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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