HOWTO P.Roy – January 11th, 2019 Hardware List Motherboard Gigabyte Z370 AORUS Gaming 5 CPU Core i7-8086K or i7-8700k CPU Cooler Noctua NH-U12S RAM Memory G.Skill RipJaws 5 Series Noir 32 Go (2x 16 Go) DDR4 3200 MHz CL16 Hard drive Samsung SSD 860 EVO 1To Power Supply Corsair AX860 Watt Tower Corsair Carbide 330R Mid-Tower Case Video * Sapphire RX 580 Pulse 8GB * I haven’t actually installed another video card in yet (using the built-in Intel chip). That’s the one I think I’d use. Prerequisites  Another OS X installation to work from.

 UniBeast for High Sierra (https://www.tonymacx86.com/resources/unibeast-8-3-2-high-sierra.383/)

 MultiBeast for High Sierra (https://www.tonymacx86.com/resources/multibeast-10-4-0-high-sierra.401/)

 KextBeast (https://www.tonymacx86.com/resources/kextbeast-2-0-2.399/)

 Clover Configurator (https://www.tonymacx86.com/resources/clover-configurator.335/)  For audio: ◦ AppleALC.kext: https://github.com/acidanthera/AppleALC/releases ◦ Lilu.kext: https://github.com/acidanthera/Lilu/releases ◦ WhateverGreen.kext: https://github.com/acidanthera/WhateverGreen/releases * this seems to be needed to enable HDMI Audio output…

 (Optional) macOS High Sierra Patcher.dmg (http://dosdude1.com/highsierra/) Getting the OS X High Sierra installer on a USB key 1. First, from another OSX install, download the High Sierra installer from the Apple Store: https://itunes.apple.com/ca/app/macos-high-sierra/id1246284741?mt=12 * The downloaded installer (Install macOS High Sierra.app) in /Applications/ should be of about 5.2Gb. If it’s not, then it will not work! It could be a lot smaller, though don’t ask me why. When downloading from the App Store, they seem to randomly choose whether you get the full installer, or just part of it…

2. (Alternative download): if the apple store solution didn’t workout, the only other proper way I found of getting it was by using a tool called “macOS High Sierra Patcher.dmg”, available from: http://dosdude1.com/highsierra/ . Within this application, simply select "Tools > Download macOS High Sierra…" and save it under /Applications/. * Note: I haven’t tried creating the bootable USB key using this tool. Assuming it works, but I preferred to follow tonymacx86’s guides and use UniBeast. 3. Format USB Key using Disk Utility: needs to be 8Gb or more Name: USB Format: Mac OS Extended (Journaled) Scheme: GUID Partition Map

4. Run UniBeast to create the bootable USB key with the installer: 4.1. Agree to the license agreement and stuff 4.2. At Destination Select, choose USB and click Continue 4.3. At Select OS Installation screen choose High Sierra and click Continue 4.4. At Bootloader Options screen choose UEFI Boot Mode 4.5. Verify installation options, then click Continue, enter password and click Install

* Since I’m using the built-in Intel HD Graphics chip, no need to inject ATI or Nvidia’s drivers.

5. Once the process is completed, copy the MultiBeast, KextBeast and Clover Configurator applications to your completed USB drive. While you’re at it, also copy the 3 kexts files required for audio on your key as well. Configuring BIOS Hit the DEL key when booting up to access the BIOS configurations. Save & Exit → Load Optimized Defaults M.I.T. → Advanced Memory Settings → Extreme Memory Profile(X.M.P.) : Profile1 BIOS → Fast Boot : Disabled BIOS → LAN PXE Boot Option ROM : Disabled BIOS → Storage Boot Option Control : UEFI BIOS → CSM Support : Disabled * CSM Support first needs to be enabled to see the LAN PXE and Storage BIOS options above BIOS → Secure Boot : Disabled * You’ll find this at the very bottom of the page. Keep scrolling… Peripherals → Trusted Computing → Security Device Support : Disable Peripherals → Network Stack Configuration → Network Stack : Disabled Peripherals → USB Configuration → Legacy USB Support : Auto/Enabled Peripherals → USB Configuration → XHCI Hand-off : Enabled (Extremely important) Chipset → Vt-d : Disabled Chipset → Wake on LAN Enable : Disabled Chipset → IOAPIC 24-119 Entries : Enabled

Based on the GPU you’re using, also change the following settings: Dedicated graphics card: Peripherals → Initial Display Output : PCIe 1 Slot Chipset → Integrated Graphics : Disabled (although leave enabled if you want to also enable Quick Sync – see further down) Intel iGPU: Peripherals → Initial Display Output : IGFX Chipset → Integrated Graphics : Enabled Chipset → DVMT Pre-Allocated : 128M (if this setting isn’t showing then Save and Exit, restart and reenter BIOS) Install macOS High Sierra 1. Insert your USB installation key on a USB 2.0 port (important!). They are grey on the back. 2. Start the computer and hit F12 to choose your USB boot device. 3. At Clover boot screen, choose Boot OS X Install from Install macOS High Sierra 4. For a new installation of macOS, you MUST erase and format the destination drive according to the following steps before continuing. a. In the top menu bar choose Utilities, and open Disk Utility b. Highlight your target drive for the High Sierra installation in left column. c. Click Erase button d. For Name: type High Sierra (You can rename it later) e. For Format: choose Mac OS Extended (Journaled) f. Click Erase g. Close Disk Utility

5. When the installer asks you where to install, choose High Sierra 6. Upon completion, the system will automatically restart. 7. (Optional) Prevent APFS filesystem conversion - default to HFS

Some users may prefer HFS filesystem and want to install without converting the system disk to the new default APFS filesystem. To this end, you can use a script called No-Convert which is included when creating your bootable USB installer using UniBeast. Running that script in Terminal will prevent automatic APFS file system conversion. Skip this step to default to APFS. a. Press the F12 hotkey to choose boot device b. At Clover boot screen, choose Boot OS X Install from Install macOS High Sierra again * make sure not to allow it to boot “High Sierra” disk, yet... c. Select Utilities, and open Terminal d. Type the following: /Volumes/Image\ Volume/No-Convert e. Reboot

* I opted to run this script, since I wanted to make sure not to have any issues when accessing my OSX partition from a dual boot . Plus, I think using APFS on hackintoshs is still kind of experimental.

8. Upon reboot, hit F12 to choose your USB boot device. Now, select High Sierra from the boot screen. 9. Complete macOS installation. The system will automatically reboot.

Post Installation First, before we do anything, just as a precaution, we want to backup the original /System/Library/Extensions/AppleHDA.kext. Save the file somewhere in your $HOME. I believe the audio configuration part will modify this file (or not?) and if something screws up, you need to reinstall it using a kext installer. You can always retrieve the original one from the installation key, but more of a pain… Clover Installation 1. Once in OSX, open and run MultiBeast to install the Clover bootloader in the EFI partition.

2. Select Quick Start -> UEFI Boot Mode 3. Select Drivers -> Network -> IntelMausiEthernet v2.4

4. Select Drivers -> USB -> Remove XHCI USB Port Limit & USBInjectAll

* Theses 2 drivers are needed to enable ALL of the USB ports on the motherboard, including USB-C and USB 3.0 ports. 5. Select Bootloaders -> Clover UEFI Boot Mode

6. Under Customize, select Graphics Configuration-> Intel HD 6xx

* I’m using the onboard Intel HD graphics chip. If you plan to use another Nvidia or ATI GPU, then you need to choose the appropriate driver. You’ll need to do some research on your own in the Tonymac’s website or Hackintosher. https://www.tonymacx86.com/ https://hackintosher.com/ 7. Select Customize -> System Definitions -> iMac 17,1

* I’ve tried iMac 18,3 but for some reason, I had video glitches when doing so. Best option was with iMac 17,1. 8. Select Build, review the configuration, select the proper Install Drive (should be High Sierra, if you haven’t renamed it yet like I did), and click Install

9. Once the installation is complete, shutdown your computer. Remove your USB key and restart. Clover should now me installed and you should be able to select your harddrive (i.e. High Sierra) and boot into your new OSX installation. Network As you can see, for network connectivity, I’ve selected the IntelMausiEthernet driver provided by the MultiBeast Clover installation. If for what ever reasons you need another version, say beta or something, have a look at the developer's website: https://www.insanelymac.com/forum/topic/304235-intelmausiethernetkext-for-intel-onboard-lan/ https://github.com/Mieze/IntelMausiEthernet

* As of this date, the onboard WIFI provided by the motherboard does NOT work on OSX! Only ethernet will. If you really need WIFI, then you’ll need to add an extra PCIe card just for that purpose, such as the “TP-Link TL-WDN4800”. Just make sure it is compatible with .

Audio Configuration (ref. https://hackintosher.com/guides/get-hackintosh-audio-working/) 1. Extract the 3 required kext files you’ve previously downloaded from the prerequisites section above (AppleALC, Lilu and WhateverGreen) on your desktop (the .kext files needs to be on the desktop!) 2. Install the kext files using KextBeast to /Library/Extensions/ 3. Once they are installed, remove the 3 kext files from your desktop and reboot. 4. Now, open Clover Configurator:

a. First, mount your computer’s EFI partition: select Mount EFI -> Mount Partition

b. Now, select the File menu and open EFI/EFI/CLOVER/config.plist c. Select from the left menu: Acpi -> DSDT -> List Of Patches -> change HDAS to HDEF

d. Under Devices -> Audio -> Check ResetHDA checkbox Under Devices -> Audio -> Inject: 11 (this number is for the ALC1220 audio chipset) Under Devices -> Properties [HEX]-> Check UseIntelHDMI checkbox

e. Save config.plist and reboot.

5. Setting Audio Output a. Open System Preferences b. Select Sound and click Output tab c. Select Internal Speakers and also click checkbox Show volume in menu bar

* If audio doesn’t work after this, then it might be due to incompatibility between your version of the audio kexts files and your motherboard. Perhaps try downloading older versions of the AppleALC and Lilu kexts. Additional Clover Configurations 1. Generate a SSDT for CPU Power Management: before, a script called ssdtPRGen.sh had to be used in order to generate proper SSDT per CPU type. I’m not sure what this means, and what it does. All I know, is that this is no longer necessary, and one only needs to go into Clover Configurator: Select left menu Acpi -> Generate Options -> and check PluginType

I’ve ran the Geekbench benchmark tool, with and without this PluginType option. Enabling it does seem to give my CPU a bit more power!

2. Because we’ve set Extreme Memory Profile(X.M.P.) to Profile1 in our BIOS (this enables our memory to run at full speed - 3200 MHz), I’ve chosen to also set this in Clover, even though not sure if it changes anything: Boot -> XMPDetection -> 1

And while I was at it, I’ve also enabled “Verbose” and “Debug”. I want to see if a problem occurs! 3. Enable Intel Quick Sync to increase video encoding performance a. BIOS: Chipset -> Integrated Graphics : Enabled b. BIOS: Chipset -> DVMT Pre-Allocated : 128M . c. Clover Configurator: Enable Boot -> -disablegfxfirmare

d. Clover Configurator: Devices -> IntelGFX: 0x59128086

e. Clover Configurator: Graphics -> Enable Inject Intel and set ig-platform-id: 0x59120003 (use 0x59120000 if you don't have NVidia/AMD GPU) .

* Enabling Intel Quick Sync should greatly increase video encoding and rendering time, such as in Final Cut Pro… See: https://www.intel.com/content/www/us/en/architecture-and-technology/quick-sync-video/quick-sync-video-general.html 4. Force an iMac 17.1 identity in SMBIOS. For some reason, selecting it in the Multibeast clover installation didn’t fully do the job. Just click on the 2 arrows, scroll and choose iMac 17,1.

DON’T FORGET TO SAVE YOUR CONFIG !! . 5. Prevent any power saving problems (i.e. Wifi becoming slow after sleep, etc.): go to System Preferences -> Energy Saver and disable everything:

6. iMessage/Facetime: quite frankly, I do not care about these, since I don’t use them! However, one could follow this tutorial to make them work: https://www.youtube.com/watch?v=3xn9CpRjkf4 Also, when you generate a new serial number in SMBIOS, I believe you need to make sure it doesn't exists. To check if it exists, go to https://checkcoverage.apple.com/us/en/. If you get an error message that the serial number is invalid, that’s a good thing. It means nobody is using that one. * I’ve implemented this in my setup, but not tested!

That’s it! You are done :)