public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* readback after write
@ 2006-02-28 16:46 hinko.kocevar
  0 siblings, 0 replies; only message in thread
From: hinko.kocevar @ 2006-02-28 16:46 UTC (permalink / raw)
  To: Linux MTD

Hi,

I have a general question regarding FLASH memories (It does not have to 
do anything directly with linux MTD).
I have connected SPI serial flash to my embedded device. Due to slow 
speed provided by the device I had to drop JFFS2 or similar flash fs in 
favor of accessing the flash memory in raw mode (using stdio I/O 
functions). It works nice and much faster than JFFS2.

What I would like to add to my code is read-back operation after write 
operation, to make sure I haven't overwritten any of the date already 
present on the flash. My intention was to:
- open fp for read and write
- (erase the sector if needed)
- write data to flash
- seek back
- read data back and compare write and read buffer byte-by-byte

This could have major performance downside considering I can transfer 
(R/W) 64K of data in ~700ms to/from the device (SLOWWW). Device is sized 
at 4Mbit. In the worst case this would probably double (triple?) R/W 
times for single operation, which is why I would like to ask if anyone 
has any information/algoritm for such things?

regards,
hinko
-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenija
Tel. +386 (0) 4 280 66 37
E-mail: hinko.kocevar@cetrtapot.si
Http: www.cetrtapot.si

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-28 16:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-28 16:46 readback after write hinko.kocevar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox