All commands I used on Linux Mint, with arduino uno Atmega328P-PU,
download new bios (for 970 Pro3 R2.0):
http://www.asrock.com/mb/AMD/970%20Pro3%20R2.0/?cat=Download&os=BIOS
I have 970P32.00, just edit name bay 970P32.rom
Left pins of the BIOS chip:
-------------------------------------
[pin1 of the bios chip] /CS<->10k resistor<->VCC
[pin1 of the bios chip] /CS<->Arduino pin10(SS, PORTB2)
[pin2 of the bios chip] DO<->Arduino pin12(MISO, PORTB4)
[pin3 of the bios chip] /WP<->VCC
[pin4 of the bios chip] GND<->GND on the power pins
Right pins of the BIOS chip:
--------------------------------------
[pin8 of the bios chip] VCC<->+3.3V on the power pins of the Arduino
[pin7 of the bios chip] /HOLD<->VCC
[pin6 of the bios chip] CLK<->Arduino pin13(SCK, PORTB5)
[pin5 of the bios chip] DIO<->Arduino pin11(MOSI, PORTB3)
commands: (On laptop with linux mint 18 xfce) :
Java:
cd
sudo apt-get install flashrom gcc-avr binutils-avr avr-libc avrdude git
git clone --recursive git://github.com/urjaman/frser-duino
cd frser-duino
make u2
avr-objcopy -j .text -j .data -O ihex frser-duino.out frser-duino.hex
sudo avrdude -c arduino -p m328p -P /dev/ttyACM0 -b 115200 -U flash:w:frser-duino.hex
sudo flashrom -p serprog:dev=/dev/ttyACM0:115200 -r save.rom
//Comment: this saves the bios already present^^
sudo flashrom -p serprog:dev=/dev/ttyACM0:115200 -w newbios.rom
//this write new bios^^
now my PC working perfectly