Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erase fail on W25Q256.W of ASUS Prime X570 Pro #221

Open
igxactly opened this issue Aug 23, 2021 · 0 comments
Open

Erase fail on W25Q256.W of ASUS Prime X570 Pro #221

igxactly opened this issue Aug 23, 2021 · 0 comments

Comments

@igxactly
Copy link

igxactly commented Aug 23, 2021

######################
## Try 1
######################
$ sudo ./flashrom-master/flashrom -V -p 'internal:spispeed=16.5 MHz' -c 'W25Q256.W' -w PRIME-X570-PRO-ASUS-4021.bin -o flashrom-write.log
flashrom  on Linux 5.11.0-27-generic (x86_64)
flashrom was built with libpci 3.6.4, GCC 9.3.0, little endian
Command line (9 args): ./flashrom-master/flashrom -V -p internal:spispeed=16.5 MHz -c W25Q256.W -w PRIME-X570-PRO-ASUS-4021.bin -o flashrom-write.log
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Initializing internal programmer
/sys/class/mtd/mtd0 does not exist
No coreboot table found.
Using Internal DMI decoder.
DMI string chassis-type: "Desktop"
DMI string system-manufacturer: "System manufacturer"
DMI string system-product-name: "System Product Name"
DMI string system-version: "System Version"
DMI string baseboard-manufacturer: "ASUSTeK COMPUTER INC."
DMI string baseboard-product-name: "PRIME X570-PRO"
DMI string baseboard-version: "Rev X.0x"
Found chipset "AMD FP4" with PCI ID 1022:790e.
Enabling flash write... SPI base address is at 0xfec10000
Trying to determine the generation of the SPI interface... Promontory (rev 0x61) detected.
SpiRomEnable=1, RouteTpm2Sp=1, PrefetchEnSPIFromIMC=1, PrefetchEnSPIFromHost=1
(0x4fcc00e9) SpiArbEnable=1, IllegalAccess=0, SpiAccessMacRomEn=1, SpiHostAccessRomEn=1, ArbWaitCount=7, SpiBusy=0
Using SPI_CS0
GPIO11 used for SPI_DO
GPIO12 used for SPI_DI
GPIO31 used for SPI_HOLD
GPIO32 used for SPI_CS
GPIO47 used for SPI_CLK
SPI read mode is Quad IO (1-4-4) (5)
Warning: spireadmode not set, leaving spireadmode unchanged.UseSpi100 is enabled
NormSpeedNew is 33 MHz
FastSpeedNew is 33 MHz
AltSpeedNew is 33 MHz
TpmSpeedNew is 33 MHz
Setting SPI clock to 16.5 MHz (3)... succeeded.
IMC is not active.
ROM strap override is not active
OK.
The following protocols are supported: LPC, FWH, SPI.
Probing for Winbond W25Q256.W, 32768 kB: compare_id: id1 0xef, id2 0x6019
Added layout entry 00000000 - 01ffffff named complete flash
Found Winbond flash chip "W25Q256.W" (32768 kB, SPI) mapped at physical address 0x00000000fe000000.
Chip status register is 0x02.
This chip may contain one-time programmable memory. flashrom cannot read
and may never be able to write it, hence it may not be able to completely
clone the contents of this chip (see man page for details).
Flash image seems to be a legacy BIOS. Disabling coreboot-related checks.
Block protection is disabled.
Reading old flash chip contents... done.
Erasing and writing flash chip... Trying erase function 0... 0x000000-0x000fff:S, 0x001000-0x001fff:S,
#--snip--
0xbff000-0xbfffff:S, 0xc00000-0xc00fff:EFAILED at 0x00c00000! Expected=0xff, Found=0x20, failed byte count from 0x00c00000-0x00c00fff: 0x10
ERASE FAILED!
Reading current flash chip contents...^C
######################
## Try 2
######################
$ sudo ./flashrom-master/flashrom -p 'internal:spispeed=66 MHz' -c 'W25Q256.W' -w PRIME-X570-PRO-ASUS-4021.bin
flashrom  on Linux 5.11.0-27-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Found chipset "AMD FP4".
Enabling flash write... Warning: spireadmode not set, leaving spireadmode unchanged.OK.
Found Winbond flash chip "W25Q256.W" (32768 kB, SPI) mapped at physical address 0x00000000fe000000.
Reading old flash chip contents... done.
Erasing and writing flash chip... FAILED at 0x00c00000! Expected=0xff, Found=0x20, failed byte count from 0x00c00000-0x00c00fff: 0x10
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x00c00000! Expected=0xff, Found=0x20, failed byte count from 0x00c00000-0x00c07fff: 0x110
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x00c00000! Expected=0xff, Found=0x20, failed byte count from 0x00c00000-0x00c0ffff: 0x110
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x00c00000! Expected=0xff, Found=0x20, failed byte count from 0x00000000-0x01ffffff: 0x120cd
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x00c00000! Expected=0xff, Found=0x20, failed byte count from 0x00000000-0x01ffffff: 0x120cd
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
Looking for another erase function.
Looking for another erase function.
No usable erase functions left.
FAILED!
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.
Get help on IRC (see https://www.flashrom.org/Contact) or mail
flashrom@flashrom.org with the subject "FAILED: <your board name>"!-------------------------------------------------------------------------------
DO NOT REBOOT OR POWEROFF!
######################
## hash check result
## - all 3001 are extracted from internal, using flashrom(github master ed43237)
######################
$ xxhsum *.bin
e282d0bbeb3899fc  PRIME-X570-PRO-ASUS-3001_after-erase-stopped.bin
a2f31dd64d75bb1e  PRIME-X570-PRO-ASUS-3001_after-more-erase-until-end.bin
031379000c2565b3  PRIME-X570-PRO-ASUS-3001_before-erase.bin
c4dc2a6e397866ff  PRIME-X570-PRO-ASUS-4021.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant