Status of MTD for CFI
David Woodhouse
dwmw2 at infradead.org
Thu Jun 29 17:03:10 EDT 2000
On Thu, 29 Jun 2000, [iso-8859-1] Sébastien Côté wrote:
> Hi,
>
> I'd like to know the status of MTD for CFI devices. If I have a flash
> connected to the ISA bus, will I be able to access it with MTD and
> install JFFS on it ? If not, what needs to be done ?
If it's a 16-bit device which is capable of the Intel Extended command
set, all you need to do is provide a map driver which provides
read16() and write16() functions for your board. See nora.c, vmax301.c and
octagon-5066.c for examples.
If it's not a 16-bit device, or if it doesn't talk the Intel command set,
then you'll actualy need to code up read/write/erase support for it too.
See cfi_cmdset_0001.c for a vague idea.
If it's something that cfi_cmdset_0001.c will drive (i.e. 16-bit Intel
device), you need to check out the version from the 26th - while it was at
least working, albeit busy waiting for erases and writes. I've since
broken it to get it slightly more well-behaved, and haven't finished that
task yet.
You'll want revision 1.8 of 2000/06/26 16:18:58 - the revision before the
one with the changelog entry that says "First attempt at doing locking and
per-chip access. I'll eat my hat if this works - but it compiles!"
It's work in progress at the moment - but I've had an FTL root filesystem
running off it, and there's no real reason why I shouldn't have had
JFFS-root too if the embedded board that I'm working on wasn't such a PITA
to use.
I'm hoping to get the current CVS code in working order again tomorrow.
Jgg is apparently looking at support for JEDEC flash chips which aren't
CFI-compliant.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list