[Guide] How to flash a modded AMI UEFI BIOS

the mobo supports it but it dosent seem to perform a flash no matter what i try . I used the original bios file and it "finished flashing " in 5 seconds and prompted to reboot however the pc just shut down instead of rebooting to finish the flash and i waited for 30 mins before pressing the power button again upon which it just rebooted to the current installed bios

looking forward to @ket 's views on this . Appreciate it

Hi
I created a modified BIOS for my ASUS H610M-K D5 motherboard by reading these topics:

[help needed] unlock show avx512 menu on asus h610m-a d4 - BIOS/UEFI Modding / BIOS Modding Requests - Win-Raid Forum (level1techs.com)

[GUIDE] [UPDATE] Usage of AMIā€™s AptioV UEFI Editor + FPT Flash Method - BIOS/UEFI Modding / BIOS Modding Guides and Problems - Win-Raid Forum (level1techs.com)

[GUIDE] Grub Fix Intel FPT Error 280 or 368 - BIOS Lock Asus/Other Mod BIOS Flash - BIOS/UEFI Modding / BIOS Modding Guides and Problems - Win-Raid Forum (level1techs.com)

My problem is flashing this BIOS on the Asus motherboard. I tried to use FPT software, but I encounter error 167.

According to the instructions in the topics, I tried to disable the BIOS security registers (like FPRR and BIOS LOCK). But I was unsuccessful, and the lock register (especially BIOS LOCK) is automatically reactivated.

Can anyone help me to flash this bios on my motherboard?

Thanks

@Shahb313
Welcome to the Win-Raid Forum!
Did you read the start post of >this< thread before you started this new thread?
If not, I will merge your request into the already existing old thread.
Good luck!
Dieter (alias Fernando)

1 Like

Heya,
recently some clever guys over at GitHub - terminatorul/NvStrapsReBar: Resizable BAR for Turring GTX 1600 / RTX 2000 GPUs released a way for RTX 20 and GTX 16 series users to enable Rebar for potential performance increase in gaming and/or productivity tasks, see article https://videocardz.com/newz/geforce-gtx-16-and-rtx-20-gpus-gain-rebar-support-through-uefi-mod .

Now the problem is not applying the mod to the image, the problem is getting rid of the protection so that the ASROCK board accepts and flashes the bin.

I noticed that the UBU project has been during the years abandoned due to original maintainerā€™s personal reasons (@SoniX best wishes btw and thx for your work) and picked up by @Michael_Code (tyvm Michael).

This version although new and updated still does not remove the ASROCK protection from the binary for 400 Series chipsets (sais so in the terminal session).

I tried to ā€œpass the file through UBUā€ anyway and as expected, a hex diff afterwards shows zero difference from original to processed. And ofc it shouldnā€™t since both files have the same checksums.
My bios version is 8.01 Beta AGESA Combo V2 PI 1.2.0.8
The procedure to apply the NvStrapsReBar.ffs is pretty standard - UEFITool_0.28.0 load, seek the GUID 3C1DE39F-D207-408A-AACC-731CFB7F1DD7, scroll down, add the ffs to the end, save the bios file, etc. so itā€™s nothing out of the ordinary.

It just wonā€™t flash with asrockā€™s instant flash out of the box.

I hope somebody will know something that can help me and others with the same board. Thank you in advance

1 Like

@superpower
Welcome to the Win-Raud Forum!
The ASRock ā€œInstant Flashā€ BIOS tool doesnā€™t work with a modded BIOS (no matter how ā€œtinyā€ the modification was).
The solution is layed down >here<.
By the way - there was no reason to start a new thread for this request.
Good luck!
Dieter (alias Fernando)

Apologies, I didnā€™t know.

To the guide specific for ASRock motherboards:
As I said previously, i got the latest ubu tool UBU_1_79_17.7z, got the UBU files updated in March 2023.rar, loaded my modded bios file, started ubu.bat, loaded the file, enter, 0, 0, 1 and then, just like magic

[ā€¦]
6. After having hit any key, you will find the modded BIOS, but now without the ā€œSecurity Flash Checkā€, within the UBU folder.
[ā€¦]
b) that the UBU tool found it and was able to removed it (not possible with BIOSes of the newest ASRock mainboards). :sweat_smile:
[ā€¦]

The instructions themselves say that it will not work on newer boards, this 400 series included.

Therefore, I hope somebody has a solution for this, unless of course, thereā€™s more rtfm-ing to be done in ages old threads with thousands of replies.

And if not possible yet, then only SPI programmer, we donā€™t have the FPT alternative here as Intelā€¦this is AMD platform.

@superpower
Since I had no problems to get a modded BIOS properly flashed into my ASRock X570 Pro4 mainboard by using the ā€œFlashrom v1.2 Utilitiesā€, it may work with your ASRock mainboard as well.
Try it and report here about the outcome.
Good luck!

well, something happened and it did not manage to finish flashing : C:\>flashrom.exe -p internal -r backup.bin[ this worked flawlessly ]apply mo - Pastebin.com
pc still powered on, but seems unresponsive, keyboard input does nothing. I have a separate usb drive fat32 with the original ASROCK X470 Taichi bios on it but this board does not specifically say anything about a bios flashback.

what are my options ? (ps the flash drive is newā€¦ there shouldnā€™tt have been any read errors, it still baffles meā€¦)

@superpower
It is a pity, that the flashing of the modded BIOS didnā€™t work. According to Pastebin details the Flashrom tool was obviously not able to calibrate the delay loop, but tried nevertheless to continue (I donā€™t know why).
Since I am not an expert regarding the recovery of a failed SPI flash, I cannot really help you myself.
On the other hand you have stored a complete backup of the BIOS Chip content and should be able to get your mainboard working again (e.g. by using a CH341A USB Programmer).
Good luck - finger crossed!

Help, Iā€™ve bricked my motherboard (and how I managed to recover it) - Hardware / Motherboards - Level1Techs Forums

1 Like

To my surprise it rebooted just fineā€¦ apparently that crash didnā€™t happen after or during the flashing but during the reading of the rom to be flashed. Very weird but I am very grateful. Got another usb drive formatted with rufus and flashrom worked perfectly fine this time.
Thanks @Fernando for your help and good wishes :grin:.

Resizeable bar is enabled on this X470 + RTX 2080 and it shows an average of 5-10% improvement so thereā€™s that.

1 Like

ty so much, I bookmarked this

@superpower
Thanks for your feedback - I am happy as well, that you finally succeeded by following my advice.
This is an important information for other users, who want to flash a modified AMI Aptio V BIOS into their modern ASRock mainboard.
Your report about your experiences trying to update the Intel LAN EFI modules by using the updated UBU tool is very interesting, but has nothing to do with the topic of this thread. Please remove the related part of your post here and insert it into the much better matching ā€œUBU Discussionā€ thread (or create a new one within the ā€œBIOS Modulesā€ Category).

1 Like

Hi im trying to add ReBar ffs module (by terminatorul) but i cant flash modified BIOS because of some security check (invalid bios image @ 95% while scanning) . My motherbaord revision is 1.5 and oldest BIOS for this one already have AGESA 1.2.0.7. Is there any way to bypass this protection?

@euranoo Welcome to the Win-Raid Forum!
You forgot to mention the manufacturer and model of your mainboard within your help request post, but according to its native title it is a Gigabyte B550 AORUS Elite V2 and has an AMI UEFI BIOS.
Since your request seems to match perfectly the topic of this already existing thread, I have moved your post into it.
Questions: How did you insert the ReBar.ffs module into the BIOS and how did you try to flash the modded BIOS?
Please look into the first post of this thread and read carefully the text about how to flash amodded Gigabyte BIOS. If you should have additional questions or any problem while following the advices, please post them into this thread.
Good luck!
Dieter (alias Fernando)

I got a laptop aorus and fptw dont work cause of an error 201 cannot be run on this current platfrom contact your seller. So how can i flash it without it ?

@Boris510
Please read the first post of this thread.
There was no reason to start a new thread.

Can this be used to flash an official Asrock BIOS for a recent chipset(Z790)?

To be exact I am trying to flash latest BIOS for Asrock Z790 RS Pro Wifi Mobo with official ROM but BIOS doesnā€™t load while Windows does.

Is UBU suggested or AMIAFU tool better?

@anutrix
Welcome to the Win-Raid Forum!
This thread is not valid for the flash of an original BIOS, which has been delivered by the mainboard manufacturer.

What does this mean? What exactly have you tried to do?