On Sunday 12 June 2016 09:04 PM, Алексей Елсаков wrote:
Hi Alexey,
Based on the logs that you've sent, your chip had some write protection in place and flashrom successfully disabled it. The erase functions defined in flashrom for your chip is correct as per datasheet (https://www.adestotech.com/wp-content/uploads/doc3687.pdf).
My theory as to why erase failed for your chip is that some 64kB sector(s) must be locked down, meaning that they have become permanently read-only. Attempting to program or erase such a sector is a cause of command failure.
I have attached a patch that can help verify this theory. Please apply the patch locally, build, test and resend the verbose log to the mailing list.
Thanks.
Kind regards, Hatim
Hello, Hatim.
You suggestion was right. 11 sectors of my IC are locked down. :( I tried to use layout excluding those sectors and succeeded :) But to flash whole IC I have to buy a new one...
I thought about locked sectors too, but was confused with changed data in sector 0 yesterday. it is strange, but today data stay untouched.
In any case, we just checked, that flashrom reads and programs AT25DF161 well.
It will be good, if flashrom had ability to check locked down sectors at erase fails or as a command option for example...
You wrote 13 June 2016 14:44:19:
Thanks.
Kind regards, Hatim
best regards, Alexey Elsakov mailto:alexey@yelsakov.ru