Hi there Paulo,
flashrom v0.9.9-unknown on Linux 4.14.98-v7+ (armv7l)
This flashrom version is probably very outdated, and we don't know if
the same problem exists in the latest flashrom as well. Please, could
you get the latest flashrom sources (e.g. git clone
https://review.coreboot.org/flashrom/ , build them using the
instructions here -
https://www.flashrom.org/Downloads#Installation_from_source , and try
again?
Best regards,
Mike Banon
On Mon, Apr 29, 2019 at 3:00 AM Paulo Zorzan <phzorzan(a)riseup.net> wrote:
>
> ./flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -r romread_v1.rom
>
> ./flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -w
> x200_8mb_ukqwerty_txtmode.rom
>
flashrom v0.9.9-unknown on Linux 4.14.98-v7+ (armv7l)
> flashrom is free software, get the source code at
https://flashrom.org
>
> Calibrating delay loop... OK.
> Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
> Error: WIP bit after WRSR never cleared
> spi_write_status_register failed.
> Reading old flash chip contents...
>
> Calibrating delay loop... OK.
> Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
> Error: WIP bit after WRSR never cleared
> spi_write_status_register failed.
> Reading old flash chip contents... done.
> Erasing and writing flash chip... Erase/write done.
> Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x00,
> failed byte count from 0x00000000-0x007fffff: 0x1d1
> Your flash chip is in an unknown state.
> Please report this on IRC at
chat.freenode.net (channel #flashrom) or
> mail flashrom(a)flashrom.org, thanks!
>
>
>
>
> .//flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -w x200_8mac.rom
> flashrom v0.9.9-unknown on Linux 4.14.98-v7+ (armv7l)
> flashrom is free software, get the source code at
https://flashrom.org
>
> Calibrating delay loop... OK.
> Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
> Error: WIP bit after WRSR never cleared
> spi_write_status_register failed.
> Reading old flash chip contents... done.
> Erasing and writing flash chip... Erase/write done.
> Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x00,
> failed byte count from 0x00000000-0x007fffff: 0x2d1
> Your flash chip is in an unknown state.
> Please report this on IRC at
chat.freenode.net (channel #flashrom) or
> mail flashrom(a)flashrom.org, thanks!
>
> ./flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -w x200_8mac.rom
> flashrom v0.9.9-unknown on Linux 4.14.98-v7+ (armv7l)
> flashrom is free software, get the source code at
https://flashrom.org
>
> Calibrating delay loop... OK.
> Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
> Error: WIP bit after WRSR never cleared
> spi_write_status_register failed.
> Reading old flash chip contents... done.
> Erasing and writing flash chip... FAILED at 0x00000100! Expected=0xff,
> Found=0x89, failed byte count from 0x00000000-0x00000fff: 0x2d
> ERASE FAILED!
> Reading current flash chip contents... done. Looking for another erase
> function.
> Erase/write done.
> Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x00,
> failed byte count from 0x00000000-0x007fffff: 0x1d1
> Your flash chip is in an unknown state.
> Please report this on IRC at
chat.freenode.net (channel #flashrom) or
> mail flashrom(a)flashrom.org, thanks!
>
> ./flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -w x200_8mac.rom
> flashrom v0.9.9-unknown on Linux 4.14.98-v7+ (armv7l)
> flashrom is free software, get the source code at
https://flashrom.org
>
> Calibrating delay loop... OK.
> Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
> Reading old flash chip contents... done.
> Erasing and writing flash chip... FAILED at 0x00000000! Expected=0xff,
> Found=0x5a, failed byte count from 0x00000000-0x00000fff: 0x66
> ERASE FAILED!
> Reading current flash chip contents... done. Looking for another erase
> function.
> Erase/write done.
> Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x00,
> failed byte count from 0x00000000-0x007fffff: 0x3d1
> Your flash chip is in an unknown state.
> Please report this on IRC at
chat.freenode.net (channel #flashrom) or
> mail flashrom(a)flashrom.org, thanks!
>
> ./flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -w
> x200_8mb_ukqwerty_vesafb.rom
> flashrom v0.9.9-unknown on Linux 4.14.98-v7+ (armv7l)
> flashrom is free software, get the source code at
https://flashrom.org
>
> Calibrating delay loop... OK.
> Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
> Error: WIP bit after WRSR never cleared
> spi_write_status_register failed.
> Reading old flash chip contents... done.
> Erasing and writing flash chip... FAILED at 0x00001000! Expected=0xff,
> Found=0x00, failed byte count from 0x00001000-0x00001fff: 0x62
> ERASE FAILED!
> Reading current flash chip contents... done. Looking for another erase
> function.
> FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
> 0x00000000-0x0000ffff: 0x6829
> ERASE FAILED!
> ading current flash chip contents... done. Looking for another erase
> function.
> FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from
> 0x00000000-0x007fffff: 0xf84ce
> ERASE FAILED!
> ERASE FAILED!
> Reading current flash chip contents... done. Looking for another erase
> function.
> FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from
> 0x00000000-0x007fffff: 0xf83cf
> ERASE FAILED!
> Looking for another erase function.
> No usable erase functions left.
> FAILED!
> Uh oh. Erase/write failed. Checking if anything has changed.
> Uh oh. Erase/write failed. Checking if anything has changed.
> Reading current flash chip contents... done.
> Apparently at least some data has changed.
> Your flash chip is in an unknown state.
> Please report this on IRC at
chat.freenode.net (channel #flashrom) or
> mail flashrom(a)flashrom.org, thanks!
> _______________________________________________
> flashrom mailing list -- flashrom(a)flashrom.org
> To unsubscribe send an email to flashrom-leave(a)flashrom.org