I'd like to start experimenting with partial-write support, now that partial-read works well for me.  But as of  now doit() does a full read before the write, which of course fails.  Any updates that I could test?  Any useful log I can provide regarding successes?<div>
<br></div><div>Note, I now have a buspirate so I can do full writes to recover, as needed (this works successfully now, if slowly)</div><div><br></div><div><br></div><div><br><br>On Tuesday, August 5, 2014, Stefan Tauner <<a href="mailto:stefan.tauner@alumni.tuwien.ac.at">stefan.tauner@alumni.tuwien.ac.at</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 5 Aug 2014 00:54:03 -0400<br>
TR Reardon <<a href="javascript:;" onclick="_e(event, 'cvml', 'thomas_reardon@hotmail.com')">thomas_reardon@hotmail.com</a>> wrote:<br>
<br>
> Attempted write failed.  Log attached.  Haven't looked at further, but<br>
> seems like partial reads work, but partial writes fail, due to early<br>
> full-read before attempted partial-write.<br>
><br>
> I use the term "partial" to mean a single region in the layout file.<br>
<br>
Yes, I agree. We read the whole flash first to be able to diagnose<br>
problems and recover from failures. Naturally this actually makes<br>
flashrom fail if it can't read anything. For now there is a<br>
read_all_first variable in doit() in flashrom.c that allows to turn<br>
this off manually.<br>
<br>
You are also absolutely right about the write-only check<br>
for layout files in cli_classic.c. That check was introduced way after<br>
the layout patches were produced. I'll change that in my branch<br>
somewhere, thanks.<br>
<br>
--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
<br>
</blockquote></div><br><br>-- <br>+Reardon<br>