From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] fw_setenv usage for multiple copies of U-Boot Environment Variables
Date: Fri, 29 Apr 2011 11:02:55 +0200 [thread overview]
Message-ID: <m2wrid77ls.fsf@ohwell.denx.de> (raw)
In-Reply-To: <FACCDA52663F0249A0002E4E413B0AA7E62DC7@POCITMSEXMB01.LntUniverse.com> (Amarendra Reddy's message of "Thu, 28 Apr 2011 10:51:11 +0000")
Hi Amarendra,
> Hi Wolfgang Denk,
>
> Thank you for the reply. Yes I am talking about "redundant environment".
>
> If we have four "redundant environment" copies in the same
> partition(mtd1)... Does the below fw_env.config configuration hold
> good ?
U-Boot cannot cope with more than two redundant copies.
> ####################################################
> # File: fw_env.config
> # Configuration file for fw_(printenv/saveenv) utility.
> # Up to two entries are valid, in this case the redundand
> # environment sector is assumed present.
Read the text carefully: "Up to two entries are valid"....
>
> # MTD device name Device offset Env. size Flash sector size
> /dev/mtd1 0x00000 0x02000 0x20000
> /dev/mtd1 0x20000 0x02000 0x20000
> /dev/mtd1 0x40000 0x02000 0x20000
> /dev/mtd1 0x60000 0x02000 0x20000
> ####################################################
On the other hand why exactly do you need four redundant environments?
The idea behind redundant environments is that a powercut _while_
updating one copy can be handled by having a backup copy. It is _not_
meant to handle faulting devices in any way.
Cheers
Detlev
--
I have always observed that the pretensions of all people are in
exact inverse ratio to their merits; this is one of the axioms of
morals. -- Joseph Lagrange
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
prev parent reply other threads:[~2011-04-29 9:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-28 6:09 [U-Boot] fw_setenv usage for multiple copies of U-Boot Environment Variables Amarendra Reddy
2011-04-28 10:28 ` Wolfgang Denk
2011-04-28 10:51 ` Amarendra Reddy
2011-04-29 9:02 ` Detlev Zundel [this message]
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=m2wrid77ls.fsf@ohwell.denx.de \
--to=dzu@denx.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