From mboxrd@z Thu Jan 1 00:00:00 1970 From: Elie De Brauwer Date: Wed, 04 Aug 2010 21:26:04 +0200 Subject: [U-Boot] Getting started with uboot In-Reply-To: References: Message-ID: <4C59BECC.40008@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/04/10 20:47, Thomas Heller wrote: > Where does uboot store the environment variables? > > I have my tx25 board booting correctly from uboot when > entering interactive commands: > > But when I call 'saveenv' then it doesn't boot any longer; > it seems that 'saveenv' overwrites parts of the root file system. > > So, my question is: where does uboot save the environment? > If you take a look in include/configs/xt25.h (which should be the definition of your board) this contains (e.g. on a 2010.06) ... #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* 256 kB for U-Boot */ ... /* No NOR flash present */ #define CONFIG_SYS_NO_FLASH 1 #define CONFIG_ENV_IS_IN_NAND #define CONFIG_ENV_OFFSET CONFIG_SYS_MONITOR_LEN #define CONFIG_ENV_SIZE (128 * 1024) /* 128 kB NAND block size */ #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) It will look for the environment@offset 256k and for a redundant one at 256k+128k. hth E. -- Elie De Brauwer