Skip to content

BluePurplePro/Disable-CFG-Lock-Dell-Machines

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 

Repository files navigation

Disable-CFG-Lock-Dell-Machines

This repository will guide you how to disable CFG Lock on Dell Machines (mostly Sandy Bridge & Ivy Bridge). Useful for those who can't find CFG Lock or MSR Lock Unicode text in their extracted BIOS file that Fixing CFG Lock from Dortania's OpenCore Post Install Guide and dreamwhite's bios extraction guide covered.

Preparation

Important

It is crutial to choose the right Intel ME System Tools for your motherboard. You can check what kind of chipset/southbridge using CPU-Z

CPU-Z

For example, Intel ME System Tools v8 r3 (7-Series systems which come with ME firmware v8) is the right version for my motherboard since the southbridge is QM77

  • Windows operating system-duh!
  • Turn off Hide extensions for known file types on File Explorer Options ~> View

Hide extensions for known file types

I. Dump your BIOS

Dump your BIOS
  • Extract Intel ME System Tools (Assuming all downloaded files are in %userprofile%\Downloads)
  • Go to %userprofile%\Downloads\Intel ME System Tools\Flash Programming Tool\Windows64 and create a new text document

Create new text document

  • Edit the new text document, type/copy these command line and save it.
cd /d %~dp0
fptw64.exe -bios -d backup.fd
  • Rename New Text Document.txt to backupbios.bat. Run backupbios.bat as Administrator to create backup.fd file

backupbios bat

II. Patch the BIOS file

Patch the BIOS file
  • Extract UEFIPatch
  • Copy backup.fd file from section I to %userprofile%\Downloads (same folder with UEFIPatch)
  • Open Command Promt and type cd %userprofile%\Downloads then press Enter
  • Type UEFIPatch.exe backup.fd then press Enter to patch the backup.fd file

UEFIPatch

  • UEFIPatch will generate backup.fd.patched file. Rename backup.fd.patched to flash.fd
  • Copy the flash.fd file to %userprofile%\Downloads\Intel ME System Tools\Flash Programming Tool\Windows64

Copy flash fd to userprofile_downloads_intel me system tools

III. Unlock the BIOS

Unlock the BIOS
  • Extract UEFITool
  • Open backup.fd file using UEFITool.exe and find BIOS Lock in the Text tab ~> Press Enter

UEFITool BIOS Lock

  • Select what the search returned. Right click and select Extract as is...

Right click Extract as is

  • Name the .sct file as BIOSLock and save.

Save as BIOS Lock

  • Extract IFRExtract, then open Command Prompt and type ifrextractor.exe BIOSLock.sct

Extract the BIOSLock

  • Open BIOSLock.sct.0.0.en-US.uefi.ifr.txt file generated from IFRExtract and find BIOS Lock. Check for VarOffset, VarStoreInfo or Varname value 0xYY and write it down a note or something (in my case it is 0x40)

BIOS Lock search

  • Boot from modGRUBShell.efi:
    • Through a UEFI shell (navigate the FS with cd and ls basic UNIX navigation commands). Find the EFI partition where the modGRUBShell.efi file is located
    • Or through OpenCore Bootloader (by adding it to config.plist under Misc/Tools context)

modGRUBShell efi

  • Type setup_var 0xYY (YY corressponds to the VarOffset, VarStoreInfo or Varname you found earlier) and hit Enter. The value usually returns 0x01 (which means BIOS Lock is enabled)

Type setup_var 0xYY

  • Type setup_var 0xYY 0x00 and press Enter to unlock the BIOS

Type setup_var 0xYY 0x00

  • After that, type exit and reboot back to Windows

IV. Disable CFG Lock

Disable CFG Lock
  • Go to %userprofile%\Downloads\Intel ME System Tools\Flash Programming Tool\Windows64 and create a new text document
  • Edit the new text document, type/copy these command line and save it.
cd /d %~dp0
fptw64.exe -bios -f flash.fd

flashbios bat

  • Rename New Text Document.txt to flashbiot.bat. Run flashbios.bat as Administrator

And now we wait

  • The CFG Lock should be disabled after the Command Prompt finished patching. Checking via ControlMsrE2.efi should provide:

This firmware has UNLOCKED MSR 0xE2 register!

ControlMsrE2

This firmware has UNLOCKED MSR 0xE2

  • Which means CFG Lock is disabled. Now MacOS should boot without enabling AppleCpuPmCfgLock or AppleXcpmCfgLock in Kernel -> Quirks

Credit

About

Disable CFG Lock on Dell Machines

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published