Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
CodeRush

[UEFIPatch] UEFI patching utility

1,988 posts in this topic

Recommended Posts

k3nny, this "error-prone" method relays on AMI's SMIFlash code, that is nether error-prone, nor available on every AMI-based BIOS.

Most vendors have developed their own flash routines, and using SMIFlash may be compatible with them, and may be not, no one will test it.

So if this method works - cool, if not - you brick your PC and need a programmer and full SPI chip dump to bring it back to life. 

 

I must say thousand times: all BIOS flashes are risky, even "normal" "vendor-way-done" ones, and hardware SPI programmer is your only "95%-error-prone" option.

Share this post


Link to post
Share on other sites

Hi Coderush,

Problem to patch the UEFI BIOS of Maximus VII Gene (i don't know if it's locked by it does not hurt to patch i guess)

 

Please see the terminal logs :

Last login: Tue Jun 24 06:28:53 on console
pc10:~ Nico$ /Users/Nico/Desktop/PMPatch /Users/Nico/Desktop/MAXIMUS-VII-GENE-ASUS-0904.CAP /Users/Nico/Desktop/MAXIMUS-VII-GENE-ASUS-0904PATCHED.CAP 
PMPatch 0.5.14
PowerManagement modules not found.
PowerMgmtDxe/PowerManagement2.efi module at 00290C00 not patched: Repacked module can't be inserted.
AMI nest modules not found.
Phoenix nest modules not found.
CpuPei module at 0068D670 not patched: Patch pattern not found.
CpuPei module at 0078D670 not patched: Patch pattern not found.
pc10:~ Nico$ 


Thanks

Share this post


Link to post
Share on other sites
C:\>pmpatch bios.bin bios-pm.bin
PMPatch 0.5.14
PowerManagement module at 004054A0 patched.
PowerMgmtDxe/PowerManagement2.efi modules not found.
AMI nest modules not found.
Phoenix nest modules not found.
CpuPei module at 00790AA8 not patched: Patch pattern not found.
CpuPei module at 007D0AA8 not patched: Patch pattern not found.
Output file generated.
 
C:\>
 
 
hi could you tell me if everything was ok? 
Thank you very much 
greetings

 

Share this post


Link to post
Share on other sites

 

C:\>pmpatch bios.bin bios-pm.bin
PMPatch 0.5.14
PowerManagement module at 004054A0 patched.
PowerMgmtDxe/PowerManagement2.efi modules not found.
AMI nest modules not found.
Phoenix nest modules not found.
CpuPei module at 00790AA8 not patched: Patch pattern not found.
CpuPei module at 007D0AA8 not patched: Patch pattern not found.
Output file generated.
 
C:\>
 
 
hi could you tell me if everything was ok? 
Thank you very much 
greetings

 

When you see output file generated, everything is ok, read first post in thread

Share this post


Link to post
Share on other sites

Hi!

 

I extract the dell 7240 biusupdate.exe in custom DellBiosExtract.py script.

This generate xxxxxx.hdr, rename to .bin

Then load this file in UEFITool and image save to dellbios.bin

Then run UEFIPatch and this output looks good.

 

C:\Users\Robi\Desktop\UEFIPatch>UEFIPatch.exe 7240.bin

Body of PE32+ image section patched, 75080fbae80f89442430 -> eb080fbae80f89442430
Image patched
 
This generate 7240.bin.patched file.
 
But my questíon:
How tu update my BIOS from this bin file?
 
Thanks for Help!

Share this post


Link to post
Share on other sites

lol

 

i used pmpatch

is this reliable?

XD

 

pmpatch is absolutely reliable, but afu / gan method isn't a safe method on asus boards

on asus z77 I recommend reading the red link in my signature, using the sce method to set bios lock to disabled.

Share this post


Link to post
Share on other sites

I have a MSI MPOWER MAX and I couldnt get OS X on it. I heard I needed to patch the BIOS however I have zero idea how to do this or how to get started. Could someone do it for me?

 

Specs:

4770K

MSI Mpower Max Z87

MSI 780 Lightning

Corsair Vengence 16GB (2x8GB) 1600, DDR3

 

I will attach my latest BIOS

 

Apparently I cant attach the file but if you could help me that would be great and this is the link to the BIOS

Share this post


Link to post
Share on other sites

@CodeRush I tried patching a Z68XP-UD3 UEFI but I get 

MacPro:UEFIPatch_0.1.0_osx nano$ ./UEFIPatch z68-894-smc.rom 
parseInputFile: descriptor parsing failed, descriptor region has intersection with BIOS region
FFS file or search pattern not found in input file

I checked the patches.txt file to see the GUID's and I do have them:

|117|PowerManagement|8C783970-F02A-4A4D-AF09-8797A51EEC8D|003E87CE|004D1D|DRVR|

|013|CpuPei         |2BB5AFA9-FF33-417B-8497-CB773C2B93BF|003CBCE8|00160E|PEIM|

Any clue whats the problem?

 

Thanks

Share this post


Link to post
Share on other sites

Florin9doi, you can add this patch to the end of patches.txt right now, I will return command-line patching in next release.

Share this post


Link to post
Share on other sites

paulxandrei, no one can provide any guarantee for methods that use undocumented keys and non-vendor flashing utilities.

Sometimes it works, sometimes it doesn't, and SPI programmer is the best solution there.

Your chip is fine, BTW, no need to replace it physically, flashing a full BIOS dump from the same motherboard will be enough.

Share this post


Link to post
Share on other sites

paulxandrei, no one can provide any guarantee for methods that use undocumented keys and non-vendor flashing utilities.

Sometimes it works, sometimes it doesn't, and SPI programmer is the best solution there.

Your chip is fine, BTW, no need to replace it physically, flashing a full BIOS dump from the same motherboard will be enough.

 

yeah , i know the chip is fine. its empty!!! dahh! what normal users know how to program with SPI? i dont! my notebook was literaly dead. no power , no nothing, i was lucky i still have rma asus in time. asus rma , replace the motherboard. so even they dont use SPI. god lord , now my notebook is fine.

Share this post


Link to post
Share on other sites

What "normal" user will patch anything in his/her UEFI firmware? What "normal" user aims to install unsupported OS that can't be legally used in most countries? What kind of normality is this?

I'm glad that your laptop is fine now, but it seems that you are blaming me for some reason. Please don't do it, if you are "normal" and can't use SPI programmer to make backup dump before any possible failure happens - it's totally not my fault. 

 

To any new readers of this topic: it's you who takes all the risk of bricking your board, it's you who is responsible for all things that you have done to your PC, not me or any other developer out there.

Share this post


Link to post
Share on other sites

What "normal" user will patch anything in his/her UEFI firmware? What "normal" user aims to install unsupported OS that can't be legally used in most countries? What kind of normality is this?

I'm glad that your laptop is fine now, but it seems that you are blaming me for some reason. Please don't do it, if you are "normal" and can't use SPI programmer to make backup dump before any possible failure happens - it's totally not my fault. 

 

To any new readers of this topic: it's you who takes all the risk of bricking your board, it's you who is responsible for all things that you have done to your PC, not me or any other developer out there.

1. 90% of users are normal, very normal usr that dont know what is SPI.

2. 10% are usr like you PRO users.

3. its not your fault or un-vendor tools i use.

4. is my fault, next time .. i will go with RehabMan trick so i dont need complicate things when is so simple.

Share this post


Link to post
Share on other sites

@Coderush,

 

Just want to thank you again for sharing these Miraculous tools and docmentation.

 

I bricked my Bios on a P9x79 Pro.  The Flash Back feature will only flashes the Converter Bios and it will not let me flash any Bios from that version on up.  I am lucky because I have an old 2008 Zeltek 580U Prom burner and the Bios chip pulled right out.

 

I used you EFITool to extract the ROM without the Cap header but want to make sure I did this correctly with screen shot.  I right clicked on the image file and saved as is.  I then flashed the 4701 bios rom extension and took a screen shot of the hex and it seems like it has the typical 5A A5 code right under the FF....

 

Just not sure if the Prom burner flashes over the Boot block?  It should be locked right?

 

Thanks

post-135888-0-92989800-1404717750_thumb.png

post-135888-0-13967100-1404717758_thumb.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.



×