Skip to content

Instantly share code, notes, and snippets.

@bart613
Forked from possen/sierra-hackintosh-z270-ar.md
Last active November 16, 2017 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bart613/4384b9be54f1843a3b524bd26e78ec02 to your computer and use it in GitHub Desktop.
Save bart613/4384b9be54f1843a3b524bd26e78ec02 to your computer and use it in GitHub Desktop.
Sierra 10.12.6 Hackintosh | Asus z270-AR, Intel i5 7600, MSI 1080 Gaming X 8GB, EVGA 1080 8GB Kaby Lake

Sierra 10.12.6 Hackintosh

Based upon this GIST which was great!

This is my build documentation for an ASUS PRIME Z270-AR setup with an MSI 1080 Gaming X 8GB, EVGA 1080 8GB and the Intel i5 7600, most of this came from the person I forked this guide from. This build also doesn't have NVRAM. Nearest I can tell everything is running as expected, including all USB and audio ports. Make sure you get MacOS 10.12.6 as it has native support for Kaby Lake processors, and you won't need to fake the CPUID.

Build

  • Asus Z270-AR
  • Intel Core i5-7600 (Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz)*
  • Patriot (2 x 16GB) DDR4-2400 Memory
  • MSI GeForce GTX 1080 8G Installed in slot 1!
  • EVGA GeForce GTX 1080 8GB SC Gaming
  • Toshiba 120GB 2.5" OCZ m.2 drive (boot volume with main os, Highly Recommended!! Alhtough, a bigger drive would be better)
  • Western Digital Green 2TB 2.5" 7200RPM Internal Hard Drive.
  • Corsair 860W 80+ 860AX Platinum

* Obtained by: sysctl -n machdep.cpu.brand_string

Setup Guide

I. Setup USB Thumb drive

  1. Creating the boot drive

  2. Download and drag to thumb drive

    Optional NVMe drive setup

    I recommend this although it is optional. It is super fast and makes the frequent reboots needed to get things setup tolerable.

    • Make sure your drive supports 4K not 512k blocks. Toshiba OCZ is one such drive. You will not be able to select or see it in the Apple Installer until you do the next step.
    • I ran nvme-cli using apt on ubuntu to get the to set the 4k profile on the nvme drive. It may be possible to run the nvme-cli from macos if you have it installed using Homebrew. Run the command: WARNING! WILL ERASE VOLUME!:
        nvme format -l 1 /dev/nvme0
    
    • note: I could not get the smartctl 6.5 to recognize nvme, maybe it needs to be built from source. This should work and let you verify the volume is setup as 4k it is experimental so perhaps it is not part of the regular build. For more details see the details on nvme m.2

II. BIOS settings (make sure BIOS is up to date)

  1. Ai Overclock
    • AI Overclocker Tuner > Auto (or XMP if your memory supports it)
  2. Advanced Items
    • System Agent (SA) Configuration > VT-d > Disable
    • PCH Configuration > IOAPIC 24-119 > Disabled
    • Advanced/Onboard Devices Configuration > Serial Port Configuration > Disabled
    • USB Configuration > Legacy USB Support > Auto
    • USB Configuration > XHCI Hand Off > Enabled (if you can find it, latest BIOS seems to have removed it).
    • APM Configuration > Power on by PCI - E/PCI > Disabled
  3. Boot Menu
    • Fast Boot > Disabled
    • Boot Logo Display > Disabled
    • Secure Boot OS > Other OS (had to do some monkey business to disable this, saving keys off etc).
    • Boot Option 1 > USB Thumb Drive, UEFI Volume
  4. Exit > Save Changes

III. Install OSX

  1. At Clover boot screen, choose Boot Mac OS X from USB
  2. Disk Utilty
    • Select Target Disk
    • Erase > Mac OS Extended (Journaled)
  3. Don't bother to enable Network, Location, or Reporting nothing to be done now.
  4. On reboot select MacOS on *Target Drive* on the Clover boot screen

IV. Setting up the Machine Part 1

  1. Multibeast
    1. Drag and drop Multibeast to Application folder
    2. Run Multibeast and select the following settings:
      • Quick Start > UEFI Boot Mode
      • Drivers > Audio > Realtek ALC1220A (ASUS ROG Strix Only)
      • Drivers > Audio > Realtek ALCxxx > 100/200 Series Audio Drivers > Disk > 3rd Party SATA
      • Drivers > Misc > FakeSMC
      • Drivers > Misc > FakeSMC HWMonitor
      • Drivers > Network > Intel > IntelMausiEthernet v2.3.0
      • Drivers > USB > Increase Max Port Limit for 200 boards
      • Bootloaders > Clover v2.4k r4063 UEFI Boot Mode + Emulated NVRAM
      • Customize > System Definitions > iMac > iMac18,3 (which is the i7 Kaby Lake iMac)
    3. Save your config
    4. Run and Close
  2. Fixing Ethernet Device Name (needed for apple store etc.)
    • In Terminal run sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
  3. Clover Configurator
    1. Mount EFI partition clover EFI Mount
    2. Load config file clover load config
    3. Change settings in config:
      • Boot > dart=0 (Without it there is an early panic)
      • Devices > Audio > ResetHDA >
      • Rt Variables > CsrActiveConfig > 0x67 disable SIP temporarily
      • System Parameters > Inject Kexts > YES
      • System Parameters > Inject System ID >
      • System Parameters > Nvidia Web >
    4. Uncheck all of the ACPI fixes
    5. Save
  4. EFI Partition (Already mounted earlier in Clover)
    1. Navigate to `EFI(patition)/EFI/CLOVER/ACPI/patched in the Finder
    2. Copy in the SSDT file you downlaoded for your processor
    3. Rename to SSDT.aml
  5. Reboot

V. Setting up the Machine Part 2

  1. BIOS
    • Set startup partition to newly created OSX EFI partition
  2. Audio setup
    • Use KextBeast to install Lilu.kext. Do this by copying the Lilu.kext to desktop, then selecting, Install /Library/Extensions
    • Run the audio_cloverALC120v1.0f1.command file
    • enter password
    • Say yes (y) to all questions (for Asus Z270-AR)
    • Reboot
    • Plug in a device you know will make audable sound into the Black port on the motherboard.
    • Select the second Line outfor output.
    • Play something on iTunes that you know will make sounds.
  3. In Terminal
    • run ifconfig
    • Check that it returns en0 instead of en1, the line should look like:
      en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500`
      
  4. Clover Configurator
    1. Load the Clover config file follow steps 1 and 2 from earlier
    2. Select/install EmuVariableUefi in Install Drivers. This creates an emulated NVRAM
    3. Reset Rt Variables > CsrActiveConfig > 0x3 to renable SIP
  5. Run the NVIDIA driver
  6. Reboot

Done!

V. Optimize

I would do the above settings but then there are a couple things that you can try that worked for me.

  • You can turn back on VT-d and Intel Virtualization technology in the BIOS. It seem that this is working and allows things like VMware, Parallels, Docker, and VirtualBox.

  • If you get a garbled start screen with weird pattern on login screen, select a different bakcground picture, it cleared it up for me.

VI. Troubleshooting

Having issues with graphics drivers

Boot into safe mode.

Panic on boot

  • Make sure dart=0 is in the boot params.
  • Try iMac 14,2 good idea to have multiple startup configs one with 18,2 one with 14,2 just in case

TonyMacX86

Great resource but follow the rules if you want to ask for help.

Multibeast won't install on EFI Partition, gives error

Reformat EFI volume on Boot drive using

sudo newfs_msdos -v EFI -F 32 /dev/disk1s1  #update to your partition and volume!

Keep your USB boot drive

When you get a drive working keep it so you can boot off of its boot drive if you mess something off on your main drive.

Boot Drive issues

Use F8 to select the drive but verify that the bootloader you wanted in is the one you wanted to boot on. You can use the Clover Themes to help make it obvious.

Punt

If all else fails, and you have tried a bunch of thing that may end up conflicting with each other. The best bet is to erase the EFI partition on the boot volume and then clear out the /Library/Extensions folder and restart with this guide. Boot from the USB drive and reinstall.

  • diskutil unmount /Volumes/EFI
  • sudo newfs_msdos -v EFI -F 32 /dev/disk1s1 use diskutil list to determine it.
  • sudo rm -r /Library/Extensions/*
  • sudo rm -r /System/Library/Extensions/* (check for installed things in here. You can sort by mod date and just delete the ones that you may have installed).
  • Reboot to USB EFI volume that you know works by using F8. Verify that it is booting off this volume.
  • Reinstall OS that was on the USB volume, don't erase unless you are really desparate, just install over it. If you do that be sure to back up your data.
  • Do Multibeast install (as above)
  • Do Clover setup (as above)
  • Do reinstall of the audio codecs (as above)
  • Do reinstall of NVidia Web drivers (as above)
  • reboot to the boot volume.

This solved my issues after I spent all day trying to get the Audio to work. I tried numerous things and it was unclear that they did not conflict with each other.

Backup!

Once it is all working back it all up!

What can it do?

  • Run a decent Nvidia Graphics card to play A level games using Steam.
  • Audio is high quality.
  • Be used as an Xcode server
  • Mine Etherum in the space cycles.
  • IP6 networking throughout
  • Run virtual box to allow running of many PC and linux installations
  • Run Docker to run webservices and other things.
  • Run Wine to allow running of Windows applications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment