Which is simpler...
Thomas Gleixner
tglx at linutronix.de
Mon Apr 14 10:23:18 EDT 2003
On Monday 14 April 2003 15:05, Thomas Cameron wrote:
> Hello all,
> I have been working on a project recently, which uses a
> DiskOnChip for storage. However, I have had a number of problems
> getting the DOC to work as I would like. My question is this. Would it
> be easier to simply use a CompactFlash?
Depends. :)
> My end goal is to use some sort of flash-based storage, and a
> jffs2 or yaffs root filesystem. Is it possible to use these filesystems
> on a DiskOnChip at this point, or is support for this still forthcoming?
It's not implemented yet, as nobody wrote a chip driver for DOC, which fits to
the generic NAND driver. nand.c provides all neccecary hooks to do so, but
there was actually nobody interrested to do it self or to pay somebody to do
it.
> Additionally, what would be the easiest way to implement one of these
> filesystems on a DiskOnChip.
Just write a chip - driver for nand.c and you're done. The neccecary functions
are documented on http://www.linux-mtd.infradead.org/tech/nand.html. Driver
samles are in drivers/mtd/nand. The DOC specific functions can be stolen from
existing DOC drivers.
Is there a specific reason, that you want to use DOC? It's more expensive
than plain NAND. If you want a removable storage use a SmartMedia Card, which
is just plain NAND molden in plastic with golden contacts. For those JFFS2
and YAFFS work right out of the box.
--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de
More information about the linux-mtd
mailing list