Newbie: more questions
Hi,
I got the mail archives, but I still have a few questions (then, hopefully, I'll be quiet for a while).
1) What is the difference between JFFS and JFFS2?
2) Is NAND flash supported by JFFS? Is NAND flash supported by the character device?
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?
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 address?
Thanks for your help, Kyle.
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 1 line · Kyle Harris
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 [email protected]
Quoted 2 lines
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.
Quoted 4 lines
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 information.
Quoted 3 lines
Quoted 1 line
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 address?
See above. They appear as different devices to the MTD layer, and hence appear on different device minors, yes.
Signature · 6 lines
dwmw2 To unsubscribe, send "unsubscribe mtd" to [email protected]