Newbie: more questions
dwmw2 at infradead.org
Wed Jan 17 15:31:31 EST 2001
On Wed, 17 Jan 2001, Kyle Harris wrote:
> 1) What is the difference between JFFS and JFFS2?
Main fundamental difference: JFFS exists and JFFS2 is a little more
than twinkle in our collective eyes and a few kilobytes of code on my
workstation which doesn't compile.
JFFS2 will support compression and hardlinks, forward compatibility, will
(hopefully) have formal proof the the GC can't get stuck, and will have
NAND flash support designed in from the start. Oh, and it'll make the tea.
Discussion of JFFS is best taken to jffs-dev at axis.com
> 2) Is NAND flash supported by JFFS? Is NAND flash supported by the
> character device?
Yes, Steve Hill modified the existing JFFS code to meet the requirements
of NAND flash. I haven't used or checked it myself, but having discussed
stuff with him, I expect his code to be good.
He also provided a driver for certain types of NAND flash, and an an ECC
mechanism for use with JFFS on NAND flash.
> 3) Can the filesystem be limited to using only part of a device? For
> example, can I write a compressed image to a well-known area in flash
> (that the boot is aware of) and prevent the fs from using this? Does
> this apply to both NOR and NAND flash?
Yes. You register a handful of MTD devices, one for each 'partition' you
desire, with methods which simply subtract an offset from the requested
addresses and pass the call through to the original physical MTD device.
See mtdpart.c and anything which calls add_mtd_partitions() for more
> > 4) How are different blocks/sectors within a device accessed by the
> character device? Do I use different device minors or do I seek to an
See above. They appear as different devices to the MTD layer, and hence
appear on different device minors, yes.
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd