Compact Flash is a valid canidate for an MTD device.

Eric W Biederman ebiederman at lnxi.com
Fri Jul 26 02:23:44 EDT 2002


The Compact Flash extensions to the IDE command set, there is information
that they can indeed be treated as a normal mtd character device.

In particular the following commands were added to IDE.
-  CFA REQUEST EXTENDED ERROR CODE
-  CFA WRITE SECTORS WITHOUT ERASE
-  CFA ERASE SECTORS
-  CFA WRITE MULTIPLE WITHOUT ERASE
-  CFA TRANSLATE SECTOR
-  SET FEATURES Enable/Disable 8-bit transfer

They aren't a perfectly normal flash chip but, you do have the ability
to just erase or to just write sectors.  CFA TRANSLATE SECTOR gives
information on how many times an individual sector has been erased, so
it is possible to implement wear-leveling above the CFA device.

It appears to me there would be noticeable benefit to configuring a
Compact Flash device as an MTD device, and running JFFS on top of it.

I haven't had a chance to try it yet, but hopefully this will point
someone in a useful direction.

Eric




More information about the linux-mtd mailing list