#1 [Tool Guide+News] "UEFI BIOS Updater" (UBU) by Fernando 14.09.2013 13:57


@ all users, who are searching for an easy way to get any OROM or EFI module of their AMI UEFI BIOS updated:

It was our member eierfrucht, who gave me in September 2013 the link to >this< very interesting thread at forum.overclockers.ru and to a BIOS modding toolkit named "OROM_Replace", which has been developed by the Russian BIOS modding expert named LS_29. Later on I found out, that LS_29 is just another nick name for our Forum member SoniX. This is very good news for all visitors of this Forum, because they may get answers to their questions by the developer himself.
Since this toolkit is very simple to use and seems to be able to update all interesting LEGACY and UEFI modules of an AMI UEFI BIOS without the need of an advanced BIOS modding knowledge, I decided to present it within my Forum.

Easy AMI UEFI BIOS Modding:
Use of the "UEFI BIOS Updater" (UBU)

(last updated: 04/13/2019)

A big thank-you to the "makers" and the supporters of this toolkit:
The "UEFI BIOS Updater" is a composite work of the following BIOS Gurus and Win-RAID Forum members:
  1. SoniX, who is doing the main UBU work (he had the idea, writes the script named UBU.bat and bundles the various included tools and modules to an up-to-date BIOS modding toolkit),
  2. CodeRush, the developer of several BIOS tools (UEFITool, UEFIFind, UEFIExtract etc.), which are components of the UBU toolkit and used by SoniX's script and
  3. plutomaniac, the developer of the CPU Microcode Extractor Tool (MCE)
Besides these UBU "makers" I want to thank especially the Forum members Pacman and plutomaniac for their efforts to find the newest BIOS modules, which are delivered by the mainboard manufacturers.

Currently latest UBU Tool platform: UBU v1.73.x
The exact version/build number of the newest UBU tool and the related changelog has been/will be announced by the UBU maker SoniX himself and can be found within the last page of this thread.

Please post all your UBU related questions, reports and comments into >this< thread!
This thread is reserved just for the guide and the announcements of UBU tool updates.

  • The UBU tool from v1.71 up performs nearly all BIOS modding tasks by itself, that means without the manual addition of any AMI Aptio UEFI MMTool into the UBU folder.
  • These are the only tasks, where the addition of an AMI MMTool may be required (UBU will give you a related message):
    1. replacement of Option ROM modules on Aptio IV BIOSes
    2. replacement of CPU microcodes on some Aptio IV and Aptio V BIOSes
    If the addition of an AMI MMTool is required, the currently best choice is to add the v5.0.0.7 (remamed as "mmtool_a4.exe") and additionally the v5.2.0.24 (renamed as "mmtool_a5.exe").
  • The UBU tool has been designed and optimized for the modification of Desktop mainboard BIOSes. According to the feedback we got until now the usage of the tool with Desktop mainboard UEFI BIOSes is very safe.
    Nevertheless it is possible, but only recommended for advanced users, to update some modules of a Mobile system BIOS (except the VGA ROM!) by using the UBU tool. For further details please read >this< post written by plutomaniac.

Short description of the UBU toolkit:

This tool is very easy to use and able
  1. to detect the versions of the OROM/EFI modules, which are inside an AMI UEFI BIOS file and
  2. to replace
    a) the most important OROM/EFI modules (incl. various "Universal TRIM in RAID0 modified" ones) and
    b) the CPU MicroCode
    of any AMI Aptio UEFI BIOS.

  • This tool cannot be used, if you want to
    • modify any other BIOS type (Award/Phoenix, non-UEFI AMI or Intel mainboard BIOSes) or
    • insert a BIOS module, which is not present within the source BIOS file or
    • remove a BIOS module.
  • Special problem with Intel's iGPU VGA ROM modules (=VBIOS):
    Contrary to the other Option ROM modules there is no "universally" usable Intel VGA ROM module available for systems with an Intel CPU from Sandy/Ivy Bridge up. That is why the mainboard specific VBIOS settings have to be transfered by using a special tool named BMP to the desired Intel VGA ROM module version, before the UBU tool is able to update the VBIOS version (for details see below).

Guide: How to use the "UEFI BIOS Updater" (UBU Tool)
(only valid for the UBU tools from v1.71 up)
  • A. Preparations:
    • Download the latest version of the "UBU" tool from >here< (developer's link) or >here< (MEGA link, not always up-to-date).
    • Create any folder within the root of your system partition (drive C:) and name it anyhow (e.g. C:\UBU).
    • Unzip the downloaded UBU tool archive completely into the just created folder by using WinRAR v5.xx or 7-Zip v18xx.
    • Since some desired UBU tasks additionally may need an AMI Aptio UEFI MMTool, don't forget to copy the desired MMTool version (recommended is v5.0.0.7) into the root of the UBU directory and rename it to "mmtool_a4.exe".
      Info:On demand of the Company AMI the downloadable UBU tool packages do not contain the AMI Aptio UEFI MMTool named MMTool.exe
      Tip how to get it: Depending on what you want/need, do a Google search for "MMTool Aptio 5.00.0007" (original older version), "MMTool Aptio 5.02.0024" (original newer version) or "MMTool Aptio 5.02.0024 Mod" (patched new version).
      SHA-1 values: The Secure Hash Algorithm 1 (SHA-1) values of the mentioned MMTool variants can be found >here<.
      This is just an interim solution until SoniX will present an UBU tool platform, which doesn't require at all any AMI MMTool. We are sorry about this inconvenience.
    • Optional: It is a good idea to copy the BIOS file (the pure file, not an EXE archive), which you want to get modified, into the just created UBU processing folder.
      (Note: If the UBU tool shouldn't find a BIOS file within the UBU processing folder, it will give you the opportunity to navigate to it.)
    • Additional preparations for certain UBU processing tasks:
      • a) Update/downgrade of Intel RST/RSTe RAID ROM/EFI BIOS modules:
        • Info: Since the "best" version of the Intel RAID BIOS modules
          a) depends on the related Intel chipset of the mainboard (look >here<) and
          b) should match the version of the in-use/desired Intel RAID driver (should belong to the same RST/RSTe development branch, examples: v5.4.x.xxx, v11.2.x.xxxx or v14.8.x.xxxx),
          the UBU tool does not automaticly offer any specific Intel RST/RSTe RAID BIOS module. Nevertheless it gives the user the ability to replace the Intel RAID BIOS modules by any desired and available original or modded version, but this needs some preparations done by the user.
        • This is the easiest way to do it:
          1. Download the latest version of the 7z-archive named "Intel_RST (e)" from >here< (developer's hoster) and unzip it somewhere outside the UBU tool folder.
          2. Copy the desired Intel RAID ROM/EFI BIOS module(s) into the UBU subfolder Files\Intel\RST (for "normal" Intel RAID Controllers) resp. Files\Intel\RSTe (for "Enterprise Edition" RAID Controllers). Don't put more than 1 RaidOrom.bin and 1 RaidDriver.efi file into the subfolder
          3. If you want to integrate any Intel RAID module you got from another source, don't forget to rename the related Intel RAID ROM module (*.bin) to "RaidOrom.bin" and the Intel RAID EFI file (*.efi) to "RaidDriver.efi".
      • b) Update of the Intel iGPU VGA ROM (vBIOS)
        • Download and install Intel's utility named "Binary Modification Program" (BMP). You can get the latest version of this tool >here<.
  • B. Start the UBU tool:

    • Open the UBU processing folder and execute the file named UBU.bat.
      Double-click onto the *.bat file or do a right-click onto it and choose the option "Run as Admin".

      Provided, that no BIOS file is present within the UBU folder, the UBU tool will give you the option to navigate to the BIOS file you want to modify.
      After having clicked onto it, the UBU tool will copy it into the UBU processing folder, rename it to "bios.bin", open it and analyze the EFI/Option ROM modules, which are currently within it.

      New: The UBU tool will now give you a message, whether you should add a specific AMI MMTool (or maybe even 2 different ones) into the UBU folder or not.
      Here are 2 examples (left Pic: Aptio V BIOS 7.50 for my current ASRock Z170 board, right Pic: Aptio IV BIOS 2.80 for my former ASRock Z97 board):

      All following pictures were taken while processing the Aptio IV BIOS 2.80 of the Z97 board after having added the mmtool_4a.exe file (to show all possible UBU tasks, incl. those, which require the MMTool).

      After having pressed any key, you will see the UBU "Main Menu". It shows, which specific modules (incl. its version) are currently detected within the BIOS by the UBU tool.
      In my example it looked like this:

      According to the Main Menu the UBU Tool gave me the information, that the original BIOS contained
      • the Intel RAID ROM v13.0.0.2075 and the Intel EFI RaidDriver v13.0.0.2075,
      • the Intel Sandy/Ivy Bridge VGA EFI GopDriver module v5.5.1032,
      • the Intel LAN ROM v6.1.14 and the Intel LAN EFI UNDI module v1.5.50 and
      • the Reatek LAN ROM v2.55 and the Realtek LAN EFI UNDI v2.021

      As next step you will get the option to update different OROM, EFI and CPU Microcode modules and to replace them by other versions.

      Here are some examples:
      • a) Update of the "Storage Controller" BIOS modules (here: Intel RAID ROM/EFI RaidDriver:
        Preliminary Notes:
        1. The RAID BIOS modules are only used, when the on-board SATA Controller is running in "RAID" mode.
        2. The update will only work, if there are matching RAID modules within the UBU subfolder Files\Intel\RST resp. Files\Intel\RSTe (see Chapter A).

        If you want to update the Intel RAID ROM or EFI RaidDriver module, you should type "1" from within the Main Menu and then hit the "Enter" key.
        Now you will see a picture like this (example here: ASRock Z97 Extreme6 BIOS):

        On top the tool shows the Intel EFI RaidDriver and RAID Option ROM module versions, which are currently within the BIOS.
        Below you can see the related Intel RAID EFI/ROM module versions, which are offered by the UBU tool for a replacement (they were previously put by me into the UBU subfolder Files\Intel\RST).

        After having entered "1" (= Replace), I got this picture, which shows, that the replacement of the originally present Intel RAID BIOS modules (OROM and EFI "RaidDriver") by the desired ones has been successfully completed:

        After having pressed any key, you will get the Main Menu picture again, but now showing other Intel RAID module versions.
        This is what I got:

        Now you have the option to update another sort of BIOS modules (inclusive the CPU Microcodes).
      • b) Update of the "Video on-board" BIOS modules (here: Intel Haswell/Broadwell EFI GopDriver):
        If you want to do that, you should type "2" from within the Main Menu and then hit the "Enter" key.
        These are the pictures I got before and after having updated the Intel EFI GopDriver module (you can enlarge each picture by clicking onto it):

        In my example the Intel Haswell/Broadwell CPU GopDriver module has been successfully updated to the latest versions.
        Remarks regarding the update of the Intel VGA ROM (VBIOS) modules:
        Unfortunately there are no Intel VGA ROM (VBIOS) modules available, which are compatible with all existing DeviceID specific iGPU Graphics Controllers. For unknown reasons the mainboard manufacturers insert slightly different VGA ROM modules into their BIOSes with an Intel Chipset from 6-Series up. That is why the UBU tool is not able to update the Intel VGA ROM module the easy way as with other Option ROMs.
        Nevertheless the UBU tool can help you to get your Intel VGA ROM updated, but you will additionally need
        1.) the newest Intel VGA ROM module for your special Intel CPU architecture (as *.dat files) with associated binary script files (as *.bsf files) and
        2.) the tool named "Intel(R) Binary Modification Program" (BMP).
        You can download both packages from >here< (SoniX's hoster).
        SoniX has written a detailed guide about how to get the Intel VGA ROM (VBIOS) module safely updated. You can find his instructions >here<.
      • c) Update of the "Network Adapter" BIOS modules (here: Intel and Realtek LAN ROM/EFI UNDI):
        Preliminary Note:
        The LAN Option ROM resp. EFI UNDI BIOS modules are only used by the PC/Mobile system, if the "Wake-on-LAN" option has been ENABLED within the BIOS. That means, that an update of these BIOS modules has no effect for users, who don't use the Wake-on-LAN option.

        If you want to update the LAN modules of any AMI UEFI BIOS, you should type "3" from within UBU's Main Menu and then hit the "Enter" key.
        This is the picture I got after having chosen this option with my ASRock Z97 Extreme6 BIOS:

        Here are the pictures about how I updated the Intel LAN Option ROM and EFI UNDI modules (left Pic: Update procedue, right Pic: Result):

        And here you can see how to update the Realtek LAN modules (left Pic: Update procedure, right Pic: Result):

        As you can see within the right Pic, all Intel and Realtek LAN modules have been successfully updated by the UBU tool.
      • d) Update of "Other SATA Controller" BIOS modules (here: ASMedia 106x Option ROM):
        If there is any BIOS module listed within this section of the UBU Main Menu and you want to update it, you should type "4" and then hit the "Enter" key.
        These are the pictures I got before and after having updated the ASMedia 106x Option ROM module:

        In my example the ASMedia 106x Option ROM module v0.93 has been successfully updated to v0.97.
      • e) Update of the "CPU MicroCode" modules (here: for Intel CPUs):
        After having entered the number "5" (CPU MicroCode), you will get a popup window showing the actual CPU Microcode details of the BIOS:

        After having entered "C" (creating FFS file with Microcodes), you will get a new window showing a preview of the new CPU MicroCode details (not yet updated).
        In my case it looked like this:

        After having chosen the option "M" (for using the MMTool) the CPU Microcode update will be done by the UBU tool.
        These are the pictures I got (left Pic: Update procedure, right pic: Result):

        By entering "0", you can finally return to the UBU Main Menu.
      • f) Only for experts: Running the "AMI Setup IFR Extractor" tool:
        This is what I got after choosing the option "S" from the UBU main menu:

        If you want to know more about the IFR Ectractor tool, you may look >here<.
  • C. Finishing UBU:

    • After having completed all desired (resp. currently available) UBU tasks, you will get the final results of the UBU work.
      In my example I got this picture:

      If you want to finish UBU's work, you should enter the number "0".
      After having done that, the tool may offer the option to rename the BIOS file. This additional feature is very useful especially for capsuled ASUS BIOSes with the extension ".CAP". Modified .CAP BIOSes can only be flashed into the mainboard BIOS chip by using the "USB Flashback" feature.
      The next picture shows the renaming options I got for my modded ASRock Z97 Extreme6 BIOS:

      The last UBU screen shows the credits to people, who helped SoniX to develop his tool. It will disappear after having hit the "Enter" key.

      That's all you have to do! The BIOS file (usual name given by UBU: bios.bin), which is still within the UBU processing folder, has been updated and finally renamed by the UBU Tool according to your demands.

      • The BIOS file may have to be renamed before you are going to flash it into the mainboard BIOS chip.
      • You should remove the recently processed BIOS file from the UBU processing folder, before you start a new BIOS module update procedure.

General remarks regarding the usage of the UBU toolkit
  • It is not a good idea to use this tool without any knowledge about what your are doing.
    That is why I recommend to get some informations, before you are going to modify any BIOS and to flash it into the BIOS chip of any mainboard.
    You can get them here:
  • If you are using this toolkit the first time, you should only update 1 single module (that one, which is the most important for you). This way you can minimize the risk of a BIOS update failure.
  • A critical toolkit option is the "Update of the Intel CPU Microcode". According to the developer LS_29 resp. SoniX the special procedure to update the Intel CPU microcode depends on the manufacturer of the mainboard and may be quite different from the procedure, which will be used by the toolkit.
    Consequence: This toolkit option should only be used by persons, who know, that it will work for their special mainboard.
  • Usually the toolkit renames the BIOS file to bios.bin. This way the BIOS shall be prepared for being flashed with the "Flash Toolkit" (=FTK, look >here< and >here<). If the user wants or have to to use another BIOS flash method, it is no problem to rename the BIOS file.
  • It is possible to use this toolkit even for the replacement of an original by a modded module (example: "Universally TRIM modified" Intel RAID ROMs).
    The modded module should be replaced within the related OROM subfolder of the toolkit before running the UBU.bat. If you want to know the exact procedure, please look into >this< post.
    Note: The modded OROM should have the same version as the one, which is within the UBU tool OROM subfolder, and has to be renamed according to the UBU rules (should have exactly the same name as the replaced original OROM module).

  • After having finished the previous work, but before you are going to flash the BIOS, you should verify the BIOS modding success. You can do it either by re-running the UBU tool or by opening the modded BIOS file with the Aptio MMTool, extracting the related modules, checking the version with a Hex Editor and the usability of the updated modules (by checking the DeviceID).
  • Users of an ASUS or ASRock mainboard may get an "Integrity Error" message, when they try to flash any modded BIOS. >Here< is a guide about how to circumvent the built-in integrity check.
  • Before you are going to flash the BIOS you should carefully read the chapter "Flashing the modded BIOS into the mainboard BIOS chip", which you can find within the start post of >this< thread.
  • No warranty
    Although I have tested the tool successfully with the actual BIOS 2003 of my ASUS Z77-V, I cannot give you any guarantee, that it will work with other AMI UEFI BIOSes as well. If you should run into problems, I recommend to post them into this thread.

Good luck with this interesting BIOS modding toolkit!

#2 UEFI BIOS Updater Update v1.71.1 by SoniX 31.03.2019 18:50


UEFI BIOS Updater v1.71.1

  • Improved Intel mCode replacecent
  • Support EFI Intel GOP Driver v9.0.1082+
  • Support OROM Intel LAN Boot Agent XE x550
  • * Support EFI&OROM Intel VROC (new IRSTe)
  • ** Support for 2 versions of MMTool.
  • Bugs fixed

  • MCE v1.30.1 with DB r105
  • UEFITool's NE A55
  • IFR Extractor v0.3.6
  • DrvVer v0.25.0
  • mCodeFIT v0.6.5
  • EFI AMD GOP Driver v2.5.0.0
  • EFI Intel LAN Gigabit UNDI v0.0.23
  • EFI Realtek LAN Undi vc2.047
  • OROM AMD VBIOS v016.
  • OROM Marvell SATA 92xx v

  • EFI Intel GOP Driver v9.0.1085 (only for 9.0.1082+)
  • * EFI Intel VROC with VMD v6.0.0.1024 (as exanple)

    CPU Microcodes:
  • Intel LGA 11555/2011v3/1151/1151v2/2066
  • AMD AM4 Ryzen


    1. * - VROC (new IRSTe). To replace VROC with VMD requires 2 files. Example in the folder "Files\Intel\VROC_VMD".
    Other files are placed as usual in folders RST and RSTe.

    2. ** - MMTool. Support for 2 versions is implemented for the future.
    At the moment, if necessary, one version is used. I recommend The file must be renamed as mmtool_a4.exe

EDIT by Fernando: Typo corrected

#3 RE: [Tool Guide+News] "UEFI BIOS Updater" (UBU) by Fernando 03.04.2019 12:20


Since you have recently released an absolutely new UBU platform v1.71 and the related 2 UBU threads containing your "UBU News" and the user's "UBU Discussion" are meanwhile very voluminous, I decided to put the outdated UBU News and Discussion posts into separate archives and to close the related threads. This way it will be much easier for you and for the UBU users to find a certain contribution.
As I have already told you, I will drastically reduce my online presence within a few weeks. As a consequence I will not be able anymore to customize the start post of this thread instantly after the release of a new UBU version. To avoid any misunderstandings regarding the latest UBU version and the related changelog, I will simply refer within the start post to your latest announcement, which will be available - as until now - within the same thread.
If nobody else should be willing to overtake this thread and to keep the UBU Guide updated (see below), I will customize the UBU guide as soon as possible.
As you can see, I have tried to keep the changes for you as little as possible and hope, that they are ok for you.

@all UBU users:
After having spent the past 6 years each day several hours for the Win-RAID Forum users in front of my computer/notebook, the time has come (I am nearly 75 years old) to drastically reduce my online presence and to take more care about my family and my other obligations. That is why I will not be able anymore to support instantly all the threads, which have been started by me.
Thanks to SoniX's brilliant work this UBU thread is probably the most important one of the Win-RAID Forum and needs to be kept up-to-date, I would be very grateful, if anybody among you would overtake it, that means to write a new Guide on the basis of the current UBU v1.71 platform and to customize it, if a new UBU version should require it.
If you should be interested and willing to do it, please send me a PM.

Note: The archived outdated UBU update announcements can be found >here<.

Thanks in advance!
Dieter (alias Fernando)

#4 UEFI BIOS Updater Update v1.72.1 by SoniX 06.04.2019 23:09


UEFI BIOS Updater v1.72.1

  • Bugs fixed
  • Fix for offset on _FIT_ (if required)
  • * Used 2 versions of MMTool.

  • MCE v1.32.0 with DB r106
  • mCodeFIT v0.6.8

1. * - MMTool. #62
- as mmtool_a4.exe
- as mmtool_a5.exe

#5 RE: UEFI BIOS Updater Update v1.72 by SoniX 07.04.2019 07:35


Zitat von Herrnobiz im Beitrag #5
there's a small typo at the start of line 1831 of ubu.bat in this latest version 1.72, there's a "ff" instead of "if".
Btw, it's working great, thank you SoniX!!

Fixed. 1.72.1

#6 UEFI BIOS Updater Update v1.73.0 by SoniX 13.04.2019 22:25


UEFI BIOS Updater v1.73.0

  • * Added an alternative method of replacing Intel microcodes. Required MMTool.

  • MCE DB r107
  • mCodeFIT v0.6.9
  • Intel mCode LGA1151/2011

1. * - MMTool.
- as mmtool_a4.exe
- as mmtool_a5.exe

#7 RE: UEFI BIOS Updater Update v1.73.0 by SoniX 15.04.2019 11:58


UBU v1.73.1 - Fixed small bug

Xobor Forum Software von Xobor