* jffs2_get_inode_nodes(): Data CRC failed on NAND chip
@ 2004-05-17 15:48 Frederic Janot
2004-05-18 10:20 ` Simon Haynes
0 siblings, 1 reply; 2+ messages in thread
From: Frederic Janot @ 2004-05-17 15:48 UTC (permalink / raw)
To: linux-mtd
Hi,
I've got a problem when using jffs2 filesystem on a nand flash device.
I've created a root file system image on my pc (little-endian) from
/rootfs directory which contain all needed files. I burn this image into
a nand flash (samsung k9f5608 - 32MB nand with 512+16 bytes per pages)
on a board with a power pc processor (big-endian).
So, on the pc, i do :
# mkfs.jffs2 -p --root=/rootfs -e 16384 -b -o fs_img
My flash partitions are :
# cat /proc/mtd
dev: size erasesize name
mtd0: 00400000 00004000 "Nand Flash Kernel"
mtd1: 01a00000 00004000 "Nand Flash RootFS"
mtd2: 00200000 00004000 "Nand Flash Test"
On my target, from an nfs mount root file system, i do :
# nandwrite -j /dev/mtd1 /fs_img
After that, I reboot my board and make the kernel boot from nand root
file system. The first boot is ok but when i reboot one more time, I
have the following message :
Empty flash at 0x0047b900 ends at 0x0047ba00
jffs2_get_inode_nodes(): Data CRC failed on node at 0x015fc000: Read
0x5a62bf55, calculated 0x349968c2
And each time I reboot, there is one message more. (I do nothing else
than login and reboot)
Empty flash at 0x0047b900 ends at 0x0047ba00
Empty flash at 0x015fc268 ends at 0x015fc400
jffs2_get_inode_nodes(): Data CRC failed on node at 0x015fc000: Read
0x5a62bf55, calculated 0x349968c2
jffs2_get_inode_nodes(): Data CRC failed on node at 0x015fc778: Read
0xdf13fb17, calculated 0xbdff7e75
etc ...
Do you have any idea on what happens ?
Thanks
Frederic Janot
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: jffs2_get_inode_nodes(): Data CRC failed on NAND chip
2004-05-17 15:48 jffs2_get_inode_nodes(): Data CRC failed on NAND chip Frederic Janot
@ 2004-05-18 10:20 ` Simon Haynes
0 siblings, 0 replies; 2+ messages in thread
From: Simon Haynes @ 2004-05-18 10:20 UTC (permalink / raw)
To: linux-mtd, Frederic Janot
I have had similar problems to this. As you reboot you must make sure that root is
remounted read only. If you don't a reboot can cause the JFFS2 garbage collector to
be stopped mid operation. JFFS2 is verbose in error reporting. I suspect that your
files are still ok. There was a bug in the JFFS2 layer which caused the garbage
collector not to flush it's write buffer on remount read only. This would not screw up
the filesystem but it would generate messages for uncleanly finished garbage
operations. I have discussed this recently and it should be available via CVS now.
I have had discussions about the empty flash messages too. It seems it is not a
problem. If the message concerns you move it to KERN_DEBUG
Hope this helps
Simon.
On 17 May 2004 at 17:48, Frederic Janot wrote:
> Hi,
>
> I've got a problem when using jffs2 filesystem on a nand flash device.
>
> I've created a root file system image on my pc (little-endian) from
> /rootfs directory which contain all needed files. I burn this image
> into a nand flash (samsung k9f5608 - 32MB nand with 512+16 bytes per
> pages) on a board with a power pc processor (big-endian).
>
> So, on the pc, i do :
> # mkfs.jffs2 -p --root=/rootfs -e 16384 -b -o fs_img
>
> My flash partitions are :
> # cat /proc/mtd
> dev: size erasesize name
> mtd0: 00400000 00004000 "Nand Flash Kernel"
> mtd1: 01a00000 00004000 "Nand Flash RootFS"
> mtd2: 00200000 00004000 "Nand Flash Test"
>
> On my target, from an nfs mount root file system, i do :
> # nandwrite -j /dev/mtd1 /fs_img
>
> After that, I reboot my board and make the kernel boot from nand root
> file system. The first boot is ok but when i reboot one more time, I
> have the following message : Empty flash at 0x0047b900 ends at
> 0x0047ba00 jffs2_get_inode_nodes(): Data CRC failed on node at
> 0x015fc000: Read 0x5a62bf55, calculated 0x349968c2
>
> And each time I reboot, there is one message more. (I do nothing else
> than login and reboot) Empty flash at 0x0047b900 ends at 0x0047ba00
> Empty flash at 0x015fc268 ends at 0x015fc400 jffs2_get_inode_nodes():
> Data CRC failed on node at 0x015fc000: Read 0x5a62bf55, calculated
> 0x349968c2 jffs2_get_inode_nodes(): Data CRC failed on node at
> 0x015fc778: Read 0xdf13fb17, calculated 0xbdff7e75
>
> etc ...
>
> Do you have any idea on what happens ?
>
> Thanks
>
> Frederic Janot
>
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
__________________________
Simon Haynes - Baydel
Phone : 44 (0) 1372 378811
Email : simon@baydel.com
__________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-18 10:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-17 15:48 jffs2_get_inode_nodes(): Data CRC failed on NAND chip Frederic Janot
2004-05-18 10:20 ` Simon Haynes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox