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

avatar

@ 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 the links 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. Meanwhile 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: 02/06/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.

Latest UBU Tool versions:

  • Official version:
    • UBU v1.70.rc20.1_updated-01-31-2019
      (dated 01/31/2019, latest version of the UBU platform v1.70)
      • Changelog (last changes in bold type):
        • New:
          • Latest Intel CPU Microcodes
        • Updated:
          • MCE=Microcode Extraction tool (now 1.24.4)
          • Microcode Database (now r96)
          • UEFIFind tool (now NE_A54new)
          • DrvVer tool (now v0.24.1)
  • Test version:
    • UBU v1.71_Dev-Test
      (dated 02/06/2019, first version of the v1.71 series)


    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.


Important:
  • The latest UBU tool versions are generally usable with the AMI Aptio MMTool v5.0.0.7 and v5.2.0.24, but the best choice will be the usage of an especially patched v5.2.0.24 (look >here<).
    Otherwise there are some restrictions:
    a) The old MMTool v5.0.0.7 cannot execute some specific tasks correctly with AMI Aptio V BIOSes (see below).
    b) Only the patched variant (see above) of the MMTool v5.2.0.24 is usable with many Aptio IV BIOSes (not all of them).
  • The UBU tool has been designed and optimized for the modification of Desktop mainboard BIOSes. According 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 update
    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.

Notes:
  • 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 original BIOS or
    • remove a BIOS module.
  • Problems with AMI Aptio V BIOSes if using the MMTool v5.0.0.7:
    Unfortunately the AMI Aptio V MMTool v5.0.0.7 has problems with the update of certain BIOS modules of the latest Intel chipset mainboards (X99 and newer). That is why the UBU tool may not be able to update all BIOS modules of AMI Aptio V BIOSes, if you have inserted the old MMTool v5.0.0.7 into the UBU folder (the tool will only show the version of the currently inserted BIOS modules).
    Solution: Put the AMI Aptio MMTool v5.2.0.24 (instead of the older v5.0.0.7) into the UBU folder. Since the original MMTool v5.2.0.24 will only work with AMI Aptio V BIOSes, I recommend to use the patched MMTool v5.2.024.
    Alternatively it is possible to modify an AMI Aptio V BIOS manually by using CodeRush's UEFITool, which is part of the UBU tool package. You can find a short guide within the start post of >this< thread (Chapter B).
  • 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.70 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.
    • Don't forget to copy the required AMI Aptio MMTool v5 platform (see above) named MMTool.exe into the root of the UBU directory.
      Info:On demand of the Company AMI the downloadable UBU tool packages do not contain the AMI Aptio UEFI MMTool named MMTool.exe, which is absolutely required, if you want to use the UBU tool!
      Tip how to get it: Do a Google search for ""MMTool Aptio 5.00.0007" (old version), "MMTool Aptio 5.02.0024" (original new 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 a new UBU tool, which doesn't require any AMI tool. 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: The new UBU v1.70 platform gives the user the ability to replace the Intel RAID BIOS modules by any available original or modded version, but this needs some preparations done by the user.
        • This is what you have to do:
          1. Download the desired Intel RST/RSTe RAID ROM resp. the pure Intel EFI "RaidDriver" module (without header) and unzip the *.RAR archive file by using WinRAR v5.xx or 7-Zip v18xx.
            Tip: This Forum offers many different original and modded Intel RAID ROM and EFI "RaidDriver" BIOS modules. Look >here (Intel RAID ROM)< and >here (Intel EFI "RaidDriver")<.
          2. Copy the unzipped Intel RAID module(s) into the UBU subfolder Files\Intel\RST (for "normal" Intel RAID Controllers) resp. Files\Intel\RSTe (for "Enterprise Edition" RAID Controllers).
          3. Rename the related Intel RAID 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.
      In my example (BIOS v2.80 for the ASRock Z97 Extreme6) the UBU DOS box looked like this:
      (left picture: UBU Start, after having pressed any key > right picture: UBU Main Menu)


      According to the Main Menu (right picture) the UBU Tool gave me the informations, that the original BIOS contained
      • the Intel RAID ROM v13.0.0.2075 and the Intel EFI SataDriver 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).

        Procedure:
        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 RAID ROM and SataDriver module versions, which are currently within the BIOS.
        Below you can see the Intel RAID ROM and EFI RaidDriver 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" (= Update), 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:


        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). You can download this VBIOS package from >here< and
        2.) the tool named "Intel(R) Binary Modification Program" (BMP), which you can get >here<.
        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.

        Procedure:
        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 "2" 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.

      Notes:
      • 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).


Attention:
  • 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!
Fernando

#2 RE: [Tool Guide+News] "UEFI BIOS Updater" (UBU) by Fernando 14.09.2013 16:45

avatar

Since the AMI UEFI BIOS Module "Replacer" has just been updated to v0.995, I have customized and complemented the start post of this thread.

Enjoy it!
Fernando

#3 RE: [Tip] Use of the "AMI UEFI BIOS Module Update Toolkit" by SoniX 21.09.2013 20:34

avatar

Hello Fernando.

New OROM/EFI Replace v 0.997
+Update EFI IntelGOPDriver for iGPU Haswell.

Thanks Pacman for this module

#4 RE: [Tip] Easy AMI UEFI BIOS Modding with "OROM/EFI Module Replacer" by SoniX 23.09.2013 11:43

avatar

Hello Fernando.

OROM/EFI Replace v 0.9.9.8
New:
1) Tested working on BIOS from the ECS and BioStar (microcode update is similar to the ASRock and Gigabyte in first module. Everything is good.) :)
2) Added support and updated "EFI PXE UNDI Realtek LAN" GUID 4953F720-006D-41F5-990D-0AC7742AAAB0 and GUID 5A4D0030-9DB6-11E1-A8B0-0800200C9A66.

Good luck. :)

#5 UBU 1.0.0 PR6 and OEMR 0.9.9.9b by SoniX 08.10.2013 12:10

avatar

UEFI BIOS Updater v1.0.0 Pre-Release 6 Direct Link
- bugs fix
OROM/EFI Module Replacer v0.9.9.9b Direct link
- update modules LAN Intel OROM 1.5.43 and EFI 5.9.07
- rewriten code for "Update CPU microcode"
- bugs fix

#6 UBU 1.0.0 PR7 by SoniX 10.10.2013 00:52

avatar

UEFI BIOS Updater v 1.0.0 Pre-Release 7 Direct Link
- fix bug in code

For OROM/EFI Module Replacer v 0.9.9.9b make the following changes, find all lines

1
 
hexfind 0FAA0108185000F8FFFFFFFFFFFFFFFF cpuffs.tmp>nul
 


and remove the first "0FAA01081850"

#7 UBU 1.0.0 PR8 by SoniX 12.10.2013 23:05

avatar

Change
1) Fixed minor bugs
2) Changes in CPU microcode update module. Improved work if there are two or more "empty" module.
3) Added, the slick, displaying versions for "EFI Realtek LAN". There may be false.
4) Support for BIOS files extensions - *.CAP, *.ROM, *.F*, *.1*, *.2*, *.*0.
UEFI BIOS Updater v 1.0.0 Pre-Release 8 Direct Link

#8 RE: UBU 1.0.0 PR8 by SoniX 13.10.2013 00:51

avatar

Zitat von Fernando im Beitrag #86
@ SoniX:

Thanks for the updated UBU version.
I have already customized the start post of this thread.
As soon as the final version is out, I will update the screenshots within the start post as well.

Regards
Fernando

Ok. :)
Still, the end the edge is not visible. ;)

Best Regards
SoniX

#9 UBU 1.0.0 PR10 test by SoniX 24.10.2013 01:10

avatar

New UEFI BIOS Updater Pre-Release 9 test
Change:
- Reworked the script and menu design
- Added Preview versions of OROM - oromver v0.1 (test)
- Added displaying EFI LAN Intel
- Added new GUID LAN Realtek, QCM-Atheros and Broadcom
- Added OROM VBIOS 2178 Haswell
- Updated EFI LAN Broadcom UNDI 15.4.6
- Updated OROM's Marvell SATA 1.0.0.1038/1.0.0.0032 and LAN Realtek PXE 2.58

Edit:
New UEFI BIOS Updater Pre-Release 10 test
Change:
- Updated EFI LAN Realtek UNDI 2.024

!!! This is a test version. Therefore, displaying versions OROM is not configured.

#10 UBU 1.0.0 PR11 test by SoniX 25.10.2013 00:12

avatar

@ Fernando, only have time to do the upgrade.. :)

New UEFI BIOS Updater Pre-Release 11 test
Change:
- Updated CPU Microcode 17 for Haswell
- Updated LAN Broadcom OROM PXE 16.2.1 and EFI UNDI 16.2.2

#11 UBU 1.0.0 PR12 test by SoniX 25.10.2013 14:20

avatar

New UEFI BIOS Updater Pre-Release 12 test
Change:
- Updated OROM IRSTe - v3.8.0.1029
- Updated OROM Marvell 9230 - v1.0.0.1015
- Fix minor bugs

#12 UBU 1.0.0 PR13 test by SoniX 27.10.2013 11:53

avatar

New UEFI BIOS Updater Pre-Release 13 test
Change:
- Fixed, displays the version of the EFI IRSTe SCU Driver
- Added display the version of the EFI LAN Broadcom

#13 UBU 1.0.0 PR14 test by SoniX 28.10.2013 20:20

avatar

New UEFI BIOS Updater Pre-Release 14 test
Change:
- Added new EFI modules IRSTe SataDriver and SCUDriver - 3.8.0.1029
- Fixed bugs and comments.

#14 UBU 1.0.0 PR15 by SoniX 06.11.2013 22:53

avatar

New UBU 1.0.0 PR15

Change:
1) Fixed bug minor
2) For Sandy overclockers add CPU microcode 28.

#15 UBU 1.0.0 PR16 by SoniX 08.11.2013 17:45

avatar

New UEFI BIOS Updater v1.0.0 Pre-Release 16

Change:
1) Update EFI GOP IvyBridge Driver to 3.0.1027

Xobor Forum Software von Xobor