Go to file
2016-11-11 08:58:01 +02:00
LZMA Version 0.19.0 2014-11-08 12:40:06 +01:00
Tiano GCC and clang adaptations 2015-01-31 15:46:17 +01:00
UEFIExtract Engine 0.20.4 2015-02-17 23:46:15 +01:00
UEFIFind Engine 0.20.4 2015-02-17 23:46:15 +01:00
UEFIPatch Added patch for Asus X99-A, X99-S 2016-11-11 08:58:01 +02:00
.gitattributes Version 0.2.0 2013-10-08 09:07:03 +02:00
.gitignore Engine 0.20.1 2015-02-06 09:47:19 +01:00
.travis.yml Fixing Travis build 2015-03-28 22:20:38 -04:00
basetypes.h UT 0.21.5 /UP 0.3.9 untested 2015-11-12 09:37:38 +01:00
descriptor.cpp Big update 0.20.0 2015-01-31 15:00:00 +01:00
descriptor.h UT 0.21.5 /UP 0.3.9 untested 2015-11-12 09:37:38 +01:00
ffs.cpp Spellchecking 2015-09-08 08:54:42 +02:00
ffs.h UT 0.21.5 /UP 0.3.9 untested 2015-11-12 09:37:38 +01:00
ffsengine.cpp UT 0.21.5 /UP 0.3.9 untested 2015-11-12 09:37:38 +01:00
ffsengine.h Replace action for paddings 2015-09-12 20:46:21 +02:00
gbe.h Big update 0.20.0 2015-01-31 15:00:00 +01:00
guidlineedit.cpp UEFITool 0.19.3 2014-11-18 16:01:20 +01:00
guidlineedit.h UEFITool 0.19.3 2014-11-18 16:01:20 +01:00
LICENSE.md Create LICENSE.md 2015-08-11 18:12:12 +02:00
me.h Big update 0.20.0 2015-01-31 15:00:00 +01:00
messagelistitem.cpp UEFITool 0.18.4 / UEFIExtract 0.2.2 2014-07-24 16:59:51 -07:00
messagelistitem.h UEFITool 0.18.4 / UEFIExtract 0.2.2 2014-07-24 16:59:51 -07:00
peimage.cpp Engine 0.20.1 2015-02-06 09:47:19 +01:00
peimage.h Engine 0.20.1 2015-02-06 09:47:19 +01:00
README.rst Engine 0.20.1 2015-02-06 09:47:19 +01:00
searchdialog.cpp Version 0.19.1 2014-11-08 22:24:53 +01:00
searchdialog.h UEFITool 0.18.4 / UEFIExtract 0.2.2 2014-07-24 16:59:51 -07:00
searchdialog.ui Monospace font setting moved to uefitool.cpp 2014-11-15 21:40:28 +01:00
treeitem.cpp Engine 0.20.6 2015-07-05 13:28:53 +02:00
treeitem.h Engine 0.20.6 2015-07-05 13:28:53 +02:00
treemodel.cpp Engine 0.20.6 2015-07-05 13:28:53 +02:00
treemodel.h Engine 0.20.6 2015-07-05 13:28:53 +02:00
types.cpp UT 0.21.0 2015-09-06 23:46:26 +02:00
types.h UT 0.21.0 2015-09-06 23:46:26 +02:00
uefitool_main.cpp UT 0.20.7 2015-08-13 20:28:19 +02:00
uefitool.cpp UT 0.21.5 /UP 0.3.9 untested 2015-11-12 09:37:38 +01:00
uefitool.h UT 0.20.7 2015-08-13 20:28:19 +02:00
uefitool.icns UEFITool 0.19.3 2014-11-18 16:01:20 +01:00
uefitool.ico UEFITool 0.19.3 2014-11-18 16:01:20 +01:00
uefitool.pro Engine 0.20.1 2015-02-06 09:47:19 +01:00
uefitool.rc Version 0.2.0 2013-10-08 09:07:03 +02:00
uefitool.ui Replace action for paddings 2015-09-12 20:46:21 +02:00

UEFITool
========
.. image:: https://raw.githubusercontent.com/LongSoft/UEFITool/master/uefitool.ico
.. image:: https://scan.coverity.com/projects/1812/badge.svg?flat=1
    :target: https://scan.coverity.com/projects/1812/

|
| UEFITool is a cross-platform C++/Qt program for parsing, extracting and modifying UEFI firmware images.
| It supports parsing of full BIOS images starting with the flash descriptor or any binary files containing UEFI volumes.
| Original development was started `here <http://forums.mydigitallife.info/threads/48979-UEFITool-UEFI-firmware-image-viewer-and-editor>`_ at MDL forums as a cross-platform analog to `PhoenixTool <http://forums.mydigitallife.info/threads/13194-Tool-to-Insert-Replace-SLIC-in-Phoenix-Insyde-Dell-EFI-BIOSes>`_'s structure mode with some additional features, but the program's engine was proven to be usefull for another projects like `UEFIPatch <http://www.insanelymac.com/forum/topic/285444-uefipatch-uefi-patching-utility/>`_, `UBU <http://www.win-raid.com/t154f16-Tool-quot-UEFI-BIOS-Updater-quot-UBU.html>`_ and `OZMTool <http://www.insanelymac.com/forum/topic/299711-ozmtool-an-ozmosis-toolbox/>`_.

Installation
------------

| You can either use `pre-built binaries for Windows and OSX <https://github.com/LongSoft/UEFITool/releases/latest>`_ or build a binary yourself. 
| To build a binary you need a C++ compiler and an instance of Qt4/Qt5 library for it. 
| Install both of them, get the sources, generate makefiles using qmake (*qmake UEFITool.pro*) and use your make command on that generated files (i.e. *nmake release*, *make release* and so on).

Usage
-----

| The program can be started directly without any arguments or supplied with a single argument - a path to the UEFI image file to open after start.
|
| The program window is divided into three panels: **Structure**, **Information** and **Messages**.
| Structure of the image is represented as a tree of elements with different names, types and subtypes. If you select an element, **Information** panel will show the available information about the selected element based on it's type and contents.
| **Messages** panel show all messages from the engine, including structure warnings and search results. Most of messages can be double-clicked to select the element that causes the message.
|
| You can open a menu on each tree element to see what operations are possible for the selected element. This can include various types of **Extract**, **Insert** and **Replace** operations, as well as **Remove** and **Rebuild**.
| **Extract** has two variants: **Extract as is** and **Extract body**. The difference is that **Extract as is** extracts the element with it's header (GUID, size, attributes and other structure-related information are located there), and **Extract body** extracts the element data only. 
| **Replace** has the same two variants as **Extract** with the same meaning.
| **Insert** has the three different variants: **Insert before**, **Insert after** and **Insert into**, which is only available for UEFI volumes and encapsulation sections.
| **Remove** marks an element for removal on image reconstuction.
| **Rebuild** marks an element for rebuilding on image reconstruction. Normally, all elements that aren't marked for rebuild won't be changed at all and if you need to correct some structure error (i.e. invalid data checksum) you must mark an element for rebuild manually. If you change an element all it's parents up to the tree root will be marked for rebuild automatically. If UEFI volume is marked for rebuild all uncompressed PEI files in it will also be marked for rebuild because they must be rebased in the reconstructed image to maintain the executable-in-place constraint.
| 
| There is also a search function available from the *File* menu, you can search all tree elements for a specified hexadecimal pattern (spaces are not counted, dot symbol (.) is used as placeholder for a single hex digit), a specified GUID (rules are the same as for hex except for spaces) and a specified text (either Unicode or ASCII, case sensitive or not). Search results will be added into **Messages** panel, if anything is found.
|
| After you've finished the modifications, you need to initiate image reconstruction using *Save image file* command from the *File* menu. If anything goes wrong on the reconstruction, an error will pop up, otherwise the program will prompt if you need to open the reconstructed file. Don't rush it, because reconstruction process can also generate some usefull messages, which will be lost if you open the reconstructed file immediatelly.

Known issues
------------
* Some images has non-standard calculation of base address of TE images, so the program can rebase them incorrectly after modifications. Will be solved ASAP.
* Some images may not work after modification because of no FIT table support implemented yet. It's on my high priority features list, so I hope it will be corrected soon.
* The program is meant to work with BIOS images, not some vendor-specific BIOS update files, that is why some of that update file either can\t be opened at all or return errors on reconstruction. If someone wants to write an unpacker for such crappy files - I will be glad to use it.
* AMI-specific features like NCBs, ROM_AREA structure and other things like that can't be implemented by me because of the NDA I have.