mx28: Winbond Nor flash see "Node header CRC failed" errors when kernel starts

freelike itzyx at qq.com
Wed Dec 30 01:11:30 PST 2015


Hi all,

I have a Winbond W25Q256FVFG NOR Flash on my mx28 board. And I have test the nor flash driver under initramfs, raw erase, write and read is normal, also the flash_erase -j /dev/mtd1 and mount, umount my rootfs is ok.
But when I use the jffs2 as file system and boot the kernel, I keep seeing jffs2 "node header crc" errors.
I have use the flash_eraseall -j command to erase the related mtd partition before writing the rootfs. Erase size I choose is 64K. 4K was tested also.

Kernel version is 2.6.35.3

Kernel command:
noinitrd console=ttyAM0,115200 root=/dev/mtdblock1 rootfstype=jffs2 rw

MTD partitions(freescale board have its own bootlets, so there's no uboot partition):
Creating 2 MTD partitions on "mx28_nor_flash":
0x000000000000-0x000000400000 : "kernel"     ----total 4M
0x000000400000-0x000002000000 : "rootfs"      ----total 28M

Following is parts of the console log:

mxs-rtc mxs-rtc.0: setting system clock to 1970-01-01 00:00:34 UTC (34)
VFS: Mounted root (jffs2 filesystem) on device 31:1.
Freeing init memory: 176K
JFFS2 notice: (1) read_dnode: node CRC failed on dnode at 0x1fe38ec: read 0x00a1ff, calculated 0x1fc64c8e
JFFS2 notice: (996) jffs2_get_inode_nodes: Node header CRC failed at 0x1fe007c. {6976,ffff,e0021985,0000004b}
Node totlen on flash (0xe0021985) != totlen from node ref (0x00000044)
JFFS2 warning: (996) jffs2_do_read_inode_internal: no data nodes found for ino #2
Returned error for crccheck of ino #2. Expect badness...
JFFS2 notice: (1) read_dnode: node CRC failed on dnode at 0x1fcf6f0: read 0xc8dc1ed2, calculated 0xf3b37f4b
JFFS2 notice: (996) jffs2_get_inode_nodes: Node header CRC failed at 0x1fe01ec. {00f5,0000,00044000,000008c7}
Node totlen on flash (0xd554707d) != totlen from node ref (0x0000004c)
JFFS2 warning: (996) jffs2_do_read_inode_internal: no data nodes found for ino #4
Returned error for crccheck of ino #4. Expect badness...
JFFS2 notice: (996) jffs2_get_inode_nodes: Node header CRC failed at 0x1fe02b4. {5e78,5774,571c6c6b,bbb33e15}
Node totlen on flash (0x571c6c5d) != totlen from node ref (0x0000004c)
JFFS2 warning: (996) jffs2_do_read_inode_internal: no data nodes found for ino #5
Returned error for crccheck of ino #5. Expect badness...
JFFS2 notice: (996) jffs2_get_inode_nodes: Node header CRC failed at 0x1fe037c. {5e78,978c,55936c0b,d74fc714}
Node totlen on flash (0xddd63c77) != totlen from node ref (0x0000004c)
JFFS2 warning: (996) jffs2_do_read_inode_internal: no data nodes found for ino #6
Returned error for crccheck of ino #6. Expect badness...
JFFS2 notice: (996) jffs2_get_inode_nodes: Node header CRC failed at 0x1fe0448. {5e78,578c,b71b6f6b,fee7e512}
Node totlen on flash (0x40d36c3d) != totlen from node ref (0x0000004c)
JFFS2 warning: (996) jffs2_do_read_inode_internal: no data nodes found for ino #7
Returned error for crccheck of ino #7. Expect badness...
.......

I googled this issue for quite a long time, didn't find any solutions yet. Can anybody help me?
Thanks in advance!


More information about the linux-mtd mailing list