From: Elie De Brauwer <eliedebrauwer@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Getting started with uboot
Date: Wed, 04 Aug 2010 21:26:04 +0200 [thread overview]
Message-ID: <4C59BECC.40008@gmail.com> (raw)
In-Reply-To: <i3ccjf$a05$1@dough.gmane.org>
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
next prev parent reply other threads:[~2010-08-04 19:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 18:47 [U-Boot] Getting started with uboot Thomas Heller
2010-08-04 19:26 ` Elie De Brauwer [this message]
2010-08-04 19:36 ` Wolfgang Denk
2010-08-04 20:08 ` Thomas Heller
2010-08-04 20:43 ` Wolfgang Denk
2010-08-05 14:13 ` Thomas Heller
2010-08-05 14:34 ` Elie De Brauwer
2010-08-05 16:31 ` Thomas Heller
2010-08-05 18:20 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C59BECC.40008@gmail.com \
--to=eliedebrauwer@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox