Status of MTD for CFI
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 ?
Signature · 4 lines
Sébastien Côté To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 5 lines · 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.
Signature · 6 lines
dwmw2 To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 5 lines · David Woodhouse
Quoted 2 lines · On Thu, 29 Jun 2000, [iso-8859-1] Sébastien Côté wrote:
Hi,
Quoted 8 lines
Quoted 3 lines
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()andwrite16()functions for your board. Seenora.c,vmax301.candoctagon-5066.cfor examples.
I've got an Intel StrataFlash so it's both 16 bits and CFI compliant. I quickly checked the files you mentioned and this all seems very simple. But I've got a few questions : what is nora.c for (from the name, I guess it's a NOR flash and from the code I guess it's CFI but that's all I know)? and what does SBC stand for ?
Signature · 4 lines
Sébastien Côté To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 2 lines · [email protected] said:
: what is
nora.cfor (from the name, I guess it's a NOR flash and from the code I guess it's CFI but that's all I know)?
nora.c is misnamed. It's just a 'map' driver for memory chips which are mapped directly into the CPU's VM, which is what happens on a lot of ARM boards. It's not really CFI-specific at all, except that it happens to call the cfi_probe function and none other at the moment.
By changing a couple of defines for the address and size, you can make it handle memory chips mapped anywhere in VM rather than just where my particular board happens to have them.
Quoted 1 line
and what does SBC stand for ?
Single Board Computer.
Quoted 3 lines · [email protected] said:
I've got an Intel StrataFlash so it's both 16 bits and CFI compliant. I quickly checked the files you mentioned and this all seems very simple.
It just got less simple. We now make an attempt to do proper async handling of flash chips, and I'm just about to test it. If it works, I'll try to build up the courage to shift the erase stuff into a timer, and enable suspension of in-progress erases.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 2 lines · David Woodhouse
Jgg is apparently looking at support for JEDEC flash chips which aren't CFI-compliant.
I popped my current codes up at http://amber.deltatee.com/~jgg/mtd/jedec/
I've never actually tried it in the kernel yet, but the logic all appears correct and it is in the right sort of format, have been using it to flash kernels into the SIMM for booting this board. It needs testing and fixing to support 8bit interfaces, I have to steal an octagon board so I can test that.
If someone desperately needs this then they are certainly welcome to fiddle with it.
It supports most of the old style AMD uniform sector size chips, maybe others. Works on my 16 chip banked flash SIMM, which is the most complicated situation possible!
Anyhow, I am going on a trip soon to Florida and then up to OLS.. after that I need to do a bunch of VHDL, but I should have time to finish it off and write a JFFS bootloader.
Thanks,
Jason
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 2 lines · [email protected] said:
I popped my current codes up at http://amber.deltatee.com/~jgg/mtd/
jedec/
Imported. Let me have a SSH public key and I'll give you CVS access.
Quoted 1 line · [email protected] said:
Anyhow, I am going on a trip soon to Florida and then up to OLS..
Cool. I may bump into you there.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 4 lines · David Woodhouse
Quoted 2 lines
I popped my current codes up at http://amber.deltatee.com/~jgg/mtd/
jedec/Imported. Let me have a SSH public key and I'll give you CVS access.
Attached
Quoted 3 lines
Quoted 1 line
Anyhow, I am going on a trip soon to Florida and then up to OLS..
Cool. I may bump into you there.
Great!
Jason
1024 35 131889136666800864665310056145282172752809896969986210687776638992421269538682667499807562325681722264279958572627924253677904887346542958562754647616248471798299277451202136815142932982865314941795877586991831796183279248323438349823299332680534314763423857547649263063185581654408646481264156574330001283021 jgg@Wakko