Hello Win-Raid community,
I am writing this guide to share a fully verified, 0% brick risk runtime unlock methodology for the Gigabyte G5 MF & KF (2023 Alder Lake i5-12500H / RTX 4050 & 4060, Clevo NP50RNx series), specifically tested on FB10 and FB12 BIOS versions.
Many users on this platform (including myself, developing DMA hardware) need to disable VT-d (Directed I/O Virtualization) or access Advanced / CPU Power / OverClocking / Memory Timings, but encountered two major roadblocks:
- Intel 12th Gen Boot Guard & Firmware Write Protection: Traditional direct SPI ROM modifications via UEFITool or software flashing with
FPTW64/ Insyde flasher fail (RSA capsule check, Error 167/368, or risking permanent CPU brick due to Boot Guard KM/BPM hash mismatch). - SREP 0.2.4 Hanging on “Parsing Config”: When using the latest SREP 0.2.4 or generic Clevo patches, the tool hangs indefinitely on
Parsing ConfigbecauseOp SuppressIfPatcher/MySuppressIfPatcher.efigets trapped in an infinite loop while traversing the complex 12th Gen HII database.
Here is the complete root-cause breakdown, reverse-engineered patch logic, and the streamlined solution that boots into the unlocked BIOS in under 1 second.
Technical Breakdown & Reverse Engineering
1. Why G5 MF and KF Share the Same Solution
Gigabyte G5 MF (RTX 4050) and G5 KF (RTX 4060) both use the identical Clevo motherboard platform (NP50RNx). The official BIOS packages (NP50RNx-Y(32M).10 and NP50RNx-Y(32M).12) share the exact same DXE volume layout and InsydeH2O SetupUtility module.
2. The Micro-Surgery Patch Logic (Credit: 34kon)
Instead of running a heavy dynamic HII parser across the entire RAM, the solution performs surgical byte-replacement directly on the SetupUtility module in DXE memory before launching SetupUtilityApp:
- Suppress-If VarOffset
0x1C6C:
Clevo / Gigabyte wraps over 20 advanced submenus (Advanced, Overclocking, CPU Power, etc.) under an IFR suppression condition checking variable offset0x1C6C.- In raw IFR bytecode,
12 06 6C 1C 00 00(EFI_IFR_SUPPRESS_IF) hides the forms when evaluated. - The patch replaces
12 06with47 06(EFI_IFR_FALSE), permanently neutering the suppression logic in RAM. - Matches 1:1 on both FB10 (at offset
0x0146D1E0) and FB12 (at offset0x0146D1E0in decompressed DXE).
- In raw IFR bytecode,
- Suppress-If VarOffset
0x1CFE:
Controls the Chipset / System Agent (SA) submenus where VT-d resides.- Replaces
12 06 FE 1C 01 00with47 06 FE 1C 01 00. - Matches 1:1 on both FB10 and FB12 (at offset
0x01477DDB).
- Replaces
- Engine Choice: SREP 0.1.4c:
Using the lightweight, barebones SREP 0.1.4c (only ~16.7 KB) bypasses the HII traversal hangs of SREP 0.2.4 completely, executing the pattern replacement instantly.
3. Why It Is 100% Safe and Permanent
- Boot Guard Safe: SREP executes in the BDS/TSL phase after Boot Guard has already finished its SEC/PEI verification. The physical SPI ROM chip is untouched, so no signature checks are triggered.
- Permanent NVRAM Persistence: When you modify settings (e.g. VT-d → Disabled) in the unlocked UI and press F10 (Save & Exit), the native Insyde firmware calls the standard UEFI Runtime Service
SetVariable()to save your settings into NVRAM. Once saved, VT-d remains permanently disabled across all reboots and cold starts, without needing to keep SREP on your drive!
Step-by-Step Instructions
Preparation
- Prepare a USB flash drive (or create a small 300MB FAT32 partition on your SSD). Format as FAT32.
- Download SREP 0.1.4c (
BOOTX64.efi) and place it under\EFI\BOOT\BOOTX64.efi. - Create
SREP_Config.cfgin the root of the drive with the following exact contents:
Op Loaded
SetupUtility
Op Patch
Pattern
5661720001860100BF080A8212066C1C00000287B308000000290229020A8212066C1C00000F0F7709020001000000FFFF00010629020A8212066C1C00000F0FE009020002000000FFFF00020629020A8212066C1C00000F0F9D0A020003000000FFFF00030629020A8212066C1C00000F0FAF0A020004000000FFFF00830529020A8212066C1C00000F0FEC0AED0A05000000FFFF00850529020A8212066C1C00000F0FF00A020006000000FFFF00220629020A8212066C1C00000F0F710B020007000000FFFF00300629020A8212066C1C00000F0FBE0B020008000000FFFF00200629020A8212066C1C00000F0FC108C20809000000FFFF0021000F8FC308C4080A000000FFFF0022000404030029020F8FC508C6080B000000FFFF0023000404040029020F0FC708C8080C000000FFFF0026000F8FC908CA080D000000FFFF0027000404060029020F0F590E5A0E0E000000FFFF0006100F0FF117F4170F000000FFFF0008100F8FCB08CC0810000000FFFF0028000404070029020F8F0700070011000000FFFF000D100404080029020F0F970C980C12000000FFFF00D2130F0FE600E70013000000FFFF000E100A8212063A1D00000F0F0C040D0414000000FFFF00131029020F0F
5661720001860100BF080A8247066C1C00000287B308000000290229020A8247066C1C00000F0F7709020001000000FFFF00010629020A8247066C1C00000F0FE009020002000000FFFF00020629020A8247066C1C00000F0F9D0A020003000000FFFF00030629020A8247066C1C00000F0FAF0A020004000000FFFF00830529020A8247066C1C00000F0FEC0AED0A05000000FFFF00850529020A8247066C1C00000F0FF00A020006000000FFFF00220629020A8247066C1C00000F0F710B020007000000FFFF00300629020A8247066C1C00000F0FBE0B020008000000FFFF00200629020A8247066C1C00000F0FC108C20809000000FFFF0021000F8FC308C4080A000000FFFF0022000404030029020F8FC508C6080B000000FFFF0023000404040029020F0FC708C8080C000000FFFF0026000F8FC908CA080D000000FFFF0027000404060029020F0F590E5A0E0E000000FFFF0006100F0FF117F4170F000000FFFF0008100F8FCB08CC0810000000FFFF0028000404070029020F8F0700070011000000FFFF000D100404080029020F0F970C980C12000000FFFF00D2130F0FE600E70013000000FFFF000E100A8247063A1D00000F0F0C040D0414000000FFFF00131029020F0F
Op Patch
Pattern
0000FFFF00E4100A821206FE1C01000F
0000FFFF00E4100A824706FE1C01000F
Op End
Op LoadFromFV
SetupUtilityApp
Op Exec
Execution
- Enter your stock BIOS by spamming F2 on power-up.
- In
Security, set Secure Boot = Disabled. Press F10 to save and reboot. - On reboot, spam F7 to open the boot menu, and select your USB drive / EFI partition.
- SREP will patch the memory structures in a fraction of a second and launch directly into the fully unlocked Insyde BIOS!
- Navigate to Advanced → System Agent (SA) Configuration → set VT-d = Disabled (or configure memory/CPU as needed).
- Press F10 to Save and Exit.
- Done! You can now boot normally into Windows. You can verify that VT-d is turned off by checking
msinfo32→ Kernel DMA Protection: Off.
Credits to SmokelessCPUv2 for creating SREP, and 34kon on Win-Raid for identifying the Clevo NP50 suppress offsets.
Edit by Fernando: Thread title shortened