请教高手 jffs2_get_inode_nodes(): Data CRC failed on node...问题[复制链接]
/bin/mount -n -t jffs2 /dev/mtdblock/3 -o rw,noatime /app
jffs2: Erase block size too small (16KiB). Using virtual blocks size (32KiB) instead
Empty flash at 0x02407104 ends at 0x02407200
set hw ether and ip of eth0
eth0: Setting MAC address to 00:01:12:23:34:0a
eth0: Link now 10-HalfDuplex
BusyBox v1.1.3 (2007.11.22-17:59+0000) multi-call bina
Please press Enter to activate this console.
jffs2_get_inode_nodes(): Data CRC failed on node at 0x02e9cf90: Read 0x2339ffd0, calculated 0x61118f0d
jffs2_get_inode_nodes(): Data CRC failed on node at 0x024069a4: Read 0x4dd2e9b2, calculated 0xaf24be73
参考http://armlinux.simtec.co.uk/faq.html网站
What does the message "Erase block size too small (16KiB). Using virtual blocks size (32KiB)" mean?
What does the message "Empty flash at 0x00003ffc ends at 0x00004000" mean?
这两个问题很好理解,但下面打印的错误就......
jffs2_get_inode_nodes(): Data CRC failed on node at 0x02e9cf90: Read 0x2339ffd0, calculated 0x61118f0d
jffs2_get_inode_nodes(): Data CRC failed on node at 0x024069a4: Read 0x4dd2e9b2, calculated 0xaf24be73
我来Re下吧,因为也遇到了这个问题。
这个应该是直接断电之类导致的没有完成文件系统同步的问题。这里有个解释.
Frédéric Janot wrote:
>
> Hi,
>
> I have a board with samsung K9F5608UOC nand flash and mpc5200 ppc processor.
JFFS2 on NAND flash uses a page buffer. It is flushed to the flash when
it is full, or when you do fsync, sync or umount.
> when I reboot the board or when I remove the power "violently"
Some data may remain in the page buffer and is never written
to the Flash.
> jffs2_get_inode_nodes(): Data CRC failed on node at 0x00cc0f90: Read
> 0x6e17981a, calculated 0x4614a389
Well obviously a node was partly written to flash and the end of the
node remained in the cache and was never written. This means you
lost some data.
> /And I get one more message each time I reboot the board. But the
> filesystem doesn't seem corrupted.
It is a warning only. The remainder of the file system will probably
still work. Only the last operation(s) before reboot are lost.
> If I umount / before rebooting, I don't have one more error message at
> the next reboot.
This is correct procedure if you don't want to lose any data.
> Do you have any idea about where the problem could come from ?
There is no problem. This is standard JFFS2 processing. Nodes with
wrong CRCs (partly written for instance) are ignored and not taken
in account when building the FS tree and files.
Estelle
详情回复
发表于 2009-12-9 15:26