linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Write to NOR flash garbled
@ 2009-08-24 18:58 N Cheung
  2009-08-25  4:51 ` Radha Mohan
  0 siblings, 1 reply; 3+ messages in thread
From: N Cheung @ 2009-08-24 18:58 UTC (permalink / raw)
  To: linux-mtd

This device, a Micrel KS8695 based system with Linux 2.6.18 with AMD
Am29LV641DH.  Device running find for 2 years until switch to a
compatible Spansion NOR flash S29GL064N.

flashcp failed with error: File does not seem to match flash data.
First mismatch at 0x00000000-0x00002800

Use dd to copy a one line text file, we can read it back OK.  But with
a bigger (200 lines) text file, the data get garbled.

However, if MTD debug is set to verbosity=3, flashcp copied big files
without problem.

Any pointers will be greatly appreciated.

Thanks in advance,
Norman

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Write to NOR flash garbled
  2009-08-24 18:58 Write to NOR flash garbled N Cheung
@ 2009-08-25  4:51 ` Radha Mohan
  2009-08-25  5:49   ` Norman Cheung
  0 siblings, 1 reply; 3+ messages in thread
From: Radha Mohan @ 2009-08-25  4:51 UTC (permalink / raw)
  To: N Cheung, linux-mtd

hi,

Can you list out the errors that you are getting? 
I also faced some problem with Spansion S29GL064M90TAIR4NOR flash. In my case the
sector erase was not happening immediately after giving the command. So with that I saw
some Data CRC and Node CRC errors.
So I put a retry in the code where erase was failing (cfi_cmdset0002.c). And also I disabled
the buffered write.

-- Mohan



----- Original Message ----
From: N Cheung <brjerome.1@gmail.com>
To: linux-mtd@lists.infradead.org
Sent: Tuesday, 25 August, 2009 12:28:28 AM
Subject: Write to NOR flash garbled

This device, a Micrel KS8695 based system with Linux 2.6.18 with AMD
Am29LV641DH.  Device running find for 2 years until switch to a
compatible Spansion NOR flash S29GL064N.

flashcp failed with error: File does not seem to match flash data.
First mismatch at 0x00000000-0x00002800

Use dd to copy a one line text file, we can read it back OK.  But with
a bigger (200 lines) text file, the data get garbled.

However, if MTD debug is set to verbosity=3, flashcp copied big files
without problem.

Any pointers will be greatly appreciated.

Thanks in advance,
Norman

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



      Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Write to NOR flash garbled
  2009-08-25  4:51 ` Radha Mohan
@ 2009-08-25  5:49   ` Norman Cheung
  0 siblings, 0 replies; 3+ messages in thread
From: Norman Cheung @ 2009-08-25  5:49 UTC (permalink / raw)
  To: Radha Mohan; +Cc: linux-mtd

There was no error.  However, reading the content after the write shows 
that the data was corrupted. Putting a delay after the write seems to 
solve the problem. 

It seems that the chip_ready() in do_write_buffer() is returning 
prematurely.  According to Spansion's spec. chip_ready() should check 
DQ7.  But chip_ready() read the same location and if they are the same, 
it assumes that chip is ready.

Norman

Radha Mohan wrote:
> hi,
>
> Can you list out the errors that you are getting? 
> I also faced some problem with Spansion S29GL064M90TAIR4NOR flash. In my case the
> sector erase was not happening immediately after giving the command. So with that I saw
> some Data CRC and Node CRC errors.
> So I put a retry in the code where erase was failing (cfi_cmdset0002.c). And also I disabled
> the buffered write.
>
> -- Mohan
>
>
>
> ----- Original Message ----
> From: N Cheung <brjerome.1@gmail.com>
> To: linux-mtd@lists.infradead.org
> Sent: Tuesday, 25 August, 2009 12:28:28 AM
> Subject: Write to NOR flash garbled
>
> This device, a Micrel KS8695 based system with Linux 2.6.18 with AMD
> Am29LV641DH.  Device running find for 2 years until switch to a
> compatible Spansion NOR flash S29GL064N.
>
> flashcp failed with error: File does not seem to match flash data.
> First mismatch at 0x00000000-0x00002800
>
> Use dd to copy a one line text file, we can read it back OK.  But with
> a bigger (200 lines) text file, the data get garbled.
>
> However, if MTD debug is set to verbosity=3, flashcp copied big files
> without problem.
>
> Any pointers will be greatly appreciated.
>
> Thanks in advance,
> Norman
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
>
>
>       Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/
>
>
>   

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-25  5:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-24 18:58 Write to NOR flash garbled N Cheung
2009-08-25  4:51 ` Radha Mohan
2009-08-25  5:49   ` Norman Cheung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).