Re: [Yaffs] cvs YAFFS + MTD cvs + 2.4.27-vrs1 problems

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Aras Vaichas
Date:  
To: tglx
CC: YAFFS
Subject: Re: [Yaffs] cvs YAFFS + MTD cvs + 2.4.27-vrs1 problems
Aras Vaichas wrote:
> Thomas Gleixner wrote:
>
>> 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
>>> 2.4.27-vrs1 kernel. I compiled the latest YAFFS code (from CVS) into
>>> the kernel. I mounted a 16MB block of Smartmedia NAND and tried to
>>> create some files, I got a load of errors , I reset the machine
>>> because it was obviously going crazy. I then noticed that my NAND
>>> 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.
>
>
> 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 that I
can tell ...

Surely it's not the easy to "break" a NAND chip? Can my original NAND be recovered?

nandtest # echo "Hello World!
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" > text.orig &&
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 = 0x00000000, len = 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 = 0x00000000, len = 512
ng data starting at 0x00000000 and ending atMTD_ioctl
0nand_read_oob: from = 0x00000000, len = 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! ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿaUWÿÿÿÿÿ
nandtest #

Aras