Contribute
Register

Dell OptiPlex 3060 i5-8500 Help with EFI

Joined
Apr 29, 2022
Messages
9
Motherboard
Dell OptiPlex 3060 SFF
CPU
i5-8500K
Graphics
HD 630
Mac
  1. Mac mini
Hi, I'm trying to install macOS Ventura on my OptiPlex but I got stuck during boot.
Please can someone help me?
 

Attachments

  • EFI.zip
    4 MB · Views: 137
  • IMG_4794.jpg
    IMG_4794.jpg
    2.7 MB · Views: 141
  • IMG_4795.jpg
    IMG_4795.jpg
    1.3 MB · Views: 149
Done, thanks
 
You need to look at the OpenCore Troubleshooting guides for fixing CFG Lock and setting DVMT pre-allocated. As a lot of Dell OptiPlex systems don't have these two options available in the bios. Which results in kernel panics when attempting to install macOS.

Here is a link to the CFG Lock Troubleshooting section: # Fixing CFG Lock

This Dell Specific guide for manually Turning Off CFG Lock is linked within the guide - https://github.com/dreamwhite/bios-extraction-guide/tree/master/Dell

I followed this Dell specific guide when hacking a pair of Dell OptiPlex 3050 systems (Kaby Lake) and it worked a treat.

This Bios Extraction guide is essential for any Dell OptiPlex system.

README.md - Unlock CFG Lock

Regarding setting DMVT to 128MB I use a patch that is added to the tools section of the config.plist. This is similar to the one I use for unlocking CFG. These two patches along with adding 'setup_var.efi' and 'ControlMsrE2.efi' to the /EFI/OC/Tools sub-folder allow me to Hack these two 3050 systems to run Ventura.

Dell OptiPlex - Tools section of config-plist.png Tools Section of my Dell OptiPlex's config.plist

Without these patches and tools you will keep seeing early Kernel Panics on your system.

While the DVMT patch above will work with you system. The CFG Unlock patch won't, as your system bios will be using a different value to represent the CFG Lock feature. Once you find this value, using the Manual Unlock CFG Lock process linked above, you can simply replace the '0x4ED' section in the 'Arguments' line in the CFG Unlock patch for your system's value.

Before booting in to macOS you need to do the following, once you have the two patches etc. included in your config.plist.
  1. Boot to the OC boot screen/picker list.
  2. Press Spacebar to unhide the drivers and tools added to your config.plist.
  3. Select ControlMsrE2.efi and check the results, I expect it to say CFG is Locked.
  4. Press Return/Enter to return to the OC boot screen/picker list.
  5. Select the setup-var - CFGUnlock option, press Return/Enter.
  6. Select the setup-var - DVMT Pre-Allocated 128MB option, press Return/Enter
  7. The two patches will be applied to your Bios after you reboot the system. Do this before trying to boot in to macOS.
When you reboot to the OC boot screen/Picker List check to see what the ControlMsrE2.efi tool shows. This should say that CFG is unlocked, as shown in the screenshot below.

Screenshot 2023-06-11 at 18.20.58.png CFG UNLOCKED

Seeing that you are ready to boot in to the macOS Installer.
  1. The two patches are ClearNvramEntry.efi resilient, so don't need to be re-applied after a NVRAM reset.
  2. They are not Bios update resilient, and will need to be re-applied after a Bios update, before you boot macOS.
I have used these patches to re-apply these options after updating the bios on both systems recently, so both can run macOS Ventura.

I have attached a copy of the latest EFI I am using for one of my Dell OptiPlex 3050 SFF Kaby Lake systems. It should be similar to what you need to create. Use it as a base for setting up your Dell OptiPlex 3060 Hack.

I have removed the SMBIOS data I use, but left everything else as I use it. This EFI will boot macOS Catalina through to Ventura with no issues.

I am sure your USBPorts.kext will be different to mine, so you will probably be best served installing Catalina and then updating to Ventura, as you can easily undertake the USB ports discovery in Catalina, not so Ventura.
 

Attachments

  • EFI-092 Dell Optiplex 3050 SFF.zip
    6.9 MB · Views: 278
The right addresses & values for the hidden BIOS parameters for a Dell 3060 SFF with i5-8500 are(using modgrubshell.efi):

CFG Lock (disable)
setup_var 0x5BE 0x0

DVMT Pre-Allocated (64 MB)
setup_var 0x8DC 0x2

DVMT Total Gfx Mem (max)
setup_var 0x8DD 0x3

XHCI Hand-off (enabled)
setup_var 0x1B 0x1

XHCI Legacy Support
setup_var 0x1A 0x1

EHCI Hand-off (enabled)
setup_var 0x2 0x1

So, different from a Dell 3050.

I now have a working 3060 with OC/Ventura 13.6.4 installed. It was not an easy job, the BIOS would reset after hardware changes (in my case 1TB NVME disk and 16GB RAM) forcing me to reenter the hidden BIOS values a couple of times. Often, the temporary boot disk would suddenly disappear after a reboot. No chance of overclock or XMP, AFAIK. Getting sleep to work more or less properly was a crapshoot. Weird USB port structure. Irritating coil whine.
But I got it to work properly in the end with the help of OCAT and Hackintool.

Hard to get the tower version of the 3060 where I live, and if available, not cheap.
 
Back
Top