Contribute
Register

[GUIDE] Catalina on HP EliteDesk 800 G4/G5 Mini - The Perfect MacMini8,1 Hackintosh - CLOVER & OC

Joined
Jan 7, 2016
Messages
132
Motherboard
HP Elitedesk 800 G5 Mini
CPU
i9-9900
Graphics
UHD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I just performed my first OpenCore (0.6.3) installation using my old legacy HackPro5,1 as my guineapig. I learned a lot about OC and must say that I'm impressed with the level of control. I plan to start from scratch with my own OC configuration for this HackMini8,1 and I will post my own OC solution. I do not plan to use any of the Dortania precompiled SSDTs in my solution. Fortunately, the Dortania guide is extremely well written for anyone who wants to create their own OC configuration from scratch.
I am shamelessly looking forward to your updates. ;)
 
Joined
Sep 22, 2011
Messages
1,135
Motherboard
HP EliteDesk 800 G4 Mini
CPU
I7-8700
Graphics
UHD 630
Mac
  1. Mac mini
Mobile Phone
  1. iOS
EDIT3: My most current OC EFI will be managed / maintained in the Big Sur thread. Leaving the post below for historical purposes.
-----------------------------------------------
Attached is my first OC configuration for the HP EliteDesk 800 G4 Mini. I've only been learning OC for a few days, so I welcome constructive criticism, feedback and suggestions and you can say "I told you so" :). I have not spent much time on RTC patches/fixes and I have not carefully analyzed Quirks, so these are likely to have issues. Also, I did not perform the suggested CFG Lock checks before installing OC and simply enabled Quirk AppleXcpmCfgLock.

EDIT: See here for updated stable OC config.plist.
EDIT2: See here for an updated release candidate for a config.plist without RTCMemoryFixup.

If you use this OC config, you will need to replace the ***REPLACE*** strings in PlatformInfo->Generic with your own. My ACPI patches are currently designed only for macOS with OC boot loader. My ACPI patches/config.plist will not support multi-booting macOS and other OSes using OC picker. You will need to add your own conditional "Darwin" checks to my ACPI patches and I believe there is at least one config.plist change required to enable Windows boot with OC.

Also, you will need to review my
Known Issues to determine whether your system needs changes to my EFI.

The attached OC config was created with OC 0.6.3. boot-args include '-v' for verbose boot.


I have not tested much, but here's what I've observed that is working:
  • macOS boots fine
  • macOS restarts fine
  • shutdown works fine
  • sleep / wake seems to work (only tested once)
  • FakeSMC CPU Sensor works
  • USB seems fine
  • A quick scan of IORegistry looks fine
  • I hear sounds but didn't thoroughly test audio - seems fine
  • CPU Power Management (I had incorrectly perceived that this wasn't working)
What is not working:
  • CPU temps and clock are high. I don't think CPU Power Management is working properly.
    CPU temps and clock have dropped after waiting. Since this was a fresh Catalina installation, maybe macOS was doing something (including Spotlight indexing). Moving CPU Power Management to "working."

Details
Attached is my first OC (UEFI) configuration. With it, I successfully booted the Catalina 10.15.7 installer on an HP EliteDesk 800 G4 Mini (35W). Catalina installed without issues. The 10.15.7 supplemental install notice appeared after the install completed and the supplemental install proceeded without issues.

Since this is my first OC (UEFI) configuration and only my second OC configuration in 3 days (yup, I'm an OC newbie and maybe a convert), I'm sure there is room for improvement and mistakes to be corrected. I'm also FAR from an OC expert, so I welcome all suggestions for improvement.

I developed the attached OC config with the following assumptions:
  1. My CLOVER configuration worked perfectly, so I tried to emulate my CLOVER configuration with OC
  2. I believe that the EliteDesk 800 G4 Mini is more like a laptop than a desktop, so I renamed EC0 to EC instead of injecting a new EC. I believe this is the correct approach for the EliteDesk 800 G4 Mini.
  3. The OC Sanity Checker indicates that my Apple,ig-platform-id may be wrong. I believe it is correct and I ignored the Sanity Checker warning.

While creating this OC config, I noticed a couple of things about my CLOVER config that are unnecessary:
  1. G4 Mini DSDT does not need 'Fix Mutex' (all Mutex calls are already MUTEX(X, 0x00)
  2. 'Fix S3D' is unnecessary
  3. LAN / en0 loads correctly, so 'Fix LAN' is not necessary

Miscellaneous
  1. The Dortania Guide is outstanding. Amazingly well-written! It was a pleasure using this guide to learn OC.
  2. I am using FakeSMC and the FakeSMC_CPU_Sensor with Hardware Monitor
  3. I prepared my SSDTs based on analysis of the DSDT, so the SSDTs do not have the extra condition checks found in the Dortania SSDTs.
 

Attachments

  • OC-EFI Rev 0.01.zip
    1.5 MB · Views: 79
Last edited:
Joined
Jul 4, 2013
Messages
103
Motherboard
HP EliteDesk 800 G5 mini | Dell XPS 15" 7590
CPU
i5 9600 | i7 9750H
Graphics
UHD 630 | Iris Plus 655
Incredible work @deeveedee. Thank you REALLY MUCH!! Tomorrow will start using it and will come back with feedback. Hope Big Sur is released tomorrow too and test it with you EFI!
 
Joined
Sep 22, 2011
Messages
1,135
Motherboard
HP EliteDesk 800 G4 Mini
CPU
I7-8700
Graphics
UHD 630
Mac
  1. Mac mini
Mobile Phone
  1. iOS
*** Deleted ***
Superseded by this post.
 
Last edited:
Joined
Jan 7, 2016
Messages
132
Motherboard
HP Elitedesk 800 G5 Mini
CPU
i9-9900
Graphics
UHD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I did some minor tweaks and got my G5 to have an even higher single-core score with a 65W i9-9900 than my previous Z390/i9 9900K at stock... Multi-Core remains still a good 20% lower and I can see some thermal throttling towards the end of the test. I am wondering if the fan profile can be changed as I don't hear the fan kick in until a few seconds after the CPU is throttling.
Also upgraded my G5 to the latest bios version 2.07.01 from 2.06.00. Got no problem.

I am facing something odd with my iwatch unlock. It seems to work right after I enable it but after sometime, the hack detects the watch, attempts to watch unlock but then times out.

Screen Shot 2020-11-07 at 18.49.17.png
 
Joined
Sep 22, 2011
Messages
1,135
Motherboard
HP EliteDesk 800 G4 Mini
CPU
I7-8700
Graphics
UHD 630
Mac
  1. Mac mini
Mobile Phone
  1. iOS
I did some minor tweaks and got my G5 to have an even higher single-core score with a 65W i9-9900 than my previous Z390/i9 9900K at stock...
Would you mind posting your latest EFI?

By "tweaking," do you mean CPUFriend.kext data adjustments? Did you change your SystemProductName to iMac19,1? I'm comparing our OC EFIs to see if I can find a problem with mine. I am hoping to have a "vanilla" CPU power management like I do with CLOVER, but maybe not possible with OC? I don't see why our rigs should need CPUFriend.

Also, I noticed that your config.plist might be from a previous version of OC. You might want to look at the following:
  • There appears to be a new attribute Kernel > Quirks > DisableLinkeditJettison (something to do with Lilu stability)
  • You shouldn't need Kernel > Quirks > XhciPortLimit = 1 with USBInjectAll.kext / SSDT-UIAC. I think you should be able to set Kernel > Quirks > XhciPortLimit = 0
  • There appears to be a new config.plist block Kernel > Scheme. Not sure what it does.
  • There appear to be new attributes in Misc > Security
  • There appears to be a new attribute PlatformInfo > Generic > ProcessorType
 
Joined
Sep 22, 2011
Messages
1,135
Motherboard
HP EliteDesk 800 G4 Mini
CPU
I7-8700
Graphics
UHD 630
Mac
  1. Mac mini
Mobile Phone
  1. iOS
Ok - my GeekBench 5 scores are back to normal with OC. The only change I made was the following attributes in my OC config.plist:
  • Misc > Debug > AppleDebug: Changed from 1 to 0
  • Misc > Debug > Target: Changed from 67 to 3
No surprise that the debug / logging level impacts performance. My updated config.plist is attached. If you use the attached config.plist (replace the one in the EFI posted here), replace the ***REPLACE*** values in PlatformInfo > Generic with your own values.

EDIT: So far, my rig has better CPU power management (lower CPU idle/temps and better GeekBench 5 scores) with CLOVER than with OC. I'd like to think I can achieve the same performance with OC and without using CPUFriend, so there must be something I'm missing. For now, CLOVER r5122 will remain my baseline.

Screen Shot 2020-11-09 at 9.47.36 PM.png
 

Attachments

  • config.plist.zip
    5.6 KB · Views: 16
Last edited:
Joined
Jan 7, 2016
Messages
132
Motherboard
HP Elitedesk 800 G5 Mini
CPU
i9-9900
Graphics
UHD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Would you mind posting your latest EFI?

By "tweaking," do you mean CPUFriend.kext data adjustments? Did you change your SystemProductName to iMac19,1? I'm comparing our OC EFIs to see if I can find a problem with mine. I am hoping to have a "vanilla" CPU power management like I do with CLOVER, but maybe not possible with OC? I don't see why our rigs should need CPUFriend.

Also, I noticed that your config.plist might be from a previous version of OC. You might want to look at the following:
  • There appears to be a new attribute Kernel > Quirks > DisableLinkeditJettison (something to do with Lilu stability)
  • You shouldn't need Kernel > Quirks > XhciPortLimit = 1 with USBInjectAll.kext / SSDT-UIAC. I think you should be able to set Kernel > Quirks > XhciPortLimit = 0
  • There appears to be a new config.plist block Kernel > Scheme. Not sure what it does.
  • There appear to be new attributes in Misc > Security
  • There appears to be a new attribute PlatformInfo > Generic > ProcessorType

Attached my latest EFI. No I did not switch to the iMac19,1. I have not gotten around to test this but based on what I saw from my previous clover build (the 9900K on a Z370N motherboard), it did not do much.

Thanks for all the suggestions. I will look into them now.
Oddly I seem to be getting higher GeekBench scores with OC than what I was getting on clover.
 

Attachments

  • EFI.zip
    41.1 MB · Views: 22
Top