Contribute
Register

[Guide] HP Elite 8300 & 6300 Pro (all form factors) using Clover UEFI hotpatch

Sniki

Moderator
Joined
Jan 5, 2016
Messages
2,313
Motherboard
HP Elite 8300 SFF
CPU
i7-3770
Graphics
Intel HD 3000 | GTX 1650 LP
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
271652

Introduction
Welcome to my HP 8300 & 6300 (all form factors) macOS Catalina guide.
The inspiration to get one of these Desktops came from @trs96 and his great guides that he created for macOS High Sierra & macOS Sierra.
These Desktops are excellent machines that are both affordable and powerful for a general introduction to macOS.
There is excellent support as of now and they are very flexible for upgrades in both hardware and software.


Overview
This guide uses official Clover Bootloader builds as that's what i am more familiar with. I'm also using the Clover UEFI hotpatching method as opposed to DSDT edits for working audio, graphics, USB, etc.
I will add the Unibeast & Multibeast installation steps later for those who prefer it or as a complete replacement later.
All the files such as: config.plist, SSDTs, kexts, customizations, scripts and tools will be maintained on my github repo for better and faster updates.
Everything in there will be documented so that everyone can read commits and see what has changed and updated from last time checked.


Graphics Options
If you buy an HP with HD4000 graphics you can then use any form factor, even the smallest USDT. You'll need to connect your monitor via the onboard DisplayPort output for working graphics. If what you have already has only HD2500 you can upgrade to one of the following Intel Core i CPUs or use a Dedicated Graphics Card.

There are six Ivy Bridge CPUs you can use in your Dell Optiplex desktop that have the HD4000 graphics built in to the CPU. i3-3225 - i3-3245 - i5-3335S - i5-3475S - i7-3770S - i7-3770. The best performer is the i7-3770. The best value is the quad core i5-3475S. If you want to game, code and/or edit video get the i7-3770. It has four cores and eight threads and the highest clock speeds.


What works
- Intel HD4000 Graphics QE/CI
- Audio (All inputs and outputs)
- USB 3.0 and 2.0 Ports
- Intel Gigabit Ethernet
- Sleep and Wake
- Display Port & Display Port Audio
- CPU & GPU Power Management
- Serial Port
- Wireless and Bluetooth (with compatible card)
- iMessage and Facetime

What doesn't work
- VGA Port (No current known solution)
- Intel HD2500 Graphics (Users with CPU(s) that have such graphics card need a Dedicated GPU)

What you need
- One of the HP 6300 or 8300 form factors
- macOS Catalina downloaded from the Mac App Store
- 8GB+ USB Flash drive (Note: some have around 7GB of usable storage and won't work, in this case use 16GB+)
- Downloaded HP6300-HP8300 Repository from my Github (Click on HP6300-HP8300) and download as zip like in the picture shown below:
Github.png


BIOS

Step 1: Update Bios
Determine which BIOS revision is installed on your HP PC. Tap on F10 repeatedly after powering on to enter the BIOS. Then go to File → System Information → System BIOS. Many of these will come with v02.05 installed. If it is older than v02.83, you’ll want to flash it to the v02.99 Rev. A version. This step is mandatory for the install of Sierra, High Sierra, Mojave or Catalina to work properly.

Here's the link to the post where @trs96 describe the BIOS flash method using the .BIN file for 2.99 or 3.04.
https://www.tonymacx86.com/threads/...fordable-customac.224812/page-47#post-1570668

Step 2: Configuration
Tap on F10 repeatedly after powering on to enter the BIOS

Go to Storage tab > Storage Options:
SATA emulation: AHCI
Removable Media Boot: Enabled

Go to Security tab:
Network Boot: Disabled
Secure Boot Configuration:
Legacy Support: Disabled
Secure Boot: Disabled
Fast Boot - Enabled

Special Note (Must read)
Before proceeding with this guide, i would highly suggest that you begin with a clean install rather than upgrading from your previous setup as the method and kexts are different than what you might be currently using on your HP Desktop PC.


Creating USB Installer

I would suggest everyone to go read the @RehabMan guide on how to boot USB Installer as it covers everything that you will need or face during setup.
Link: https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

Step 1:
Download Clover Bootloader:
https://github.com/CloverHackyColor/CloverBootloader/releases

Step 2:
Format USB Drive as "HFS+J" with "GPT Partition Table" and make sure to name it: install_osx

Step 3:
Download macOS Catalina from the Mac App Store, after the download process has been finished, create the USB Installer by opening Terminal and writing the following command:
Code:
sudo "/Applications/Install macOS Catalina.app/Contents/Resources/createinstallmedia" --volume  /Volumes/install_osx --nointeraction
Press "Enter" and it will ask for your "User" password, type your Password, wait for the process, wait for the process to end, it should take around 10-30 minutes.

Step 4:
Download all the needed kexts. I listed all the needed kexts down below which are in form of links and as soon as you click on them, they should send you straight to the download page:

Lilu.kext
VirtualSMC.kext
SMCProcessor.kext

WhateverGreen.kext
AppleALC.kext
IntelMausi.kext
USBPorts.kext (included on the HP8300-HP6300 Github Project Zip with the rest of the other files)

Note: about kext installation From now on, all kexts should be kept into the EFI/Clover/kexts/Other and it's not necessary to install them into /Library/Extensions/ anymore and in fact it's not even possible anymore on macOS Catalina and above without some additional work.
Instead keeping all kexts into EFI leaves the system clean/untouched and if any kext does cause you trouble, you can simply drop it from clover boot menu, boot without it, replace/fix it and reboot again without additional headache.

Step 5:
Install Clover Bootloader by carefully following the steps explained down below:
Warning! - if you accidentally install Clover Bootloader into the partition of the real MacBook, Mac Mini, iMac or Mac Pro that you are using, you might brick it !, so be careful and choose the USB drive for installation !
Open Clover bootloader installer, click on continue, agree, continue and when you reach this screen:
Install Location.png

Make sure to click Change Install Location... and then select the USB Drive as shown in the screenshot down below:
install_osx.png

Now click "Continue", after this step, click on "Customize" as seen in the screenshot down below:
Customize.png
This brings us into the customization section of Clover Bootloader where we select the appropriate configuration for our hardware like shown in the screenshot down below:
Custom.png
Select/Checkmark the settings as listed on the screenshot above or written down below:

- Clover for UEFI booting only
- Install Clover in the ESP


Make sure to check the picture down below to see and select all the needed drivers and selected accordingly like this:
Recommended Drivers.png
Note: As seen on this guide, VirtualSMC is recommended but for whatever reason you decide to use FakeSMC instead,
make sure to checkmark SMCHelper and skip adding VirtualSmc.efi into EFI/Clover/Drivers/UEFI
FileSystem Drivers.png

MemoryFix Drivers.png
Now click "Install", it will open a prompt for your "User" password, write password and press Enter: installation starts.


Pre Installation

As soon as bootloader installation ends, your EFI partition of the USB Drive will be mounted (will show up on desktop).
Open the EFI partition of your USB Drive and go to:
EFI/Clover/ and delete config.plist, copy the config.plist that you downloaded from my repo and paste it there.

Note: on choosing the config.plist according to your setup:
1.
If you have a HP with HD4000 Graphics, copy the config_HD4000.plist there and rename it to config.plist
2.If you have a HP with HD2500 Graphics, copy the config_HD2500.plist there and rename it to config.plist
The HD2500 Graphics is not supported but works on headless mode to enable QuickSync and the other hardware acceleration features in combination with the Dedicated GPU that you are using.

Into EFI/Clover/ACPI/Patched, add the SSDT-EC.aml from my repo
Into EFI/Clover/Drivers/UEFI, make sure to add HFSPlus.efi (click on it to download it)
Into EFI/Clover/Drivers/UEFI, make sure to add VirtualSMC.efi (included on the downloaded zip of VirtualSMC)
Into EFI/Clover/kexts/Other, make sure to add the following kexts listed down below:

Lilu.kext
VirtualSMC.kext
SMCProcessor.kext

WhateverGreen.kext
AppleALC.kext
IntelMausi.kext
USBPorts.kext (included on the HP8300-HP6300 Github Project zip with the rest of the other files)

Backup all your important data because we will continue with the installation process on the next step/chapter.
Backup Clover Bootloader installer into the USB Drive for installation (not on the USB EFI folder !)
Backup my HP6300-HP8300 folder downloaded from the Github repository
You can simply create a Hackintosh folder into desktop, backup/copy the two above and paste them on that hackintosh folder.
Copy that Hackintosh folder and paste it on the USB Drive "Install macOS Catalina" or whatever name it has.


Installation

Step 1:
Reboot your Desktop PC, after the screen turns on, press F9 repeatedly to enter into the Boot Menu.
On the Boot Menu, choose the USB Drive and press "Enter"
Now it should bring you into the Clover Bootloader menu, select Install macOS Catalina (USB Drive) and press enter.
The Installer now should boot and reach installation menu.

Step 2:
From the installation menu, open Disk Utility, select the partition that you plan to install macOS, format it as APFS and for the purpose of this guide we will name it "Mac". Exit Disk Utility after the format process has finished, this will bring you back to the Installer Main Menu.
Now select install macOS Catalina, agree to the "terms and conditions", select your HDD/SSD that you formatted and the installation process will begin. this will be the part 1 install. Part 1 should take around 5 minutes.

Step 3:
Desktop-PC will automatically reboot when Part 1 installation ends. now as soon as Clover Bootloader menu shows up, this time you select the "Mac" partition to boot from, the installer will continue with Part 2 now and show the progress bar with time remaining under the Apple boot logo.
Note: Sometimes as soon as the time remaining shows up under the Apple boot logo, the Desktop-PC will reboot once more, if this happens, choose again to boot from the "Mac" partition and part 2 installation will continue and complete.
After the installation has been completed, Desktop-PC will reboot and bring you to the part 3 - first boot user setup.

Step 4:
Select Language, Continue, Connecting to Internet is optional or you can skip it for now.
When you reach the menu to sign with your Apple ID, make sure to skip this step, it will be important if you want to setup iMessage & FaceTime.


Post Installation

Step 1:
Run Apps from anywhere is now missing from SysPrefs > Security & Privacy > General.
Open terminal and enter the following command:
Code:
sudo spctl --master-disable
This allows you to install Applications downloaded from Internet / Outside of the Mac App Store.

Step 2:
Open Clover Bootloader installer and continue with bootloader installation into the HDD/SSD that we installed macOS.
The procedures are exactly the same as on the Creating USB Installer - Step 5 & Pre-Installation section of the guide, except that this time, instead of the USB Drive, we select the "Mac" HDD/SSD that we installed macOS.
Note: This includes copying the config.plist, kexts and UEFI drivers into the same locations but on the HDD/SSD EFI.


Step 3: Disable Hibernation
Be aware that hibernation (suspend to disk or S4 sleep) is not supported on hackintosh.

You should disable it:
Code:
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage
Always check your hibernatemode after updates and disable it. System updates tend to re-enable it, although the trick above (making sleepimage a directory) tends to help.

And it may be a good idea to disable the other hibernation related options:
Code:
sudo pmset -a standby 0
sudo pmset -a autopoweroff 0

Step 4:
Create a new folder on desktop and name it: tools
copy patchmatic and iasl and paste them on the "tools" folder that you created on desktop


Get "patchmatic" by clicking on this: Link
Get "iasl" by click on this: Link

Open terminal and write the following commands to install these tools:
Code:
cd desktop/tools
sudo cp iasl /usr/local/bin
sudo cp patchmatic /usr/local/bin


Power Management
Power Management contrary to what many desktop guides use to say, for me it's not something only necessary for laptops, but it is really important to be properly implemented for Desktops as well.

Without proper Power Management your Desktop:
- Won't be able to reach it's maximum performance (no idle frequency, not reaching max turbo boost, overclock speed, etc)
- Won't be stable, crashes, freezes, hangs, etc.
- Excessive Power Consumption, fans spinning all time, Noise, Heat, etc.

Custom SSDT.aml using ssdtPRGen.sh

To prepare, you only need to do the first two commands:
Code:
cd ~
curl -o ./ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/master/ssdtPRGen.sh
chmod +x ./ssdtPRGen.sh
With newer CPUs, you might want to use the beta branch:
Code:
cd ~
curl -o ./ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/Beta/ssdtPRGen.sh
chmod +x ./ssdtPRGen.sh
Then you can run the script:
Code:
./ssdtPRGen.sh
For some Ivy Bridge CPUs, you may need to use the "-w 2" or "-w 3" (non-beta branch, "-c 2" or "-c 3" for the beta branch).

When it asks if you want to copy to /Extra just respond 'n'. Same for opening ssdt.dsl... respond 'n'.

The results are at ~/Library/ssdtPRGen/SSDT.aml.

Assuming your EFI partition is mounted at /Volumes/EFI, copy that file to EFI partition, /EFI/Clover/ACPI/patched/SSDT.aml

Code:
cd ~
cp ~/Library/ssdtPRGen/ssdt.aml /Volumes/EFI/EFI/Clover/ACPI/patched/SSDT.aml
For full informations and details follow the Rehabman guide (same applies for desktops as well):
https://www.tonymacx86.com/threads/guide-native-power-management-for-laptops.175801/


USB Ports
USB Ports are implemented with USBPorts.kext and in use with macmini6,1 SMBIOS, if for any reason you decided, need to use another SMBIOS, make sure to rename all instances of macmini 6,1 to your smbios in use into:
USBPorts.kext/Contents/Info.plist > IOKitPersonalities and the sub-dictionaries, use search to not miss any rename.


iMessage and FaceTime
In order to setup your hackintosh machine to use Apple Services, iMessage & FaceTime, follow @P1LGRIM guide:
https://www.tonymacx86.com/threads/an-idiots-guide-to-imessage.196827/
It has step by step screenshot and written instructions for you to easily fix/setup.


Problem Reporting

It is impossible to diagnose a problem without data that shows how your system is configured.

Also, impossible to analyze any data that you might provide without a clear understanding of your hardware. So make sure your profile is filled as per the first question in this FAQ, "Q. Where do I start?".

If you can't boot, a bare minimum is:
- Boot verbose, attach photo
- Attach EFI/Clover folder as ZIP (press F2 then F4 at main Clover screen just before collecting). Please eliminate 'themes' directory. Provide only EFI/Clover, not the entire EFI folder.

Note: Some Keyboards swap Fn+Fx for Fx. For those Keyboards, press Fn+F2 then Fn+F4. If you're not sure, press F2, then F4, then Fn+F2, then Fn+F4. You can also verify by pressing F1 (or Fn+F1) to see which one brings the menu.

If you can boot, but are having some other problem, describe the problem clearly and provide data...

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract
Note: It is easier if you use copy/paste instead of typing the commands manually.

Attach contents of Downloads/RehabMan directory as ZIP.

Attach ioreg as ZIP: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

Provide output (in Terminal):
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda
ls -l /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*
pmset -g assertions
pmset -g
system_profiler SPSerialATADataType|grep TRIM
Attach EFI/Clover folder as ZIP (press F2 then F4 at main Clover screen just before collecting). Please eliminate 'themes' directory. Provide only EFI/Clover, not the entire EFI folder.

Note: Some Keyboards swap Fn+Fx for Fx. For those Keyboards, press Fn+F2 then Fn+F4. If you're not sure, press F2, then F4, then Fn+F2, then Fn+F4. You can also verify by pressing F1 (or Fn+F1) to see which one brings the menu.

For 10.11 and later, attach output of (in Terminal):
Code:
sudo kextcache -i /
Older versions:
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /
Compress all files as ZIP. Do not use external links. Attach all files using site attachments only.


Q. Is there a script that will collect all Problem Reporting data automatically?

Yes! (almost)

User @black.dragon74 has created a script (gen_debug.sh) that automates most of the "Problem Reporting" tasks (as described in the previous question).

The part it cannot do is pressing F2 and F4 for you at the main Clover screen.
And of course, it only works for the case you can boot into your system. If you have a problem booting, you must obtain and collect the verbose boot photo manually (and EFI/Clover).

Full details are here:
https://www.tonymacx86.com/threads/tool-generate-proper-problem-reporting-files.235953/


Credits
@trs96 - Helping maintaining the guide and supporting the community.
@LisaAlterEgo - Troubleshooting issues and providing feedback and problem fixes.
 
Last edited:
Reserved for future Post #2
 
Reserved for future post #3
 
Excellent work on this. HD4000 is still fully supported in Catalina so these HP desktops are a great choice for an entry level PC for conversion to a CustoMac. You can run most any version of macOS from Mountain Lion all the way up through Catalina. They are ultra reliable. Any replacement parts you might need can be bought on Ebay at very low prices. Size is small enough to put on your desk and they are relatively quiet with their use of 90mm case fans that are PWM controlled.

I do highly recommend the i7-3770 to anyone that doesn't have one yet. The best deal in the USA currently is on Amazon. You can buy the exact same system that Sniki has, follow the guide and have a 100% working Catalina system. Still the best desktop hackintosh value there is.

https://www.amazon.com/dp/B01M4P54KA/?tag=tonymacx86com-20

These are from a professional MS authorized refurbisher. You will get one in good condition. With this hardware and the guide above, your success is a sure thing. Read carefully, take your time and follow all the steps.
If you want a quad core i5-3470 instead, those go for 80 dollars less. You'll still get 8GB of ram.
Screen Shot 11.jpg


Remember that you'll have to spend some money on a low profile graphics card if you go with this system.

The most popular choice is the GT 710 which has HDMI 2.0 output that works with a 4K TV. If you want the best graphics available for the MT model, get the full height Gigabyte RX 560. Will make editing in FCP X or iMovie buttery smooth. https://www.newegg.com/gigabyte-radeon-rx-560-gv-rx560oc-4gd-rev2-0/p/N82E16814932014?

The HP 6300 Pro with i5-3470 is selling at around $140 on Amazon. Only downside is that you get just one Sata 3.0 connector on the motherboard. The other three are Sata 2.0 spec ports.

https://www.amazon.com/dp/B01CV9G1BO/?tag=tonymacx86com-20

413251

The blue colored connector (Sata 0) is Sata3 spec @ 6Gb/s speeds. Others function at 3Gb/s speeds maximum.
Connect your SSD boot drive to Sata 0 and your other slower drives to Sata ports 1 or 2. The black port can be
used for eSata or another internal HDD if you'd like.
 
Last edited:
Upgraded to to Catalina, no issues.

Screen Shot 2019-10-09 at 11.45.24 PM.png
 
awesome work.
HP8300 + i7 3770 + AMD RX560 + BCM943602CS card, everything work OOB. including WIFI/BT/HandOff, yes, and iMessage as well.
i followed the old guide so i have a gtx 1050 but i've been wanting to upgrade from High Sierra, hows the performance of the rx560 compared to the gtx 1050 and which kind did you use in your hp?

also wondering if im really missing out on anything. been out of the loop since setting up my computer since its been running so good, the only thing ive been wanting is dark mode really lol
 
i followed the old guide so i have a gtx 1050 but i've been wanting to upgrade from High Sierra, hows the performance of the rx560 compared to the gtx 1050 and which kind did you use in your hp?

also wondering if im really missing out on anything. been out of the loop since setting up my computer since its been running so good, the only thing ive been wanting is dark mode really lol

Read that wrong. But still my 710 works great LOL


I have a NVIDIA GeForce GT 710 1023 MB which isnt as good as your card and I see no issues. I run dual monitors 1080p. Never had a issue playing 1080p videos. I dont game at all, so I dont know anything about gaming performance. Not sure if that helps. As far as upgrading an reason, thats more of a personal thing. I was on Sierra for the longest time and just recently joined the latest crowd.
 
i followed the old guide so i have a gtx 1050 but i've been wanting to upgrade from High Sierra,

I want you to make the above HP version and share it with everyone.
 
i followed the old guide so i have a gtx 1050 but i've been wanting to upgrade from High Sierra, hows the performance of the rx560 compared to the gtx 1050 and which kind did you use in your hp?

also wondering if im really missing out on anything. been out of the loop since setting up my computer since its been running so good, the only thing ive been wanting is dark mode really lol

i do not have a gtx1050 card, so i am not sure which one performs better between these two card. for all of my daily work (not gaming) with a 32" 4k 60hz monitor, rx560 performs very very smoothly.
 
Back
Top