Jump to content
CodeRush

[UEFIPatch] UEFI patching utility

1,988 posts in this topic

Recommended Posts

from linux maybe, tuxuser wrote a piece of code but I don't know if it's applicable for your needs. Ask him.

Also read this interesting piece of text.

 

Thank to you, BlackSheep VS RustyNail, I do have found another way to dump my NVRAM without any problems.

But now, I don't know what to change in there ^^

 

I do have attached my NVRAM, open it with Hex Editor.

I can replace NVRAM, ^^

Hope we can found something related to SMI Lock in there :)

 

But I can't see anything related to it for now :(

ASUS did not do the job half the way :(

nvram.zip

Share this post


Link to post
Share on other sites
Advertisement

Laptop now bricked because of NVRAM -_-"

Fu$$$$ ASUS!

I never thought it could have an impact like this one ..

 

So! User with 2012 - Today, laptop mobo ASUS ! Don't try to touch NVRAM.

Share this post


Link to post
Share on other sites

@CodeRush

 

Great job with the tool.

 

I have an Asus Q301LA laptop which is the same as the S301LA with H87 chipset.  I downloaded the latest bios from the ASUS website and followed the instructions you gave in http://www.insanelymac.com/forum/topic/285444-uefipatch-uefi-patching-utility/page-57?do=findComment&comment=1984362

 

and have created a new rom file.

Is there any way to check if it was done correctly?  Attached is the patched rom

S301LAAS.zip

Share this post


Link to post
Share on other sites

Hello. I'm trying to disable BIOS and NVRAM lock on my Z77 motherboard. I used AMIBCP to disable SMI and BIOS lock in image file, but program produced CAP file with different firs bits, than original. UEFITool shows that I'm opening not capsule file, but rather BIOS file. I'm attaching both files here. Can someone please look at them?

 

PS. I have Asus Maximus V Extreme motherboard with 1903 BIOS. I can only flash with Flashback because of lock.

MAXIMUS-V-EXTREME-ASUS-1903.rar

MAXIMUS-V-EXTREME-ASUS-1903-SMI-unlock.rar

Share this post


Link to post
Share on other sites

@ikkoku, there is no way to check it without trying and I don't know any reliable method to flash modified BIOS on notebooks, so please just use Clover's patching engine, if you don't have a SPI flasher to use dump/patch/reflash approach.

 

@Net-burst, why do you need to disable lock on your platform? NVRAM works fine with recent Clover versions, and removing those locks just make your PC more vulnerable. Newer versions of AMIBCP remove a signature from CAP file, but you can add just replace this modified header with the original one to make the modified image compatible with USB BIOS Flashback.

Share this post


Link to post
Share on other sites

@CodeRush, I'm losing sleep and half of USB ports with it, unfortunately. One USB2 hub, to be more precise. It somehow messes up my IRQ allocation. At least I think so. Furthermore, I'm still getting rollback to old NVRAM mode in bootlog. Looks like ROG series have something different about them. How much bytes is header do I need to replace? 11? As I understand, I need to copy set number of bytes starting from first one into modified file. Am I correct? Nothing else?

 

PS. Looking at file differences, it looks like several different modules were either replaced or moved. For example, after PMPatch, I get few different bits. However, after AMIBCP I'm getting a lot of chunks.

Share this post


Link to post
Share on other sites

Capsule header is 2kb of size for your BIOS, you need to replace it as a whole. I don't know if that NVRAM patch could still work on newer platforms, but you can try anyway.

P.S. make a BIOS dump with FPT -bios -d backup.bin in case of losing individual board data during your testing, you can always restore it from that file later, if anything goes wrong.

Share this post


Link to post
Share on other sites

@CodeRush, thanks. Will check it later tonight. Replaced 2kb, checked file in UEFITool. Looks like all is OK. Fortunately, I have dual bios, so I think I can revert even if something will go FUBAR :)

 

PS. Z77 is old platform, so I think all will work. At least I hope so.

Share this post


Link to post
Share on other sites

@ikkoku, there is no way to check it without trying and I don't know any reliable method to flash modified BIOS on notebooks, so please just use Clover's patching engine, if you don't have a SPI flasher to use dump/patch/reflash approach.

 

@Net-burst, why do you need to disable lock on your platform? NVRAM works fine with recent Clover versions, and removing those locks just make your PC more vulnerable. Newer versions of AMIBCP remove a signature from CAP file, but you can add just replace this modified header with the original one to make the modified image compatible with USB BIOS Flashback.

 

I tried to run fpt from your ftk for win, but it says it's not compatible.  

For some reason I can't boot usb to dos either.

Share this post


Link to post
Share on other sites

 

hi .. CodeRush. 

MSI do not need .. 
ASUS only PB875-M LX Plus and P8Z77-M. 
The bios .cab 
of PMPatch 
When updating the bios ... ASUS EZ Flash 2 utility. 
Security verification failed. 
 
How to patch 2 bios.? 
Thank you.

 

Any Help ?? ..

Share this post


Link to post
Share on other sites

Ok, my BIOS flashed ok. But now I'm facing another problem, which is out of scope of this thread. I replaced WiFi combo-board to new one and my ASM1061 SATA stopped working. Only in OSX. Talk about esoteric problems :(

Share this post


Link to post
Share on other sites

Hi all; I think this is where I need to post this.

 

I have been using osX for a while now, 10.7 to 10.10, and my build consists of a Asus Maximus V Gene mobo (Z77), with 3770K CPU and 32GB of RAM, SSD's. 

 

I moved to clover a while back, but never could never get it to boot UEFI. After numerous attempts, I saw an error which sometimes appeared 'VGA card not supported by UEFI' or something similar. 

 

I am using an older modded bios, so I am led to believe I probably need a new modded bios to allow this UEFI to work properly for booting clover from the ESP of the Yosemite drive.

 

Do I patch it myself with these tools?

 

Sorry for the noobish type post, but I am not one for messing with bioses (everything else is fine!).

 

Thanks

Share this post


Link to post
Share on other sites

@medallo, Z77-M can be flashed using USB BIOS Flashback. P8B75 - using AFU /GAN method linked in old FAQ in the first page.

 

@shokka9, your GPU has no UEFI firmware, that is why you can't start your system with CSM mode off, but I doubt that it's required for Clover to be off. Anyway, almost any BIOS mod possible is unrelated to this problem.

Share this post


Link to post
Share on other sites

@shokka9, your GPU has no UEFI firmware, that is why you can't start your system with CSM mode off, but I doubt that it's required for Clover to be off. Anyway, almost any BIOS mod possible is unrelated to this problem.

 

 

 

 

OK; that's a new one on me. I'm going to buy a new GPU soon (GTX 760).

 

I don't know what to do then..... thanks for the reply though.

Share this post


Link to post
Share on other sites

Im a totally newbie  

Im trying to figure out how to use uefitools to patch my z87m-g43 broad. I downloaded the latest tools. I downloaded the latest bios version for my broad. its named E7823IMS.280.

Im stuck right there:(

 

46QQlsd.jpg

Share this post


Link to post
Share on other sites

Grab your BIOS file and drop it onto UEFIPatch binary, if .patched file is generated - some patches were applied.

On this screenshot you can clearly see "Usage: UEFIPatch image_file", so the only parameter you need is the path to tour BIOS file. Once, not twice or more.

Share this post


Link to post
Share on other sites

Hi friends, i'm starting to play with synology, ( a nas appliance ) based on X86 hardware, i'v discovered that the firmware it' sum of bios and operating system but bios it's a normal uefi bios, so, i'm start to think, could be possible discover specific modules and add those into normal uefi bios? 

I think yes, but i dont have needed skills to start investigation.

Could someone suggest me how can start the investigation? 

 

Many thanks and sorry for my bad English :-) 

Share this post


Link to post
Share on other sites

@medallo, Z77-M can be flashed using USB BIOS Flashback. P8B75 - using AFU /GAN method linked in old FAQ in the first page.

 

Thank you ..
I can not find the AFU / GAN route ?.
No video tutorial.?. how to patch the bios p8b75 from MAC OSX
Please.

Share this post


Link to post
Share on other sites

@amgclk65, just as simple as that:

post-1111314-0-83435600-1415774559.png

 

@Aigors, I doubt there are any specific modules there, because all NAS work is done by heavily-modified Linux, and the point of UEFI is just to boot it. You can use UEFITool for your investigations.

 

@medallo, you can't flash anything from OSX on boards newer then Z68 ones, and sorry - no video tutorials here. If you can't find a way to flash your modified BIOS, maybe you just don't need it at all? Use Clover with KernelPatch instead, it's much more safe and can't brick your PC.

Share this post


Link to post
Share on other sites

hi

i want to patch the updated bios 2303 for my motherboard asus z87-plus actually in 1707 pmpatched and running osx yosemite.

i cant find uefitools ??

links are broken.

thanks.

Share this post


Link to post
Share on other sites

 

@medallo, you can't flash anything from OSX on boards newer then Z68 ones, and sorry - no video tutorials here. If you can't find a way to flash your modified BIOS, maybe you just don't need it at all? Use Clover with KernelPatch instead, it's much more safe and can't brick your PC.

 ok. I do with windows. I can not find the AFU / GAN route and download links?  I will try.

Share this post


Link to post
Share on other sites

Hi Coderush, this is for you inform that the last version of uefitool doesn't  work on osx, at first launch i get a trap, if you want i can send you some report if you can explain me how to 

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.

  • Similar Content

    • By hst51
      System is Mojave 1.341. Hardware is GA-Z97-HD3/i3/15 gb DDR3 2133/GTX 660
       
      When I set the correct time in bios it is changed to an incorrect value upon reboot. Time remains correct in Mojave desktop. Both bios and desktop are configured to use 24 hr. time instead of AM/PM. I changed the CMOS battery and it made no difference. No other bios parameters are affected, just the time. Latest bios is installed I believe.
       
      In researching this the only hits that turned up had to do with dual boot Mac OS/Windows or dual boot Linux/Windows. This is not a dual boot machine.
       
      Any idea as to why this is happening?
       
      Thanks
    • By Entropi
      PREFACE
       
      I’ve used a 2015 15” MBP as my main system since it was released. I do photo and video editing in the Adobe suite regularly and have been eyeballing the performance of the latest MBP models. I’m on the road all the time, so a laptop is basically my only option.

      After the whole mess with the CPU VRM hardware flaws being made apparent by the poor power management profile shipped at release with the 2018 i9 MBP I’ve been more weary of the hardware design of MacBooks. That’s before I account for losing all USB-A ports, losing the SD card slot (‽), losing reliability and tactility of the keyboard, and losing the ESC key to the touchbar; if I compare the 2018 MBP to my current 2015.
       
      Given these flaws, I have been researching the performance situation comparing the 2018 MBP to the X1 Extreme, XPS 15 9570, and the Razer Blade 15 2018.  These are essentially the only options for a road warrior that needs a high quality panel and the best CPU and GPU that can be crammed into around 4lbs (1.8kg).  
      I used to use a ThinkPad T42p and loved it when it was new. So fast forward to now and the release of the ThinkPad X1 Extreme. It’s a truly tempting machine for an artist, given that the 4K UHD version offers just about the best color gamut available on any laptop panel. I get back the USB-A ports, get one of the fastest SD slots on any laptop, and get one of the best laptop keyboards on the market. That’s before even considering power management and modularity. I’ve been dabbling in learning Machine Learning, so a system with an nVidia GPU (CUDA) is a bonus on that front as well.
       
      For me the best color reproduction on a high resolution display panel was most important. The X1 Extreme has that, so I’ve ordered one. I got it with the fastest i7, base SSD and memory, and have separately purchased two 1TB Samsung 970 Pro M.2 SSDs and 2x16GB DDR4-3200MHz memory (just in case it’s possible to overclock the memory on the X1 Extreme). I got the system for $2,100 from Lenovo USA, and the SSDs ($390 x 2) and memory ($330) from Amazon US for a total of ~$3200.  These are easy to install on the X1 Extreme as the bottom cover is easily removed to reveal the M.2 and SODIMM slots. To compare, the 2018 MBP with the fastest i7, 32GB memory, and 2TB SSD is $4400. So I can save $1200 and get a faster system (on all counts) with a better panel and better connectivity by going with the X1 Extreme.
       
      The only thing I’m compromising is losing the big beautiful haptic touchpad and a bit more refined hardware aesthetic. Though, to be honest, I’ve kept a big thick dual-layer Tech21 case on my 2015 MBP. So I’ll actually be going down in volume and weight by moving to the more rugged ThinkPad. I think I can live without the touchpad.

      Oh, by the way, the 4K UHD panel of the X1 Extreme has touch and decent pen support! Another bonus vs. the MacBook. Though I keep a 12.9” iPad Pro around for my pen work and can’t imagine using a laptop similarly. It’s still nice to have a laptop screen actually respond when I go poke at it accidentally after switching back and forth between laptop and iPad.
       
       
      TOPIC
       
       
      So I want macOS with proper discrete GPU support on a 2018 MacBook class laptop.  That’s not possible on a pure Hackintosh as things stand, but via a macOS virtual machine it looks like it could work with what looks like some relatively bleeding edge support of PCIe UEFI passthrough.

      People have been doing this on Linux hosts to Windows VMs with some great success recently: https://gist.github.com/Misairu-G/616f7b2756c488148b7309addc940b28
      And it looks like that’s coming for macOS VMs as well: https://github.com/kholia/OSX-KVM/blob/a4fb2fd5aae871bdbc371b0cd31d4d8129d0f9ac/UEFI/README.md

      The X1 Extreme, XPS 15 9570, and Razer Blade 15 (2018) are essentially direct competition to the 2018 15” MBP. I would really like to see these three systems get some nicely fleshed out guides for getting maxed out compatibility and performance in macOS running in a VM for these systems. When I get my X1 Extreme I’ll start working on it for that one. I will post updates here. I hope to inspire others with the other two systems (or looking to get them) to do similarly.
       
       
      15” MACBOOK CLASS LAPTOP COMPARISON
       
      I chose the X1 Extreme largely because of the excellent 4K UHD HDR panel (100% of 2D AdobeRGB and 85.5% of 3D AdobeRGB, basically unparalleled), good mix of thermal performance and noise management, and overall ruggedness and connectivity.  If I were a gamer I would go with the Razer 15, but the fast low-gamut 1080p panel just doesn’t work for my purposes. If I were most concerned with aesthetics or battery life (97Wh battery for it vs 80Wh for X1E) I would go with the XPS 15.
       
      I am aware that the second 2018 refresh of the MBP is coming ~Nov 14, with the new AMD Radeon Pro Vega 16 and Vega 20 GPUs, and it looks like the latter might offer up to a 60% performance boost over the Radeon 560X. Maybe it has even given Apple enough time to update the CPU VRM along the way. This could make the performance picture more comparable for the 1050 Ti based X1E and XPS 15. I believe the 1070 Ti based Razer 15 will still win out though.
       
      Still, if you compare the fan and heat pipe solution put into the X1E vs the MBP the MBP just looks wimpy in comparison. MBP has smaller fans, less venting, and only one (smaller, thinner) heatpipe. It’s also more difficult to access if you want to put a better thermal paste or liquid metal on it.  Put simply, the thermal hardware on the MBP is basically the same design for the last 3 years and it can’t keep up with the hex-core processors. So even with the Volta 20 GPU making the MBP competitive again on the graphics end, the MBP will still be falling short on the CPU performance plane. This is before we even look at tuning options.
       
      Getting into tuning, it’s possible to improve thermal performance of all the laptops in this class by around 15-20% by using either a best in class thermal paste like Thermal Grizzly Kryonaut or (if you’re willing to deal with all the caveats that come with using a conductive fluid that permeates other metals) a liquid metal interface like Thermal Grizzly Conductonaut. The liquid metal gives you the best possible conducting interface, and the paste is more forgiving and easier to apply.  Further, it is often possible to stably undervolt the Coffee Lake i7/i9 available in this class of systems to further improve performance, thermals, and power consumption (generally another 10+%).
       
      Apple has deliberately made it impossible to undervolt the CPU on the MBP! This has been true since the first Skylake CPUs a few years ago. You used to be able to use a program called Volta to undervolt your CPU on macOS. This is a huge peeve for me and, combined with the general power and thermal underdevelopment, is one of the main reasons I want to get a competitor’s hardware. As a primer, the default voltage of modern CPUs is typically set conservatively high for the sake of production efficiency.  With the current generation Coffee Lake CPUs it is commonly possible to set the CPU voltage about 100 to 150mv lower safely.  This allows the CPU to run cooler and consume less power. For laptops which are thermally limited (basically everything in this new 6-core 14nm era), this also translates into better performance. It’s a tweak that actually improves reliability of your CPU. So it’s just stupid that Apple has deliberately made this impossible. Shame on them, someone else take my money.
       
      Wrapping up, my biggest quibbles with the X1E (before actually getting it) are that the 4K panel’s responsiveness is about the slowest I’ve seen on a modern panel, and it’s just really not suitable for gaming. There’s also what I consider an annoyingly high level of backlight corner bleed that I’m sure will be distracting during blackboxed video viewing. Hopefully these two issues will be fixed in next year’s iteration.
       
       
      FOOTNOTES
       
      MacBook i9 Thermal / VRM (below-baseline throttling/thrashing) Issue:
      https://www.macrumors.com/2018/07/24/throttling-i9-macbook-pro-power-delivery-chip/
      https://www.kitguru.net/lifestyle/mobile/apple/matthew-wilson/macbook-pro-2018-throttling-fix/
      This was mitigated with software that works around the poor hardware design, but the system would still ultimately perform better if the CPU VRM were redesigned. Non Mac systems with the similar CPUs don’t have this issue and get better sustained performance.
       
      MacBook Nov 2018 Refresh with Radeon Vega 16 and Vega 20:
      https://www.fool.com/investing/2018/11/05/apples-macbook-pro-gets-the-amd-vega-treatment.aspx
       
      MacBook Class Laptop Reviews:
      Lenovo ThinkPad X1 Extreme, 4K: https://www.notebookcheck.net/Lenovo-ThinkPad-X1-Extreme-i7-4K-HDR-GTX-1050-Ti-Max-Q-Laptop-Review.335608.0.html
      https://www.ultrabookreview.com/23223-lenovo-x1-extreme-review/
      https://youtu.be/vOPeXe1ZE74
      https://youtu.be/JgWyGKf_WlM
      Dell XPS 15 9570, 4K: https://www.notebookcheck.net/Dell-XPS-15-9570-i7-UHD-GTX-1050-Ti-Max-Q-Laptop-Review.332758.0.html
      Razer Blade 15 2018, 1070 Ti FHD 144Hz: https://www.notebookcheck.net/Razer-Blade-15-i7-8750H-GTX-1070-Max-Q-FHD-Laptop-Review.305426.0.html
       
      Best Undervolting Guide (keywords: ThrottleStop, Intel XTU):
      https://www.ultrabookreview.com/10167-laptop-undervolting-overcloking/
       
      Undervolting Coffee Lake i7/i9 (2018 MacBook class CPU):
      https://youtu.be/nobnPDtMs-E
      https://linustechtips.com/main/topic/923876-any-information-about-how-coffee-lake-h-series-undervolts/
       
      Replacing Thermal Paste with Liquid Metal on 2018 MBP:
      https://youtu.be/iw4gqfrBN4c ... and follow up: https://youtu.be/JNoZNzOQpVw
       
      Replacing Thermal Paste with Kryonaut on X1E:
      https://www.reddit.com/r/thinkpad/comments/9fyww7/x1_extreme_repaste_undervolt_tdp_limiter_removed/
       
      Replacing Thermal Paste and Undervolting X1 Carbon:
      https://youtu.be/FXR5-HwIre8
       
      Replacing Thermal Paste and Undervolting XPS 15 9570:
      https://youtu.be/ZnFdNGUETSI
       
      Possibly over-conservative BIOS update for thermal throttling on X1E:
      https://www.reddit.com/r/thinkpad/comments/9oqax2/xtu_results_with_x1_extreme_with_liquid_metal/
       
      High Sierra (10.13) drivers only for now:
      https://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-11032018/
      nVidia “waiting for Apple’s approval” for Mojave (10.14) macOS driver web release:
      https://www.macrumors.com/2018/11/01/nvidia-comment-on-macos-mojave-drivers/

      Breadcrumb Links (other things I found researching this):
      https://forums.servethehome.com/index.php?threads/esxi-6-5-osx-with-gpu-passthrough.12680/
      https://arstechnica.com/civis/viewtopic.php?f=19&t=1432071
       
      https://www.notebookcheck.net/The-Best-Notebook-Displays-As-Reviewed-By-Notebookcheck.120541.0.html
    • By shmn
      Hi, I have been trying to follow @RehabMan 's guide to disable my dGPU ( https://www.tonymacx86.com/threads/guide-disabling-discrete-graphics-in-dual-gpu-laptops.163772/ ) for two days now, but haven't found a way to disable my 1080 Ti on my desktop Clover hack.

      I have a dual-boot (Win/Mac) machine on a Z370 Aorus 7. Since there's no nvidia drivers for Mojave atm, I want to stick with the iGPU under Mac, but still use the 1080 Ti under Win.

      The hack boots just fine when I remove the 1080 Ti, if it's plugged in via PCIe I get a kernel panic.
      Please find attached my ACPI folder, my clover config.plist and the kernel panic details.

      Might there even be a less hacky way than patching these ACPI files? I appreciate any kind of support! Thanks!
      ACPI.zip
      config.plist

      systemReport.txt
    • By amin321
      hello everyones 
      I think i have a problem with my power management i feels like temperature is coming so hot and so on 
      lenovo ideapad 500 
      i7 6500U 2.50 gz
      any help please 
      Send me macbook-pro.zip
    • By Mayday Alaska
      Hi everybody.
      I'm trying to run MacOS High Sierra on tis configuration:
       
      i5-6600
      ASRock h170 Fatal1ty Performance
      RX 480 8gb
       
      The problem is that I'm not familiar with ASRock motherboards and their BIOS. Can anyone help me setting it up?
       
      Thanks to everyone who will help.
×