From: Rutger Hofman <rutger@cs.vu.nl>
To: ecos-devel@ecos.sourceware.org
Subject: Re: NAND review
Date: Wed, 20 May 2009 13:34:00 -0000 [thread overview]
Message-ID: <4A14083B.2040107@cs.vu.nl> (raw)
In-Reply-To: <pnd4a3aovi.fsf@delenn.bartv.net>
Bart Veer wrote:
>>>>>> "Andrew" == Andrew Lunn <andrew@lunn.ch> writes:
>
> >> The partition definition is necessarily platform-specific, so
> >> doesn't fit anywhere else.
>
> Andrew> I simply don't get this.
>
> Andrew> Take a case i recently had with a NOR based system. I had
> Andrew> a linux kernel bug i had to trace down. So that i had
> Andrew> human readable kernel opps information, i rebuilt the
> Andrew> kernel to include debug symbols. The resulting kernel was
> Andrew> too big to fit in the space allocated to it. So i used
> Andrew> redboot fis to zap both the root filesystem and the space
> Andrew> holding the kernel. I recreated the kernel partition a bit
> Andrew> bigger and made the root filesystem a bit smaller. I then
> Andrew> installed the new kernel and the root filesystem. I then
> Andrew> had a booting system with opps with symbols, not hex
> Andrew> addresses.
>
> Andrew> At no point did i need to edit the HAL, rebuild and
> Andrew> install a new redboot. Why should NAND be different? Why
> Andrew> cannot this partition information be configured by
> Andrew> redboot? Why must it be platform specific?
>
> I am not a NAND expert, but I think the answer is that NAND is
> fundamentally different from NOR: it is unreliable.
>
[snip]
> Or, we could try to implement a robust layer on top of the basic NAND
> layer. If you want to store N pages reliably, reserve (N+f(N)+k)
> pages in the NAND flash. When one of the pages starts failing, start
> using one of the spare pages. Assume that updates will be infrequent
> so that you do not need to worry about wear-levelling, just bad
> blocks. This would give us a way of storing the partition info in the
> NAND flash with a high degree of reliability. Unfortunately it means a
> fairly complicated extra layer which will not be needed by e.g.
> NAND-aware flash filesystems - those expect to handle the bad pages
> etc. themselves.
FWIW, this is the approach taken by MTD with the BBT (Bad Block Table).
Rutger
next prev parent reply other threads:[~2009-05-20 13:34 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-19 8:27 Simon Kallweit
2009-05-19 13:47 ` Ross Younger
2009-05-19 14:17 ` Andrew Lunn
2009-05-20 13:24 ` Bart Veer
2009-05-20 13:34 ` Rutger Hofman [this message]
2009-05-20 13:53 ` Andrew Lunn
2009-05-20 13:56 ` Gary Thomas
2009-05-20 14:22 ` Andrew Lunn
2009-05-20 15:22 ` Andrew Lunn
2009-05-20 15:34 ` Bart Veer
2009-05-20 13:58 ` Rutger Hofman
2009-05-20 14:16 ` Ross Younger
2009-05-20 14:21 ` Gary Thomas
2009-05-20 15:25 ` Ross Younger
2009-05-20 15:37 ` Gary Thomas
2009-05-19 16:29 ` Andrew Lunn
2009-06-03 8:51 ` Andrew Lunn
2009-06-03 10:21 ` Ross Younger
2009-06-03 10:48 ` Andrew Lunn
2009-06-03 11:52 ` Simon Kallweit
2009-06-03 12:26 ` Rutger Hofman
2009-06-03 13:33 ` Jürgen Lambrecht
2009-06-10 17:39 ` Nick Garnett
2009-06-11 11:25 ` Rutger Hofman
2009-06-13 16:31 ` Andrew Lunn
2009-06-18 14:10 ` Nick Garnett
2009-06-19 7:47 ` Andrew Lunn
2009-06-19 14:14 ` Ross Younger
2009-06-19 15:02 ` Andrew Lunn
2009-06-19 16:54 ` Jürgen Lambrecht
2009-06-29 11:09 ` Nick Garnett
2009-06-19 8:07 ` Andrew Lunn
2009-06-19 11:37 ` Daniel Morris
2009-06-19 12:06 ` Andrew Lunn
2009-05-20 1:02 ` Jonathan Larmour
2009-05-20 7:11 ` Simon Kallweit
2009-05-20 11:12 ` Rutger Hofman
2009-05-20 11:29 ` Simon Kallweit
2009-05-20 13:37 ` Rutger Hofman
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=4A14083B.2040107@cs.vu.nl \
--to=rutger@cs.vu.nl \
--cc=ecos-devel@ecos.sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).