From: Frans Meulenbroeks <fransmeulenbroeks@yahoo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] NAND bad environment block handling
Date: Sun, 11 Jan 2009 05:26:12 -0800 (PST) [thread overview]
Message-ID: <382183.1535.qm@web33608.mail.mud.yahoo.com> (raw)
In-Reply-To: <1231672254.3130.29.camel@mobil.alm.archives.at>
Manfred,
Thanks for your suggestions.
Did you modify u-boot to search from the last block of the device backwards?
I feel putting the env at the end is quite a good idea.
Unfortunately in our system we need to modify the env at runtime.
For software upgrade we aim to go for a ping pong strategy (so having two kernels and two rfs-es in flash, and upgrade the non active kernel, then modify u-boot env so the next time we boot from the upgraded kernel).
Unless of course there is a better strategy for this.
Best regards, Frans.
--- On Sun, 1/11/09, Schlaegl Manfred jun. <manfred.schlaegl@gmx.at> wrote:
> From: Schlaegl Manfred jun. <manfred.schlaegl@gmx.at>
> Subject: Re: [U-Boot] NAND bad environment block handling
> To: fransmeulenbroeks at yahoo.com
> Cc: u-boot at lists.denx.de
> Date: Sunday, January 11, 2009, 12:10 PM
> Hi!
> Am Donnerstag, den 08.01.2009, 07:19 -0800 schrieb Frans
> Meulenbroeks:
> >
> > Has someone experience in this area? Ideas?
> Suggestions?
>
> 1. For our systems we assume, that the env-block never gets
> bad in
> productive use, because the env-block is never written
> again. So we
> reduced the problem to number of initial/factory bad
> blocks.
> 2. the partitioning and environment-saving is done at
> production-time.
> 3. we put the environment in the last good block of the
> device. The
> search starts at the end of device and ends at the last
> block of the
> last data-partition with an error.
>
>
> Example-Partition-Table on an 32MB-NAND, with blocksize
> 16kb and max. 45
> factory bad-blocks:
> * the part-size means the possible data size (without
> bad-blocks).
> * the real partition-size on device depends on the
> bad-blocks in this
> the partition and is calculated automatically at
> production-time
> (partition generation).
>
> part-size partition
> 200kb: uboot
> 1000kb: kernel
> 15000kb: rootfs
> 15832kb: datafs
> rest of device: rest (maximal 45*16kb (max bad blocks) +
> 16bk (envblock)
> = 736kb
>
> with an increasing number of initial/factory bad-blocks the
> rest-partition shrinks. So the env-block can be written on
> any
> nand-device without less than 45 (initial/factory)
> bad-blocks.
>
>
> >
> > Thanks alot!
> > Frans Meulenbroeks
> >
>
> - Manfred
next prev parent reply other threads:[~2009-01-11 13:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-08 15:19 [U-Boot] NAND bad environment block handling Frans Meulenbroeks
2009-01-08 16:06 ` Cote, Sylvain
2009-01-09 7:25 ` Frans Meulenbroeks
2009-01-08 19:57 ` Scott Wood
2009-01-09 7:21 ` Marcel Ziswiler
2009-01-09 21:23 ` Wolfgang Denk
2009-01-11 11:10 ` Schlaegl Manfred jun.
2009-01-11 13:26 ` Frans Meulenbroeks [this message]
2009-01-11 20:20 ` Schlaegl Manfred jun.
2009-01-11 13:28 ` Wolfgang Denk
2009-01-11 14:35 ` Frans Meulenbroeks
2009-01-11 21:56 ` Wolfgang Denk
2009-01-11 20:30 ` Schlaegl Manfred jun.
[not found] <mailman.2543.1231435349.2783.u-boot@lists.denx.de>
2009-01-08 18:27 ` Derek Ou
[not found] <mailman.2551.1231706115.2783.u-boot@lists.denx.de>
2009-01-13 14:55 ` David.Kondrad at onqlegrand.com
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=382183.1535.qm@web33608.mail.mud.yahoo.com \
--to=fransmeulenbroeks@yahoo.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