Jump to content

[UEFIPatch] UEFI patching utility


CodeRush
1,981 posts in this topic

Recommended Posts

Hi all...

 

Not all of the Z87 motherboards require patching. For example, my new ASUS Z87-WS, my friends Asus Maximus VI GENE, do NOT require a patch. PM works on the factory BIOS. Before anyone starts to complain that he can not upload a converted BIOS for Z87, let them first examine whether he needs to do the patch.

Unfortunately, there are still mainboards with locked msr register, such as the MSI Z87-G43.

PM on the Z87 works differently. AICPM is not loaded, but the kernel deals with the PM. If you have to restart immediately after booting the kernel, then locked register msr is the cause and BIOS needs to patch.

  • Like 2
Link to comment
Share on other sites

Try it and see what happens, on Z87 only successful reports for now.

 

Hi Fix It Felix Jr.,

 

Just to report my Asus N550JV can be flashed with "afuwinx64 /gan" without the ami unlock.

Now, I can boot 10.8.5 without patched kernel!!!

 

Thank you for your help and CodeRush who create this great tool.

Thanks!!

  • Like 3
Link to comment
Share on other sites

H87 Zotac unlock, pmpatch and flash with /gan very successful and for the first time is now loading the new mach_kernel.

 

I am getting a hang during the boot process, but indications are that the usual OS X troubleshooting process should eventually get me there.

 

Thanks again.

  • Like 2
Link to comment
Share on other sites

Attempting to PMPatch this bios results in this output:

 

 

PMPatch 0.5.13
PowerManagement modules not found.
PowerMgmtDxe/PowerManagement2.efi modules not found.
Trying to apply patch #1
Nested PowerMgmtDxe/PowerManagement2.efi module at 005211E4 patched.
Segmentation fault: 11
 
Can someone give me a hand. Thanks in advance...
Link to comment
Share on other sites

 

Attempting to PMPatch this bios results in this output:

 

 

PMPatch 0.5.13
PowerManagement modules not found.
PowerMgmtDxe/PowerManagement2.efi modules not found.
Trying to apply patch #1
Nested PowerMgmtDxe/PowerManagement2.efi module at 005211E4 patched.
Segmentation fault: 11
 
Can someone give me a hand. Thanks in advance...

 

 

Hey,

 

succesfully patched from windoze:

$>pmpatch MC0047.BIO MC0047-PMPATCHED.BIO
PMPatch 0.5.13
PowerManagement modules not found.
PowerMgmtDxe/PowerManagement2.efi modules not found.
Trying to apply patch #1
Nested PowerMgmtDxe/PowerManagement2.efi module at 005211E4 patched.
Gap module inserted after repacked module.
AMI nest module at 00334D84 patched.
Phoenix nest modules not found.
CpuPei module at 0023599C not patched: Patch pattern not found.
CpuPei module at 002B59B4 not patched: Patch pattern not found.
Output file generated.

uploaded

 

best regardz :D

Strange question. The worst thing that can happen is PC will no longer boot and you will need to reflash BIOS chip using hardware SPI programmer or another working board.

 

No risk, no phun *huh* :D only from falling we learn how to get up again.

  • Like 1
Link to comment
Share on other sites

I can't use your patch to mod the dell latitude E6530 bios. I can't extract the rom/bin/hdr from the original file :s

 

official bios from dell-site, please verify!

 

$>python DecompNewDell.py E6530A12.exe

Decompressed data written to E6530A12.exe_decompressed.hdr

 

pmpatched:

$>pmpatch E6530A12.exe_decompressed.hdr E6530A12-pmpatched.hdr
PMPatch 0.5.13
PowerManagement modules not found.
PowerMgmtDxe/PowerManagement2.efi modules not found.
Trying to apply patch #1
Nested PowerManagement module at 002D7354 patched.
Gap module inserted after repacked module.
AMI nest module at 000500A0 patched.
Phoenix nest modules not found.
CpuPei module at 00442B00 not patched: Patch pattern not found.
Output file generated.

uploaded patched ROM

 

credits to JimboBobB@MDL

 

kind regards

Link to comment
Share on other sites

Yes it's the officiel one  :)

Which version of DecompNewDell.py do you use ?, i have used a one but it freezes at "Segmentation fault : 11" :blush:

By the way, thank you for your work, I'll test it now :)

I used the version as linked, tested on windows 8 with python portable 2.6.1 and OS X Mavericks 2.7.5

 

edit, file attached, rename to .py and execute :)

DecompNewDell.py.txt

Link to comment
Share on other sites

Is getting:

 

46 - Error: Problem getting flash information

 

in response to the Aptio verion of 

 

afudos MC0047-PMPATCHED.BIO /gan 

 

something solvable?

 

Thanks...

it's Intel bios, not AMI? Use Intel flashtool iflash2.exe instead, if possible I recommend flashing from DOS.

 

 

For desktop boards with a chipset of Intel 945 or higher:

  1. Create a bootable USB thumb drive or floppy disk containing the original unaltered .BIO file and IFLASH2.EXE.
  2. Boot the system to the bootable device and wait until the prompt is displayed.
  3. Type Iflash2 /md /pf <BIO File Name> and press Enter. Wait for the BIOS update process to occur.

source: http://www.intel.com/support/motherboards/desktop/sb/CS-015474.htm

iflash2.exe was included in the ZIP file of the link you provided above.

Link to comment
Share on other sites

How can i flash the bios using the HDR ?

biosflsh.exe --force --flashbios E6530A12-pmpatched.hdr

 

or something like that, but read on before on MDL, there's a lot of useful info, I don't now a lot about dell except that they're very restrictive with mods.

So, you're a tux fan? Maybe that's interesting for you too.

Potentially this guide will help you as it's for E6510.

Link to comment
Share on other sites

official bios from dell-site, please verify!

 

$>python DecompNewDell.py E6530A12.exe

Decompressed data written to E6530A12.exe_decompressed.hdr

 

pmpatched:

$>pmpatch E6530A12.exe_decompressed.hdr E6530A12-pmpatched.hdr
PMPatch 0.5.13
PowerManagement modules not found.
PowerMgmtDxe/PowerManagement2.efi modules not found.
Trying to apply patch #1
Nested PowerManagement module at 002D7354 patched.
Gap module inserted after repacked module.
AMI nest module at 000500A0 patched.
Phoenix nest modules not found.
CpuPei module at 00442B00 not patched: Patch pattern not found.
Output file generated.

uploaded patched ROM

 

credits to JimboBobB@MDL

 

kind regards

Hi Felix 

can you do the same with this new bios as rock H87M pro4 and send back?

still dueling..

c.frio

H87MP4170.exe

  • Like 1
Link to comment
Share on other sites

And i tried the amiflash utility failed 

 

+---------------------------------------------------------------------------+
|                 AMI Firmware Update Utility  v3.05.00                     |
|      Copyright ©2012 American Megatrends Inc. All Rights Reserved.      |
+---------------------------------------------------------------------------+
 Reading flash ............... done
3 - Error: ROM file size does not match existing BIOS size.
Link to comment
Share on other sites

 

And i tried the amiflash utility failed 

 

+---------------------------------------------------------------------------+
|                 AMI Firmware Update Utility  v3.05.00                     |
|      Copyright ©2012 American Megatrends Inc. All Rights Reserved.      |
+---------------------------------------------------------------------------+
 Reading flash ............... done
3 - Error: ROM file size does not match existing BIOS size.

 

go back to post #775 and read ;) all info on this thread

edit: ROM file size does not match existing BIOS size << better don't try to flash a .CAP file, cut the capsule header instead

the best way is to follow exactly post #775: dump + patch + flash

Happy to publish the utility, that will later become a PMPatch successor, if nothing goes wrong. This MDL topic will be an official one for English-speaking world.

thanks CodeRush, is it possible to compile it on OS X? It would fill a gap as there's no UEFI editor for Mac ;)

Link to comment
Share on other sites

ok i flashed the original firmware back then i flashed the patched one and surprise surprise OSX still does not load gets to loading drivers ................................... in clover and reboots after that 

any clues ? 

Link to comment
Share on other sites

×
×
  • Create New...