From: Wolfgang Denk <wd@denx.de>
To: "Deon Carr" <Deon.Carr@Aviatnet.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: selecting UBI boot partition on startup
Date: Thu, 15 Apr 2010 08:18:54 +0200 [thread overview]
Message-ID: <20100415061854.B7757EEE8D8@gemini.denx.de> (raw)
In-Reply-To: <0687C69BF96AF349833719247B11C1CE76ED80@exchtxus2.HSTX.global.vpn>
Dear "Deon Carr",
please jkeep the mailing list on Cc: - others might be interested in
the answers as well.
In message <0687C69BF96AF349833719247B11C1CE76ED80@exchtxus2.HSTX.global.vpn> you wrote:
>
> >> What is the best method of selecting UBI volume to boot from in
> >> uboot?
>
> >Store the information in U-Boot environment variables.
>
> This was my initial thought however I was put off by the chance of the
> environment variables getting corrupted due to power loss while writing
> to U-Boot. I guess its possible to mirror the environment variables to
> another part of flash and restore it if the crc32 check fails on
> start-up.
Redundant environment is a standard feature in U-Boot. It covers
exactly the issue you have in mind - if you have a reset or power loss
while writing the environment, U-Boot will automatically fall back to
the redudant copy and use the previously used settings.
All you have to do is to enable this feature in your board config
file.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
They say a little knowledge is a dangerous thing, but it is not one
half so bad as a lot of ignorance. - Terry Pratchett, _Equal Rites_
next prev parent reply other threads:[~2010-04-15 6:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-15 4:32 selecting UBI boot partition on startup Deon Carr
2010-04-15 5:29 ` Wolfgang Denk
[not found] ` <0687C69BF96AF349833719247B11C1CE76ED80@exchtxus2.HSTX.global.vpn>
2010-04-15 6:18 ` Wolfgang Denk [this message]
2010-04-15 20:22 ` Deon Carr
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=20100415061854.B7757EEE8D8@gemini.denx.de \
--to=wd@denx.de \
--cc=Deon.Carr@Aviatnet.com \
--cc=linux-mtd@lists.infradead.org \
/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