Hiya, looking for someone with more skill than me to add the latest microcode to the bios of an Erying 13980HX D4 as it is a desktop 13900k with its power limited and put on a laptop BGA package, then Erying has taken that laptop cpu and put it on a desktop board, as its one of these chips it suffers from the same eventual degrading from over voltage in the older microcode versions.
As Erying basically never updates the bios I was hoping to do it myself, but kept failing…
I got as far as getting the microcode extracted from an update file using MCExtractor, and even added it to the bios a bunch of different ways (MMtool, hex editing etc), but I get stuck with the FIT table being broken every time, I’m missing something and cannot get it to work.
This zip has the original bios and the extracted version 133 microcode for the CPU ID B0671H if anyone knows how to change microcode in a bios that would be amazing!
Edit byFernando: Thread moved into the “BIOS Modding Problems” Category and title customized
Since we know that using MMTool sometimes does change/destroy the original FIT Table, for future reference if you want to do it on your own, based on this info here’s how to fix FIT Table after you add/delete/replace microcodes:
Open the original bios dump file alongside with the edited bios file in Hex tool (like HxD)
After you search FIT Table in the original bios, it should be your “canvas” template, proceed open UEFITool and open your modded bios with UEFITool (for viewing, i suggest the latest UEFITool NE)
Now, search for FIT in the modded bios and see the the Address per microcode in UEFITool, and since in Hex tools it was read as little endian, you write them down backwards, so for example in UEFITool the address of the microcode was shown as FFA80400h, in Hex tool you write them as 00 04 A8 FF, it should be like this:
And that should be it, basically you’re fixing/correcting the address of the microcodes.
IF you do add/remove/replace the FIT Table:
The total length of the FIT table are from the FIT Table itself (in this case, from 5F) down to the very last line, in this image it is pointed with the green line. The red square is the FIT Table total addresses, and says it’s 09, which means the total length is 9 addresses (as the green line already pointed out):
If the address changes, and the FIT Table order is messed up, block the original FIT Table from the very first byte (5F in this case) down to the last offset, in this case from 2FD800 down to 2FE1F, copy them, and in the modded bios, block the same length of the FIT Table as the original, and then you Paste Write it. IF you do have a longer FIT Table (in case you did add microcodes) or the FIT Table weren’t adjusted at all after you’ve added new mCode, just block the full address (from 0x00 to 0x0F) of the already available bios and copy it, then block the FF’s below the mcode that was already available, and paste write it. If there are any non microcode table below the microcode table, just do the same as “adding” a new microcode address to the FIT Table, but this time, block all the non microcode addresses. Basically, this is a method to readjust/relocate the position, and the same could be applied if you did delete a mCode (which is the reverse of what i did tell). it should be like this:
And after you fix the position, you need to re write the addresses, for example i did add 1 mCode, it became 10 addresses, then i would edit it to 0A which is 10 in hex.
Im sorry if the explanation and the screenshots are messy, im bad at explaining things, but i do hope you do understand .
that explanation was perfect! thank you so much, I’m going to practice on it and see if I can replicate what you did in the file you provided, I get the feeling it will be useful in the future because I’m always buying weird boards or making old boards do what they shouldn’t normally(my old x68 motherboard im using as a router has bootable nvme drive ability now via pcie adapter card)
Just make sure whenever you did the FIT table correction (based on the info i linked above and the explanation i explain above), there is no address is added nor reduced. From my perspective, it is quite easy (but i cant explain it in perfect english as i am not a native speaker), But you’ll get what i mean with “FIT Table order is messed/destroyed”, it is annoying if you directly edit it, so my usual habit is when abt to edit a bios by using mmtool, ubu, and/or uefitool, i always make a duplicate, and whenever i did any replace/add/delete, i always check the padding files, it is a must to make sure padding files are stay in tact. So you could think it as a “checkpoint” to see which module replace/add/delete that causes the pad files to get deleted, and then you can make a semi-finished and get a workaround (i actually experimented on this regarding pad files, i can explain in DMs if you want to).
Usually on UEFITool, you can open both stock and modded bios, on both windows, use search feature and select GUID, and fill both with full of F, then you would know if any paddings were added, destroyed, or stay the same, hence why the stock bios or dumped bios (as long as the bios you currently use is not corrupted), it is the perferct “canvas” for comparission whenever the UEFI structures change.
In the bios i gave to you, i also updated Intel Gigabit OROM CL to 0.1.16, Realtek UEFI driver to 2.075, and Realtek 2.5Gbe OROM to 3.04, and added NvStrapsRebar v0.4-rc1 in case you use nvidia turing cards and want rebar to work on them. You can try to flash the bios i did give.
damn I wish I read this before I pulled my pc apart
I tried to flash with flashrom on linux, but flashrom doesn’t detect the chip so I had to pull out my ch341a progammer, I dumped the original bios then I tried your bios and it worked(worked awesome) and I tried mine after and it also worked, but my computer has a weird cooler in an old style case and it takes alot of pulling things apart and weirdness and zipties, so I’m running my bios without the updates you added to yours because it was the last one I put on
Hi, I am currently looking to buy a very similar board but from topc (topton).
It also has a 13980hx and I assume I will also need to manually update the microcode.
To be honest I have never done this, and am wondering if I understand the basic steps and if it would be possible to ask for your help.
I think this is what I would need to do:
Extract original bios → find latest microcode and somehow add this into that bios → find a way to install this manually updated bios to the board.
How would I go about extracting the original bios?
Oh and fyi I am familiar with computers and basic bios/flashing but am simply cautious to not brick anything.. as I said this is a specific area I have no experience in..
flashing and dumping the bios on this type of board is reasonably easy as long as you have a working windows install, you can use the CSME discovery tool to work out what CSME firmware you have, then use the version of flash programming tool that suits
on a 13980hx h770 system its typically v16.1
you goto the intel site and download the ME driver for 13th gen, and install it then
then its fpt64.exe -d backup.bin to backup your bios
Once you have gotten that far let me know and I can have a look at your bios, if you cant find the tools let me know, download csme discovery tool and tell me what version u need
Hi! Thanks for you quick response. I do however have a (maybe stupid) question. When contacting the seller of the board, they told me updating the bios was not possible. Now this could be a language barrier thing, as I asked if they themselves had a bios update to update the microcode but I can’t seem to get them to answer this. I suspect they don’t know themselves. Would i be right to assume I can fix the microcode by myself either way?
With your help of course
If so then I will just buy it and see whatever options it has on arrival.
I don’t know what brand you are going to buy, but if its erying you can def flash the bios, other brands? no idea, most bioses don’t stand up to a ch341a flasher tho lol
FIT table rewrites are always the annoying bit tbh. Did you get through the UEFITool part working okay? Raxis’s explanation kinda cuts off there and that’s usually where things go sideways for people trying to do this manually.
Hi, I’ve got the board now, just did the bios backup using FPTW64
By the way, i can’t seem to download the csme detection tool from intel, as the intel page keeps redirecting me to the download center where it doesn’t appear to exists.. tried different pc’s, browser, and vpn/incognito windows but no luck.. I have found “CSME System Tools v16.1 r0” on someones mirror link, which seemed to work.
Here is the info from meinfo:
Intel(R) ME Code Versions
BIOS Version E1.5D
MEI Driver Version 2603.9.4.0
FW Version 16.1.30.2264 H Consumer
Hope thats what i need. I’ve added the bios as an attachment.
Would you please guide me through next steps? I would greatly appreciate it.
Hi, to add to this, (I might have overlooked this I have just reopend the bios and checked for myself, (I contacted the manufacturer and they told me it had the outdated bios/microcode. But when I look now, screenshots added, I see a select microcode and when I select, “use newest” it says it uses 12f. This is the latest “good” microcode right? So I might not have to manualy update after all?
once you do that, reboot and dump that bios again and post it here again
I can have a look n chuck some new keys n microcode in it if you’d like
Edit: note make sure bitlocker is off or you have your key handy and you know your microsoft account password if using windows because it will make you re-enter it after secure boot change, and once you have the new secureboot keys and turn on secure boot and everythings flashed and done, clear and prepare your TPM in windows by running tpm.msc so games that use the tpm can do so properly)
This has the latest mcode 137 for cpuid B0671 and 3E for cpuid 90672, while also updated the intel me to 16.1.42.2872 Consumer H (alongside with ADP PMC 160.2.00.1044). I also inserted NvStrapsRebar just in case you use Nvidia Turing gpus.
@Koekieezz I flashed it using the bios, but it only boots to this now. No apparent error lights on the board, and tested with and without cables and storage
edit: after more checking it did show an error light, namely the “boot“ error light.
Right updated to MC136(MC137 doesn’t work well with these MODT boards), added the new CA2023 and CA2011 non-test keys
as you dumped the bios (I assume with FPTW64) you know how to flash it already
After flashing - shut down completely, turn on again and you might have to wait up to 10 minutes for memory training to happen do not turn off untill at least 10 minutes pass with no obvious action(it will turn itself on and off a couple times as it works itself out), go get a coffee or something(you might not, erying boards take forever to memory train on a bios flash not sure if TOPC has the same problem, you might even have to power off and remove CMOS battery(or bridge the clr_cmos pins) to reset the bios and then wait for memory training after that)
goto your bios and goto secureboot section, hit reset to factory(Not needed if you reset your bios/removed cmos battery), set to standard and enabled and save and exit.
once in windows clear and prepare your tpm if you haven’t after the CSME flash (Run TPM.MSC)