Jump to content

[UEFIPatch] UEFI patching utility


CodeRush
1,981 posts in this topic

Recommended Posts

Hi

 @fix it felix jr

 

sorry disturbing you again with this matter, but you send me a patched bios post #751,

 

for an ASRock H87M pro4, and that in  an another post (#775) you make an incentive to extract my bios, pacth it an than flash with Afudos...

 

my question is...as I "ll make a mess with this kind of thing...

is that bios you send to me  the last one (1.7) they have at asrock site and you patched it for me?

can I use that? 'cause I do not have knowhow to do the extract mine ,patch and use afudos after...

I intend to get that patch (post #751) and try afudos..first have to install windows.. or just flash with MB tool

so any way tanks a lot..I learned to much

c.frio

Link to comment
Share on other sites

Hi C.Frio,

 

the ROM from post #751 is not intended to be used with afudos for aptio. It has a 4KB overhead compared to

EEPROM space which is 8192KB.

It would brick your BIOS using it with afu. This ROM can be flashed only with Asrock flashtool.

If the Asrock flashtool refuses to flash you can use method #775.

Link to comment
Share on other sites

@ Fix It Felix,

Finally got around to trying to flash the patch bios for the Zotac H87 you sent me some pages back.

Unfortunately I am still not able to flash it, here is the error message from AFU303 in DOS:

 

Reading Flash ......done

- ME Data Size Checking . ok

Secure Flash enabled, recalculate ROM size with signature....

-FFS Checksums....ok

Loading capsule to secure memory buffer. done

18 - Error:  unable to start  Secure Flash session

 

...and then it returns me to the DOS prompt.

 

Thanks for your help so far. Do these messages provide any more of a clue on how to get the bios flashed?

Link to comment
Share on other sites

@ Fix It Felix,

Finally got around to trying to flash the patch bios for the Zotac H87 you sent me some pages back.

Unfortunately I am still not able to flash it, here is the error message from AFU303 in DOS:

 

Reading Flash ......done

- ME Data Size Checking . ok

Secure Flash enabled, recalculate ROM size with signature....

-FFS Checksums....ok

Loading capsule to secure memory buffer. done

18 - Error:  unable to start  Secure Flash session

 

...and then it returns me to the DOS prompt.

 

Thanks for your help so far. Do these messages provide any more of a clue on how to get the bios flashed?

Minihack,

 

flash as described in my post #775 (/gan switch), you can use the file as provided, size is okay (8192KB).

Link to comment
Share on other sites

minihack, flash as described in my post #775, you can use the file as provided, size is okay (8192KB).

Sorry to be a dork.

 

So you recommend to flash from Windows (rather than DOS) and to use which flash utility - do you have a link to the one you would recommend perhaps?

Link to comment
Share on other sites

C.Frio,

 

On Z87 board I can recommend the method as explained by Mainul. There will be no capsule issues.

It's easier to apply and it works ; )

The patched ROM from you has 8.196 KB which is 4KB overhead. I'd not mess with it.

 

Better use afudos /gan method instead.

 

You can even do it all from windows as pmpatch is provided as windows executable,

steps:

  1. backup: afuwinx64 bios.bin /o
  2. patch: pmpatch bios.bin bios-pmpatched.bin
  3. apply: afuwinx64 bios-pmpatched.bin /gan

verification after reboot:

  1. backup: afuwinx64 bios.bin /o
  2. test: pmpatch bios.bin bios-pmpatched.bin

will report there's nothing left to patch.

Voila, you have a pmpatched UEFI now.

 

Most important: don't use a different bios version, it potentially causes bricks. Work only with the created backup bios.

 

The AFU for APTIO /GAN switch appears to serve the same purpose as /SANTA on AFU for regular BIOS.

Okay. So this is post 775 you refer to. Currently on the stick I have AFU303.exe which is the flashing utility Zotac provided with the bios update, I also have their utility for flashing from inside Win 7 (afuwin.exe) I have not found any other utilities that get me any further than this either from DOS or Windows.

 

So, keeping it simple (for an apparent numbskull like me) given you say I can do this from DOS. What flashing utility do you recommend I drag onto my DOS USB stick to get this bios flashed and which commands to apply to it.

 

Again, apologies for my brain farts and many thanks for your patience, but it'd be nice to put this to bed.

 

EDIT: just saw your edit so looking now...

Link to comment
Share on other sites

Okay. So this is post 775 you refer to. Currently on the stick I have AFU303.exe which is the flashing utility Zotac provided with the bios update, I also have their utility for flashing from inside Win 7 (afuwin.exe) I have not found any other utilities that get me any further than this either from DOS or Windows.

 

So, keeping it simple (for an apparent numbskull like me) given you say I can do this from DOS. What flashing utility do you recommend I drag onto my DOS USB stick to get this bios flashed and which commands to apply to it.

 

Again, apologies for my brain farts and many thanks for your patience, but it'd be nice to put this to bed.

 

EDIT: just saw your edit so looking now...

I don't know if the version provided by ZOTAC supports the /gan switch. That's why I uploaded the latest release which can flash with /gan to sendspace (link above).

Just try it, if /gan switch is not supported you'll get a "unsupported option" message and that's it.

Please tell us if you was succesful :D

Link to comment
Share on other sites

Excellent - it is updating bios now (hurray...).

 

Now on to see if the patched bios actually helps me!

 

:)

I unlocked you bios for flashrom too, right?

Then you can use flashrom from linux, os x and dos to dump and flash your ROM

until it fits your needs. DPCIManager includes flashrom and DirectHW.kext, I can only recommend this app

as it provides a lot of useful info.

  • Like 1
Link to comment
Share on other sites

Hi

 

I have a Asus haswell N550JV laptop with Aptio BIOS.

I can pmpatch the BIOS without problem.

 

However, I still can not bypass the security check when flash the mod BIOS.

Is there anyway to make it work?

 

My original BIOS is per attached file below.

N550JVAS.zip

 

Your kindly help would be greatly appreciated.

Thanks!

Link to comment
Share on other sites

Hi

 

I have a Asus haswell N550JV laptop with Aptio BIOS.

I can pmpatch the BIOS without problem.

 

However, I still can not bypass the security check.

Is there anyway to make it work?

 

My original BIOS is per attached file below.

attachicon.gifN550JVAS.zip

 

Your kindly help would be greatly appreciated.

Thanks!

yanghy,

 

for safety let's do it another way, download latest amiflash package and dump your ROM with afuwinx64 backup.bin /o

upload whereever you prefer. On Mavericks I'm getting a patch error:

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 001D5804 patched.
Segmentation fault: 11

maybe needs manual patch ;)

  • Like 1
Link to comment
Share on other sites

Hi,

 

I have ASUS Z87 PRO, assume me a noob in patching BIOS and Hackintosh World!

 

1. Is it must to patch it?

2. What will be the difference?, its just for making AppleIntelCPUPowerManagement.kext compatible?

3. is it safe to do so, and how can i do it correctly?

 

I am trying to boot with myhack but it keeps rebooting.

Thanks,

  • Like 1
Link to comment
Share on other sites

Hi,

 

I have ASUS Z87 PRO, assume me a noob in patching BIOS and Hackintosh World!

 

1. Is it must to patch it?

2. What will be the difference?, its just for making AppleIntelCPUPowerManagement.kext compatible?

3. is it safe to do so, and how can i do it correctly?

 

I am trying to boot with myhack but it keeps rebooting.

Thanks,

please read the post above, same for you: afuwinx64 backup.bin /o + upload anywhere

the patch unlocks native speedstep in PM module of UEFI ... CodeRush explained it very well on Page1

It's not a must-do but this patch makes hackintosher's lifes easier.

 

thanks

Link to comment
Share on other sites

Hi. Fix It Felix Jr.

 

Thanks for your reply.

Strange, in Win8, I got the following message.

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 001D5804 patched.
Gap module inserted after repacked module.
AMI nest module at 00080848 patched.
Phoenix nest modules not found.
CpuPei module at 005AE800 not patched: Patch pattern not found.
Output file generated.

Anyway, here is my backup file. Thanks again for your help.

 

backup.zip

Link to comment
Share on other sites

Hi. Fix It Felix Jr.

 

Thanks for your reply.

Strange, in Win8, I got the following message.

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 001D5804 patched.
Gap module inserted after repacked module.
AMI nest module at 00080848 patched.
Phoenix nest modules not found.
CpuPei module at 005AE800 not patched: Patch pattern not found.
Output file generated.

Anyway, here is my backup file. Thanks again for your help.

 

attachicon.gifbackup.zip

yanghi,

 

better directly patch it on windows and flash the patched binary with

 

afuwinx64 backup-pmpatched.bin /gan

 

for verification after reboot you can dump same way and try to patch again,

it should show no patterns found.

 

best regards

Link to comment
Share on other sites

Hi Fix It Felix Jr.

 

You mean there is no more step to unlock AMI bios as per your post in MDL?

Thanks!

you can try it as I explained at MDL ; ) with andyp's tool, it corrects the checksums.

please tell us if you were succesful! that's an important info. For example on my P8Z77-V LX the

/gan switch does not flash all areas, it only updates some regions.

Link to comment
Share on other sites

Actually, I did follow all the step at MDL, and found the pattern.

Just want to make sure everything is ok before flash.

 

I will report the result first thing tomorrow.

Thanks!


you can try it as I explained at MDL ; ) with andyp's tool, it corrects the checksums.

please tell us if you were succesful! that's an important info. For example on my P8Z77-V LX the

/gan switch does not flash all areas, it only updates some regions.

 

Hi Fix It Felix Jr.

 

Sorry, before reporting the result, how can I tell which region is update, which is not?

Thanks!

Link to comment
Share on other sites

Actually, I did follow all the step at MDL, and found the pattern.

Just want to make sure everything is ok before flash.

 

I will report the result first thing tomorrow.

Thanks!

 

Hi Fix It Felix Jr.

 

Sorry, before reporting the result, how can I tell which region is update, which is not?

Thanks!

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

Link to comment
Share on other sites

×
×
  • Create New...