Skip to contentSkip to conversation

Cramfs on NAND

DISCUSSION Terence Soh 4 participants 5 messages Mar 3, 2006 – Mar 18, 2006 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi again,

I hear that cramfs on NAND flash is not a good idea because of the bad blocks. Is this still true? There was talks some time ago about making cramfs work on top on NAND. <http://lists.infradead.org/pipermail/linux-mtd/2004-May/009784.html>

If this is true, are there any recommendations of what other fs to use. I already have one partition of jffs2 to store read-write files.

Thanks again,
Terence.

#2 lore raw
Quoted 6 lines · Terence Soh

Hi again,

I hear that cramfs on NAND flash is not a good idea because of the bad blocks. Is this still true? There was talks some time ago about making cramfs work on top on NAND.
<http://lists.infradead.org/pipermail/linux-mtd/2004-May/009784.html>

Yes, it's still true. CRAMFS expects it's data to be contiguous so unless you have something similar to a flash translation layer that hides the bad blocks, insanity will ensue.

Quoted 2 lines

If this is true, are there any recommendations of what other fs to use. I already have one partition of jffs2 to store read-write files.

Could you use a read-only JFFS2 partition?

josh

#3 lore raw
Quoted 5 lines
Quoted 4 lines

I hear that cramfs on NAND flash is not a good idea because of the bad blocks. Is this still true? There was talks some time ago about making cramfs work on top on NAND.
<http://lists.infradead.org/pipermail/linux-mtd/2004-May/009784.html>

Quoted 8 lines

Yes, it's still true. CRAMFS expects it's data to be contiguous so unless you have something similar to a flash translation layer that hides the bad blocks, insanity will ensue.

Quoted 2 lines

If this is true, are there any recommendations of what other fs to use. I already have one partition of jffs2 to store read-write files.

Could you use a read-only JFFS2 partition?

The other solution is to use an ftl ontop of the flash, and then put a cramfs on that. Of course, that depends on you living somewhere where algorithms are not restricted to those with the license to use them. (iirc)

#4 lore raw

Hi,

Quoted 3 lines
Quoted 3 lines

Yes, it's still true. CRAMFS expects it's data to be contiguous so unless you have something similar to a flash translation layer that hides the bad blocks, insanity will ensue.

FTL will not work for me because of the licensing issues :(.

Quoted 1 line
Quoted 1 line

Could you use a read-only JFFS2 partition?

Besides the read-only characteristic, I'm also looking at fast mount time. I guess I should take a look at YAFFS.

Question: Does a read-only JFFS2/YAFFS partition means that there will not be any wear-levelling performed?

Quoted 7 lines

The other solution is to use an ftl ontop of the flash, and then put a cramfs on that. Of course, that depends on you living somewhere where algorithms are not restricted to those with the license to use them. (iirc)

Bye and thanks for your time,
Terence.

#5 lore raw
In reply to Russ Dill

So is a NAND based FTL for linux encumbered with patents/licensing by M-Systems?

Sean

Quoted 23 lines · Russ Dill
Quoted 5 lines
Quoted 4 lines

I hear that cramfs on NAND flash is not a good idea because of the bad blocks. Is this still true? There was talks some time ago about making cramfs work on top on NAND.
<http://lists.infradead.org/pipermail/linux-mtd/2004-May/009784.html>

Quoted 8 lines

Yes, it's still true. CRAMFS expects it's data to be contiguous so unless you have something similar to a flash translation layer that hides the bad blocks, insanity will ensue.

Quoted 2 lines

If this is true, are there any recommendations of what other fs to use. I already have one partition of jffs2 to store read-write files.

Could you use a read-only JFFS2 partition?

The other solution is to use an ftl ontop of the flash, and then put a cramfs on that. Of course, that depends on you living somewhere where algorithms are not restricted to those with the license to use them. (iirc)

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/