[Guide] How to flash a modded AMI UEFI BIOS

And that is exactly what I did modified my Bios with AMIBCP to show hidden menus. I didn’t realize until now that you cannot flash a Rom that was extracted from a hardware programmer using AFIWINx64. I know now you cannot do this so I will review the threads as suggested.

Thanks

Need help flashing Modded AMI Aptio IV BIOS to Asrock AM1H-ITX motherboard with 32mb UEFI BIOS.
I have successfully modded the BIOS to include NVMe support as outlined in the excellent guides on this site. The issue is trying to flash the modded Bios. Using Instant Flash in the UEFI bios fails due to security check and in fact will not even locate the modded bios on the usb drive. AFUDOS fails by hanging at erasing boot block. Using Flashrom fails when it finds two bios chips on the board and doesn’t know which one to update. I have the complete output file in text format, but the jest of the error : SFDP has autodetected a flash chip which is not natively supported by flashrom yet. All standard operations (read, verify, erase and write) should work, but to support all possible features we need to add them manually. You can help us by mailing us the output of the following command to [email protected]: ‘flashrom -VV [plus the -p/–programmer parameter]’ Thanks for your help!

Found Unknown flash chip “SFDP-capable chip” (4096 kB, SPI) mapped at physical address 0x00000000.

Found Winbond flash chip “W25Q32.V” (4096 kB, SPI) mapped at physical address 0xffc00000.
Chip status register is 0x00.

Multiple flash chip definitions match the detected chip(s): “SFDP-capable chip”, “W25Q32.V”
Please specify which chip definition to use with the -c option.

Can you explain how you did it. I’m stuck trying to flash the modded bios back to the same mobo. Thanks

Hi!

I want to be able to use smart access memory on a rx 580 4g vram video card and the Asus tuf b550 plus motherboard. I can’t do this because I can’t edit the bios.
The ReBar 4g module but the video card has 4 GB of RAM instead of 8 as needed. I saw on the net that there are tests with video cards like mine with 4 gigs of ram. The ReBarDxe.ffs module must be inserted in the motherboard bios and from Windows to be able to set the rebar size smaller than 4G.

Installed the ReBar Dxe.ffs module with mmtool v5. in the bios of the motherboard and when I save the bios it gives me the error “saving secure capsule as unsigned”. Ezflash: “Selected file is not a properBIOS!”

-Ai suite not working

  • ASUS “USB Flashback not working
  • AMI AFUDOS or AFUWIN Tool I don’t understand how it is done

Please help!

Thx!

You cannot flash a modded ASUS BIOS by using the standard ASUS EZ Flash tool.

If your mainboard offers this feature, it will work (provided, that you have followed ASUS’s USB Flashback guide and rules).
Tip: Use another USB Flash Drive (preferentially an old 2.0 platform and small sized one).

Just follow the advices of the start post. We cannot do the flashing procedure for you.

A post was split to a new topic: [Request] How to unlock an ASUS ROG Crosshair VIII Hero (WiFi) BIOS?

Has anyone succeeded loading a modified BIOS to a Supermicro H12 board? I’m running a H12SSL.

Supermicros tool & BMC does not allow flashing the modded BIOS, which I guess is expected. I understand that I should try one of AMIs tools, but which one? The Bios screen version says “12.21.1280, 2022, AMI” if that’s any help.

Thanks!

@jcie Welcome to the Win-RAID Forum!
If you are not able to get the modded BIOS successfully flashed the normal way (by using the Supermicro tool after having renamed the modded BIOS), I recommend to read >this< post written by our Forum member Wishbringer.
Good luck!
Dieter (alias Fernando)

1 Like

A post was merged into an existing topic: [HowTo] Get full NVMe Support for all Systems with an AMI UEFI BIOS

Hello, my thanks for the effort of writing and maintaining this guide and the forum in general.

I am trying to get NVMe Support on my ASUS p8z77-m.
What I have managed until now:

  • I have modded the latest bios for the board with MMTool and added the NvmExpressDxe_5.ffs
  • I have very carefully compared the original and the modded bios for differences in “paddings” with UEFITool

The resulting *.CAP file is of course not passing the security verification in EZFlash and in Asus BUPDATER_130 (DOS flasher). But that is expected. My question: Is it safe to flash this modded *.CAP file with ASUS AI Suite (as described in the flashing guide)?

If I understand it well, the guide states that I should proceed with the extraction of the *.ROM from the original *.CAP file, and than mod that with the UEFITool to add the NvmExpressDxe_5.ffs
I’d rather skip this if the option of flashing the unverifiable *.CAP file is possible (and safe) with ASUS AI Suite.

Shouldn’t this be the default (and easiest) option for flashing Asus *.CAP bioses - or am I missing something? I was reading and rereading the modding/flashing guides for several days now, and as I understand the main problem with the Asus *.CAP files is the security protection/verification. This flashing with ASUS AI Suite seems easiest, and it skips several steps - which are quite confusing even after so much reading (the extraction of the body of the bios, etc).

@van Your post has been moved by me into this much better matching thread.

Thanks @Fernando
I wasn’t sure which of the 2 threads was more appropriate, as I am asking about both the modding and flashing.

I am not sure if understood the guide. Is it “safe” to mod the protected Asus *.CAP bioses with MMTool. Or do I have to mod *.CAP bioses with UEFITool?

It seems to me that the main problem with the Asus *.CAP files is the security protection/verification which disables flashing a modded bios. So UEFITool is used to extract/convert to *.ROM and mod/flash that. But since flashing with ASUS AI Suite bypasses the security verification (with the file switching in mid process), isn’t that and modding with MMTool the easier option?

@van
Its safe, if your modding an Asus bios update CAP file and you’re gonna use it ONLY in a motherboard with USB BFB feature, that the P8Z77-M has it.
The Asus CAP files will update the bios region (Only one usually) and will preserve the board original data as DMI, MAC etc…
So for simple insertion of NVMe DXE, the USB BFB feature using CAP is enough and the most secure/successful.

Indeed some “leaked” versions of the MM tool/AMIBCP tool can break the signature.
This happens more on AMI Aptio V core bioses, yours a IV.
Now the use of CAP files is not only for motherboards with USB BFB feature, others dont have it, so for those the internal Asus EZ Flash cant use these “broken” mod cap files, this is where we need to extract and later replace the bios region as mod, to the original CAP file.

1 Like

Thanks @MeatWar.
So I wrongly thought that even with the USB BFB the ROM extraction/replacement is a must do in all ASUS cases. I am glad that is not the case.

So in retrospect:

  • Asus CAP bios modded with MMtool is safe to flash with usb bios flashback feature.
  • Sometimes signature can be broken, but the bios content itself should be fine (barring possible problems with added or missing “padding” sections, which should be checked for in contents).
  • And in that case I suppose it’s also safe to flash that same MMtool modded CAP with AI Suite method? I’d rather use that for flashing. My case is not easily accessible, it’s wall mounted (yes really), and cramped with cards and fans. It would really be a PITA to gain access to the USB BFB physical button on the motherboard. :slight_smile:

But I digress. I will do it ether way, I just wanted to ask what is safe and what is not. Thank you.

@Fernando may I suggest to consider MeatWar’s post to be added to the main/first post. The current explaination is not very clear on this point, e.g. precisely when ROM extraction/replacment is needed and when it is not.

Blockquote
Its safe, if your modding an Asus bios update CAP file and you’re gonna use it ONLY in a motherboard with USB BFB feature, that the P8Z77-M has it.
The Asus CAP files will update the bios region (Only one usually) and will preserve the board original data as DMI, MAC etc…
So for simple insertion of NVMe DXE, the USB BFB feature using CAP is enough and the most secure/successful.
Indeed some “leaked” versions of the MM tool/AMIBCP tool can break the signature.
This happens more on AMI Aptio V core bioses, yours a IV.
Now the use of CAP files is not only for motherboards with USB BFB feature, others dont have it, so for those the internal Asus EZ Flash cant use these “broken” mod cap files, this is where we need to extract and later replace the bios region as mod, to the original CAP file.

No, i cant agree on this… definitely AI Suite not the BEST/EASY or Secure way to flash a mod…this is an alternative to trick the app (Asus CAPSULE sig) on boards without USB BFB and that cant use EZ flash due to fail security (its a mod…), so please use this feature and NOT AI Suite.
A side spare USB with an original CAP file and a backup of the current bios region made with FPT tool, is all you need to ensure you can recover the board and the original data.

Why this statement… because you’re running a critical operation in an system using resources and already running an OS environment with a lot of processes in the background, the chances of interference in this process are much higher and risky than EFI shell/DOS or USB BFB.

1 Like

I see. OK, got it… USB BFB it is then. :+1:
Thanks. Will report the outcome later.

Reporting success. :slight_smile:
Regarding the flashing process, it went smoothly - once I found the right usb flash (and I had to go through several usb flash drives to find it).

It seems the recommendation to use flash drive that hadn’t been formated with multiple partitions in the past, was a good advice. I tryout many linux distros and live bootable usb utilities, so I guess that was the culprit with the other usb’s. Those usb flash drives, even when re-partitioned in single partition and fat32 formated, they didn’t work with the Asus usb BFB. And for the record, I tried only 2.0 sticks with as small as possible sizes (and fat32 formatted, ofc).
I have many usb drives but in the end I had to borrow my wife’s document usb. That 8GB stick did the job. :upside_down_face:

My thanks for the help @MeatWar, and thanks to everybody else who contributed advice and experiences in the thread/forum.

1 Like

@van
It is fine, that you finally succeeded.

1 Like

Thanks for the guide! I was able to flash a modded .ROM on my X99 Deluxe using AFUWINx64. For some reason I was not able to use the flashback feature with the renamed .CAP, but that’s ok. Anyway, bifurcation is working now and successfully flashed.

Hi, I am new to any of this.
I have Asus Tuf Gaming FX705GE, where I want to flash my custom BIOS image which I am unsuccessful of. I am using AFUWINGUIx64, I open my Custom IMAGE and do FLASH. And it shows 18 - Error: Unable to start a secure flash session.
Any ideas?
Thanks/.