Skip to contentSkip to conversation

jffs2 vs NFTL

DISCUSSION Chris Ellec 2 participants 2 messages Oct 29, 2003 – Oct 30, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

A couple years ago I developped a system wih DOC using [N]FTL and an ext2 file system which was working fine.

Now I have a new project where we'll use JFFS2 for reliability instead of ext2, but I am confused as to the relationship between JFFS2 and NFTL.

For example the help provided in the Configuration steps says that CONFIG_MTD_PARTITIONS is not needed for Diskonchip, however
http://www.linux-mtd.infradead.org/tech/nand.html
says that the same flag is needed for JFFS2

Does that mean that the JFFS2 driver does not use the NFTL driver ? What about the new chips that need the INFTL driver ?

Chris.

#1 lore raw
Quoted 5 lines · Chris Ellec

A couple years ago I developped a system wih DOC using [N]FTL and an ext2 file system which was working fine.

Now I have a new project where we'll use JFFS2 for reliability instead of ext2, but I am confused as to the relationship between JFFS2 and NFTL.

JFFS2 is a file system which works directly on flash. The MTD API below it, the Linux VFS above it.

NFTL, INFTL etc. are a kind of pseudo-filesystem which emulates a normal block device with overwritable 512-byte sectors. The MTD API below them, the Linux block layer above. On these, you are expected to use a 'normal' file system such as ext2, ext3, Reiserfs, etc.

Quoted 4 lines

For example the help provided in the Configuration steps says that CONFIG_MTD_PARTITIONS is not needed for Diskonchip, however
http://www.linux-mtd.infradead.org/tech/nand.html
says that the same flag is needed for JFFS2

CONFIG_MTD_PARTITIONS just gives you a way to divide a single MTD device into many logical MTD devices. You do not need it for the DiskOnChip because you do not use multiple logical flash devices there. If you have 'partitions' on your DiskOnChip, then you're probably thinking of block-device partitions, which are an entirely different thing, at a higher level.

Quoted 2 lines

Does that mean that the JFFS2 driver does not use the NFTL driver ? What about the new chips that need the INFTL driver ?

JFFS2 does not use the NFTL or INFTL code. JFFS2 operates directly on flash, not on a block device.

Signature · 1 line
dwmw2