From: "hinko.kocevar@cetrtapot.si" <hinko.kocevar@cetrtapot.si>
To: Linux MTD <linux-mtd@lists.infradead.org>
Subject: readback after write
Date: Tue, 28 Feb 2006 17:46:02 +0100 [thread overview]
Message-ID: <44047E4A.7060208@cetrtapot.si> (raw)
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
reply other threads:[~2006-02-28 16:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44047E4A.7060208@cetrtapot.si \
--to=hinko.kocevar@cetrtapot.si \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox