<div dir="ltr"><div><div>Hi Stefan,<br><br></div>Thanks, I will test again tonight when I get home. The content of the rog.bin was the same for both attempts.<br><br></div>Liviu<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Jun 13, 2014 at 4:41 AM, Stefan Tauner <span dir="ltr"><<a href="mailto:stefan.tauner@alumni.tuwien.ac.at" target="_blank">stefan.tauner@alumni.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">
Thanks for the test, there are two issues here. One is that I swapped<br>
the erase block sizes of the P models. This is clearly shown in your<br>
logs.<br>
The ...0 model should have 64 kB erase blocks, but does not:<br>
> Trying erase function 0... 0x000000-0x03ffff:EFAILED at 0x00010000! Expected=0xff, Found=0xe5<br>
0x03ffff is 262143 in decimal... I have fixed that locally, but this is<br>
not the main problem here.<br>
<br>
The chip erase and the subsequent write should have worked, and your<br>
second try with the definition of the ...1 model too (because it<br>
contains the right block size). But both failed and I don't understand<br>
why yet. The first failed byte is equal in both cases but not all of<br>
them are (a different number of bytes fail in the two cases). This<br>
indicates that the behavior might be indeterministic. The contents of<br>
the "rog.bin" file were equal for both tries, right?<br>
What happens if you retry the second test again?<br>
/usr/src/flashrompatch/flashrom -p usbblaster_spi -o write2.log -c S25FL128P......1 -w rog.bin<br>
If you can not reproduce exactly the same output, i.e.<br>
Verifying flash... FAILED at 0x0000005b! Expected=0xd3, Found=0xfb, failed byte count from 0x00000000-0x00ffffff: 0xaf66ea<br>
Then we are on the right track. In that case I would ask you how the<br>
chip is connected exactly, especially how WP# and HOLD# are driven.<br>
<br>
PS: You dont need to install flashrom after recompiling. You can<br>
execute the built binary in the source directory (make; ./flashrom ...).<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
</div></div></blockquote></div><br></div>