Skip to contentSkip to conversation

jffs super block

DISCUSSION Rogelio M. Serrano Jr. 4 participants 5 messages Jul 6, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Does the jffs also have a super block on disk?

I have been trying to use jffs on DOC but i just cant get it to mount. The jffs code could not find a single valid jffs inode on the DOC and then dumps the disk data and then hang when I mount it after i dd a jffs image to the it. The second time I boot I dont get any kind of output anymore and my machine hangs. For starters, How should I write the jffs file system on the DOC then? Should I add a superblock on the chip?

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 8 lines · Rogelio M. Serrano Jr.

Does the jffs also have a super block on disk?

I have been trying to use jffs on DOC but i just cant get it to mount. The jffs code could not find a single valid jffs inode on the DOC and then dumps the disk data and then hang when I mount it after i dd a jffs image to the it. The second time I boot I dont get any kind of output anymore and my machine hangs. For starters, How should I write the jffs file system on the DOC then? Should I add a superblock on the chip?

No, jffs doesn't have a superblock. I usually just cat my_filesystem_image > /dev/mtd0, but an empty mtd device should work as well.

The hang seems strange though.

/ Alex

To unsubscribe, send "unsubscribe mtd" to [email protected]

#2 lore raw
In reply to Rogelio M. Serrano Jr.
Quoted 2 lines · [email protected] said:

I have been trying to use jffs on DOC but i just cant get it to
mount.

You'll need to modify the doc2000 driver to be slightly better-behaved first. Currently, it refuses to do any writes which aren't 512-byte page aligned, and 512 bytes long, because it's only ever been used by the NFTL code so far.

Once we've done that, JFFS looks like it ought to work OK, but remember that the DiskOnChip has NAND flash, and JFFS was designed to work on NOR flash.

It looks to me as if it should be OK, but it's not tested on NAND flash yet.

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#3 lore raw
In reply to Rogelio M. Serrano Jr.
Quoted 11 lines · Rogelio M. Serrano Jr.

Does the jffs also have a super block on disk?

I have been trying to use jffs on DOC but i just cant get it to mount. The jffs code could not find a single valid jffs inode on the DOC and then dumps the disk data and then hang when I mount it after i dd a jffs image to the it. The second time I boot I dont get any kind of output anymore and my machine hangs. For starters, How should I write the jffs file system on the DOC then? Should I add a superblock on the chip?

To unsubscribe, send "unsubscribe mtd" to [email protected]

I don't really know much about the DOC but doesn't it have it's own filesystem (TrueFS or something like that) ? If so, are linux drivers available and open-sourced ?

Thanks,

Signature · 4 lines
Sébastien Côté


To unsubscribe, send "unsubscribe mtd" to [email protected]
#4 lore raw
Quoted 3 lines · On Thu, 6 Jul 2000, [iso-8859-1] S�bastien C�t� wrote:

I don't really know much about the DOC but doesn't it have it's own filesystem (TrueFS or something like that) ? If so, are linux drivers available and open-sourced ?

The DiskOnChip is just a clever way of attaching NAND flash chips to a CPU. Generally it comes with the NAND Flash Translation Layer, which emulates a block device, on top of which you put a 'normal' filesystem.

You end up with a journalled filesystem on top of what is essentially already a journalled filesystem, and although we do have GPL'd NFTL support, it's not 100% reliable yet.

Signature · 6 lines
dwmw2




To unsubscribe, send "unsubscribe mtd" to [email protected]