From: Wolfgang Wegner <wolfgang@leila.ping.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] environment in NAND
Date: Wed, 7 Sep 2011 13:07:20 +0200 [thread overview]
Message-ID: <20110907110720.GK21272@leila.ping.de> (raw)
In-Reply-To: <CAACX+R1oHQVVh2Qp39wuv3pv+pEsYWX1Crd-CwiPPknwQ-DMog@mail.gmail.com>
On Wed, Sep 07, 2011 at 12:20:51PM +0200, Arno Steffen wrote:
>
> There is a question left for redundancy, which is imho a bug (or maybe
> I don't get the design concept of redundancy):
> If I have an empty environment (both standard and redund - env1 and
> env2 ) and boot, it recognizes CRC error (which is ok).
> A "save" write it to redundand environment (0x10.0000). This is
> probably as it recognice an CRCerror in env1 and doesn't check this
> for env2
>
> If I add some settings ("set test true") and do "save" a second time -
> it writes ONLY to default env (0xc.0000) ?!?
> What happens, that it will change location? Or shouldn't it write to
> both locations ?
there is only one location written.
I don't remember exactly how it works, but there is an algorithm in
place to check which block is newer upon initial read.
Have a look at common/env_nand.c, env_init() to see how it works exactly.
Best regards,
Wolfgang
next prev parent reply other threads:[~2011-09-07 11:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-06 14:16 [U-Boot] environment in NAND Arno Steffen
2011-09-06 14:22 ` Wolfgang Wegner
2011-09-06 14:23 ` Marek Vasut
2011-09-07 6:20 ` Arno Steffen
2011-09-07 7:02 ` Wolfgang Wegner
2011-09-07 9:34 ` Arno Steffen
2011-09-07 9:35 ` Wolfgang Wegner
2011-09-07 10:20 ` Arno Steffen
2011-09-07 11:07 ` Wolfgang Wegner [this message]
2011-09-15 22:34 ` Scott Wood
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=20110907110720.GK21272@leila.ping.de \
--to=wolfgang@leila.ping.de \
--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