* Multiple writes to NAND OOB...
@ 2006-09-20 16:30 Siddharth Choudhuri
2006-09-22 3:18 ` Charles Manning
0 siblings, 1 reply; 2+ messages in thread
From: Siddharth Choudhuri @ 2006-09-20 16:30 UTC (permalink / raw)
To: linux-mtd
Hi,
I have the following question regarding multiple writes to OOB data:
Is it possible to write to the OOB data of the same page multiple times ?
If so, does it mean that the bytes being written are to different
locations(offsets) of the OOB because a byte cannot be rewritten in NAND
unless its block is erased ?
thanks,
-siddharth
_____________________________________________________________________
Unix is user friendly - its just picky about its friends.
_____________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Multiple writes to NAND OOB...
2006-09-20 16:30 Multiple writes to NAND OOB Siddharth Choudhuri
@ 2006-09-22 3:18 ` Charles Manning
0 siblings, 0 replies; 2+ messages in thread
From: Charles Manning @ 2006-09-22 3:18 UTC (permalink / raw)
To: linux-mtd; +Cc: Siddharth Choudhuri
On Thursday 21 September 2006 04:30, Siddharth Choudhuri wrote:
> Hi,
>
> I have the following question regarding multiple writes to OOB data:
>
> Is it possible to write to the OOB data of the same page multiple times ?
Yes it is **possible**, but be be careful. If you do too many writes without
an erase you can cause corruptions due to "write disturb".
> If so, does it mean that the bytes being written are to different
> locations(offsets) of the OOB because a byte cannot be rewritten in NAND
> unless its block is erased ?
If you write to NAND, then what you get is the ANDing of the pattern you write
against what was already there.
If a byte had 0011-0101 and you program 1101-0011 nto it you'll end up with
0001-0001.
Thus, if you want to program a new pattern into some bytes, you use 0xff for
any bytes you don't want to change.
You need to do an erase to change bits back to 1.
Note a subtle difference. Most NOR writes will fail if you write a pattern
that tries to set a bit from 0 to a 1. On NAND, the bit will not change, but
it is not an error to try to do this.
-- CHarles
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-22 3:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-20 16:30 Multiple writes to NAND OOB Siddharth Choudhuri
2006-09-22 3:18 ` Charles Manning
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox