[Guide] Recover from failed BIOS flash using Raspberry PI

indeed I saw this post before. I hope this is 3.3V (1.8v is not common ? I think it is only really recent MB ? My Z97I AC is from 2014)
did you hear of any chip not compatible with flashrom ? :wink:

Well 1.8v chips have been around for longer back than 2014, but my personal experience is that i have not seen it on a standard desktop motherboard, mostly mobile devices,
but as i said this is my own experience.

There are of course some chips not supported by Flashrom, but assuming your BIOS is 3.3v, there is nothing destructive in testing, the first thing i would do is try to dump the current BIOS.

Also, have you tried taking a Picture of the chip, might be easier to see what is printed on it.




I did, but it’s also unreadable :cry:

here is 2 differents reading of the chip, probably both inexacts :slight_smile: but it may help to find

MXIC MX
25L6473E
M2I-10G
30237200
L14113

MXEC MX
25L8472E
M2I-100
SG2337200
L141115


this is assuming this chip is the bios, it’s a 8 pin chip just next to JSPI1 header…

bios.jpg

Ok, then that is good news, there is an MX25L6473E and it is a 3.3v chip, and seems to be supported by Flashrom too.

Macronix MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E 8192 SPI OK OK OK OK

must be this one :slight_smile:

ahah I arrive to the same conclusion! thanks a lot. just have to work on it now :slight_smile:

one last question to be sure: should I put 3.3V on pin 2 and gnd on pin 8 ? on your topic is different than the other link you gave me. I imagine it’s not so important if I put power + on 1/2 pin and - on 7/8 but asking just in case…

When i tried it i used both 1-2 (+) and 7-8 (Gnd) for Power, don’t know if it is needed though.

And it would be great if you report back with the result after flashing also, it could be of help to others.

EDIT: Just to be more clear, don’t know if using both 1-2, 7-8 is needed, probably works with just (+ 1 or 2), (Gnd 7 or 8).

sure I will report :slight_smile:

for now, I don’t have the device appearing in /dev/

probably bad wiring right ? I don’t have any soft or lib to install on raspbian to have it recognized ? (flashrom runs fine)

also, my raspi-blacklist.conf is empty (rpi3b with latest raspbian). and the modprobe commands doesn’t work

edit:
found my answer. SPI have to be enabled manually via raspi-config command

https://www.raspberrypi.org/documentatio…i/spi/README.md

but still not working, despit modprobe spi-bcm2835 (this changed also) chip is not detected :’( any idea ?

I did wiring again, same problem. I think the wiring on my jspi1 is different.

I could find some pics on russia/chinese forums…

link 1

link 2

link 3


I’m totally lost now… should I put gnd on 9 ? is CS on 9 ? should I gnd 11 or 12 ? :confused:

probably this is the issue, especially that I have MSI Z97 1150…

https://forums.overclockers.ru/viewtopic…82083#p12182083

not sure I understood the solution but it’s about variation of tension from 3.3 to 3.6 to enable which seems too complicated…

I would just like to ask, do you own any instrument to measure resistance and/or voltage?
If you did not compile Flashrom yourself? do you know that the one you haveis compiled with linux_spi support?

It is difficult to say about the pinout, i was not actually aware that MSI used different pinouts until now, it should not be any problem to test the various pinouts, as far as i can see.

I am not so sure it is about raising the voltage, i Think that might only be a problem if you can not get the chip to unlock for Writing, you should still be able to read it.

I usually have multimeter yes, but I’m not home right now. I’m on the way to get an old one from friend, not sure it works good tho, but I should be able to test continuity.

I compiled the flashrom myself. I don’t know if it is compiled with linux_spi support ? How do I know ? I enabled SPI after compiling it.

What do you think about the wiring shown on russian forum, with 12 pin, a transistor linked to CS pin and gnd ? is there a way to bypass transistor or keep it open ? (i did some electronic studies but it’s faaarrr ahah…)

Ok, if you left all options default it should be with Linux_spi support.

I will look at the datasheet for the chip and some of your links to see if i can Think of anything.

I Think you should try the pinout in your Link 2, and then see if you can dump the BIOS.

which pinout on link 2?

In the first post.

5793238500_1473530173.png


9199219900_1473530272.png