Jump to content

[UEFIPatch] UEFI patching utility

BIOS patch power management UEFI

  • Please log in to reply
1641 replies to this topic

#301
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida

Hello CodeRush,
I've been trying to get vanilla pm to work on my 10.8.2 installation to no avail.
I've used pre-modded on my Asus P8Z68-v lx bios found on the bios repo, I've used pmpatch to generate my own patched bios. the process did output a file and all seems to go rather well. I've used regular asus tools to flash the bios, it seems to hv flashed ok, both from the msg at the end of the flashing process and also from the info present at the uefi screen.

After all that I still need to use patched kext files to be able to boot into osx, thinking the flash process had somehow failed, despite all the success messages I tried flashing the bios once more using FTK, I followed your guide and the thing is, I still need nullcpupowermanagemnt.kext in order to avoid a aicpm.kext kp...

Any idea what could be causing this or how I could troubleshoot what's wrong?

Thx for the hard work btw, ur doing a very helpfull and usefull tool, and u still manage to provide great support for it...


made SSDT ?

#302
mickey

mickey

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

made SSDT ?


No I didn't, but I didn't think I would need it?
Let me rephrase that.. I thought with the modded bios there'd be no need for a ssdt! I've read and spoken to a few ppl who have the very same board.. none had any of the issues I've been having it seems, but again none of them are on the lasted 4003 bios...
None of them use an ssdt and they're getting no speedstep issues...

#303
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
k i had to make ssdt but i had error in speedstep 2 with P8Z77-v LX bios 1404
so it might not be needed for yours

#304
mickey

mickey

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

k i had to make ssdt but i had error in speedstep 2 with P8Z77-v LX bios 1404
so it might not be needed for yours

what I suspect is that the flashing process is probably messing up... Wish someone knew some other way to test this...

#305
DirectXtraOrdinary

DirectXtraOrdinary

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 338 posts
  • Gender:Male
  • Location:Mödling, Austria

what I suspect is that the flashing process is probably messing up... Wish someone knew some other way to test this...


I used another method to dump - patch - flash the bios.
Here you'll find > amiflash which holds a folder amiflash\Aptio\AFUWIN\64\afuwin64 ...
With this tool I dumped my bios, patched it and flashed it via windows on my Asrock Fatal1ty Z77 Performance ; )
Hope it helps you too.
#REM DO NOT flash the bootblock - keep it for recovery!

bR :star_sunglasses:

#306
k3nny

k3nny

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 538 posts
  • Gender:Male

I used another method to dump - patch - flash the bios ..

Keep this post in mind.

what I suspect is that the flashing process is probably messing up... Wish someone knew some other way to test this...

Unless your board got the "Flashback" feature, there is no way you can transfer the modified image to the BIOS chip. As far as I know, the LX got no such thing.
As CodeRush suggests on the first page, you should use FTK for the flashing process.

#307
DirectXtraOrdinary

DirectXtraOrdinary

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 338 posts
  • Gender:Male
  • Location:Mödling, Austria

Keep this post in mind.


do you think it makes a difference using FTK or AFUWIN for UEFI?
The pmpatcher is just searching and replacing the matching bytecode pattern if exists.
I suggest both methods would make the same result.

btw from windows FTK shows:

Intel (R) Flash Programming Tool. Version: 8.1.10.1286
Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.
Platform: Intel(R) Z77 Express Chipset
Reading HSFSTS register... Flash Descriptor: Valid
--- Flash Devices Found ---
W25Q64BV ID:0xEF4017 Size: 8192KB (65536Kb)

Error 26: The host CPU does not have read access to the target flash area. To enable read access for this operation you must modify the descriptor settings to give host access to this region.

I'll try it with DOS version now and report back if it worked.
update: same result, I also read it would not work on later chipsets as Z77.

bR :king:

#308
mickey

mickey

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts
when I found this thread I did try and patch with pmpatch and then I used FTK to flash the bios... I got pretty much the same result as using the asus tools...
kenny I hv a z68 board not a z77.. :(
The time I've lost trying to sort this out I'm thinking it'll be a better choice just to grab a Gygabit board... ehehe not a brand I trust that much but if that's what it takes to properly get powermanagemnt etc... I'll probably do it if I don't figure out what the problem is.. :)

#309
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida

I did try and patch with pmpatch and then I used FTK to flash the bios...

make backup of bios.. not dload.

#310
mickey

mickey

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

make backup of bios.. not dload.


thx for the reply, I don't think that should make much of a diference but I've tried so many things I'll give that a go tonight ;)
I'll post my results here as soon as I test it...

#311
vvd214

vvd214

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Hey CodeRush,

My Mainboard is ZOTAC H77 ITX B series.(http://www.zotacusa.....77itx-b-e.html) I'm trying to patch my bios file with your Tools, but I got the messege :
 

bash-3.2# ./PMPatch /Volumes/DATA/Documents/Downloads/pa230/A2300508.bin /Volumes/DATA/Documents/Downloads/pa230/A2300509.bin 
PMPatch 0.5.14
PowerManagement modules not found.
PowerMgmtDxe/PowerManagement2.efi modules not found.
Trying to apply patch #1
Nested PowerManagement module at 0032EB2C patched.
Patched module too big after compression.
Trying to apply patch #2
Nested PowerManagement module at 0032EB2C patched.
Patched module too big after compression.
Trying to apply patch #3
Nested PowerManagement module at 0032EB2C patched.
Patched module too big after compression.
Trying to apply patch #4
Nested PowerManagement module at 0032EB2C patched.
Patched module too big after compression.
Trying to apply patch #5
Nested PowerManagement module at 0032EB2C patched.
Patched module too big after compression.
AMI nest module at 005D0048 not patched: Repacked module can't be inserted.
Phoenix nest modules not found.
CpuPei module at 0079F300 not patched: Patch pattern not found.

I did try in both Mac and Windows but the result is the same.
Please find the attached BIOS file and help me!
Thank you very much for doing what you are doing!!

 

Attached Files



#312
CodeRush

CodeRush

    InsanelyMac Sage

  • Developers
  • 400 posts
  • Gender:Male
  • Location:Deggendorf, Germany
all, sorry for not being here for a while. I've moved to Regensburg and now I still don't have stable access to the Internet, so I can't monitor forum posts.

mickey, please make a backup using "biosbck" command from FTK and attach it, so i can see if write-protection code is still there.

vvd214, made the patch manually with PhoenixTool, try it on your own risk.
Attached File  A2301127_pm.zip   2.6MB   16 downloads

#313
vvd214

vvd214

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

all, sorry for not being here for a while. I've moved to Regensburg and now I still don't have stable access to the Internet, so I can't monitor forum posts.

mickey, please make a backup using "biosbck" command from FTK and attach it, so i can see if write-protection code is still there.

vvd214, made the patch manually with PhoenixTool, try it on your own risk.
Attached File  A2301127_pm.zip   2.6MB   16 downloads


Thanks for your help, I did flash your attach file and It's work like a charm!

#314
cfb44

cfb44

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts
Results from a Toshiba U845w-s400 laptop (Insyde):



localhost:~ chris$ /Users/chris/Downloads/PMPatch /Users/chris/Downloads/teae640.fd /Users/chris/Downloads/teae640-patched.fd
PMPatch 0.5.11
PowerManagement modules not found.
AMI nest modules not found.
Trying to apply patch #1
Nested PowerManagement2.efi module at 00018752 not patched: Unknown module state.
Nested PowerManagement2.efi module at 00226CA0 patched.
Nested SmmPlatform module at 0001872E not patched: Unknown module state.
Nested SmmPlatform module at 002365E0 not patched: Patch pattern not found.
Phoenix nest module at 003A2048 patched.
CpuPei modules not found.
Output file generated.


Since output file was generated, I should be good?

#315
CodeRush

CodeRush

    InsanelyMac Sage

  • Developers
  • 400 posts
  • Gender:Male
  • Location:Deggendorf, Germany
Yes.

#316
killgriff

killgriff

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
Hello. I am trying to get my first hackintosh working. Here are my specs:

Asus P8Z77-v Pro/Thunderbolt
CORSAIR DOMINATOR 16GB
Intel Core i7-3770K Ivy Bridge

Intel 520 Series Cherryville SSD 240GB
TP-LINK TL-WDN3800


I'm trying to install from the Snow Leopard disk with i-Boot, however I get a kernel panic about AHCI drivers. I'm using the 1908 (latest) BIOS and assume I am getting this error because the BIOS is not modded. I've tried both the BIOS from the repo, and patching my own with the PMPatch for windows, but when I go to flash it, I get a "Security verification failed" message and can not continue. Any assistance would be greatly appreciated.

#317
CodeRush

CodeRush

    InsanelyMac Sage

  • Developers
  • 400 posts
  • Gender:Male
  • Location:Deggendorf, Germany
killgriff, use USB BIOS Flashback to flash modified BIOSes. UBF is described in board's manual.

#318
killgriff

killgriff

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
Thank you for your reply. I have tried the USB BIOS flashback, but my mobo refuses to flash the modded BIOS. The light flashes 3 times and then the light stays steady. The activity light on the flash drive does not flash at all.

EDIT: I tried a different flash drive and the BIOS flash worked.

#319
vvd214

vvd214

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

all, sorry for not being here for a while. I've moved to Regensburg and now I still don't have stable access to the Internet, so I can't monitor forum posts.

mickey, please make a backup using "biosbck" command from FTK and attach it, so i can see if write-protection code is still there.

vvd214, made the patch manually with PhoenixTool, try it on your own risk.
Attached File  A2301127_pm.zip   2.6MB   16 downloads


This patched file works great. I just wondering can you add an option in "set Internal Graphic memory size=96 MB. because in my Bios option is only option for 32, 64 and 128 MB. Thanks

#320
CodeRush

CodeRush

    InsanelyMac Sage

  • Developers
  • 400 posts
  • Gender:Male
  • Location:Deggendorf, Germany
vvd214, I will try to modify 64Mb option to become 96Mb, but I can't guarantee, that it will work as expected.





Also tagged with one or more of these keywords: BIOS, patch, power management, UEFI


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy