Jump to content
InsanelyMac Forum
Denicio

[Guide] macOS Sierra 10.12.x on ASRock H170M-ITX/ac

Recommended Posts

original.jpg

 

Introduction

This is a step-by-step guide for installing macOS Sierra 10.12.x on ASRock H170M-ITX/ac utilizing the onboard Intel HD530 GPU. Sorry for not elaborating like you’re reading a novel of some sort, but I think this is for your own benefit. Here are the details of my personal build:

 

- ASRock H170M-ITX/ac (BIOS v7.00)

- Core i3-6100 @ 3.7GHz

- 16GB RAM @ 2133MHz

- Onboard HD530 via HDMI

- Mini PCIe BCM94352HMB Wifi+BT

 

My experience with this system after 4 - 5 months of daily development usage (Xcode, Web etc.) is this: It's most definitely a very stable system if you don't mind the well known Hackintosh plague, which is the absence of Sleep functionality. Highly recommended.

 

Prerequisites

Maccie, a working Macintosh or Hackintosh computer, or even a macOS VM on Windows.

Hackie, your to-be Hackintosh computer.

Installie, a USB disk with capacity of 16GB or more.

 

Create the Install Disk

A) Download Install macOS Sierra.app from the AppStore on Maccie.

B)Insert a USB disk on Maccie and open Disk Utility. Select your USB disk, select Erase, add Installie as its name and press Erase.

C) Run the following command from Terminal: sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Installie --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction

D) Once more, rename your USB disk to Installie and execute Clover_v2.4k_r4049.pkg. Select Installie USB disk as target, then proceed to the customization step.

E) Select nothing but Install for UEFI booting onlyInstall Clover in the ESP, and OsxAptioFix2Drv-64 from Drivers64UEFI menu.

F) Installie's EFI partition is now mounted. Overwrite EFI/CLOVER/config.plist with the config.plist file attached to this post.

G) Copy all attached kexts to EFI/CLOVER/kexts/Other, copy SSDT-2.aml to EFI/CLOVER/ACPI/patched.

 

OS X Installation

H) Your Installie USB disk is now ready, plug it in on Hackie.

I) Press Del key to enter Hackie’s BIOS. On the Exit menu, execute Load UEFI Defaults, then enable XHCI Handoff.

J) On Boot menu, set your first boot device to UEFI: BrandName XYZ, Partition 1. Save everything and exit.

K) On Clover menu, select the macOS Installer entry, and after a couple of minutes you should be in the macOS Sierra installer.

L) Open Disk Utility, and format Hackie's internal HDD or SDD just like on step B, but this time name it Macintosh HD.

M) Continue with the installation on Macintosh HD until Hackie is restarted. Then, the second part of the installation will continue.

N) On the last restart, this time boot from your newly created Macintosh HD.

 

Finalize

O) With some luck you should be now customizing your Hackie's first run.

P) Repeat steps D, E, F, G but this time make sure you apply everything on Macintosh HD.

Q) Remove Installie from USB port, and restart Hackie.

R) The end.

 

Extra Points

S) If you own a SSD, paste the following on Terminal in order to enable TRIM support: sudo trimforce enable

T) Replace VBoxHfs-64.efi with HFSPlus-64.efi in drivers64UEFI. It's proprietary, but it's faster.

 

Notes

- You should replace the default Intel Wifi+BT Mini PCIe card with the BCM94352HMB or something equally compatible.

- Sleep does not work yet (see post #2 for output).

- Keep in mind that this is a WIP, any input from you will be much appreciated.

Make sure to mention the lettering of the step in question and the description of your problem using as much detail as possible.

 

post-99742-0-94194400-1480956434_thumb.png

post-99742-0-01103100-1480956456_thumb.png

post-99742-0-27245400-1480956466_thumb.png

post-99742-0-17192200-1480956479_thumb.png

post-99742-0-15942200-1480956488_thumb.png

ASRock_H170M_ITX_ac_v12.zip

Share this post


Link to post
Share on other sites
Advertisement

Now after the _OSI to XOSI patch the "Wake reason" is:

denniss-imac:~ dk$ syslog | grep -i "Wake reason" 
May 11 20:00:55 denniss-imac kernel[0] <Notice>: Wake reason: XDCI

And it panics on:

denniss-imac:~ dk$ pmset -g log | grep -i failure                                      
2016-05-14 20:21:43 +0300 Failure              Drivers Failure panic during wake due to SAT0():

Share this post


Link to post
Share on other sites

Hey, I have the ASrock H170M PRO4S

2.7 Core i5 6400
Onboard Video HD 5300
16GB DDR

I have been trying to get to installer and so far your instructions and Plist Config actually gets me farther into boot ...until i get the "stop" prohibitor sign.

 

Any help would be awesome As there are no guides for this Motherboard.. Thanks!

Share this post


Link to post
Share on other sites

Hey, I have the ASrock H170M PRO4S

2.7 Core i5 6400

Onboard Video HD 5300

16GB DDR

 

I have been trying to get to installer and so far your instructions and Plist Config actually gets me farther into boot ...until i get the "stop" prohibitor sign.

 

Any help would be awesome As there are no guides for this Motherboard.. Thanks!

 

Thanks for your feedback, I think those two Motherboards should be similar. Could you please boot with Verbose Flag (-v) and see where it gets stuck?

Share this post


Link to post
Share on other sites

Sure, so it gets stuck here and then it gets all distorted. 

 

I honestly cannot read the output of the second screen, but based on the first one I will make an assumption: Do you have "FakeSMC.kext" on EFI/CLOVER/kexts/10.11?

 

EDIT: I think it says "Still waiting for root device" at the bottom. Try to boot with "cpus=1" flag and report back.

Share this post


Link to post
Share on other sites

Same error, and I used the same "FakeSMC.kext that you had in your attachment..

Share this post


Link to post
Share on other sites

Same error, and I used the same "FakeSMC.kext that you had in your attachment..

 

Did you try "cpus=1"?

Share this post


Link to post
Share on other sites

Yes, I Did. Same error at the same place.

 

1) Is your SATA Controller set as AHCI in BIOS?

2) Try to also enable "Inject USB" on Clover's "config.plist", right now only "Fix Ownership" is enabled.

3) Some people also mention the following Boot Flags: npci=0x2000 or npci=0x3000

4) Also keep "USBInjectAll.kext" on your "EFI/CLOVER/kexts/10.11" as well.

Share this post


Link to post
Share on other sites

1) Is your SATA Controller set as AHCI in BIOS?

2) Try to also enable "Inject USB" on Clover's "config.plist", right now only "Fix Ownership" is enabled.

3) Some people also mention the following Boot Flags: npci=0x2000 or npci=0x3000

4) Also keep "USBInjectAll.kext" on your "EFI/CLOVER/kexts/10.11" as well.

1. AHCI is already set in Bios.

2. I checked off the box for inject USB

3. I have tried both boot flags, one at a time.

4. I have put "USBInjectAll.kext in 10.10, 10,11, and "other:".

 

Still stuck at the same place.

1. AHCI is already set in Bios.

2. I checked off the box for inject USB

3. I have tried both boot flags, one at a time.

4. I have put "USBInjectAll.kext in 10.10, 10,11, and "other:".

 

Still stuck at the same place.

 

Interestingly, I tried booting with -x and it flys thru the boot but it then restarts.

Share this post


Link to post
Share on other sites

Try inject intel ang ig-platform-id 0x19120000

I have tried that as well.

 

As I was looking over my build, I have forgotten to add a hardware piece that i had in there but forgot to mention. I have a TP-LINK N900 wireless PCI Express installed.

Share this post


Link to post
Share on other sites

1. AHCI is already set in Bios.

2. I checked off the box for inject USB

3. I have tried both boot flags, one at a time.

4. I have put "USBInjectAll.kext in 10.10, 10,11, and "other:".

 

Still stuck at the same place.

 

Interestingly, I tried booting with -x and it flys thru the boot but it then restarts.

 

Inject USB box should be checked, not unchecked.

My boot flags with "-uia_exclude" may be disabling your Boot USB, try to remove it.

Try also to use "UseKernelCache=No".

Disable VT-d in BIOS as well, maybe "dart=0" doesn't work.

Share this post


Link to post
Share on other sites

Some user also reported in order to get past the garbled text you need to try a different output (HDMI, DVI etc).

Share this post


Link to post
Share on other sites

Changelog:

- Added new version of "config.plist" that includes _OSI to XOSI patch.

- New SMBIOS for iMac 17,1.

Share this post


Link to post
Share on other sites

Changelog:

- New BIOS v1.70 installed, everything works OK, but CSM mysteriously disappeared as an option :(

Share this post


Link to post
Share on other sites

I've tried following these instructions on my Asrock H110 mitx mother board, it just loops back to the boot devices screen.

 

Do you see anything on screen before it resets?

Share this post


Link to post
Share on other sites

No, it just blinks and the boot menu comes back.

 

So you are at the boot menu, you select to boot from USB, and then it resets. How about you press the spacebar (for options), and make sure you Boot Verbose. Then report back with what you see on screen.

Share this post


Link to post
Share on other sites

i tried this guide and install on a HDD el captain

but i can't find the hard disk in clover , i can see only the bootable usb

 

Hello, try with the attached config.plist that I made for you.

config.plist.zip

Share this post


Link to post
Share on other sites

I tried this guide to install a Hackintosch with my system components, but the system is not booting. I used the ktexts from this thread, only cpu settings are changed.

 

My components are:

ASRock H170M-ITX/ac

Pentium G4400 Celeron cpu

Onboard gpu

 

At the moment i use a G4400, later i will switch to i5 or i7.

 

System is booting from usb, clover is loading. At Clover boot screen, i try to boot the system in verbose mode.

After that i got the following errors:

 

OsxAptioFix2Drv: starting overrides for .IABootFiles/boot.efi

Using reloc block: no, hibernate wake: no

This version of Mac OS X is not support

Reason: Mac-65CE76090165799A

 

My config.plist

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ACPI</key>
    <dict>
        <key>DSDT</key>
        <dict>
            <key>Debug</key>
            <false/>
            <key>DropOEM_DSM</key>
            <false/>
            <key>Patches</key>
            <array>
                <dict>
                    <key>Comment</key>
                    <string>Rename HECI to IMEI</string>
                    <key>Disabled</key>
                    <false/>
                    <key>Find</key>
                    <data>
                    SEVDSQ==
                    
</data>
                    <key>Replace</key>
                    <data>
                    SU1FSQ==
                    
</data>
                </dict>
                <dict>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.



  • Similar Content

    • By zebity
      Hi Hypervisors,
       
      I have been working to move my Late 2009 Xserve MacOS Server onto Ubuntu 18.04 LTS QEMU/KVM based virtual machine using OVMF and Clover.
       
      After much effort and testing based on the following information from: Kraxel's, Kholia, Gordon Turner and Clover site:
      https://www.kraxel.org/blog/2017/09/running-macos-as-guest-in-kvm/
      https://github.com/kholia/OSX-KVM
      https://gist.github.com/gordonturner/2a2e5ecde5e7860b52e2
      https://clover-wiki.zetam.org/Home
       
      I have now managed to get OVMF/Clover boot and install of MacOS Sierra.
       
      I started with Ubuntu 16.04 initially but this required download and compile of QEMU to get update of machines to: pc-q35-2.9 or better, so I moved to Ubuntu 18.04, which has pc-q35.2.11 available as standard.
       
      So I am now working with standard Ubuntu 18.04 LTS based systems with following packages: kvm/qemu/libvirt/bridge-utils/ovmf/virt-manager
       
      As I want to use PCIe Passthrough for a number of PCIe card currently installed in the server (SmallTree 10GbE & Areca ARC-1883 SAS RAID) I set up my machine with linux kernel boot configuration (/etc/default/grub) of: 
      GRUB_CMDLINE_LINUX_DEFAULT="iommu=1 intel_iommu=on" (as my machine is intel VT-d based HW virtualisation)
       
      This resulted in creation of a number of iommu groups (see /sys/kernel/iommu_group directory for this and this posting for information: https://forum.level1techs.com/t/ubuntu-17-04-vfio-pcie-passthrough-kernel-update-4-14-rc1/119639 , noting that Ubuntu 18.04 LTS has kernel version: 4.15.0-22-generic so there is no need to do kernel update for iommu to work).
       
      Using bare minimal Clover config.plist:
       
       
      And following Clover UEFI drivers:
       
      I can boot MacOS, but it is very very slow... it sits on the apple boot logo for over a minutes before finally moving onto the progress bar.
      The other problem I have is that no PCI or Network devices appear in the "About This Mac" System Information Report and I cannot get any network connectivity from bridged E1000 network device.
       
      Here is my virtlib.xml dump for the virtual machine:
       

      Can any one advise of whether I need to update the CLOVER config.plist to add extra items in to allow network and PCI Passthrough to work.
       
      Thank you.
       
      Regards,
       
      Zebity
       
    • By MaLd0n
      Nehalem, SandyBridge, IvyBridge, Haswell, Broadwell     Skylake, Kabylake and Coffeelake is here http://www.insanelymac.com/forum/topic/321872-guide-sierra-on-gigabyte-mobos-serie-200-kabylake-dsdt/   First...   ***Update bios to last available version!***   If you need a full patched DSDT...  -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation   --Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder CLOVER Install.zip   --Install Sierra/High Sierra and boot into system!   Post Installation --Install Clover and replace with my folder CLOVER Post Install.zip   --Reboot and activate video!   Bingo!   Now you need a fine tune! DSDT time!   --DSDT   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -PLUGIN TYPE -XXXX to HDEF -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -EC -PNLF -HDMI
       
      --Power Management
      - 1 Generation Intel Processors, use Generate P and C States in config.plist
      - 2 and 3 Generations Intel Processors, Generate SSDT with Piker script and drop CpuPm and Cpu0Ist SSDTs
      ssdtPRGen.command.zip
      Credits-https://github.com/Piker-Alpha/ssdtPRGen.sh
      - 4 Generation+ Intel Processors, use PluginType=1 in DSDT, SSDT or Clover config.plist
       
      for check Power, Frequency, Temperature and Utilization, use it
      Install Intel Power Gadget.pkg.zip
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --Clover
       
      https://sourceforge.net/projects/cloverefiboot/files/Installer/
       
      --AUDIO
       
      Use DSDT + AppleAlc
       
      --install Lan driver by Mieze
        -Atheros http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/314406-voodoohda-289/   -USB https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads   It's time to Rock   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Apple, Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!  
    • By MaLd0n
      First... If you need DSDT edits... -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation --Create a bootable copy of El Capitan and Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Install Clover in USB stick https://sourceforge.net/projects/cloverefiboot/files/Installer/   --Replace with my Clover folder CLOVER Install.zip   --Install EL Capitan / Sierra / High Sierra and boot into system! for Sierra/High Sierra you need a Processor with SSE4.1 instruction   Post Installation --Install Clover and replace with my folder CLOVER Post Install.zip   --Reboot and activate video!   Bingo! Now you need a fine tune! DSDT Time! -Post your full Clover folder with original tables in Origin folder(Extract with F4 in Clover boot screen) and tell me what your hardware! -Post Ioreg, extract with Ioreg Explorer http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222606 -Run it, post files generate in your desktop http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222609    My DSDT GA P35-DS3 DSDT.MaLd0n LGA775.zip   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -LPC -HDEF -RTC -EHCI -UHCI -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -EC -PNLF --Native Power Management
       
      Use Clover, check Generate P and C States
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --AUDIO
       
      Device HDEF + AppleAlc + Lilu
       
      --install Lan driver by Mieze
        -Atheros http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/293863-applehda-patch-requests/   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By tluck
      Lenovo T460 macOS with Clover Guide
      Release v2018.05.17 on GitHub Updated to Clover r4458 Updated Lilu.kext - supports both Sierra and High Sierra Updated AppleALC.kext - supports both Sierra and High Sierra + added back DVMT patch for 10.13.2+ Updated VoodooPS2Controller.kext (RehabMan version) + SSDT updates for T460 Added Frank's T470p DSDT files
        Various Tweaks over Last months The zip file is a complete Clover ESP (/EFI) bundle and kext pack for the Lenovo T460. The current file bundle is tested on Sierra. 
      Note: I never got the GFX fully working on El Capitan. 
      Full Clover file set - config.plist etc. Includes all custom kexts Includes custom DSDT/SSDT scripts and patches Utility scripts The zip bundles are posted to GitHub: https://github.com/tluck/Lenovo-T460-Clover/releases
      Caveat: The T460 systems used here was configured with: i5-6300U, Intel HD Graphics 520, 1920x1080 touch screen. If you have a different system model, then extract the ACPI files and use the included scripts to create a set of files consistent with your system type and BIOS version. See below for details.
      Credits: RehabMan, Shmilee, vusun123, TimeWalker, Mieze from which, much of their work and help is/was was used to get the T460 to this point.
      Devices and aspects working:
      Ethernet -  Intel I219LM is enabled via IntelMausiEthernext.kext WiFi/BT - substitute the Intel WiFi/BT with a compatible Broadcom or Atheros chip Audio - ALC293 codec implemented via AppleALC.kext (old AppleHDA_ALC293 and CodecCommander kexts are not needed) PS2 - ClickPad + TrackPoint + all 3 buttons - using a modified VoodooPS2Controller to support new layouts - and added some custom Fn key maps based on 440/450 dsdt USB - implemented via custom SSDT + USBInjectAll kext. All USB3/USB2 ports are intel-based and work -  3 external USB and internal Camera, BT, etc  Sleep/Wake - the sleepwatcher package and custom sleep/wake scripts are used to help with sleep/wake for BT and PS2 devices. Note: have not tried to implement the SD card reader - no driver found.
      ACPI Files
      New Installation - Steps and Details
      Part 1 - OS Installation
      Part 2- Post OS Installation and Setup
      Notes on Custom Kexts
       
×