From: Markus Schiltknecht <markus@bluegap.ch>
To: "Jörn Engel" <joern@logfs.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: curious questions
Date: Wed, 21 May 2008 11:52:14 +0200 [thread overview]
Message-ID: <4833F0CE.5010506@bluegap.ch> (raw)
In-Reply-To: <20080521093827.GB20358@logfs.org>
Hi,
thanks for your quick answer!
Jörn Engel wrote:
> You can erase no less than one erase-block. For NAND, you cannot easily
> write less than one page. Sometimes subpage writes work, sometimes they
> don't, they have strange limitations and are best ignored in the
> beginning.
So, with mtd, I can erase the erase-block spanning pages 0 to 63, and
then, write to page 0, wait for more data and only then write page 1, right?
>> Can I repeatedly write to a NAND flash page, to set its bits to 1
>> (without resetting any bit to 0) (or vice-versa for XOR)?
>
> Erase sets bits to 1, writes sets them to 0.
Ah, that applies to NAND as well as NOR, good.
> With old NOR flashes, you can repeatedly write the same area to flip
> single bits. Writes with all 1's are essentially noops, so to set a
> single bit write a word will all but one bit set to 1. With ECC you'd
> have to flip bits on the ECC backwards, which doesn't work. NAND has
> ECC, so ordinarily this trick won't work.
Yeah, ECC certainly wouldn't work for that. Good explanation, thanks.
Markus
next prev parent reply other threads:[~2008-05-21 9:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 9:16 curious questions Markus Schiltknecht
2008-05-21 9:38 ` Jörn Engel
2008-05-21 9:52 ` Markus Schiltknecht [this message]
2008-05-21 10:01 ` Jörn Engel
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=4833F0CE.5010506@bluegap.ch \
--to=markus@bluegap.ch \
--cc=joern@logfs.org \
--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