DEV Community

Natano Ledger
Natano Ledger

Posted on

Hackintosh guide - install macOS on non-apple PC!

I think, everyone has seen macOS at least once in their lives. It is a very beautiful, easy to use and pleasant operating system. Although Apple Macs are very expensive and are not so functional, as many of them have only USB Type-C ports.

So in this guide I will show you how to install OpenCore Hackintosh on your PC. Please note, that in this guide I am just showing my experience of installing and fixing post-install issues, and if something goes wrong with your machine, I am not responsible in any way for any damage or data loss. And now, let’s roll!

Step #1:
In this guide it will be crucial to know your CPU codename, as you will need to download or create EFI for yourself, and usually different EFIs are classified by the CPU codename they are oriented to.

Now, to know your CPU codename, if you’re on Windows, you can download a free tool called CPU-Z, that shows you the processor codename. After obtaining the information, head to this website and download EFI with accordance to your system specs. Here I would like to say big THANKS to the Olarila team for the EFI folders, as sometimes it is rather difficult to collect them. If you CAN’T see the EFI folder for your system, you can also visit https://olarila.com/topic/5676-hackintosh-efi-folder-with-clover-and-opencore/ with EFI for Intel PCs. Also you can use your own EFI if you have one.

Step #2:
Now we need a recovery image for macOS. To get this, visit https://github.com/acidanthera/OpenCorePkg, and download the latest release from the releases page. After downloading, extract the files, and head to Utilities/macrecovery. There, if you don’t have Python installed, then this is a perfect time to install it. Open the file named recovery_urls.txt and copy the first line under latest, or copy the line under a specific version. If you’re on Windows, open Command Prompt as admin and paste the command you just copied and add download on the very end. This would download a folder named com.apple.recovery.boot. Now, if you’re on Windows, install Rufus and open it. (If you can’t install Rufus, then skip everything until the :), then just you will have to format the flash drive as FAT32 manually.). Then insert a flash drive with a minimum of 1GB and configure Rufus as shown:

Rufus configuration

Now click create, this would create a bootable USB. When the flash in complete, close Rufus, open File Explorer, navigate to the flash drive and delete the two files now located in it :) Now, copy the com.apple.recovery.boot folder we downloaded earlier to the flash drive. Now copy the EFI folder to the flash drive and rename it to EFI. The flash drive is ready.

Step #3:
Now we need to boot to the installer. To do this, if you created the flash drive with Rufus, then just open boot menu and select the flash drive. Otherwise, in boot menu select boot from EFI file and then select the flash drive, and go to /EFI/BOOT/BOOTx64.efi. In the boot loader select macOS recovery, it should be selected automatically.

After you have booted in the installer, in the menu select Disk Utility and format the partition you want to install macOS on as APFS. When the format is completed, close Disk Utility and click reinstall macOS . At this step you will need a working Ethernet connection. Now the install process has started. Your computer will reboot several times, and each time you need to boot to the installer. If you booted accidentally not to the installer, but to something else, just shutdown and boot back to the installer.
When the installation is completed, you will be introduced to a quick setup guide. you might not be able to sign in to Apple ID. To fix this, click skip, and when the setup is complete, open App Store and login to Apple ID from the App Store.

Post-Install

Fixing WiFi:

Open https://github.com/OpenIntelWireless/itlwm/releases and choose the latest release. Them choose the AirportItlwm.kext for your macOS version. If there is no AirportItlwm.kext for your version, download itlwm.kext. Now download OpenCoreConfigurator (you could do this by clicking on this link https://mackie100projects.altervista.org/download-opencore-configurator/). Now head to the EFI/OC/Kexts and copy the itlwm.kext or AirportItlwm.kext to the folder, renaming them to itlwm.kext or AirportItlwm.kext respectively.

WARNING!!! DON’T USE ITLWM AND AIRPORTITLWM AT THE SAME TIME!!!!

Now open config.plist under EFI/OC with OpenCoreConfigurator and head to Kernel tab. Drag the copied kext from the Kexts folder to the list. If it fails to drag, just click on the + button and select the kext. Now save the changes. If you are using itlwm.kext, download HeliPort from https://github.com/OpenIntelWireless/HeliPort/releases and install it. Set HeliPort as a login item in Settings/General/Login items. Reboot and enjoy. If you are using itlwm.kext, the wifi logo will appear on the very left of the right tab on the upper menu. If using AirportItlwm.kext, then it will still be where it was.

Fixing sound:

Download Hackintool from https://github.com/benbaker76/Hackintool and install it. Open Hackintool and head to the sound tab and in the lowest tab scroll down to ALC Layout ID and click on the number on the right to see possible numbers for your audio. Now open config.plist with OpenCoreConfigurator and head to the NVRAM tab and under the last entry (the third one) in the boot args set alcid to one of the possible entries from Hackintool. Save changes and reboot. If the sound still doesn’t work, change the value under alcid again and reboot. Repeat this until succeeded.

Booting without USB:

If you want to boot macOS without a USB flash drive always sticking out, open OCC(OpenCoreConfigurator) and on the icon in the upper menu click on mount partition. Now open Finder, click on NO NAME and if you want only OpenCore as boot loader, delete everything. If not, it will be more tricky and will not be covered in the guide. For more info you can visit Dortania’s guide. Now copy all files from the flash drive to the EFI partition and you’re good to go!

Who to thank:
Apple for macOS
Acidanthera for OpenCore
Olarila for EFI folders
OpenIntelWireless for itlwm.kext, HeliPort and AirportItlwm.kext
BenBaker76 for Hackintool

.....and many, many more!!!

Top comments (0)