Skip to content
marc edited this page Jul 1, 2020 · 9 revisions

This is the VirtualBiosMod HowTO!

Prerequisites

  • In order to be able to compile the VirtualBiosMod and add features you will require to have a 64bit linux OS preferably Ubuntu 18LTS and install development tools
  1. sudo apt update
  2. sudo apt upgrade
  3. sudo install build-essential
  4. sudo apt install gnu-efi
  5. git clone https://github.com/serdeliuk/VirtualBiosMod
  6. cd VirtualBiosMod
  7. make

After those steps you will have the VirtualBiosMod.efi which can be installed in your EFI partition and set a new boot option to run the file at boot time, or if you have Clover bootloader add the VirtualBiosMod.efi ot drivers folder and reboot, will be excuted just before clover min menu.

In order to add a new mod or change existing ones to match your own bios

You will require tools provided in tools folder to save your own bios, extract the IFR and search for GUIDS, variables, offsets and values. I used following tools

  1. https://github.com/LongSoft/Universal-IFR-Extractor
  2. https://github.com/LongSoft/UEFITool
  3. https://github.com/Zibri/afulnx
  4. git clone https://github.com/RomanHargrave/amifldrv
  5. cd amifldrv
  6. make
  7. sudo insmod amifldrv_mod.ko

Now you should be able to save your bios with afulnx

  1. cd afulnx-folder
  2. sudo ./afulnx mybios.bin /O

Now you should be able to use UEFITool to find text in your own bios file

  1. ./UEFItool mybios.bin
  2. press ctrl+f to search
  3. click on text tab and search for "bios lock" without quotes
  4. then on messages area double click the row with the result
  5. In the scructure window right click on PE32 and chose "Extract as is" and save the file as pe32.sct

Now you should use ifrextract to export the sct file to readable text

  1. ./ifrextract pe32.sct pe32.sct.txt

Congratulations, you have your own variables in readable text format, just open the pe32.sct.txt file in your prefered text editor and find desired infos.

Please use this forum for questions https://www.tonymacx86.com/threads/guide-virtual-bios-mod-without-flash.300335/

Best regards,

Marc

Clone this wiki locally