Skip to contentSkip to conversation

Questions regarding JFFS2/NAND

DISCUSSION Ajay Jain 2 participants 2 messages Sep 25, 2006 Memory technology devices (MTD)

lore
Share & tools
lore

Ajay Jain

author
#0 lore raw

Hi All,

I have a few questions. Please help me to answer them, if you find suitable.

1. Is it possible to run JFFS2 on NAND Flash on 2.4. I am seeing that the mtd website mentions that it is not supported. I do not clearly understand what it means. Does it mean that mtd guys do not support it, or does it mean that you can't run JFFS2 on nand in 2.4 at all.

2. On version 2.4.21, we see that 'ecc' is always disabled. It does not really matter, as what value we set. Is anybody you aware of this issue.

3. Because of this, we backported 'mtd' from 2.6 version. Now the mtd appears to be reasonably stable. But we still have the old jffs2 in place. The new mtd does not allow unaligned writes, but jffs2 (the old one) keeps sending unaligned requests. We modified the mtd layer to handle this, but then the issue is that we are writing to the same page again and again, as the writes are unaligned. But the ecc value can only be written once. So this solution will not work either. It does work if we switch off the ecc. Are you aware of any of these issues, is my observation correct.

4. Is it realistically possible to backport 2.6 JFFS2 to 2.4.

Please help me to solve these issues. We want to run JFFS2 on 2.4/NAND.

Thanks.

#1 lore raw
Quoted 5 lines · Ajay Jain

1. Is it possible to run JFFS2 on NAND Flash on 2.4. I am seeing that the mtd website mentions that it is not supported. I do not clearly understand what it means. Does it mean that mtd guys do not support it, or does it mean that you can't run JFFS2 on nand in 2.4 at all.

The latter. Unless you attempt to backport the code from 2.6. And that is definitely unsupported.

Quoted 9 lines

3. Because of this, we backported 'mtd' from 2.6 version. Now the mtd appears to be reasonably stable. But we still have the old jffs2 in place. The new mtd does not allow unaligned writes, but jffs2 (the old one) keeps sending unaligned requests. We modified the mtd layer to handle this, but then the issue is that we are writing to the same page again and again, as the writes are unaligned. But the ecc value can only be written once. So this solution will not work either. It does work if we switch off the ecc. Are you aware of any of these issues, is my observation correct.

You would need newer JFFS2.

Quoted 1 line

4. Is it realistically possible to backport 2.6 JFFS2 to 2.4.

No, not really.

Quoted 1 line

Please help me to solve these issues. We want to run JFFS2 on 2.4/NAND.

http://linux-mtd.infradead.org/source.html#kernelversions

josh