First I want to say that English is not my main language so sorry for the errors that I've migh have made.
Hello I've bought an Asrock A620M Pro RS motherboard on eBay that had bent pins on the socket to make a PC cheaper (I've already done it on my build and really enjoy doing it). So I bend them back in their correct place and try to boot into the motherboard BIOS it doesn't boot so I tried clearing CMOS and every basic things and it still doesn't boot my CPU is a Ryzen 5 8400f so the problem can be a BIOS update but I have to use the BIOS flashback but it also doesn't work. I have a Raspberry Pi 4 and heard that it can be use to reprogramm a chip so I wanted to try it so I located the BIOS chip it is a "winbond W25Q256JWEQ"
There is a header on the motherboard juste above the chip and in the manual it says that it is the SPI_TPM header
So I install flashrom on my PI and connect every corresponding pins and type the command "sudo flashrom -p linux_spi:dev=/dev/spidev0.0" and the chip is detected and says it is detected as "W25Q256JW"
The wiring is like this
Raspberry Pi 4 GPIO ------------------------- ASRock A620M Pro RS SPI TPM Header
GPIO 11 (Pin 23 - SCLK) ------------------------- CLK (Pin 7 on header)
GPIO 10 (Pin 19 - MOSI) ------------------------- SPI_MOSI (Pin 3 on header)
GPIO 9 (Pin 21 - MISO) -------------------------- SPI_MISO (Pin 5 on header)
GPIO 8 (Pin 24 - CE0) --------------------------- Main BIOS SPI_CS#
GND (e.g., Pi Pin 6) ---------------------------- GND (Pin 11 on header) (Also connected to GND from an external power supply)
[External Ruzizao 3.3V Power Supply] (3.3V Output) ---------------------------------------------------------------- SPI_PWR (Pin 9 on header) (This is the 3.3V supply for the BIOS chip)
After the command to make a backup BIOS nexte erase and write the BIOS but in the command erease there is the line "Block protection could not be disable" but it ends saying "DONE" the command I did is this "sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -c "W25Q256JW" --erase" and then the command "sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -c "W25Q256JW" -w A62MPRS3.20.ROM" (A62MPRS3.20.ROM is the latest BIOS on Asrock.com) with this command there's still the message "Block protection could not be disable" and it block on the line "Erasing and writing flash chip" it as run for more than 8hours so I've stopped it and tried with lower SPI communication but still stuck on the same "Erasing and writing flash chip".
If there is no solution for this erron I will buy the chip (https://fr.aliexpress.com/item/1005001287617721.html)
Thank for the help in advance and also sorry for the errors that I made while writing this
Hello I've bought an Asrock A620M Pro RS motherboard on eBay that had bent pins on the socket to make a PC cheaper (I've already done it on my build and really enjoy doing it). So I bend them back in their correct place and try to boot into the motherboard BIOS it doesn't boot so I tried clearing CMOS and every basic things and it still doesn't boot my CPU is a Ryzen 5 8400f so the problem can be a BIOS update but I have to use the BIOS flashback but it also doesn't work. I have a Raspberry Pi 4 and heard that it can be use to reprogramm a chip so I wanted to try it so I located the BIOS chip it is a "winbond W25Q256JWEQ"
There is a header on the motherboard juste above the chip and in the manual it says that it is the SPI_TPM header
So I install flashrom on my PI and connect every corresponding pins and type the command "sudo flashrom -p linux_spi:dev=/dev/spidev0.0" and the chip is detected and says it is detected as "W25Q256JW"
The wiring is like this
Raspberry Pi 4 GPIO ------------------------- ASRock A620M Pro RS SPI TPM Header
GPIO 11 (Pin 23 - SCLK) ------------------------- CLK (Pin 7 on header)
GPIO 10 (Pin 19 - MOSI) ------------------------- SPI_MOSI (Pin 3 on header)
GPIO 9 (Pin 21 - MISO) -------------------------- SPI_MISO (Pin 5 on header)
GPIO 8 (Pin 24 - CE0) --------------------------- Main BIOS SPI_CS#
GND (e.g., Pi Pin 6) ---------------------------- GND (Pin 11 on header) (Also connected to GND from an external power supply)
[External Ruzizao 3.3V Power Supply] (3.3V Output) ---------------------------------------------------------------- SPI_PWR (Pin 9 on header) (This is the 3.3V supply for the BIOS chip)
After the command to make a backup BIOS nexte erase and write the BIOS but in the command erease there is the line "Block protection could not be disable" but it ends saying "DONE" the command I did is this "sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -c "W25Q256JW" --erase" and then the command "sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -c "W25Q256JW" -w A62MPRS3.20.ROM" (A62MPRS3.20.ROM is the latest BIOS on Asrock.com) with this command there's still the message "Block protection could not be disable" and it block on the line "Erasing and writing flash chip" it as run for more than 8hours so I've stopped it and tried with lower SPI communication but still stuck on the same "Erasing and writing flash chip".
If there is no solution for this erron I will buy the chip (https://fr.aliexpress.com/item/1005001287617721.html)
Thank for the help in advance and also sorry for the errors that I made while writing this