- PICKIT2 (or a 1.8V SPI programmer compatible with flashrom)
- 2mm female to 2.54mm DuPont jumper cables*
- Working machine with flashrom installed; ideally Arch Linux with the following package: https://aur.archlinux.org/packages/flashrom-git/
- Factory ROM image (with no capsule header) - Can be created manually with AMIBCP or obtained from another user: http://www.overclock.net/t/1633955/bios-mod-asus-prime-x370-pro-1201m-profile-mods/480#post_26456279
*By removing every other (in a checkerboard pattern) plastic shield on a standard female 2.54mm connector, it's possible to fit them onto a 2mm male header. This is not ideal, but may work.
1. Remove the CMOS battery and any other power cables.
2. Probe the flash header with a multimeter to determine the Winbond W25Q128FWSQ pin connections.
3. Using the information obtained above, draw a wiring diagram for the programmer.
4. Connect the PICKIT2 to the 2mm headers.
5. Make at least two backups with flashrom. This will take about an hour.
[dave@hardware mod]$ time sudo flashrom -p pickit2_spi:voltage=1.8V:spispeed=1M -r backup.1.rom
flashrom v0.9.9-90-g22f2dc5 on Linux 4.13.12-1-ARCH (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 Winbond flash chip "W25Q128.W" (16384 kB, SPI) on pickit2_spi.
===
This flash part has status UNTESTED for operations: PROBE READ ERASE WRITE
The test status of this chip may have been updated in the latest development
version of flashrom. If you are running the latest development version,
please email a report to [email protected] if any of the above operations
work correctly for you with this flash chip. Please include the flashrom log
file for all operations you tested (see the man page for details), and mention
which mainboard or programmer you tested in the subject line.
Thanks for your help!
Reading flash... done.
real 29m27.664s
user 0m13.302s
sys 0m25.052s
6. Flash a stock ROM three times. (Depending on the wiring, a single pass may not be enough.)
[dave@hardware mod]$ sudo flashrom -p pickit2_spi:voltage=1.8V:spispeed=1M -w B350PLUS1002MOD.rom
7. Remove the jumper cables from the flash header.
If everything went well, the system should now be able to boot up again.
Hello David,
ReplyDeletecould you tell me please did you use PICKit2 (pin 2, Vdd) as power supply or you use the MB power supply ?
Thanks
Sorry for the late reply. I believe I just used the PICkit 2's Vdd pin as power, and left the motherboard off (but plugged in with the PSU switched off too, so it would be grounded).
Delete