JFFS2 on Sibley
I'm working to support Sibley devices in Linux OS with the JFF2 file system.
I have patched my Linux 2.6.16 OS with the latest snapshot downloaded at the following web address
http://ftp.linux.org.uk/pub/people/dwmw2/mtd/cvs/
After the boot, the Operating System mounts correctly the JFFS2 file system on the Sibley device and it seems to work properly (for example, a new file has been correctly created and/or deleted). But, when I reboot the system, I can see some Warning Messages during the file system mount phase:
Quoted 3 lines
Empty flash at
0x000cd808ends at0x000cdc00jffs2_scan_dirent_node(): Name CRC failed on node at0x000cdfd8: Read0xebaf74d5, calculated0x44660075JFFS2 notice: (12)check_node_data: wrong data CRC in data node at0x000cf000: read0xe49530c6, calculated0xe6751c2f.
The file system still works properly. So, I have the following questions:
1. Do you have some suggestion to solve my problem?
2. With my patch it seems that the headers are not correctly written. Do you know anything about it?
3. Do you know if a most recent patch is available?
Thanks in advance for any kind of support.
Best Regards,
Davide
Quoted 3 lines · Davide CASCONE
The file system still works properly. So, I have the following questions:
1. Do you have some suggestion to solve my problem?
Mount read-only or unmount, at _least_ sync, before rebooting.
Quoted 2 lines
2. With my patch it seems that the headers are not correctly written. Do you know anything about it?
It looks like you haven't correctly synced -- there are still buffers waiting to be written. The node which it complains about was already partially written to the flash, but the _end_ of the node is still in the buffer. So the CRC fails and you get a harmless complaint.
Quoted 1 line
3. Do you know if a most recent patch is available?
The CVS tree is no longer used. The current MTD code is in the git tree at git://git.infradead.org/mtd-2.6.git -- browsable at
http://git.infradead.org/?p=mtd-2.6.git
Signature · 1 line
dwmw2