On 06-07-24 10:13 +0800, fs p wrote: > Hi: > I have a problem : > when my kernel mount the rootfs (yaffs 1 ),there are many yaffs ecc error: > > [42949455.170000] **>>yaffs ecc error unfixed on chunk 1741:0 > [42949455.180000] **>>yaffs ecc error unfixed on chunk 1741:1 > [42949455.180000] **>>Block 54 marked for retirement > [42949455.190000] **>>yaffs ecc error unfixed on chunk 1742:0 > [42949455.190000] **>>yaffs ecc error unfixed on chunk 1742:1 > [42949455.200000 ] **>>Block 54 marked for retirement > [42949455.200000] **>>yaffs ecc error unfixed on chunk 1743:0 > [42949455.210000] **>>yaffs ecc error unfixed on chunk 1743:1 > [42949455.210000] **>>Block 54 marked for retirement > [42949455.220000] **>>yaffs ecc error unfixed on chunk 1744:0 > [42949455.230000] **>>Block 54 marked for retirement > [42949455.230000] **>>yaffs ecc error unfixed on chunk 1745:0 > [42949455.240000 ] **>>yaffs ecc error unfixed on chunk 1745:1 > [42949455.240000] **>>Block 54 marked for retirement > > ..................... > > this error message is printed by > yaffs_ReadChunkFromNAND(yaffs_tagscompat.c) ,yaffs_Scan call this > function. > I mount the root as yaffs ( my flash chip is 512B page ,kernel 2.6.12 > ,yaffs2 source ), > so I think whether yaffs1 tag compatible with the yaffs2 cource I use? Hmm, the yaffs1 compatibulity mode in the yaffs2 source is fine in general - many people have been using it for a long time. The error message probably means that there is something wrong with the data that are being written or read from the OOB so there appear to be ecc errors. What sort of ECC are you using? calculated by YAFFS, calculated by MTD or done in hardware? YAFFS and MTD need to agree with each other, and hardware and any bootloaders that write flash images on OOB layout and ECC policy. Are you using current yaffs2 CVS? This has the patch to arrange tags so they should work with kernel 2.6.12 (I think) so I'm not sure what's wrong. I'd turn on debug and see if that gives any clues. Check out the YAFFS_TRACE defines and set yaffs_traceMask in yaffs_fs.c for the ones you want. Wookey -- Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK Tel +44 (0) 1223 811679 work: http://www.aleph1.co.uk/ play: http://wookware.org/