Jump to content

[UEFIPatch] UEFI patching utility

BIOS patch power management UEFI

  • Please log in to reply
1563 replies to this topic

#881
bikinifarm

bikinifarm

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 138 posts
  • Gender:Male
  • Location:Chicago, Illinois

I have just successfully patched my Intel Haswell motherboard's (DH87MC) UEFI BIOS using a RaspberryPi Model B as an SPI programmer based on CodeRush's recommendations. Posting how I did here for other people who may have no option but to go down this path. Warning, this is not for the faint hearted, or people who have no experience in soldering. Unless you know what you are doing, you are very likely to mess up your board.

  • Make sure your motherboard has the BIOS you want to patch.
  • I followed Pacman's instructions from here (or here) very closely. I deviated from his instructions when installing pciutils required a manual download, and make, sudo make installand sudo make install-lib. flashrom also requires manual downloading, makeand sudo make install.
  • I did not remove the BIOS (SPI) chip, instead I soldered very thin wires to it in place. This is not necessarily good practice, but worked for me.
  • I did not remove the motherboard cables (also not necessarily good practice), but I disconnected my computer from all external connections, especially power. 
  • With the main computer unplugged and disconnected from everything external, except the soldered wires from the raspberrypi, I booted the raspberrypi, and executed a "sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -r biosbackup.rom". Took at least 5 minutes. Now we have the BIOS in a file named 'biosbackup.rom'.
  • I copied the file biosbackup.rom from the raspberrypi to a Windows 7 VM, and ran PMPatch.exe, naming the output file biosbackup_patched.rom. (I was not able to run on OSX due to Segmentation fault: 11.)
  • After I brought the patched file back to the raspberrypi, and I executed "sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -w biosbackup_patched.rom -V". It also took at least 5 minutes.
  • It came back verified, but before I removed the wires, I ran a second test by executing "sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -r biosbackup_patched_reread.rom".
  • I compared the files biosbackup_patched.rom and biosbackup_patched_reread.rom in OSX using Hex Fiend. They were identical.
  • I reset the CMOS by removing the motherboard battery to be on the safe side.
  • Removed the wires from the BIOS SPI chip.
  • Reassembled the computer, and booted successfully.
  • Tested with 10.8.5 and 10.9 DP8 successfully.

Once again, this is your last resort, and is not recommended unless you absolutely know what you are doing. CodeRush and Fix It Felix Jr, thanks for all the support. Much appreciated.

 

EDIT:  If you are going this way, you may want to consider investing in a SOIC8 / SOP8 (or whatever matches your SPI chip) in circuit test clip instead of soldering on to your motherboard. Look for "SOIC8 in circuit" on ebay. They go for about $10.

Attached Files



#882
MiniHack

MiniHack

    InsanelyMac Legend

  • Donators
  • 585 posts
  • Gender:Male

Oh my goodness - this is true hard core dedication to getting a system working. I salute you for your persistence against all the odds..........



#883
ham4ever

ham4ever

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 296 posts
  • Gender:Male

i get this with GA Z87 HD3 

Last login: Tue Oct 15 11:16:51 on console
ham4evers-MacBook-Air:~ ham4ever$ /Users/ham4ever/Desktop/PMPatch /Users/ham4ever/Desktop/mb_bios_ga-z87-hd3_f6.exe /Users/ham4ever/Desktop/mb_bios_Patched.exe  
PMPatch 0.5.13
PowerManagement modules not found.
PowerMgmtDxe/PowerManagement2.efi modules not found.
AMI nest modules not found.
Phoenix nest modules not found.
CpuPei modules not found.
ham4evers-MacBook-Air:~ ham4ever$ 




#884
LightServer

LightServer

    InsanelyMac Sage

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

disassembled Powermanagement
|018|PowerMgmtDxe   |F7731B4C-58A2-4DF4-8980-5645D39ECE58|00202F6D|004585|DRVR|

module attached for review, looks different than usual ;)

     47d:	b9 e2 00 00 00       	mov    $0xe2,%ecx
     482:	48                   	dec    %eax
     483:	8b 10                	mov    (%eax),%edx
     485:	8b 7a 09             	mov    0x9(%edx),%edi
     488:	8b df                	mov    %edi,%ebx
     48a:	83 e7 0f             	and    $0xf,%edi
     48d:	81 e3 f0 0f ff 0f    	and    $0xfff0ff0,%ebx
     493:	f6 42 01 7a          	testb  $0x7a,0x1(%edx)
     497:	75 19                	jne    0x4b2

??? 

 

patching 

 

f6 42 01 7a 75 19 to

f6 42 01 7a eb 19

 

required

 

???

 

DON'T do so, please wait for CodeRush's response.

Attached Files

  • Attached File  pm.zip   45.22KB   4 downloads


#885
sacaman1

sacaman1

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 113 posts
  • Gender:Male
  • Location:www

Hi,

 

i always patch the bios with no problem 

today i upgrade my Mobo to the 1301 and i follow the same procedure but no success with the ACPM.kext 

 

this is my out put 

 

 

PMPatch 0.5.13
PowerManagement module at 00C095B8 patched.
PowerMgmtDxe/PowerManagement2.efi modules not found.
AMI nest modules not found.
Phoenix nest modules not found.
CpuPei module at 00F90748 not patched: Patch pattern not found.
CpuPei module at 00FD0748 not patched: Patch pattern not found.
Output file generated.
 
 
and i join my original file extracted from DCPIManager 
 
any help or suggestion please 

Attached Files



#886
LightServer

LightServer

    InsanelyMac Sage

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

Open Your Eyes: PowerManagement module at 00C095B8 patched.



#887
sacaman1

sacaman1

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 113 posts
  • Gender:Male
  • Location:www

I know but i can't flash it back to the Mobo 

DCPIManager say that the flash back Task field 

 

I will try this Method to do it 

 

Flashing modified BIOS on ASUS P8xxx with FTK



#888
LightServer

LightServer

    InsanelyMac Sage

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

Due to bios lock! You can downgrade your bios to an earlier version with amiflash for aptio and then upgrade with an unlocked ROM.

Or you can follow the instructions in my footer (post#775).



#889
sacaman1

sacaman1

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 113 posts
  • Gender:Male
  • Location:www

Thanks  Fix It Felix Jr.

 

I will try to folow your Guide and i will report back

 

 

 

Ok Done  role back to 907 and flash after that the 1301 with the DCPIManager as usual 

 

Thanks again Fix It Felix Jr.   For your Help 

 

 

Sacaman



#890
CodeRush

CodeRush

    InsanelyMac Sage

  • Developers
  • 382 posts
  • Gender:Male
  • Location:Deggendorf, Germany

ham4ever, this board is not locked, no need to patch it.

 

bikinifarm, good work, glad you've managet to get it working and thanks for posting such a great report.



#891
ekica

ekica

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 255 posts
  • Gender:Male
  • Location:Serbia,Zaječar,Salaš

Since I'm not sure how to do this.I would like you to post the entire procedure picturesque or video.

Thanks....... :(  :(  :(  :(  :(  :(



#892
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,034 posts
  • Gender:Male
  • Location:Brazil

No! Bad n00b. Go to your room. Are you new to forums in general? That's not how it works. Try again.

 

Consider asking a question rather than making a demand.

Nobody can read your mind, therefore when you ask for help, it is up to you to make it clear exactly what it is you are unsure about.

 

To most people who have visited this topic and successfully patched their BIOS, the first post was good enough, it explains everything.

Nobody knows what you know, or what you don't know, so how could anybody write a personalized tutorial for you? With pictures and video, are you kidding?

 

It works like this, it's very simple:

 

If you are unsure about how to perform a specific step, post a specific question about it.

 

EDIT

 

Is this about the motherboard in your signature?

If yes, what are you even doing here? You don't need to patch your BIOS.



#893
LatinMcG

LatinMcG

    Insanely digesting DSDT

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

for those that want a cheapo USB SPI programmer.. i use EN25T80 from ebay $6 .. and the POMONA or 3M SOIC8 test clip with a big rubber band to keep it attached to chip on the mainboard.



#894
manor

manor

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 308 posts
  • Gender:Male

Hi I need know this please explan I know this is not pmpatch topic Thank you.

 

My board is p8z77-vpro I try to enable multi monitor primary display with  pcie/Auto how to enable muti monitor nvidia and intel hd 4000 windows worked but not osx



#895
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,034 posts
  • Gender:Male
  • Location:Brazil

If you know you are wrong to ask here then why are you doing it? You have been told this before, please start a new topic in post-installation.

 

I have the same board with a 3570k CPU but I don't use the HD4000 and I only have a single display, so, no idea, I can't help you. Look for help in the HD4000 topics, we have several.



#896
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,591 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

how to enable muti monitor nvidia and intel hd 4000 windows worked but not osx

In order to use both you need to set the integrated graphics as primary.
OS X will then see both GPUs ;)


Edited by Gringo Vermelho, 19 October 2013 - 05:06 PM.
That's a great tip but...please let's stay on topic.


#897
manor

manor

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 308 posts
  • Gender:Male

In order to use both you need to set the integrated graphics as primary.
OS X will then see both GPUs ;)

Thank you.



#898
jgoblin

jgoblin

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

Asus K55VD Ivy Bridge didn't work here…. (

 

Actual bios is 404, tried to patch bios 411 downloaded from Asus.

 

PMPatch 0.5.13
PowerManagement module at 001A4F08 not patched: Repacked module can't be inserted.
PowerMgmtDxe/PowerManagement2.efi modules not found.
AMI nest modules not found.
Phoenix nest modules not found.
CpuPei module at 005A18D8 not patched: Patch pattern not found.
 

  Bios:         American Megatrends Inc.         K55VD.404         08/20/2012          6144 Ko         Floppy Disk, Hard Disk, CD-ROM         Flash BIOS, Shadow BIOS, Selectable Boot, EDD, BBS, Smart Battery         DMI, ACPI         PCI, USB
 

Attached Files



#899
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,034 posts
  • Gender:Male
  • Location:Brazil

Public service announcement:

 

From now on, posts that have nothing to do with pmpatch will be deleted from this topic immediately, and without warning.



#900
slayer2333

slayer2333

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 175 posts

Hi,

I succesfully applied your patch with my previous Bios version and could fix all OSX10.9 related problems thanks to your efforts.  Now there's a new Bios released, and when i try to patch it i get the log in the file attached.

Can you please let me know what i can conclude from it ? (either succesful or not?)

Thank you in advance.

Attached Files







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


3 user(s) are reading this topic

1 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