From: David Daney <ddaney@avtrex.com>
To: tglx@linutronix.de
Cc: linux-mtd@lists.infradead.org
Subject: Re: mtd, mtdblock and nand ecc.
Date: Wed, 14 Apr 2004 11:39:04 -0700 [thread overview]
Message-ID: <407D8548.9020101@avtrex.com> (raw)
In-Reply-To: <200404141936.32655.tglx@linutronix.de>
Thomas Gleixner wrote:
>Why did you modify nand.c ?
>Almost everything in nand.c can be overridden by the board driver. Therefor we
>call all the functions through chip->xxx().
>
>
We need almost everything in nand.c, but the physical access to the NAND
is through a hardware state machine that hides the raw chip registers
that nand.c uses. So we made a copy of nand.c and hacked it to work.
>>When ever jffs2 or yaffs are mounted, they both seem to read many
>>pages. Perhaps the ECC overhead of reading all that data.
>>I suppose I could turn off ECC and see how fast it is...
>>
>>
>
>Sure, that would give an estimation.
>
>
>
>>>>That is why I am thinking about using a non NAND aware file system for
>>>>things that can be read-only.
>>>>
>>>>
>>>But this does not answer my question how you want to deal with bad blocks
>>>?
>>>
>>>
>>I want a file system very much like cramfs, but that can have holes in
>>it so that it works on NAND.
>>When mounted it would start scanning blocks starting from the beginning
>>of the NAND partition until it found a valid superblock (or what ever
>>you would call it). Then it would be done because all of the indexes
>>would be built to work around the bad blocks. Since this filesystem
>>would be read-only with a static structure, you would never have to read
>>more than necessary.
>>
>>
>
>OK, so you are going to write a fs driver, which is NAND aware and behaves
>similar to cramfs.
>
I MAY do it, but would rather that someone else did all the hard work :)
>Whatfor then the discussion about making mtdblock nand aware ?
>If you write a nand aware fs then you just call the appropriate functions.
>This fs will be specific for nand or selectable for nand, so what ?
>No need to touch anything in mtdblock.c
>
>
I guess I am abandoning that for now...
David Daney.
prev parent reply other threads:[~2004-04-14 18:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-14 4:37 mtd, mtdblock and nand ecc David Daney
2004-04-14 12:43 ` Thomas Gleixner
2004-04-14 14:11 ` David Daney
2004-04-14 14:48 ` Thomas Gleixner
2004-04-14 15:13 ` David Daney
2004-04-14 16:15 ` Thomas Gleixner
2004-04-14 16:49 ` David Daney
2004-04-14 17:36 ` Thomas Gleixner
2004-04-14 18:39 ` David Daney [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=407D8548.9020101@avtrex.com \
--to=ddaney@avtrex.com \
--cc=linux-mtd@lists.infradead.org \
--cc=tglx@linutronix.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