[Yaffs] cvs YAFFS + MTD cvs + 2.4.27-vrs1 problems
Aras Vaichas
arasv@magellan-technology.com
Fri, 03 Dec 2004 13:59:42 +1100
Aras Vaichas wrote:
> Thomas Gleixner wrote:
>=20
>> On Thu, 2004-12-02 at 16:19 +1100, Aras Vaichas wrote:
>>
>>> Hello all,
>>>
>>> I have managed to get the latest MTD code to compile with a=20
>>> 2.4.27-vrs1 kernel. I compiled the latest YAFFS code (from CVS) into=20
>>> the kernel. I mounted a 16MB block of Smartmedia NAND and tried to=20
>>> create some files, I got a load of errors , I reset the machine=20
>>> because it was obviously going crazy. I then noticed that my NAND=20
>>> suddenly had a load of "bad blocks"
>>
>>
>> Obviously some errors resulted in marking the blocks bad.
>>
>> Can you first verify that your driver works correctly without a
>> filesystem ? Use nandwrite to write a file to the chip and nanddump to
>> read it back.
>=20
>=20
> hmm, it *sort* of works, but it looks like there is corruption.
Aaah, but if I use a brand new NAND/Smartmedia, there is no corruption th=
at I=20
can tell ...
Surely it's not the easy to "break" a NAND chip? Can my original NAND be =
recovered?
nandtest # echo "Hello World!=20
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" > text.or=
ig &&=20
nandwrite -y -p
/dev/mtd/4 text.orig
MTD_open
MTD_ioctl
MTD_ioctl
WriMTD_ioctl
tinand_isbad_bbt(): bbt info for offs 0x00000000: (block 0) 0x00
ng data to block 0
MTD_write
nand_write_ecc: to =3D 0x00000000, len =3D 512
MTD_close
nand_sync: called
nandtest # nanddump
usage: nanddump <mtdname> <dumpname> [start addr] [length]
nandtest # nanddump /dev/mtd/4 text.out 0 512
MTD_open
MTD_ioctl
Would you like formatted output? n
DumMTD_read
pinand_read_ecc: from =3D 0x00000000, len =3D 512
ng data starting at 0x00000000 and ending atMTD_ioctl
0nand_read_oob: from =3D 0x00000000, len =3D 16
x00000200...
Dumping 0
MTD_close
nand_sync: called
nandtest # cat out.txt
cat: out.txt: No such file or directory
nandtest # cat text.out
Hello World! AB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