Contribute
Register

[Success] Squirrelzone's Z370-A II - i5 9600k - Radeon 5700 build

Status
Not open for further replies.
Joined
Jan 11, 2012
Messages
80
Motherboard
Asus Tuf Z390 Plus Wifi-2808-OC
CPU
i9-9900K
Graphics
XFX Radeon VII
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Squirrelzone's Coffee Lake ATX Build:
Asus Z370-A II - i5 9600k - Radeon RX 5700

Components

Asus Prime Z370-A II Motherboard
Amazon

Crucial Ballistix Sport LT 2666 MHz DDR4 (2x8 GB = 16GB) Memory
Amazon

Intel Core i5 9600K Processor
Amazon

Cooler Master Hyper 212 EVO CPU Cooler
Amazon

XFX AMD Radeon 5700 (RX-57XL8LBD6) Changed to XFX Radeon VII
Amazon Amazon

Fenvi T919 PCIe Wifi Card (BCM94360CD)
Amazon

2 Ports USB 3.0 Female Back Panel to 20pin Header Connector (Generic)
Amazon


Already Owned

Crucial MX100 512 GB SATAIII SSD (MacOS Drive) - Discontinued by manufacturer I have swapped for the HP NVME SSD, second link:
Amazon HP NVME SSD

Apple Magic Trackpad 2 This is no longer part of my build, but it works.
Amazon

Razer DeathStalker Expert Keyboard
Amazon

Creative Sound Blaster Omni Surround 5.1 USB Sound Card This is no longer part of my build, but it works.
Amazon

M-Audio BX5a Powered Monitors (5" Speakers) - discontinued
M-Audio BX5a old product listing

2 TB Inland Premium NVME SSD Internal Drive (Windows 10 Drive)
Amazon

Acer 24" K242HL 1920x1080 DisplayUpdate May 22, 2020: I purchased an LG 27UD68 monitor. It is very pretty for the price. HiDPI works great over HDMI. The 27-inch size makes me feel like I'm looking at a real iMac!
Amazon 27UD68 on Amazon

Logitech C920 Webcam
Discontinued - but you could select another Mac compatible model, like this: Amazon

NZXT Case - unsure of model



Comments

I've been using a hackintosh build around an H77 chipset since 2012. It served me very well and there was nothing wrong with it. But I felt the urge to upgrade my hardware during the 2019 holidays. I have to say, it was very hard to find motherboards and CPUs. It would seem that manufacturing of this generation has slowed down, in my opinion, because of an impending refresh by Intel. I tried an H370 and a Z390 motherboard. Both were fine, but caused too much trouble with non-native NVRAM and I didn't want to use the supposedly dangerous OsxAptioFix2Drv-free2000.efi just to get a headless iGPU.

This Asus Prime Z370-A II is really nice and easy to work with, and the native NVRAM is great. The first version of this board (Prime Z370-A) was in the buyers' guide, but I'm not aware of any noticeable difference with my version II for making a hackintosh.


Installation Notes

UEFI BIOS Settings

I'm using version 0801, and don't plan on updating for fear of messing anything up. I might update this thread if I do flash it. Here are my settings:
Load optimized defaults.
Advanced/SA Configuration>VT-d disabled
Above 4g decoding Enabled
/Graphics Configuration> Primary display: PCIE
iGPU multi-monitor Enabled
DVMT Pre-Allocated 64M
Serial Port off
Launch CSM EnabledUpdate: Disabled, if you have issues disabling Secure Boot.
Secure Boot Disabled (and delete the keys if needed). If not, the machine will only allow Windows.

Update May 22, 2020:
I've updated the BIOS to 1202. I don't see any negative side effects. In the process I used MyLogo to change the Asus logo to an Apple one. Fun! Also, set iGPU graphics to 128MB.
----------------------

Installation
I went straight to Catalina from my MacBook using the createinstallmedia + Clover install method before the tonymacx86 UniBeast became available.
Update: UniBeast v10 is now available. You can follow the guide to make a USB installer.
----------------------
I admit, I used an old GTX 680 at first because I wasn't sure if the installer would like my new RX 5700. I'd been following the "AMD Radeon Navi GPU" thread started by Gigamaxx so I thought to just get the OS installed and then tackle the GPU. Once I had Clover running on my system drive, I went ahead and swapped for the 5700, using agdpmod=pikera at boot.
Update May 22, 2020:
I have since swapped the 5700 for a Radeon VII. The performance is solid and this allows me to have a Mojave installation for when times call for a 32-bit app, which does happen. Also, I don't need the agdpmod=pikera boot argument anymore.
----------------------
Because I wanted a bit more clarity into what would be installed, and MultiBeast isn't exactly made for Catalina yet, I manually installed Clover 5103 and used Clover Configurator (CC) to build a config.plist.
Update: While MultiBeast for Catalina isn't available as of Jan 26 2020, the UniBeast for Catalina guide states that the Mojave version is a good place to start.

I proceeded to find a suitable SMBIOS and generate a serial using CC. You can inspect my entire EFI which is attached (minus my serials).
EXTRA IMPORTANT UPDATE:
Please follow the guides for setting a good serial number in your SMBIOS. If not, things relating to iCloud such as the App Store, FaceTime and iMessage will not work, and possibly flag your AppleID on Apple's servers. Read
this guide.
----------------------
For USB, I studied up on RehabMan's SSDT guide for USBInjectAll.kext and came up with a tidy USB SSDT to keep the machine under the 15-port limit. Don't simply use my SSDT-USB-UIAC.aml unless you plan on using the same exact physical configuration of ports.
Update: I used Hackintool to create my own USBports.kext instead of relying on a UIAC. This should last a long time. Note that I needed to use XHCI-Unsupported with USBInjectAll, and the port limit removal patches for 10.15.x. this was pretty easy. My USBPorts.kext is included in the attached zipped EFI folder.
----------------------
Ports are pretty straightforward: all USB 3.0 ports and headers are active, and one internal USB 2.0 header for my bluetooth card (the USB 2.0 header on the motherboard all the way to the right). The other 2.0 headers are disabled. This puts me within the 15 port limit. I did want a few more ports so I threw in an Inatek PCIe card. Note: the USB-C and accompanying USB 3.1 gen2 port are not affected by the port limits, so if disabling ports makes you sad, there are two extras.
Update May 22, 2020
In addition to setting port limits with Hackintool, I also added power properties for both the XHCI controller and the ASMedia Gen 2 chip. What this does is gives full charging capacity to iPads and iPhones. You can add this section to your USBPorts.kext fairly easily. See my example in the latest EFI I uploaded. Also, I removed the Inatek PCIe card because I don't need that many ports!
Latest EFI is attached (SquirrelZone-EFI May 22 2020.zip)
----------------------

Config.plist
After reading about what real Mac might have my CPU, I landed at the iMac19,1 for my System Definition. I read that machine can be built-to-order with a 9600K.
I don't want to list everything, but do note that with my iGPU enabled, I added AAPL,ig-platform-id of 0300983E and device-id of 983E000 through PCIRoot(0x0)/Pci(0x2,0x0) using Clover Configurator. This allowed me to use the UHD 630 iGPU headless. Confirmed working with videoproc and Intel Power Gadget. Having a headless iGPU to accompany my Radeon was crucial, because I really like to use Sidecar with my iPad.

As I said, since MultiBeast for Catalina hasn't been released, I instead installed the latest version of Clover and chose the EFI drivers there. I have a software Raid0 on Sata ports in my case, and VBoxHFS didn't allow me to boot. Thus, I went with the older HFSPlus.efi driver instead.
Update May 22, 2020: No need for the older HFSPlus.efi. Not sure why but Vbox works fine with my setup now.
----------------------
I also used the regular AptioMemoryFix.efi and didn't need EMUVariable, because this motherboard has native NVRAM (confirmed with sudo nvram TestVar=HelloWorld).

The other UEFI drivers are more or less standard options.

The third party kexts I'm using are: FakeSMC , USBInjectAll , WhateverGreen , Lilu , IntelMausi , AppleALC with a layout ID of 1 (in Clover Configurator, Device>Audio>Inject). I tested the stereo green output with my speakers for purposes of having a complete User Build post, and it sounds fine. However, I intend to use an external USB Sound Blaster Omni. I use powered speakers and the Sound Blaster has a hardware volume knob, which is great for how I use this machine.
Update May 22, 2020:
I've since removed the SoundBlaster Omni in favor of using the on-board sound card. For volume control, I bought this knob on Amazon. The SoundBlaster can't be selected as the startup sound output for Clover (I want my Apple Chime!) and I realized I only really cared about having the volume knob on the SoundBlaster.
----------------------
The Fenvi t919 PCIe card works OOB and pairs nicely with my Apple Magic Trackpad 2.
Update May 22, 2020:
I decided to just use my Logitech G602 wireless USB mouse. There's too much interference going on at my desk, which I share with my work MacBook, which also has bluetooth issues, so I know the Hackintosh doesn't have a problem I can solve.
Update: In CC, I set my config.plist to "detect" for Inject Kexts in the System Parameters section. What this does is only loads kexts from the bootloader if there is no FakeSMC in /Library/Extensions (/L/E) on the drive where MacOS is installed. I prefer to have all third party kexts in /L/E. I do have the minimal kexts (FakeSMC, IntelMausi, Lilu, WhateverGreen) in EFI/Clover/kexts/Other in case I need to temporarily boot to something that doesn't have the necessary third party kexts in /L/E.
Update Feb 2020: Moved all third party kexts to EFI folder and set Clover to Inject them. This is to adhere to the latest policy set by Apple, where unsigned kexts will not load from L/E. So, set Inject Kexts to "Yes" in your config.plist.
Updates May 22, 2020:
Once you use the Hackintool USBports.kext method, you should remove USBInjectAll.kext.
Also, following the latest guides here, I switched to VirtualSMC. Everything works as expected, just follow CaseySJ's Mini-Guide. I am on Clover 5115 now.



Benchmarks (See new Radeon VII benches. 5700 benches will stay here for now)

CPU:
Screen Shot 2020-01-25 at 12.32.27 AM.png

RX 5700 Metal:
Metal.png

Updated Radon VII Metal Benchmark May 22, 2020:
metal.png

RX 5700 OpenCL:
OpenCL.png

Updated Radeon VII OpenCL Benchmark May 22, 2020:
opencl.png


Working
Sleep and shutdown are helped by the GPRW patch in CC and the SSDT in my EFI folder.
Update May 22, 2020:
I discovered that GPRW disables wake from USB devices (keyboard, mouse, etc) which was inconvenient. I found that turning off "Wake for Network Access" was all we need to do, so remove any trace of GPRW (in config and SSDT). I still had a problem where any external drive would eject unsafely and when waking up I'd get a bunch of warnings that it was ejected. To remedy this, I used SafeSleep.app.
----------------------
Working (cont'd)
Sidecar works
Gigabit Network (I'm hardwired to my switch)
USB

Not Working
A weird issue is that sometimes the system boots directly to the NVMe SSD which has Windows on it, even though my SSD with Clover is set as the first boot option. It's not a big deal as I don't turn it off much, but it can be annoying. Also, Encoding to H.264 via Quicktime isn't working. Even when I choose HEVC, it appears to encode using the CPU, not either GPU. Will look into it.
Update May 22, 2020:
I purchased another NVME drive and moved my Catalina install there. I haven't had an issue with the machine choosing the wrong drive since.
Update May 22, 2020:
Regarding encoding from QuickTime: I found that using any shikigva argument to enable DRM caused issues with QuickTime h.264 export in particular. I don't really use this computer to watch Netflix or Apple TV+ so I removed shikigva=xx. Now, exports utilize the iGPU as expected.
Update: Not Sure:
Thunderbolt. I got the Asus add-in card, and it's recognized in Windows. However, I don't own any Thunderbolt devices so I don't know if it actually works in either Windows or MacOS. I'm not sure why I bought the card, other than to "complete the package." If I get my hands on a Thunderbolt device I'll be sure to share my findings.
Update May 22, 2020:
Thunderbolt... I couldn't get the Add-in card to work, and I realized I don't use any TB devices. I did spend time troubleshooting and trying things, but in the end sold the Asus card. I'm sure if I really needed TB I could figure it out, but it's not worth it for now. I read that the Gigabyte Titan Ridge card is more cooperative in MacOS. Might try it later on down the road but not for now.
----------------------

Summary

Update May 22, 2020:
To finish things off, I put a .wav file in the clover theme. So when the machine reaches Clover, I hear a fun Apple Start-Up Chime.
A quick unrelated note: I found that having the iGPU enabled caused crashes in certain games in Windows, such as Red Dead Redemption 2. To work around that, just disable Intel UHD 630 in Device Manager. This way you can still have it enabled in BIOS for your MacOS install.
----------------------
This build has been pretty easy to set up and it meets all my needs. Final Cut Pro X works flawlessly and fast. Hopefully this post can be helpful to others. Thanks for reading!
 

Attachments

  • z370SZ.png
    z370SZ.png
    1.4 MB · Views: 2,198
  • squirrelzone-z370a-ii-EFI.zip
    20.1 MB · Views: 216
  • SquirrelZone-EFI May 22 2020.zip
    21.8 MB · Views: 202
Last edited:
Hi I'm doing a build similar to yours but with a z390-a motherboard and using the onboard graphics just for the setup. Is there any way you could help me through the process? I followed this guide and couldn't get past the boot screen with the apple and loading bar. I downloaded your EFI folder and put it into my thumb drive and tried to boot it with that and had the same result. I'm very new to this so I apologize.
 
Hi I'm doing a build similar to yours but with a z390-a motherboard and using the onboard graphics just for the setup. Is there any way you could help me through the process? I followed this guide and couldn't get past the boot screen with the apple and loading bar. I downloaded your EFI folder and put it into my thumb drive and tried to boot it with that and had the same result. I'm very new to this so I apologize.
If you have a Z390-A, our motherboards are not similar. I think you'd be better off following a guide with the same motherboard, such as this one by user Jakeofspades: [SUCCESS] ASUS Prime Z390-A. Or at least a guide with the same Z390 chipset, like MacMan's Build.
My EFI folder doesn't apply to your motherboard... I wouldn't go down that road :banghead: It's for a Z370, not a Z390. I don't want to go too far into detail, but a couple differences: Z370 motherboards have an additional ASMedia USB controller to provide USB 3.1 gen 2 ports, so port limits don't apply to those ports. Z390, on the other hand, has a built-in Intel USB 3.1 gen 2 controller, so port limits do apply. I have a port-deleting SSDT in my EFI folder that might mess with your setup and disable ports that you intended to use! Also, most Z370 motherboards have native NVRAM, whereas on Z390 it has to be emulated, which may or may not work for everyone.
If you copied my EFI folder correctly, and were able to start the boot process, you would at least be seeing lines of text fly by, because I have "-v" as a boot argument, so I can see what's going on behind the Apple logo. So I think you are going down the wrong path by following a guide for a different motherboard and copying an EFI folder that doesn't match your hardware.
So, look at a guide that uses the same or similar motherboard, figure out how to boot in verbose (-v that I mentioned earlier) so you can see where the boot is getting stuck at (and search the internet for the error), and don't give up. And for Pete's sake, don't use someone's EFI folder if you don't have the same motherboard!
Cheers :headbang:
 
If you have a Z390-A, our motherboards are not similar. I think you'd be better off following a guide with the same motherboard, such as this one by user Jakeofspades: [SUCCESS] ASUS Prime Z390-A. Or at least a guide with the same Z390 chipset, like MacMan's Build.
My EFI folder doesn't apply to your motherboard... I wouldn't go down that road :banghead: It's for a Z370, not a Z390. I don't want to go too far into detail, but a couple differences: Z370 motherboards have an additional ASMedia USB controller to provide USB 3.1 gen 2 ports, so port limits don't apply to those ports. Z390, on the other hand, has a built-in Intel USB 3.1 gen 2 controller, so port limits do apply. I have a port-deleting SSDT in my EFI folder that might mess with your setup and disable ports that you intended to use! Also, most Z370 motherboards have native NVRAM, whereas on Z390 it has to be emulated, which may or may not work for everyone.
If you copied my EFI folder correctly, and were able to start the boot process, you would at least be seeing lines of text fly by, because I have "-v" as a boot argument, so I can see what's going on behind the Apple logo. So I think you are going down the wrong path by following a guide for a different motherboard and copying an EFI folder that doesn't match your hardware.
So, look at a guide that uses the same or similar motherboard, figure out how to boot in verbose (-v that I mentioned earlier) so you can see where the boot is getting stuck at (and search the internet for the error), and don't give up. And for Pete's sake, don't use someone's EFI folder if you don't have the same motherboard!
Cheers :headbang:
Ha,ha! Like I said, I'm completely brand new to this. Thank you very much for pointing me in the right direction.
 
@squirrelzone, Good write up on you system. However, I'd like to correct a misconception. The 'Beasts are a convenient way to create your installation rather doing everything by "hand" - the so called vanilla method.

UniBeast creates the USB installer thumb drive installing Clover and using the createinstallmedia method. MultiBeast does the same by allowing you to choose the type of Clover to install and the appropriate drivers/kexts and several other options as described in the MultiBeast Features document (so you know what you are "getting") which comes with the MultiBeast zip file. The version of Clover that both the 'Beasts use is one that MacMan has created and tested on multiple systems, and, while it may not the very latest, it works. The latest tonymacx86 versions of Clover are available in the Downloads > Clover Builds (see menu at top right of this page).

So, just clear the misconception, the 'Beasts are a convenient, easier way for beginners to install macOS and get it up and running.
 
squirrelzone, are there any Z390 motherboards that have native NVRAM? Is there any way to tell looking online at the manufacturer specs? What's the benefit of native vs. non-native?
Thanks!
 
@squirrelzone, Good write up on you system. However, I'd like to correct a misconception. The 'Beasts are a convenient way to create your installation rather doing everything by "hand" - the so called vanilla method.

UniBeast creates the USB installer thumb drive installing Clover and using the createinstallmedia method. MultiBeast does the same by allowing you to choose the type of Clover to install and the appropriate drivers/kexts and several other options as described in the MultiBeast Features document (so you know what you are "getting") which comes with the MultiBeast zip file. The version of Clover that both the 'Beasts use is one that MacMan has created and tested on multiple systems, and, while it may not the very latest, it works. The latest tonymacx86 versions of Clover are available in the Downloads > Clover Builds (see menu at top right of this page).

So, just clear the misconception, the 'Beasts are a convenient, easier way for beginners to install macOS and get it up and running.
Thanks!
That's absolutely correct, UniBeast+MultiBeast is the best way to go and I would recommend that first. As Stork pointed out, User Guides are supposed to be helpful to all levels, especially beginners, so I will edit my post.
 
squirrelzone, are there any Z390 motherboards that have native NVRAM? Is there any way to tell looking online at the manufacturer specs? What's the benefit of native vs. non-native?
Thanks!
Hi!
I am not aware of any Z390 boards with native NVRAM. I can confirm that the Gigabyte Z390-UD and H370-HD3 do not have it. The benefits as far as I can tell is that it works better with KASLR and Aptio memory randomization fixes. I don't have extensive knowledge but this allowed me to use the iGPU. With the aforementioned boards, I kept getting runtime allocation errors with AptioMemoryFix.efi, even when calculating Slide values, and could only boot with the "unsafe" OsxAptioFix2Drv-free2000.efi. I think if you only plan on having a compatible discrete GPU, and must use a Z390 board, disable the integrated graphics in your BIOS and use iMacPro1,1 system definition.
If you'd like to discuss further, please post to the appropriate section of the forum as this thread is a user guide based around an Asus Prime Z370-A II board.
Cheers.
 
I am now on 10.15.3 and everything is working fine.
I updated the post to reflect new USB port configuration method, third party kext placement, and a useless teaser about the Thunderbolt add-in card.
 
Updated to macOS 10.15.4 with no issues, but careful planning as advised in the first two posts of this thread: macOS 10.15.4 Update by tonymacx85.
Updated Clover to 5107, found at CloverHackyColor's github. In the process, I transitioned to VirtualSMC from FakeSMC using this: CaseySJ's VirtualSMC switching mini-guide. No noticeable difference, but VirtualSMC seems to be the future of hackintoshing and the default in the new MultiBeast/Unibeast. I did clear NVRAM by hitting f11 at Clover disk selection screen after going to VirtualSMC. Not sure if it helps.
Made sure third-party kexts in EFI/Clover/Kexts were up-to-date.
Cloned system + EFI to USB 3.0 SSD, booted to said clone to make sure it was functional in case it was needed. (it wasn't needed, hooray).
Proceeded to update via Software Update.
Made myself a drink and read some news on my iPhone, came back and 10 minutes later it booted right up into 10.15.4 without issue.
~20 minute update process after file was downloaded. Not too bad.
 
Status
Not open for further replies.
Back
Top