MTD/YAFFS2 page problem, data missing
falls.huang at gmail.com
Wed Dec 19 13:17:13 EST 2007
I don't the exactly status about your board and testing method .
Maybe I can give u some suggests:
1. Do testing with such cycle ->
erase the yaffs2 partition that you write to , write , boot , read
Did u open the debug options in /proc/yaffs ?
FYI: http://www.yaffs.net/yaffs-debugging , you can open the option:
Read your nand flash driver carefully, yaffs2 based on mtd , mtd based
on nandflash driver .
2007/12/19, Kjetil Aamodt <kjetil.aamodt at tandberg.com>:
> >From time to time we have seen data corruption on our nand flash. Closer investigation with a 300MB large file showed us that 32 of 98 write-boot-read cycles got corrupted. The corruption were of two very similar forms:
> a) Somewhere in the image one complete page, page M, were replaced by the contents of M+1. Page M+1, and all other data in the file were correct (data from the same page is returned twice).
> b) Somewhere in the image there were two consecutive page errors. In the corrupted file page N were missing and replaced with N+1. Page N+1 contained only zeros. The rest of the data in the file were correct.
> Our Linux kernel version are 220.127.116.11. The YAFFS version is per CVS of November 13. 2007.
> Have anyone else seen such behavior with MTD and/or YAFFS2?
> Do you have any suggestion in how to debug this?
> Best regards,
> Kjetil Aamodt
> Linux MTD discussion mailing list
More information about the linux-mtd