From: David Woodhouse <dwmw2@redhat.com>
To: "Stéphane Laroche" <stephane.laroche@colubris.com>
Cc: mtd@infradead.org, jffs-dev@axis.com
Subject: Re: Anyone using mtd on NAND flash?
Date: Wed, 13 Sep 2000 10:13:21 +0100 [thread overview]
Message-ID: <29459.968836401@passion.cygnus.co.uk> (raw)
In-Reply-To: <39BEF000.85BADD09@colubris.com>
stephane.laroche@colubris.com said:
> On the subject of NAND flash, could some JFFS expert point me
You're posting in the wrong place if you want JFFS experts. Join the JFFS
development list - see http://developer.axis.com/software/jffs/ for
subscription instructions.
> on where I should look for those multiple writes to the same page?
The JFFS code writes out a node header, then writes the data separately. In
some cases, it even goes back after writing the data and puts the correct
checksum into the node header.
Look for calls to flash_safe_write() in intrep.c
> I am currently working on a NAND driver for MTD that takes care of bad
> blocks and virtual mapping. It does ECC, keeps a bad block table and
> does the virtual mapping of blocks so that MTD sees a linear block
> device with 100% good blocks.
Nice. One question - why do you want to do it in the MTD driver rather than
in the next layer up? This kind of functionality will be needed for a
number of devices, so it's probably worth putting it in JFFS.
We're already intending to stop JFFS from treating the flash as a single
linear device, and start keeping a list of erase blocks in various
conditions (full,dirty,empty,etc.). It wouldn't be difficult to handle bad
blocks once that's done.
Also, the write caching to ensure we only perform one write per page is
going to make it extremely easy for JFFS to do its own ECC too, where
appropriate.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
prev parent reply other threads:[~2000-09-13 9:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-24 16:21 The archives [looking for info on AM29LV640 flash] mark.langsdorf
2000-08-25 11:57 ` Anyone using mtd on NAND flash? (Was: The archives [looking for info on AM29LV640 flash]) Björn Eriksson
2000-08-25 12:15 ` David Woodhouse
2000-09-13 3:09 ` Anyone using mtd on NAND flash? Stéphane Laroche
2000-09-13 9:13 ` David Woodhouse [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=29459.968836401@passion.cygnus.co.uk \
--to=dwmw2@redhat.com \
--cc=jffs-dev@axis.com \
--cc=mtd@infradead.org \
--cc=stephane.laroche@colubris.com \
/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