Hello All<br>I am using ARM(S3C2410) machine with 2.4.18 kernel, yaffs and mtd. I have 2 partitions to store data, At first, allthings was all right, but the bad blocks number had grown incrumently. After 2 or 3 month past, one of my partition is full and on more available space left.
<br><br><br>[root /data0]#df
<br>Filesystem 1k-blocks Used Available Use% Mounted on
<br>/dev/mtdblock/4 2032 1836 196 90% /home
<br>/dev/mtdblock/5 5104 5104 0 100% /data0
<br>/dev/mtdblock/6 5104 1928 3176 38% /data1<br> <br>The total size of all files in direcorty data0 is not more than 4.0M bytes. And some blocks of this partition is marked bad.<br>[root /data0]#more /proc/kmsg
<br>...<br><7>block 228 is bad
<br><7>block 234 is bad
<br><7>block 235 is bad
<br><7>block 236 is bad
<br><7>block 249 is bad
<br><7>block 250 is bad
<br><7>block 251 is bad
<br><7>block 252 is bad
<br><7>block 256 is bad
<br><7>block 258 is bad
<br><7>block 259 is bad
<br><7>block 261 is bad
<br><7>block 263 is bad
<br><7>block 264 is bad
<br><7>block 266 is bad
<br><7>block 268 is bad
<br><7>block 270 is bad
<br><7>block 272 is bad
<br><7>block 274 is bad
<br><7>block 276 is bad
<br><7>block 279 is bad
<br>--More--
<br>....
<br>....
<br><br>My yaffs configuration is here.<br>[root /data0]#more /proc/yaffs
<br>YAFFS built:Oct 16 2003 09:25:52
<br>$Id: yaffs_fs.c,v 1.26 2003/05/20 23:20:53 charles Exp $
<br>$Id: yaffs_guts.c,v 1.26 2003/05/20 23:20:53 charles Exp $
<br>
<br>Device yaffs
<br>startBlock......... 1
<br>endBlock........... 319
<br>chunkGroupBits..... 0
<br>chunkGroupSize..... 1
<br>nErasedBlocks...... 187
<br>nTnodesCreated..... 200
<br>nFreeTnodes........ 67
<br>nObjectsCreated.... 100
<br>nFreeObjects....... 66
<br>nFreeChunks........ 6483
<br>nPageWrites........ 3294
<br>nPageReads......... 5155
<br>nBlockErasures..... 51
<br>nGCCopies.......... 77
<br>garbageCollections. 51
<br>passiveGCs......... 51
<br>nRetriedWrites..... 0
<br>nRetireBlocks...... 0
<br>eccFixed........... 0
<br>eccUnfixed......... 0
<br>tagsEccFixed....... 0
<br>tagsEccUnfixed..... 191
<br>cacheHits.......... 0
<br>nDeletedFiles...... 18
<br>nUnlinkedFiles..... 18
<br>nBackgroudDeletions 0
<br>useNANDECC......... 1
<br><br> <br>I can regain the bad blocks by using the low level flash utility. I use "vivi" to boot my machine, and the "vivi" has a function to format the flash.<br>I wonder why this happens and how to solve this problem.
<br><br>Best regards<br>Fanlvu<br><br>