public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Cram FS on NAND - How to do this?
@ 2003-06-11  8:43 Pantelis Antoniou
  2003-06-11  8:51 ` David Woodhouse
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Pantelis Antoniou @ 2003-06-11  8:43 UTC (permalink / raw)
  To: linux-mtd

Hi

As it currently stands the only filesystems supporting
raw NAND flash are:

JFFS2: Read/write, compressed, best support, slow startup.
YAFFS: Read/write, not compressed, newcomer, fast startup.

I have a requirement to have a compressed read only
root filesystem in my board and I've come to the
conclussion that the best fit would be CRAMFS if only
had any concept of bad blocks.

Looking at the code for CRAMFS I see that it would not
be very difficult to hack it to detect the bad blocks
and skip over them on startup. We could rely on
the same OOB info that JFFS2 has, and just
make a mapping list as follows:

NAND block  bad?  fs block
----------  ----  --------
    0         n      0
    1         n      1
    2         y     skip
    3         n      2

... etc

The first complication is that CRAMFS works with
PAGE_SIZE blocks only, and that should be taken
into account.

The second is that this is the first time I hack filesystem
code and I would like to ask the list if you see any difficulties
ahead.

What are your thoughts in this?

Regards

Pantelis

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2003-06-13 16:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-11  8:43 Cram FS on NAND - How to do this? Pantelis Antoniou
2003-06-11  8:51 ` David Woodhouse
2003-06-11  8:58   ` Pantelis Antoniou
2003-06-11  9:04     ` David Woodhouse
2003-06-11  9:10       ` Russ Dill
2003-06-11  9:12         ` David Woodhouse
2003-06-11  9:01 ` Jasmine Strong
2003-06-11  9:54   ` Pantelis Antoniou
2003-06-11 10:24     ` angainor
2003-06-11 19:22     ` Russ Dill
2003-06-12  8:22       ` Pantelis Antoniou
2003-06-12  9:06 ` Thomas Gleixner
2003-06-12  8:15   ` Pantelis Antoniou
2003-06-12 23:13 ` Charles Manning
2003-06-13 12:18   ` Jasmine Strong
2003-06-13 16:30     ` Brian J. Fox
2003-06-13 16:33       ` Jasmine Strong
2003-06-13 16:45         ` Brian J. Fox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox