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.
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.
- Boot to the OC boot screen/picker list.
- Press Spacebar to unhide the drivers and tools added to your config.plist.
- Select ControlMsrE2.efi and check the results, I expect it to say CFG is Locked.
- Press Return/Enter to return to the OC boot screen/picker list.
- Select the setup-var - CFGUnlock option, press Return/Enter.
- Select the setup-var - DVMT Pre-Allocated 128MB option, press Return/Enter
- 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.
CFG UNLOCKED
Seeing that you are ready to boot in to the macOS Installer.
- The two patches are ClearNvramEntry.efi resilient, so don't need to be re-applied after a NVRAM reset.
- 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.