flash bmc using ch341a on gigabyte ms33-ar0

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

jpmomo

Well-Known Member
Aug 12, 2018
617
264
63
does anyone have any experience flashing the bmc spi flash chip on the gigabyte ms33-ar0 (or any other mb that has the 16pin bmc flash chip)?
The issue is that the flash chip is 16 pins vs the typical 8 pin chip.
 

jpmomo

Well-Known Member
Aug 12, 2018
617
264
63
Thanks. Have you done that before and if so can you elaborate on the setup? Ex how did you connect the 16pin clip cable to the ch341a dongle?
 

RolloZ170

Well-Known Member
Apr 24, 2016
10,471
3,325
113
germany
The issue is that the flash chip is 16 pins vs the typical 8 pin chip.
you can buy adapter SOP16 to Dip8 specialy for ch341a
or DIY
SOP16_to_SOP8.jpg
 

i386

Well-Known Member
Mar 18, 2016
4,926
1,937
113
37
Germany
Thanks. Have you done that before and if so can you elaborate on the setup? Ex how did you connect the 16pin clip cable to the ch341a dongle?
Yes :D
I used it to recover a bricked supermicro m12swa. That system needs the bmc working to boot and supermicro quoted me at least 480€ (without taxes) to fix it because it was out of warranty... >500€ vs 35€ (flasher + cable) for fixing a "dead" board was an easy decision
I would recommend the following setup (flasher, 16 pin cable, adapter and a usb extension cable):
1.jpg

Flashing
1.) Find the SPI chip, it's manufacturer & specs and orientation:
2.jpg
2) Connect the adapter/cable to the spi chip if you flash it onboard, make sure the orientation is correct (red wire on this cable see the first picture of the kit) (requires the mainboard to have power, the flasher doesn't provide enough power for flasher itself and the spi chip)
3.jpg
3) Use the usb extension cable to connect the flasher with a usb port
4.jpg
5.jpg

For software: there are different tools that work with the ch341, the linux tool (for flashing coreboot) kinda sucked/couldn't flash in my case for what ever reason. I used AsProgrammer on a windows system

Btw I used information/posts/Threas from @RolloZ170 , @Rand__ & a now deleted user to find enough information how to do it :D
Thank you!

Edit:
Checked if a had notes about the flashing process and found some :D
- don't flash firmware until you can read/dump the current one at least two times and the dumps are identical
- after flashing "successfully" read the firmware from the spi and compare the binary to the firmware file you downloaded from mainboard manufacturer, they should be identical
 
Last edited:

RolloZ170

Well-Known Member
Apr 24, 2016
10,471
3,325
113
germany
(requires the mainboard to have power, the flasher doesn't provide enough power for flasher itself and the spi chip)
BIOS/BMC chip is usualy not decoupled from other parts, means you have to power up BMC AST and chipset at least.
in that case a 3.3V ch341A is better because the CH341a is powered by clean 3.3 and not unstable 5V from USB(over curent drops)
 

jpmomo

Well-Known Member
Aug 12, 2018
617
264
63
thanks for the detailed info. I have a similar setup but my issue is that the 16 pin cable clip occupies the full 16 sockets on the ch341a. I think it is only supposed to occupy the top 8 sockets (for spi) and wasn't sure if it was mapped correctly.
I was looking for the 16 to 8 pcb like Rollo showed. That item would take a few weeks to get and I was trying to fix quicker.
I ordered some dupont wires and will try and manually map the correct pins for the 16 to 8 pin conversion.
To answer Rollo's other questions:
I can't get the board to post as it is relying on a good bmc before I can even get into the bios or efi.
This happened when trying to update to the most recent bmc fw. It went to 85% but then failed after a while. It would not post after that so that is why I am trying to reflash via the spi dongle.
Rollo, if/when I am able to reflash the bmc, you mentioned that I would have to manually configure a mac. how/where do I do that?
 

i386

Well-Known Member
Mar 18, 2016
4,926
1,937
113
37
Germany
I have a similar setup but my issue is that the 16 pin cable clip occupies the full 16 sockets on the ch341a. I think it is only supposed to occupy the top 8 sockets (for spi) and wasn't sure if it was mapped correctly.
Yes, sorry! I grabbed the first (and incorrect) adapter :D
The kit that I got had a bunch of adapters (and some diy stuff that requires soldering or mounting the smd on the board). I used the marked one (you can also see in my previous post that not all pins are connected on the flasher).
6.jpg
On the flasher should be a "map"(bottom right, next to the yellow pins on my unit) which pins should be used for what chip and where pin 1 is (the small dot):
7.jpg
 

i386

Well-Known Member
Mar 18, 2016
4,926
1,937
113
37
Germany
Rollo, if/when I am able to reflash the bmc, you mentioned that I would have to manually configure a mac. how/where do I do that?
You need something like ipmiconfig (not sure if that works with gigabyte boards) in the os of your choice and then run the commands to set the bmc mac address and if bmc should be using dhcp. (On my m12swa it required a cold reboot to take effect, resetting the bmc via impiconfig did not work)
 

jpmomo

Well-Known Member
Aug 12, 2018
617
264
63
thanks again for all of the detail (much better than my ai robots!) The adapter (16pin on one side and 8pin on the other) is what was missing in my kit. That is the part that I couldn't find or at least I couldn't get quickly.
thanks also for the info about setting the mac.
 

RolloZ170

Well-Known Member
Apr 24, 2016
10,471
3,325
113
germany
thanks for the detailed info. I have a similar setup but my issue is that the 16 pin cable clip occupies the full 16 sockets on the ch341a. I think it is only supposed to occupy the top 8 sockets (for spi) and wasn't sure if it was mapped correctly.
I was looking for the 16 to 8 pcb like Rollo showed
some deliver SOP16 to DIL16 and a adapter pcb 16->DIP8
hH2Ap6c.jpg
 

jpmomo

Well-Known Member
Aug 12, 2018
617
264
63
the description made it look like it would work with the ch341a usb dongle but the cable only came with a 16 pin adapter not the sop16 to dip8 that I think that I need.
 

Attachments

RolloZ170

Well-Known Member
Apr 24, 2016
10,471
3,325
113
germany
the description made it look like it would work with the ch341a usb dongle but the cable only came with a 16 pin adapter not the sop16 to dip8 that I think that I need.
buyers mention it came with the adapter not pictured, but not my cable.
i bought Pomona 5252 clip and some dupons.
 

jpmomo

Well-Known Member
Aug 12, 2018
617
264
63
I am wondering if the 16pin placed into the zif 16 pin socket on the ch341a would work. maybe the 16 pin adapter is mapped in a way that the top (closer to the usb connector on the ch341a dongle) 8 pins for 25 spi. I thought I had tried that but maybe I had the orientation wrong.
 

Attachments

jpmomo

Well-Known Member
Aug 12, 2018
617
264
63
thanks. I was just looking at the arrow on the 16pin cable and thought that might be pin 1. If that was the case, it would map to #5 in your pic above. the only other orientation for the 16 pin adapter would be for the pin with the arrow, would be the bottom left on the 24xx side
 

RolloZ170

Well-Known Member
Apr 24, 2016
10,471
3,325
113
germany
thanks. I was just looking at the arrow on the 16pin cable and thought that might be pin 1. If that was the case, it would map to #5 in your pic above. the only other orientation for the 16 pin adapter would be for the pin with the arrow, would be the bottom left on the 24xx side
it is all printed on the back of your ch341a
the SOP16 to 16pin cable is for programmers with 16pin chip support.
ch341a needs adapter PCB.