Contribute
Register

Help with CFG-Lock and DVMT on OptiPlex 3060 MFF

Joined
Sep 12, 2023
Messages
5
Motherboard
Dell OptiPlex 3060 MFF
CPU
i5-8500T
Graphics
UHD 630
Hello, I am in the process of setting up Ventura on OptiPlex 3060 MFF. I saw a guide here (https://github.com/Lorys89/DELL_OPTIPLEX_3060_MFF) that indicates CFG-Lock and DVMT will need to be modified in the BIOS. I have the information on Dortonia here (https://dortania.github.io/OpenCore-Post-Install/misc/msr-lock.html#turning-off-cfg-lock-manually), but have some questions.

I downloaded one of the BIOS files from Dell, eg OptiPlex_3060_1.25.0.exe, then used `Dell_PFS_Extract.py` to extract it. I end up getting two Firmware folders:
Code:
drwxrwxr-x 3 xilex xilex 4.0K Sep 12 09:37 '2 CombineBiosName1 v99.1.45'
drwxrwxr-x 3 xilex xilex 4.0K Sep 12 09:37 '3 CombineBiosName2 v99.1.45'

The bin files inside are slightly different. But I think the offset and other stuff is the same. Do you think it's fine to use either?

Code:
0x4D27A    One Of: CFG Lock, VarStoreInfo (VarOffset/VarName): 0x5BE, VarStore: 0x1, QuestionId: 0x33A, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 C4 03 C5 03 3A 03 01 00 BE 05 10 10 00 01 00}

0x3E391    VarStore: VarStoreId: 0x1 [EC87D643-EBA4-4BB5-A1E5-3F3E36B20DA9], Size: 0x1949, Name: Setup {24 1C 43 D6 87 EC A4 EB B5 4B A1 E5 3F 3E 36 B2 0D A9 01 00 49 19 53 65 74 75 70 00}

setup_var_cv Setup 0x5BE 0x01 0x00

My second question concerns DVMT, which needs to be changed to 64MB. Another forum user recommended I look for `Pre-Allocated` and I found it at the same offset, `0x8DC`, as the guide. They use ru.efi, but following Dortania I was going to use the `setup_var_cv` command. I'm unsure how to change it correctly. Is `setup_var_cv Setup 0x8DC 0x01 0x02` correct to use?

Code:
One Of: DVMT Pre-Allocated, VarStoreInfo (VarOffset/VarName): 0x8DC, VarStore: 0x1, QuestionId: 0x273F, Size: 1, Min: 0x0, Max 0xFE, Step: 0x0 {05 91 DA 05 ED 05 3F 27 01 00 DC 08 10 10 00 FE 00}
setup_var_cv Setup 0x8DC 0x01 0x02

Thank you for helping!
 
As per the guide indicate here https://github.com/Lorys89/DELL_OPTIPLEX_3060_MFF, Lory is using ru.efi for the modification , but you can use modgrubshal.efi as per dortania guide,

setup_var 0x5BE 0x00 For CFGLock
setup_var 0x8DC 0x02 For DVMT Allocation
setup_var 0xC40 0x03 For NVME Gen Change (you can avoid it if you are using SATA )
 
The bin files inside are slightly different. But I think the offset and other stuff is the same. Do you think it's fine to use either?
I also got 2 folders with the same content inside, Just look for the larger one. (mine was 16.8MB)

2 CombineBiosName1 v99.1.45 2 CombineBiosName1 v99.1.45


I am using Dell Optiplex 3070 Micro, and my BIOS is 1.24.0, the offset for CFG-Lock and DVMT are the same as yours.

CFG Lock: 0x5BE
DVMT Pre-Allocated: 0x8DC

and (incase you have M.2 NVMe and would like to patch speed to Gen3)
PCIe Speed: 0xC40 (The value for me is 0x1=Gen1, but the BIOS said default is 0x2=Gen2)

from Lory's guide above, I have to fill "0x3" (Gen3) to the offset range 0xC40 - 0xC53 to make it run at Gen3 speed. (only offset 0xC40 does not work)

How I patched:
I'm not using RU.efi, I just place the setup_var.efi into \EFI\OC\Tools and disable it in config.plist, Then boot into OpenShell.efi, select the drive, go into \EFI\OC\Tools and execute the setup_var.efi to set the value one by one.

For PCIe Speed, I have to set each offset one by one (from the offset 0xC40-0xC53), like the following...

setup_var.efi 0xC40 0x03 -n Setup setup_var.efi 0xC41 0x03 -n Setup setup_var.efi 0xC42 0x03 -n Setup . . . . . . setup_var.efi 0xC53 0x03 -n Setup
 

Attachments

  • SCR_ 2566-12-30 at 21.16.36.png
    SCR_ 2566-12-30 at 21.16.36.png
    2.4 MB · Views: 13
  • SCR_ 2566-12-30 at 23.02.04 copy.png
    SCR_ 2566-12-30 at 23.02.04 copy.png
    439.4 KB · Views: 19
Last edited:
Back
Top