[Armadillo:03827] nandへのファイルコピーでエラー

nishi email@hidden
2008年 12月 19日 (金) 17:55:01 JST


ast_nishiです。

nandへのファイルコピーでエラーが出ます。
症状ですが
・flash_eraseall -j /dev/mtd4 でSkipping bad blockがでる。
・mount後ファイルのコピーをnandへ行うとコピーできるものも
 あるが、エラーが発生する場合がほとんど。
・umount後再度mountを行うとreturned ECC errorが発生しエラー情報が
 大量にでます。

環境は
 armadillo240+nand(OP-NF256MRTC-20)
 kernel:Linux a240-0 2.6.12.3-a9-15
 atdist:atmark-dist-20080617
 basicコンフィグレーションから使用しています。

以上の症状にて問題点・解決策がわかりません。
情報頂けたら助かります。

以下コンソールのコピー

[email@hidden (ttyAM0) /bin]# flash_eraseall -j /dev/mtd4
Erasing 128 Kibyte @ d00000 --  5 % complete. Cleanmarker written at d00000.
Skipping bad block at 0x00d20000
Erasing 128 Kibyte @ 4560000 -- 27 % complete. Cleanmarker written at 4560000.
Skipping bad block at 0x04580000
Erasing 128 Kibyte @ 4aa0000 -- 29 % complete. Cleanmarker written at 4aa0000.
Skipping bad block at 0x04ac0000
Erasing 128 Kibyte @ 4be0000 -- 29 % complete. Cleanmarker written at 4be0000.
Skipping bad block at 0x04c00000
Erasing 128 Kibyte @ 51e0000 -- 31 % complete. Cleanmarker written at 51e0000.
Skipping bad block at 0x05200000
Erasing 128 Kibyte @ 5a00000 -- 35 % complete. Cleanmarker written at 5a00000.
Skipping bad block at 0x05a20000
Erasing 128 Kibyte @ 6560000 -- 39 % complete. Cleanmarker written at 6560000.
Skipping bad block at 0x06580000
Erasing 128 Kibyte @ ad00000 -- 67 % complete. Cleanmarker written at ad00000.
Skipping bad block at 0x0ad20000
Erasing 128 Kibyte @ ffe0000 -- 99 % complete. Cleanmarker written at ffe0000.

[email@hidden (ttyAM0) /bin]# mount -t jffs2 /dev/mtdblock4 /mtd

[email@hidden (ttyAM0) /bin]# cp /etc/hosts /mtd
これはエラーがでなかった。

[email@hidden (ttyAM0) /bin]# cp /bin/ntpclient /mtd
mtd->read(0x44 bytes from 0xffc1d04) returned ECC error
Node CRC 3818475f != calculated CRC 9fed024d for node at 0ffc1d04

[email@hidden (ttyAM0) /bin]# umount /mtd

[email@hidden (ttyAM0) /bin]# mount -t jffs2 /dev/mtdblock4 /mtd
mtd->read(0x1f800 bytes from 0xffc0800) returned ECC error
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11b0: 0x199d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11b4: 0x0b54 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11b8: 0x4363 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11bc: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11c0: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11c4: 0x81ed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11cc: 0x2000 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11d0: 0x57f4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11d4: 0x57f4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0ffc11d8: 0x57f4 instead
Further such events for this erase block will not be printed
mtd->read(0x34 bytes from 0xffc0844) returned ECC error

[email@hidden (ttyAM0) /bin]# mtd->read(0x44 bytes from 0xffc0878)
returned ECC error
jffs2_get_inode_nodes(): Data CRC failed on node at 0x0ffc0878: Read 0x16bda885, calculated 0x9941bdbf
mtd->read(0x44 bytes from 0xffc0800) returned ECC error

よろしくお願いします。
〆





armadillo メーリングリストの案内