1 post in this topic
Recently Browsing 0 members
No registered users viewing this page.
What is CFG Lock and MSR 0xE2?
CFG Lock is a BIOS setting that allows writing to a specific register, in this case MSR E2 (MSR = Model Specific Register). An MSR consists of one or more registers in blocks of instructions used to do certain tasks on a CPU. MTRs are also used to control CPU's access to memory ranges. Commands capable of reading and writing to MSR work with elevated privileges (the operating system, primarily).
Many motherboards come from factory with MSR E2 region locked (read but not write) and quite a few of them even hide this option in BIOS user interface. In those that do show the option to block or unblock this variable, it is usually called CFG Lock. CFG Lock is a bit with 2 values, 0x1 or 0x0. When it is 0x1, macOS cannot write into this region and kernel patches are required.
macOS wants to write this registry, both the Kernel and AppleIntelPowerManagement. It defines the C-states of the CPU, which is why it is essential for macOS. Without the ability to write to MSR E2, all or most of the CPU power management is lost and the system does not boot.
In Clover 2 patches have been used: KernelPM (for AppleIntelPowerManagement.kext) and KernelXCPM (for the kernel). In OpenCore 2 others have been used: AppleCpuPmCfgLock (for AppleIntelPowerManagement.kext) and AppleXcpmCfgLock (for the kernel). These patches fix the problem but the registry is still read-only. To ensure native CPU power management, CFG Lock bit must be set to 0x0.
To achieve this, the firmware must be modified to support writing to MSR E2. This method is preferred over Clover and OC patches, it generates greater system stability and the CPU power management more closely resembles that of a real Mac. The methods that are usually proposed for this task are too complex for most users who do not have a high level of knowledge, requiring specialized tools and even modified Grub.
Below I comment on an alternative method that is much simpler and that, at least in my case, seems to have been successful. Like any of the methods that modify this bit, it has the risk of not working or even damaging the BIOS, so if you try it it is under your entire responsibility.
User @Brumbaer has a tool called CFGLock.efi (see post). It is an EFI application, it has to be installed in OC Tools folder (Misc - Tools in config.plist) and in this way it is available in the OC menu next to Reset NVRAM. It should be accompanied by another tool included in the OC package called VerifyMsrE2.efi that reports current status of CFG Lock (locked / unlocked).
When CFGLock.efi runs, it displays information (CFG variable found, varstore in which it resides, current reading and requests user intervention to make the change from 0x1 to 0x0 or vice versa). Then you have to restart. With VerifyMsrE2.efi we can check if the change has been successful.
Both EFI applications can be run by selecting them directly in the OC menu but it is also possible, by installing OpenShell.efi tool, to run this shell and running them from there. Information for handling OpenShell.efi is available in OC and elsewhere.
I have tried CFGLock.efi and apparently it has worked well.
macOS boots up and works fine with the OC patches AppleCpuPmCfgLock and AppleXcpmCfgLock disabled.
VerifyMsrE2.efi reports "This firmware has UNLOCKED MSR 0XE2 register!".
Hackintool in Utilities - Get AppleIntelInfo displays this text: AppleIntelInfo.kext v3.0 Copyright © 2012-2017 Pike R. Alpha. All rights reserved. IA32_MISC_ENABLES................(0x1A0) : 0x850089 ------------------------------------------ - CFG Lock............................. : 0 (MSR not locked) Note: Hackintool current version (3.4.6) doesn't show text after Get AppleIntelInfo in Big Sur beta 10. It's got from Catalina.
Intel Power Gadget - Frequency graph shows variations between maximum and minimum suggestive of CPUPM.
Help! Tried to Duel Boot Hackintosh and can't get back to Windows because I messed up the boot drives with Clover!By jrbros1
So I have my Windows computer, used a USB with Clover setup to boot into Mojave OS that I installed on the SD card in the computer. The world was a great place and all was well!
Then I did the steps to partition the pc system to now include the additional drive that I would put Clover on. Here's where I messed up: Instead of directly copying over the full Clover folder into the EFI folder of the new drive (which just had the Boot & Microsoft folders in it), I replaced the EFI's boot folder with Clover's boot folder. So the EFI folder now contains a Microsoft folder, a Clover folder, and Clover's Boot folder only.
Now, I only can access the Clover boot up menu, the macOS, but no Windows at all. Even if I go into BIOS and pick Windows Boot Manager or Partition 1 for the start up, I get a black screen for both. I can still access the macOS as well as Shell, but I don't know what that does other than displaying all of the yellow text fly by..
Is there a kind soul out there that can help me get Windows back to boot? Keep in mind I'm a bit of a newbie here so laying out the common-sense steps would be helpful!
Thank you in advance!
Hello everyone, i just want to ask something. why is it that my radeon hd 7770 graphic card was detected as "Latte" gpu instead of verde when using radeon_bios_decode? is the card actually a Latte graphic card but someone flashed it so they can sold to me as radeon hd 7770? or is it actually a real radeon hd 7770 but the tool falsely detected it as latte cpu?
If you need DSDT edits... -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app Installation --Create a bootable copy of El Capitan / Sierra / High Sierra / Mojave https://github.com/chris1111/Create-Install-Media/releases --Install Clover in USB stick https://github.com/CloverHackyColor/CloverBootloader/releases --Replace with my Clover folder https://www.olarila.com/topic/5676-clover-folder-for-all-chipsets/ --Install EL Capitan / Sierra / High Sierra and boot into system! Post Installation --Install Clover and replace with my folder https://www.olarila.com/topic/5676-clover-folder-for-all-chipsets/ --Reboot and activate video! Bingo! Now you need a fine tune! DSDT Time! My DSDT GA P35-DS3 DSDT.MaLd0n.zip Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -LPC -HDEF -RTC -EHCI -UHCI -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -EC -PNLF --Native Power Management
Use Clover, check Generate P and C States
Install .app, select the required permission and reboot. Work in F1 / F2 keys!
*in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
Device HDEF + AppleAlc + Lilu
--install Lan driver by Mieze
-Atheros http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/ -Intel http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/ -Realtek http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/ --Links -FakeSMC https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek -Audio https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/293863-applehda-patch-requests/ -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders! Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others! We're all here to have fun and learn from each other! ENJOY!
I'm having a problem with BIOS. I hope someone can help me to fix it.
I was able to boot to Wins or Catalina with no issues with OC. When I tried to go to BIOS i got a black screen with white cursor, nothing else (you can see it on the video). I can move cursor until i click right/left button, it freeze.
After reboot i would boot to Wins/Catalina, no issue. My first guess was to reset CMOS by removing a battery. So i did it. And that was bad idea. After that i wasn't able to boot to any OS. I get that black screen because CMOS got reset. Probably there should be a screen with option to set time, date, etc, before you boot to OS. But, I dont see it. I tried to reset CMOS several times, removing the battery ot using a jumper. Nothing helped. I get the same result. I've noticed that resolution is much lower on my 27" screen (2K). Cursor can move to half of the screen, horizontally and vertically. So I started troubleshoot with other components.
1. I tried every RAM stick on each slot, same result. RAM works on another PC.
2. I tried to remove GPU and use iGPU (HDMI and DVI), same result.
3. I tried DP, HDMI, VGA with GPU, same result. (GPU works fine on another PC)
4. I tried to unplug everything, USB 2, USB 3, SSD's, same result.
The only thing i haven't tried yet is another power supply, just because i dont have one to test it.
Not sure what was the trigger because so far i was able to get to BIOS with no issue. The only thing that it comes to my mind is that a week ago I came across a software, Gigabyte EasyTune and I played with it. Ususallu, if I want to OC my CPU I do it from BIOS, never used any software. EasyTune did work and OC'ed my CPU and i rebooted my PC many times since then but i never tried to access BIOS until yesterday.
I hope you someone can give some tips of how to fix it. Not sure if BIOS got corrupted because of the software or not.