From: Russ Dill <Russ.Dill@asu.edu>
To: Srinivasu.Vaduguri@nokia.com
Cc: linux-mtd@lists.infradead.org
Subject: Re: CRAMFS on MTD/NAND Issue
Date: 08 Jan 2003 12:42:15 -0700 [thread overview]
Message-ID: <1042054935.10724.10.camel@timmy> (raw)
In-Reply-To: <F252EE46074AB645B4F44947EEAD5727C83809@mvebe001.americas.nokia.com>
On Wed, 2003-01-08 at 05:40, Srinivasu.Vaduguri@nokia.com wrote:
> Hi all,
>
> I am trying to mount CRAMFS using MTD driver on a NAND flash.
> If there is a BAD block in the CRAMFS area of the NAND flash then i get the following error during mount.
>
> Error -3 while decompressing!
> 802c3674(666163445)->83d7d000(4096)
>
> Then the applications on the mounted cramfs are not running properly.
NAND *will* have bad blocks, cramfs does not handle bad blocks. There
isn't an elegant solution for this right now, but here are some options:
cramfs on top of nftl: This works resonably well, but seems like
overkill to me, and it puts you in questionable legal status if you
aren't using an m-systems product afaik (this is what I use)
yaffs: desgined for NAND, but has no compression
jffs2: The NAND code is pretty new, and the journalling is probably
overkill for your application, but it will work, and should be able to
adapt to bad blocks.
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.
next prev parent reply other threads:[~2003-01-08 19:11 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 [this message]
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
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=1042054935.10724.10.camel@timmy \
--to=russ.dill@asu.edu \
--cc=Srinivasu.Vaduguri@nokia.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