Hi,
May I ask for some guru assistance please ?
I’m trying to mod my bios on an asrock X99 taichi. I have several reasons to achieve :
-
CPU microcodes are not up to date, and maybe that’s the reason why I can’t backup my system in clonezilla (screen is all messed up with error messages and cpu microcode refs) (I can backup in rescuezilla though)
-
I want to add and enable Resizable Bar for my new nvidia GPU to perform “better” (as it does underperform according to benchmarks)
So I read a lot of things, and here are the steps I followed and that I would be glad if some experts would validate. Questions are in BOLD BLUE
Preliminary actions - I gathered :
-
the manufacturer original bios(es) : 1.80 (my actual bios) and 1.82beta (a beta bios from 2019, with “updated” microcodes but they are still not up to date according to UBU) from https://www.asrock.com/mb/intel/X99%20Taichi/index.fr.asp#BIOS
-
uefitool 0.28 from h_ttps://github.com/LongSoft/UEFITool/releases/tag/0.28.0
-
ReBarDxe.ffs from h_ttps://github.com/xCuri0/ReBarUEFI
-
UBU (uefi bios updater) from h_ttps://winraid.level1techs.com/t/tool-guide-news-uefi-bios-updater-ubu/30357
-
uefitool NE from h_ttps://github.com/LongSoft/UEFITool/releases
-
IFRextractor from h_ttps://github.com/LongSoft/IFRExtractor-RS/suites/9555751857/artifacts/454700873
-
HxD hex editor
-
read the guide UEFItool guide at [Guide] How to extract/insert/replace EFI BIOS modules by using the UEFITool
Then I followed those steps :
-
modding (adding dxe driver) at the end of the big dxe section with uefitool(non ne), like explained here h_ttp://www.youtube.com/watch?v=vcJDWMpxpjEE
-
updated CPU microcodes as explained in the UBU thread
-
saved the bios with the option to remove flash protection (the bios has the exact same size after that)
And there starts the questionning :
on the ReBarUEFI github from xCuri0, there is something that is quite disturbing : “Some firmware don’t clear NVRAM variables (ReBarState) when the CMOS is cleared. This can be a problem as CMOS clear will reset BIOS settings (4G/CSM) while keeping ReBarState enabled requiring you to boot with iGPU/non-rebar GPU to disable ReBarState. To mitigate this issue you can use AMIBCP to enable 4G decode and disable CSM by default.”
I understood that :
- amibcp is not really available (is it ?)
- amibcp SHOULD NOT be used on “aptio V” bioses (99% of messing things), and it IS the plaform of my bios
- there are some “MMtool” available somewhere, I downloaded them, I can open my bios, but there is no place where I could change default settings values
… so how do I perform that task of changing default values in bios ? because I have clearly struggled to simply enable “above 4G decoding” in my actual bios, I did it maybe 10 times because either a) my windows did boot but I had no more bios post and display so no more bios settings or b) I had bios screen but windows would not boot and stay with a single “-” in top left corner …
so well, now that I have :
- moved from mbr to gpt => ok
- disabled CSM in bios and enabled “above 4G decoding” and “above 4G decoding patch” => ok
- and that I have windows booting AND bios POST
… how do I do that “simple task” of changing default values ?
I found this thread about UEFI editor (h_ttps://winraid.level1techs.com/t/tool-uefi-editor/91500/4)
But I’m quite struggling at :
- finding the “setup” section in the bios : the search for “high precision” pattern finds nothing and “HPET” finds only a section named “Platform” and not “setup” (but there are some “setup” matches sections elsewhere in the bios) => should I take and use this “Platform” PE32 ? => tried that one => the tool opens up settings but there is no “above 4g decoding”
==> tried the other section :
Unicode text “setup” in LzmaCustomDecompressGuid/PE32 image section at header-offset 42CCh
==> the tool opens up, and there ARE “above 4G decoding” and CSM sections
-
then … what should I set in the fields of the settings I want to mod ? “01” instead of “00” (to enable) ? or “0A” or what ?
-
and finally, how to reintegrate the eventual modded file(s) ? I used uefitool(non NE) and searched for AMITSE guid (B1DA0ADF-4F77-4070-A88E-BFFE1C60529A), then “replace body” of the setupdata section (identified as freeform subtype guid), saved file, reopened it OK. => is that the way to go ?
Am I safe here flashing the moded file in my bios ? I’m not really confident, if I did something wrong that I don’t even notice (?) (yeah, I have the chance to have a 2nd bios chip, and a safe backup between both chips, I used it already when I had no POST display, but I’d rather avoid this process as much as I can)