Created
March 11, 2023 11:22
-
-
Save hanetzer/b89259a3d868dffa0e986cb7def220a3 to your computer and use it in GitHub Desktop.
flashrom-stable on Asus c7hwifi (ROG CROSSHAIR VII HERO WI-FI)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hanetzer@c7hwifi flashrom-stable]$ sudo dd if=/dev/mem bs=256 count=1 skip=$((0xfec10000/256)) | hexdump -Cv | |
1+0 records in | |
1+0 records out | |
256 bytes copied, 0.000118817 s, 2.2 MB/s | |
00000000 03 e3 28 0f 00 00 00 00 00 06 00 00 f2 02 00 02 |..(.............| | |
00000010 06 20 04 04 06 04 9f 05 03 0b 0a 02 ff b8 06 0e |. ..............| | |
00000020 13 07 33 11 08 20 20 20 0c 14 06 0e c0 54 c0 14 |..3.. .....T..| | |
00000030 c0 14 08 46 03 00 00 00 fc fc fc fc fc 88 00 00 |...F............| | |
00000040 3b 6b bb eb 00 03 00 00 03 00 00 0e 3f 02 03 00 |;k..........?...| | |
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000080 ff ff f2 ef 18 a5 52 28 45 0d 3a 3b 27 51 cf c2 |......R(E.:;'Q..| | |
00000090 74 a5 a7 49 c0 46 b1 35 52 46 be b0 75 4b 6e 8f |t..I.F.5RF..uKn.| | |
000000a0 cc a4 b3 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
00000100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hanetzer@c7hwifi flashrom-stable]$ sudo ./flashrom -p internal -r bios.rom | |
flashrom-stable p1.0-230-g8f1389a on Linux 6.2.2-arch1-1 (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 Pinnacle Ridge". | |
Enabling flash write... Setting SPI speed to 33.33 MHz. OK. | |
Found Winbond flash chip "W25Q256JW" (32768 kB, SPI) mapped at physical address 0x00000000fe000000. | |
Reading flash... done. | |
$ sudo ./flashrom -p internal -E | |
flashrom-stable p1.0-230-g8f1389a on Linux 6.2.2-arch1-1 (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 Pinnacle Ridge". | |
Enabling flash write... Setting SPI speed to 33.33 MHz. | |
OK. | |
Found Winbond flash chip "W25Q256JW" (32768 kB, SPI) mapped at physical address 0x00000000fe000000. | |
Erasing and writing flash chip... 4-byte address requested but master can't handle 4-byte addresses. | |
Looking for another erase function. | |
FAILED at 0x00000000! Expected=0xff, Found=0xef, failed byte count from 0x00000000-0x00000fff: 0x1000 | |
ERASE FAILED! | |
Looking for another erase function. | |
FAILED at 0x00000000! Expected=0xff, Found=0xef, failed byte count from 0x00000000-0x00007fff: 0x8000 | |
ERASE FAILED! | |
Looking for another erase function. | |
4-byte address requested but master can't handle 4-byte addresses. | |
Looking for another erase function. | |
FAILED at 0x00000000! Expected=0xff, Found=0xef, failed byte count from 0x00000000-0x0000ffff: 0x10000 | |
ERASE FAILED! | |
Looking for another erase function. | |
FAILED at 0x00000000! Expected=0xff, Found=0xef, failed byte count from 0x00000000-0x01ffffff: 0x177ae41 | |
ERASE FAILED! | |
Looking for another erase function. | |
FAILED at 0x00000000! Expected=0xff, Found=0xef, failed byte count from 0x00000000-0x01ffffff: 0x177ae41 | |
ERASE FAILED! | |
Looking for another erase function. | |
No usable erase functions left. | |
FAILED! | |
Your flash chip is in an unknown state. | |
Get help on IRC (see https://www.flashrom.org/Contact) or mail | |
[email protected] with the subject "FAILED: <your board name>"! | |
------------------------------------------------------------------------------- | |
DO NOT REBOOT OR POWEROFF! | |
[hanetzer@c7hwifi flashrom-stable]$ sudo ./flashrom -p internal -r bios.rom.2 | |
flashrom-stable p1.0-230-g8f1389a on Linux 6.2.2-arch1-1 (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 Pinnacle Ridge". | |
Enabling flash write... Setting SPI speed to 33.33 MHz. | |
OK. | |
Found Winbond flash chip "W25Q256JW" (32768 kB, SPI) mapped at physical address 0x00000000fe000000. | |
Reading flash... done. | |
[hanetzer@c7hwifi flashrom-stable]$ md5sum bios.rom | |
bios.rom bios.rom.2 | |
[hanetzer@c7hwifi flashrom-stable]$ md5sum bios.rom* | |
ea446045ba7c441ebe71b13d215b9815 bios.rom | |
ea446045ba7c441ebe71b13d215b9815 bios.rom.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hanetzer@c7hwifi flashrom-stable]$ sudo lspci -xxx -s 14.3 | |
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) | |
00: 22 10 0e 79 0f 00 20 02 51 00 01 06 00 00 80 00 | |
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 47 87 | |
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
40: 04 00 00 00 d5 ff 03 ff 07 ff 30 03 00 00 00 f8 | |
50: ff 05 00 fc ff 05 00 fd ff 05 00 fe ff 05 00 ff | |
60: 00 00 00 00 30 02 20 ff 00 00 0f 00 00 ff ff ff | |
70: 67 45 23 00 0c 00 00 00 90 02 00 00 07 0a 00 00 | |
80: 08 00 03 a8 00 00 00 00 00 00 00 00 00 00 00 00 | |
90: 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
a0: 02 00 c1 fe 2f 01 00 00 00 00 00 00 00 00 00 00 | |
b0: 00 00 00 00 00 00 00 00 04 00 e9 3f 00 00 00 00 | |
c0: 00 00 00 00 00 00 00 00 00 00 00 80 00 00 f7 ff | |
d0: 86 ff fd 08 42 00 00 00 00 00 00 00 00 00 00 00 | |
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment