<div dir="ltr"><div>Hi Stefan,<br><br>In the system, only below regions were mapped and only these regions can be erased/programmed.<br><br>0x54: 0x000f0000 FREG0: Flash Descriptor region (0x00000000-0x0000ffff) is read-write.<br>
0x58: 0x07ff0200 FREG1: BIOS region (0x00200000-0x007fffff) is read-write.<br><br>The other regions were not used on this platform.<br><br>Creating a romlayout file and programming only the specified regions solves the issue. The patch works fine.<br>
<br>#cat romlayout<br>00000000: 0000ffff desc<br>00200000: 007fffff bios<br><br># ./flashrom -p internal:laptop=this_is_not_a_laptop -l romlayout -i desc -i bios -w NewBios.bin <br><br></div><div><br></div>Thanks & Regards,<br>
Rajasekhar<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 9:01 PM, Stefan Tauner <span dir="ltr"><<a href="mailto:stefan.tauner@student.tuwien.ac.at" target="_blank">stefan.tauner@student.tuwien.ac.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 23 Apr 2014 20:40:26 +0530<br>
<div class="">Rajasekhar Pulluru <<a href="mailto:pullururajasekhar@gmail.com">pullururajasekhar@gmail.com</a>> wrote:<br>
<br>
> Hi Stefan,<br>
><br>
</div><div class="">> Attached the full logs (excluding dmi). My observation is that:<br>
> 1) reading spi flash seems to be good.<br>
> 2) erasing spi flash : only first 64kb erases successfully, after that<br>
> erase reports failure.<br>
> 3) programming spi flash: only first 64kb programs fine, after that erase<br>
> reports failure.<br>
<br>
</div>Hi, your output is missing the lines that are printed to stderr instead<br>
of stdout and you should probably use the -o option of flashrom to<br>
create logfiles ;)<br>
... but anyway, it seems to me as if the ME region starts exactly where<br>
you have problems. And I assume that it is at least not writable. You<br>
can make that r/w by changing the flash descriptor (i.e. the first 4kB<br>
which are apparently writable).<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
</div></div></blockquote></div><br></div>