<br><font size=2 face="sans-serif">Here is the information, which was asked.
I hope it will help. Please, let me know if you need any other debug info.</font>
<br>
<br>
<br><font size=2 face="sans-serif">1) the beginning text from MTD boot
screen which should depict the bad block markers that have been detected</font>
<br><font size=2 face="sans-serif">(MTD Debug was turned on)</font>
<br>
<br><font size=2 face="sans-serif">Dentry cache hash table entries: 8192
(order: 3, 32768 bytes)</font>
<br><font size=2 face="sans-serif">Inode-cache hash table entries: 4096
(order: 2, 16384 bytes)</font>
<br><font size=2 face="sans-serif">Memory: 47MB = 47MB total</font>
<br><font size=2 face="sans-serif">Memory: 45584KB available (1573K code,
375K data, 80K init)</font>
<br><font size=2 face="sans-serif">Mount-cache hash table entries: 512
(order: 0, 4096 bytes)</font>
<br><font size=2 face="sans-serif">CPU: Testing write buffer coherency:
ok</font>
<br><font size=2 face="sans-serif">NET: Registered protocol family 16</font>
<br><font size=2 face="sans-serif">NetWinder Floating Point Emulator V0.97
(double precision)</font>
<br><font size=2 face="sans-serif">devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)</font>
<br><font size=2 face="sans-serif">devfs: boot_options: 0x0</font>
<br><font size=2 face="sans-serif">yaffs Dec 22 2005 15:54:34 Installing.</font>
<br><font size=2 face="sans-serif">Serial: M825xx1 driver $Revision: 1.1.2.1.2.1
$</font>
<br><font size=2 face="sans-serif">ttyS0 at MMIO 0x10090000 (irq = 41)
is a M825xx1</font>
<br><font size=2 face="sans-serif">io scheduler noop registered</font>
<br><font size=2 face="sans-serif">loop: loaded (max 8 devices)</font>
<br><font size=2 face="sans-serif">nbd: registered device at major 43</font>
<br><font size=2 face="sans-serif">smi_memory_phy = a10000</font>
<br><font size=2 face="sans-serif">Phy->storage: 0xcce4a0</font>
<br><font size=2 face="sans-serif">Virt->storage: 0xf0cce4a0</font>
<br><font size=2 face="sans-serif">NAND device: Manufacturer ID: 0xec,
Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)</font>
<br><font size=2 face="sans-serif">Scanning device for bad blocks</font>
<br><font size=2 face="sans-serif">Bad eraseblock 0 at 0x00000000</font>
<br><font size=2 face="sans-serif">Bad eraseblock 32 at 0x00400000</font>
<br><font size=2 face="sans-serif">Bad eraseblock 33 at 0x00420000</font>
<br><font size=2 face="sans-serif">Bad eraseblock 34 at 0x00440000</font>
<br><font size=2 face="sans-serif">Bad eraseblock 35 at 0x00460000</font>
<br><font size=2 face="sans-serif">............</font>
<br><font size=2 face="sans-serif">long list</font>
<br><font size=2 face="sans-serif">............</font>
<br><font size=2 face="sans-serif">Bad eraseblock 435 at 0x03660000</font>
<br><font size=2 face="sans-serif">Bad eraseblock 437 at 0x036a0000</font>
<br><font size=2 face="sans-serif">Creating 4 MTD partitions on "NAND
128MiB 3,3V 8-bit":</font>
<br><font size=2 face="sans-serif">0x00000000-0x00200000 : "MSP boot
partition"</font>
<br><font size=2 face="sans-serif">mtd: Giving out device 0 to MSP boot
partition</font>
<br><font size=2 face="sans-serif">0x00200000-0x00400000 : "Linux
boot partition"</font>
<br><font size=2 face="sans-serif">mtd: Giving out device 1 to Linux boot
partition</font>
<br><font size=2 face="sans-serif">0x00400000-0x03600000 : "Comcerto
Filesystem partition"</font>
<br><font size=2 face="sans-serif">mtd: Giving out device 2 to Comcerto
Filesystem partition</font>
<br><font size=2 face="sans-serif">0x03600000-0x06800000 : "Comcerto
Filesystem partition2"</font>
<br><font size=2 face="sans-serif">mtd: Giving out device 3 to Comcerto
Filesystem partition2</font>
<br>
<br>
<br><font size=2 face="sans-serif">2) the result of mounting yaffs partiton.</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># mount -t yaffs2 /dev/mtdblock3 /mnt/y</font>
<br><font size=2 face="sans-serif">yaffs: dev is 32505859 name is "mtdblock3"</font>
<br><font size=2 face="sans-serif">yaffs: Attempting MTD mount on 31.3,
"mtdblock3"</font>
<br><font size=2 face="sans-serif">block 1 is bad</font>
<br><font size=2 face="sans-serif">block 2 is bad</font>
<br><font size=2 face="sans-serif">block 3 is bad</font>
<br><font size=2 face="sans-serif">block 4 is bad</font>
<br><font size=2 face="sans-serif">block 6 is bad</font>
<br><font size=2 face="sans-serif">nand_read_ecc: Failed ECC read, page
0x00006d01</font>
<br><font size=2 face="sans-serif">nand_read_ecc: Failed ECC read, page
0x00006d01</font>
<br><font size=2 face="sans-serif">#</font>
<br>
<br><font size=2 face="sans-serif">2.5) some more info about the copy results</font>
<br><font size=2 face="sans-serif"># </font>
<br><font size=2 face="sans-serif"># rm /mnt/y/*</font>
<br><font size=2 face="sans-serif">rm: cannot remove `/mnt/y/lost+found':
Is a directory</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># cp mytest /mnt/y</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># cp mkyaffs2 /mnt/y</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># cp nandwrite /mnt/y</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">!!!!!!!!</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># ls -l /mnt/y</font>
<br><font size=2 face="sans-serif">total 62</font>
<br><font size=2 face="sans-serif">drw-rw-rw- 1 root root 2048
Jan 1 00:03 lost+found</font>
<br><font size=2 face="sans-serif">-rwxr-xr-x 1 root root 10765 Jan
1 00:08 mkyaffs2</font>
<br><font size=2 face="sans-serif">-rw-r--r-- 1 root root 8240
Jan 1 00:08 mytest</font>
<br><font size=2 face="sans-serif">-rwxr-xr-x 1 root root 40724 Jan
1 00:09 nandwrite</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># cp yaffs2small.img /mnt/y</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">....</font>
<br><font size=2 face="sans-serif">lot of messages</font>
<br><font size=2 face="sans-serif">....</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">cp: writing `/mnt/y/yaffs2small.img':
Operation not permitted</font>
<br><font size=2 face="sans-serif">yaffs tragedy: no more eraased blocks</font>
<br><font size=2 face="sans-serif">!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># ls -l /mnt/y</font>
<br><font size=2 face="sans-serif">total 272</font>
<br><font size=2 face="sans-serif">drw-rw-rw- 1 root root
2048 Jan 1 00:03 lost+found</font>
<br><font size=2 face="sans-serif">-rwxr-xr-x 1 root root 10765
Jan 1 00:08 mkyaffs2</font>
<br><font size=2 face="sans-serif">-rw-r--r-- 1 root root
8240 Jan 1 00:08 mytest</font>
<br><font size=2 face="sans-serif">-rwxr-xr-x 1 root root 40724
Jan 1 00:09 nandwrite</font>
<br><font size=2 face="sans-serif">-rw-r--r-- 1 root root 215040
Jan 1 00:13 yaffs2small.img</font>
<br><font size=2 face="sans-serif">#</font>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">3) the output of /proc/yaffs file</font>
<br><font size=2 face="sans-serif"># vi /prov/yaffs</font>
<br><font size=2 face="sans-serif">YAFFS built:Dec 22 2005 15:54:34</font>
<br><font size=2 face="sans-serif">$Id: yaffs_fs.c,v 1.38 2005/12/15 20:27:56
charles Exp $</font>
<br><font size=2 face="sans-serif">$Id: yaffs_guts.c,v 1.25 2005/12/08
00:51:15 charles Exp $</font>
<br>
<br><font size=2 face="sans-serif">Device 0 "Comcerto Filesystem partition"</font>
<br><font size=2 face="sans-serif">startBlock......... 0</font>
<br><font size=2 face="sans-serif">endBlock........... 399</font>
<br><font size=2 face="sans-serif">chunkGroupBits..... 0</font>
<br><font size=2 face="sans-serif">chunkGroupSize..... 1</font>
<br><font size=2 face="sans-serif">nErasedBlocks...... 0</font>
<br><font size=2 face="sans-serif">nTnodesCreated..... 0</font>
<br><font size=2 face="sans-serif">nFreeTnodes........ 0</font>
<br><font size=2 face="sans-serif">nObjectsCreated.... 100</font>
<br><font size=2 face="sans-serif">nFreeObjects....... 96</font>
<br><font size=2 face="sans-serif">nFreeChunks........ 0</font>
<br><font size=2 face="sans-serif">nPageWrites........ 0</font>
<br><font size=2 face="sans-serif">nPageReads......... 0</font>
<br><font size=2 face="sans-serif">nBlockErasures..... 0</font>
<br><font size=2 face="sans-serif">nGCCopies.......... 0</font>
<br><font size=2 face="sans-serif">garbageCollections. 0</font>
<br><font size=2 face="sans-serif">passiveGCs......... 0</font>
<br><font size=2 face="sans-serif">nRetriedWrites..... 0</font>
<br><font size=2 face="sans-serif">nRetireBlocks...... 0</font>
<br><font size=2 face="sans-serif">eccFixed........... 0</font>
<br><font size=2 face="sans-serif">eccUnfixed......... 0</font>
<br><font size=2 face="sans-serif">tagsEccFixed....... 0</font>
<br><font size=2 face="sans-serif">tagsEccUnfixed..... 0</font>
<br><font size=2 face="sans-serif">cacheHits.......... 0</font>
<br><font size=2 face="sans-serif">nDeletedFiles...... 0</font>
<br><font size=2 face="sans-serif">nUnlinkedFiles..... 0</font>
<br><font size=2 face="sans-serif">nBackgroudDeletions 0</font>
<br><font size=2 face="sans-serif">useNANDECC......... 1</font>
<br><font size=2 face="sans-serif">isYaffs2........... 1</font>
<br>
<br><font size=2 face="sans-serif">Device 1 "Comcerto Filesystem partition2"</font>
<br><font size=2 face="sans-serif">startBlock......... 0</font>
<br><font size=2 face="sans-serif">endBlock........... 399</font>
<br><font size=2 face="sans-serif">chunkGroupBits..... 0</font>
<br><font size=2 face="sans-serif">chunkGroupSize..... 1</font>
<br><font size=2 face="sans-serif">nErasedBlocks...... 0</font>
<br><font size=2 face="sans-serif">nTnodesCreated..... 100</font>
<br><font size=2 face="sans-serif">nFreeTnodes........ 90</font>
<br><font size=2 face="sans-serif">nObjectsCreated.... 100</font>
<br><font size=2 face="sans-serif">nFreeObjects....... 89</font>
<br><font size=2 face="sans-serif">nFreeChunks........ 25194</font>
<br><font size=2 face="sans-serif">nPageWrites........ 0</font>
<br><font size=2 face="sans-serif">nPageReads......... 0</font>
<br><font size=2 face="sans-serif">nBlockErasures..... 8</font>
<br><font size=2 face="sans-serif">nGCCopies.......... 493</font>
<br><font size=2 face="sans-serif">garbageCollections. 8</font>
<br><font size=2 face="sans-serif">passiveGCs......... 0</font>
<br><font size=2 face="sans-serif">nRetriedWrites..... 0</font>
<br><font size=2 face="sans-serif">nRetireBlocks...... 0</font>
<br><font size=2 face="sans-serif">eccFixed........... 0</font>
<br><font size=2 face="sans-serif">eccUnfixed......... 0</font>
<br><font size=2 face="sans-serif">tagsEccFixed....... 0</font>
<br><font size=2 face="sans-serif">tagsEccUnfixed..... 0</font>
<br><font size=2 face="sans-serif">cacheHits.......... 0</font>
<br><font size=2 face="sans-serif">nDeletedFiles...... 2</font>
<br><font size=2 face="sans-serif">nUnlinkedFiles..... 4</font>
<br><font size=2 face="sans-serif">nBackgroudDeletions 0</font>
<br><font size=2 face="sans-serif">B</font>
<br><font size=2 face="sans-serif">useNANDECC......... 1</font>
<br><font size=2 face="sans-serif">iBsYaffs2........... 1</font>
<br>
<br><font size=2 face="sans-serif">Thank you,</font>
<br><font size=2 face="sans-serif"> Yuri
Golovach</font>
<br>