public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Russ Dill <Russ.Dill@asu.edu>
To: Henrik Nordstrom <hno@marasystems.com>
Cc: Srinivasu.Vaduguri@nokia.com, linux-mtd@lists.infradead.org
Subject: Re: CRAMFS on MTD/NAND Issue
Date: 08 Jan 2003 13:46:04 -0700	[thread overview]
Message-ID: <1042058764.10721.17.camel@timmy> (raw)
In-Reply-To: <Pine.LNX.4.44.0301082125001.9261-100000@filer.marasystems.com>

On Wed, 2003-01-08 at 13:33, Henrik Nordstrom wrote:
> On 8 Jan 2003, Russ Dill wrote:
> 
> > roll your own: Please, make a static compressed filesystem (like cramfs)
> > that incorporates extra blocks, so that when the checksum is bad while
> > initially writing the filesystem, or reading the file system (in the
> > case where ecc can save the data), it rewrites this block to a free
> > sector). It would seem like a simple modification to cramfs to me.
> 
> It would indeed be quite simple to adopt cramfs to bad blocks as long as
> the superblock can be read. You only need to make a list of bad blocks,
> and then teach mkcramfs about this, avoiding allocating the bad areas when
> making the filesystem layout.

afaik***, NAND blocks can go bad after time, so it may not be a one time
thing (especially if you have say, 10k units in the field). If you did
it right, it'd be ok if the sb went bad, just use the oob data to mark
blocks as bad, and to number them (your sb might be block 0x00 (or
0x01), and if it was bad, you'd just rewrite the block later on, with
the same block number. When you boot, just check for the last occurance
of each block. (btw, this isn't reinvented the wheel imho, jffs2 adds a
lot of code in the kernel, and often the bootloader of the board, as
well as not being as efficient space wise as cramfs). Course, most of
the space constraints are moot on NAND

      reply	other threads:[~2003-01-08 20:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-08 12:40 CRAMFS on MTD/NAND Issue Srinivasu.Vaduguri
2003-01-08 19:42 ` Russ Dill
2003-01-08 20:27   ` Thomas Gleixner
2003-01-08 20:51     ` Henrik Nordstrom
2003-01-08 22:04       ` Thomas Gleixner
2003-01-09  1:08         ` Henrik Nordstrom
2003-01-09 19:07           ` Russ Dill
2003-01-08 20:33   ` Henrik Nordstrom
2003-01-08 20:46     ` Russ Dill [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=1042058764.10721.17.camel@timmy \
    --to=russ.dill@asu.edu \
    --cc=Srinivasu.Vaduguri@nokia.com \
    --cc=hno@marasystems.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