Jump to content

[UEFIPatch] UEFI patching utility


CodeRush
1,981 posts in this topic

Recommended Posts

Good news :D  copy bios.exe in some folder, open a command prompt, not neede to be administrator , move on folder where is bios.rom, launch this command N4020A05.EXE /writeromfile

and you will have a bios file :D 

 

the information comes from this youtube link, it's' not my channel 

Link to comment
Share on other sites

If you're scared of bricking your laptop then don't use pmpatch.

Use one of the other methods to get around a locked MSR 0xE2, like nullcpupm or patched AppleIntelCPUPowermanagement.kext.

 

(...)

 

Please refrain from discussing things that are unrelated to pmpatch here. Off topic posts deleted.

Link to comment
Share on other sites

Good news :D  copy bios.exe in some folder, open a command prompt, not neede to be administrator , move on folder where is bios.rom, launch this command N4020A05.EXE /writeromfile

and you will have a bios file :D

 

the information comes from this youtube link, it's' not my channel 

it had generated .rom file.. But still same, PmPatch state: not found..

Link to comment
Share on other sites

ericsia-newbie, this file you have uploaded is not an UEFI BIOS and therefore it can't be patched by any tools.

More to say, Pentium T processors have no 0xE2 MSR at all, so you have to use NullCPUPowerManagement.kext for your OS X to work.


anibalin, FTK 0.9.x will not work on 9-series chipsets, because of FPT 8.x, that is used for flashing.

You can try the version attached, but I think that your BIOS is locked, and must be unlocked by using SCE before using FTK.

Or use AFU /GAN method linked in FAQ.

FTK_9.rar

Link to comment
Share on other sites

ericsia-newbie, this file you have uploaded is not an UEFI BIOS and therefore it can't be patched by any tools.

More to say, Pentium T processors have no 0xE2 MSR at all, so you have to use NullCPUPowerManagement.kext for your OS X to work.

Thank You very much for extra information ^^ but why can i still get kernel panic cause by bios? I have installed hackintosh before and can i use back the old (hackintosh that lower than 10.9.1) NullCPUPowerManagement.kext of the hackintosh to 10.9.1 Mavericks?

 

I need 1 more help, this is UEFI bios but still cannot patched (that is the bios that i back up using software because i can't find where to download the original bios from bios manufacturer):

not original.zip

Link to comment
Share on other sites

yangshun1029, sure it's locked?

00000001800032cc B9E2000000                      mov        ecx, 0xe2                ; 0xE2 to ECX 
00000001800032d1 E8061A0000                      call       0x180004cdc              ; RDMSR inside
00000001800032d6 B9E2000000                      mov        ecx, 0xe2                ; 0xE2 to ECX again
00000001800032db 4889442438                      mov        qword [ss:rsp+0x38], rax ; Store read 0xE2 value to stack variable
00000001800032e0 0FBA7424380F                    btr        dword [ss:rsp+0x38], 0xf ; Reset 0x0F (LOCK) bit in that variable
00000001800032e6 488B542438                      mov        rdx, qword [ss:rsp+0x38] ; New variable value to RDX
00000001800032eb E8DC190000                      call       0x180004ccc              ; WRMSR inside

The code above is the only code in PowerManagement module, that works with LOCK bit of 0xE2 register, and it clears it instead of setting, so the register must remain unlocked here. Maybe it's locked in some module, that executes after PowerManagement, but I don't think so.

Please try this and any newer BIOSes first, they may be factory-unlocked, and you can spare me a bit of time. :)


ericsia-newbie, this is an UEFI image, but it contains only PEI-volume that is used for very early boot stages.

There is nothing to patch in this file, because the whole DXE-volume, where PowerManagement module is located, is absent.

You need to use external SPI programmer to make whole BIOS chip dump, patch in and flash back with the same programmer, it's the only working method I know.

About your 10.9.1 question: you have to use patched kernel or change your notebook to SB/IB/Haswell-based PC.

Link to comment
Share on other sites

ericsia-newbie, this is an UEFI image, but it contains only PEI-volume that is used for very early boot stages.

There is nothing to patch in this file, because the whole DXE-volume, where PowerManagement module is located, is absent.

You need to use external SPI programmer to make whole BIOS chip dump, patch in and flash back with the same programmer, it's the only working method I know.

About your 10.9.1 question: you have to use patched kernel or change your notebook to SB/IB/Haswell-based PC.

CodeRush, I don't have any external SPI programmer.

 

About your 10.9.1 question: you have to use patched kernel or change your notebook to SB/IB/Haswell-based PC.

I don't understand this part, how can i change my laptop to SB/IB/Haswell-based PC?

Link to comment
Share on other sites

Sell this laptop, buy newer one, what could be simplier? :) If it's now an option - use patched kernel.

I would simply use OSX 10.8.5 with NCPM.kext, period. There are no killer-features in OSX 10.9 for me.

Link to comment
Share on other sites

Sell this laptop, buy newer one, what could be simplier? :) If it's now an option - use patched kernel.

I would simply use OSX 10.8.5 with NCPM.kext, period. There are no killer-features in OSX 10.9 for me.

I want to sell this laptop but i don't think there will have anyone want to buy Dell N4020..

 

I would simply use OSX 10.8.5 with NCPM.kext, period. There are no killer-features in OSX 10.9 for me.

whose hackintosh installer have NCPM.kext? (i checked already, Niresh and iatkos didn't have NCPM.kext)<--Niresh Maverick have but i can't load into installer bcoz i get kernel panic.. I can't found any on google, can you get me the download link?

Link to comment
Share on other sites

All of them have NullCPUPowerManagement.kext, I think. I have no experience on using any installers, so I can help you here.

BTW, it's all completelly non-related to PMPatch, so please do not continue. Again, I'm not a specialist in OS X installation in any way, and this forum is full of clever people who know much more then me, you just need to find the apropriate topic and ask such questions there.

  • Like 1
Link to comment
Share on other sites

All of them have NullCPUPowerManagement.kext, I think. I have no experience on using any installers, so I can help you here.

BTW, it's all completelly non-related to PMPatch, so please do not continue. Again, I'm not a specialist in OS X installation in any way, and this forum is full of clever people who know much more then me, you just need to find the apropriate topic and ask such questions there.

ok, i will try to ask at this forum hey don't talk like that.. you are developer and i think you are the most clever because you notice to modify bios in order to let hackintosh work and you have created PmPatch :)

Link to comment
Share on other sites

anibalin, FTK 0.9.x will not work on 9-series chipsets, because of FPT 8.x, that is used for flashing.

You can try the version attached, but I think that your BIOS is locked, and must be unlocked by using SCE before using FTK.

Or use AFU /GAN method linked in FAQ.

Thanks @CodeRsuh. You are a gentleman and scholar. FTK 9 almost worked but presented an error at the end. 

Then I tried AFUWINx64 but kicked me back with: Flash part is not supported. Guess I have to wait a bit more to let this be settled a bit more. Thanks for your time.

Link to comment
Share on other sites

Hi, I went ahead and patched my own BIOS, which patched successfully, and then used FTK to update my BIOS, which I have successfully done before about a year ago, but this time if failed with “Error 280: Failed to disable write protection for the BIOS space!”

 

After doing some research it appears my current BIOS (2203) contains some sort of protection so updating from that is impossible. Could I use the standard BIOS updater to ‘downgrade’ to an earlier BIOS, then use FTK to upgrade to the latest patched?

 

Any other ideas please?

 

I have an Asus P8Z77-V LX BIOS 2203, Core i7-2600K, Radeon 6870, 8GB Ram, OS X 10.9.1

Link to comment
Share on other sites

@CodeRush,

 

Friend, I've got here a Dell XPS14 L421X with a InsydeH20 BIOS, thing is, I can't flash modded BIOS because of Insyde Secure Flash, it tells me "Invalid Firmware File", do you think fptw method works? I mean, backup, patch, rewrite using fptw?
Also, I have another question, can I use your UEFI Tool on a backup made by fptw (using -BIOS to grab only BIOS region) to mod some modules, repack and flash it back using fptw or will it have any problems?

 

Many Thanks for sharing knowledge / awesome tools!

Link to comment
Share on other sites

FelipeZ, try recovery flash with modified image, it may work. I don't know any method to flash modified BIOSes, but there are people who may be familiar with them: SLIC modders from MDL. Ask here for a method, please.

 

speedyrazor, AFU /GAN method from FAQ doesn't work?

Link to comment
Share on other sites

CodeRush, 

 

I have an Asus P9X79WS motherboard, and haven't had any success patching BIOS versions 4404 or 4505. I get:

PMPatch 0.5.14
PowerManagement module at 004B7660 not patched: Patch pattern not found.
PowerMgmtDxe/PowerManagement2.efi modules not found.
AMI nest modules not found.
Phoenix nest modules not found.
CpuPei module at 0079F9E8 not patched: Patch pattern not found.
CpuPei module at 007DF9E8 not patched: Patch pattern not found.

as output, and the output file is never written. 

Do I understand correctly that that means these BIOSes are new and none of the existing patch patterns work?

Thanks,
David

Link to comment
Share on other sites

×
×
  • Create New...