[flashrom] [PATCH] Check if an erase is needed to write
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Tue Dec 22 02:38:51 CET 2009
On 23.11.2009 15:33, Carl-Daniel Hailfinger wrote:
> On 19.11.2009 17:51, Carl-Daniel Hailfinger wrote:
>
>> To summarize: Write granularity is chip specific. The following write
>> granularities exist according to my datasheet survey:
>> - 1 bit. Each bit can be cleared individually.
>> - 1 byte. A byte can be written once. Further writes to an already
>> written byte cause the contents to be either undefined or to stay unchanged.
>> - 128 bytes. If less than 128 bytes are written, the rest will be
>> erased. Each write to a 128-byte region will trigger an automatic erase
>> before anything is written. Very uncommon behaviour.
>> - 256 bytes. If less than 256 bytes are written, the contents of the
>> unwritten bytes are undefined.
>>
> New patch. Handle 1-bit, 1-byte and 256-byte write granularity.
>
> Stefan: I believe this addresses your concerns.
>
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
>
Ping?
This is http://patchwork.coreboot.org/patch/582/ in case you want to
look at the patch again.
Regards,
Carl-Daniel
--
Developer quote of the month:
"We are juggling too many chainsaws and flaming arrows and tigers."
More information about the flashrom
mailing list