Re: [flashrom] Add option to disable the reading back of the flash contents at write operation

2015-12-12 Thread Márton Miklós
Hello David, Thank you for your response! Your answer makes sense for me. In this case it would be useful to refactor the "backupless" writes to read sectors only until a non 0xFF portion found, and then mark that sector erasable or erase immediately. In the case if the flash has non blank

[flashrom] Add option to disable the reading back of the flash contents at write operation

2015-12-11 Thread Márton Miklós
Hello all, I am using the flashrom with an external programmer to flash various SPI flashes a lot. In most cases I do not care about the old flash contents when flashing, so the "/Reading old flash chip contents/" step does not have any added value in my use cases. The code also has a FIXME

Re: [flashrom] Add option to disable the reading back of the flash contents at write operation

2015-12-11 Thread David Hendricks
Hi Marton, I respectfully disagree with this approach. Reading the old contents is not just used for backup. It's used so that flashrom can selectively erase and write blocks which usually saves time because erase and write operations are orders of magnitude slower than reads on NOR flash. So,