Jump to content

ASUS Z170M-Plus Install/Post-Install for Sierra 10.12 and 10.12.1

ASUS Z170M PLUS Nvidia macOS Sierra Clover toledo PikeRAlpha AGDP Audio NVMe

  • Please log in to reply
13 replies to this topic

#1
macinsane

macinsane

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts

My Configuration: Core i5 6600K, Gainward GTX680, Samsung 256GB NVMe M.2, BCM943602CS Combo Card

What works?

Everything. Only a few minor things left to do for those who want to: One of the mic jacks doesn’t work, but fortunately the front one does and I don’t need to fix this.

Haven’t tested USB-C yet and doubt I ever will, so please add your experience if you like!

I definitely recommend this set up.

 

Update to 10.12.1 works too, more at the bottom of this post.

 

What do you need to do?

You need to mount your EFI (e.g. with EFI Mounter), apply some patches to Clover’s config.plist. and install a few kexts in Clover/kexts/Other.

I used iMac 17,1 system definition. If anyone uses a different one I’m happy to learn from your experience!

For Geforce-Users (7xx and on): You have to boot with nv_disable=1 UNTIL you BOTH installed nVidia web drivers AND applied AGPD fix properly! Or else you get a black screen after boot. For that fix you need to deactivate SIP, you can do this by Clover argument or through a variety of apps. I think Clover does this the most convenient way and you can switch SIP on and off as you like.

 

Clover Fixes

Audio Rename Fix

...
<key>Patches</key>
       		<array>
             		<dict>
                  	  <key>Comment</key>
                  	  <string>Rename HDAS to HDEF</string>
                  	  <key>Find</key>
                 	  <data>
                  	  SERBUw==
                  	  </data>
                  	  <key>Replace</key>
                  	  <data>
                 	  SERFRg==
                 	  </data>
... 

Audio Inject-ID

...
<key>Devices</key>
	<dict>
		<key>Audio</key>
		<dict>
			<key>Inject</key>
			<string>2</string>
		</dict>
...

USB Fix

 

Note: I personally don't use this because I edited USBInject to match my configuration. USB 2.0 ports go from HS9 to HS 14 and USB 3.0 ports are SS01 - SS04, SS07, SS08 what makes 15 ports. It seems Clover can break sleep ability under certain circumstances and I don't care about the additional USB-C port, so I recommend to use correct USB injection via kext and SSDT instead. But for a start this gives you all your USB ports, so you can hack on! 

...
<key>KextsToPatch</key>
...
<dict>
	<key>Comment</key>
	<string>Increase 15 port limit to 26 in AppleUSBXHCIPCI
	</string>
	        <key>Find</key>
		<data>g710////EA==</data>
		<key>Name</key>
		<string>AppleUSBXHCIPCI</string>
		<key>Replace</key>
		<data>g710////Gw==</data>
</dict>
...

Deactivate SIP (for AGDP fix)

...
<key>RtVariables</key>
	<dict>
		<key>BooterConfig</key>
		<string>0x28</string>
		<key>CsrActiveConfig</key>
		<string>0x67</string>
	</dict>
... 

Kexts

Install these kexts in Clover/kexts/Other

FakeSMC.kext of course
AppleALC.kext for audio
USBinjectAll.kext

For full compatibility (sleep only works this way) make sure that ports used in config.plist inside kext match your config! In this case there are

- six USB2.0 ports (9,10,11,12,13,14) – port 12 is for sure internal (there must be at least another one).

Anyway, for internal ports edit config.plist inside kext: 

<key>UsbConnector</key>

<integer>255</integer>

- five USB 3.0 ports (1,2,3,4,7,8)

- USB-C port

ALTERNATIVE: You can do this via a custom SSDT as well if you like and leave the kext untouched. I have attached mine at the bottom of this post.

IntelMausiEthernet.kext or IntelE1000e.kext for onboard ethernet

AGDP fix for nVidia

Many thanks to PikeRAlpha for his AGDP fix! Version 1.3 added support for iMac 17,1 definition. It was the only working solution for me to avoid black screens on startup.

HDMI Audio for nVidia

Thanks to toleda for his awesome Clover script. It just works!

 

NVmE

 

Thanks again to Pikeralpha for his patch for M.2 hard drives! Without it, no install to or boot from your super fast drive.

 

Upgrade to 10.12.1

Pikeralpha's Clover-patch doesn't work anymore, you have to create HackrNVMeFamily.kext (if you are using a NVMe M2 drive, regular SSD users don't need that). Which means you need to boot and update to 10.12.1 on a cloned installation on a regular SSD or AHCI M2 drive. Then add the Hackr kext to your EFI partition and remove Apple's IONVMeFamily.kext from /System/Library/Extensions or you get kernel panics! After that you can clone (with CCC or SuperDuper) your system back to your NVMe M2 drive (don't forget to put the Hackr kext on your EFI partition!). From now on this procedure is mandatory with every major system update if you are using an NVMe drive.

- My wifi was broken after update. The Broadcom chip, that was working natively in the past with El Capitan and Yosemite, seems to need a Clover patch from now on. 

<key>KextsToPatch</key>
          <array>          
          <dict>
               <key>Comment</key>
               <string>10.12.1-BCM94352 Add Patch #1</string>
               <key>Disabled</key>
               <false/>
               <key>Find</key>
               <data>
               QTnEdRs=
               </data>
               <key>Name</key>
               <string>AirPortBrcm4360</string>
               <key>Replace</key>
               <data>
               QTnEZpA=
               </data>
           </dict>
           <dict>
               <key>Comment</key>
               <string>10.12.1-BCM94352 Add Patch #2</string>
               <key>Disabled</key>
               <false/>
               <key>Find</key>
               <data>
               QQ+3zTnBdQw=
               </data>
               <key>Name</key>
               <string>AirPortBrcm4360</string>
               <key>Replace</key>
               <data>
               QQ+3zTnBZpA=
               </data>
           </dict>
           <dict>
               <key>Comment</key>
               <string>10.12.1-BCM94352 Add Patch #3</string>
               <key>Disabled</key>
               <false/>
               <key>Find</key>
               <data>
               g33EBHQG
               </data>
               <key>Name</key>
               <string>AirPortBrcm4360</string>
               <key>Replace</key>
               <data>
               g33EBGaQ
               </data>
           </dict>
</array> 

- AGDPfix had to applied again or else you end up with a black screen on boot. Just boot with nv_disabled the first time an run Pikeralpha's AGDPfix app.

 

----------------------------------------

Attached are SSDT's for CPU power management, HDMI-Audio via Geforce and USB injection

Attached Files

  • Attached File  SSDT.zip   1.85KB   96 downloads


#2
Twa

Twa

    InsanelyMac Protégé

  • Members
  • PipPip
  • 53 posts
  • Gender:Male
  • Location:Germany

Thanks you, very clear guild ! I have a question that you No need any audio patch i mean except Audio inject-id = 2 ?

 

this is mine audio fix, 2 front audio ports worked well

<key>Audio</key>
	<dict>
	<key>Inject</key>
	<string>1</string>
<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>10.12-AppleHDA/Realtek ALC...</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				ihnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				AAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>change 15 port limit to 26 in XHCI kext (100-series) 10.12</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				g710////EA==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCIPCI</string>
				<key>Replace</key>
				<data>
				g710////Gw==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>AppleHDA/Resources/xml&gt;zml</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				eG1sLnps
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				em1sLnps
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>10.9-10.12-AppleHDA/Realtek ALC887</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				ixnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				hwjsEA==
				</data>
			</dict>
		</array>

- anw: with your SSDT for USB i lost 2 USB2.0 port in back of case ?

 

- And this DSDT will fix cann't Sleep problem

Attached Files

  • Attached File  DSDT.zip   36.15KB   35 downloads


#3
MacDELLintosh

MacDELLintosh

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts

Thanks you, very clear guild ! I have a question that you No need any audio patch i mean except Audio inject-id = 2 ?

 

this is mine audio fix, 2 front audio ports worked well

<key>Audio</key>
	<dict>
	<key>Inject</key>
	<string>1</string>
<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>10.12-AppleHDA/Realtek ALC...</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				ihnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				AAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>change 15 port limit to 26 in XHCI kext (100-series) 10.12</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				g710////EA==
				</data>
				<key>Name</key>
				<string>AppleUSBXHCIPCI</string>
				<key>Replace</key>
				<data>
				g710////Gw==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>AppleHDA/Resources/xml&gt;zml</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				eG1sLnps
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				em1sLnps
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>10.9-10.12-AppleHDA/Realtek ALC887</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				ixnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				hwjsEA==
				</data>
			</dict>
		</array>

- anw: with your SSDT for USB i lost 2 USB2.0 port in back of case ?

 

- And this DSDT will fix cann't Sleep problem

 

 

what patches you use on DSDT to fix cant sleep problem for Z170?



#4
Twa

Twa

    InsanelyMac Protégé

  • Members
  • PipPip
  • 53 posts
  • Gender:Male
  • Location:Germany

what patches you use on DSDT to fix cant sleep problem for Z170?

 

Instant wake usb3 skylake patch for DSDT. Normal i dont need a patch like that to sleep my MAC, but till my new bluetooth usb cause error instant wake so i need this patch



#5
snam11

snam11

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 114 posts

guys, do you have the random loop without posting after a reboot or shutdown?

i noticed happens to me after installing new software/drivers/kexts.

i own a gigabyte gtx970 4gb, 1 monitor out using the analog dvi port with dvi-vga converter (i've tested at least 3,and one of them was original apple converter)

do you have a solution?

twa: i noticed you have same gfx as mine, can you share your plist/bios conf so i can compare with mine?

 

EDIT: solved the problem using hdmi/dp port. osx just hates dvi-vga adapters....

 

macinsane: do you have usb3 issues on your machine? i have an external usb3 disk that works like a charm on real macs.

if i try to use it on the hackintosh, the disk works fine, but it stops working after a while. the disk become irresponsive, finder hangs looking for files or dir, and i have to unplug/replug to make it work again.

could it be a power problem issue?the disk has just 1 usb plug, so i can't test the disk with extra usb for power supply.



#6
macinsane

macinsane

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts

Sorry for not answering! But I was "out-of-hack-business" for several months. :) 

Hope you've solved your problems in the meantime.



#7
snam11

snam11

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 114 posts

i solved just the random reboot instead of login, because i was using dvi-vga adapter and osx hates it...

using hdmi/dp solved the issue.

 

i sill have the bios problem:

It can be a system update, a system crash, or updating stuff on clover partition,.
once the system reboots (or powers on) it shuts down after few sec, like it cannot post or trigger some kind of protection.
only solution is a cmos reset, otherwise the system keep on powering on and off after few sec in an infinite loop state.

do you have same issues as mine? if so, did you solved it?



#8
macinsane

macinsane

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts

Quick guessing: Did you activate AppleRTC Fix in Clover or patched it in DSDT? Do you have set boot options in BIOS to UEFI only? Do you have disabled secure boot (cleared keys) and have set boot to "Other OS"? Do you have any "unusual" kexts installed that weren't part of the guide?



#9
snam11

snam11

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 114 posts

as far i can remember (i can check tomorrow) i didn't set rtcfix in clover

no dsdt patches, just the 6700k cpu ssdt

in bios the option is uefi and legacy

boot is set to other os and keys are deleted (strange thing i've noticed: if i import previous bios saved settings, i must reboot and edit again deleting keys and setting other os because seems this option can't be stored or saved)

 

kext are just a few:

applealc
intelmausiethernet
fakesmc
usbinjectall
vodoops2 (i still use ps2 kb/mouse)

 

 

just to be clear about this bios issue: if it triggers somehow, the machine won't post, so i can't even enter the bios, i must reset the cmos shorting the pin on the mobo, because the loop can't be broken.

once the machine is powered on i get black screen and after 5-8 sec it shuts down.



#10
newer71

newer71

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts

my hack boot installation sierra but here it block ... click continue and nothing.. help...

Attached Files

  • Attached File  all.jpg   97.48KB   0 downloads


#11
snam11

snam11

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 114 posts

my hack boot installation sierra but here it block ... click continue and nothing.. help...

you own an msi z170-a pro mobo, this thread is for the asus z170m plus



#12
macinsane

macinsane

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts

as far i can remember (i can check tomorrow) i didn't set rtcfix in clover

no dsdt patches, just the 6700k cpu ssdt

in bios the option is uefi and legacy

boot is set to other os and keys are deleted (strange thing i've noticed: if i import previous bios saved settings, i must reboot and edit again deleting keys and setting other os because seems this option can't be stored or saved)

 

kext are just a few:

applealc
intelmausiethernet
fakesmc
usbinjectall
vodoops2 (i still use ps2 kb/mouse)

 

 

just to be clear about this bios issue: if it triggers somehow, the machine won't post, so i can't even enter the bios, i must reset the cmos shorting the pin on the mobo, because the loop can't be broken.

once the machine is powered on i get black screen and after 5-8 sec it shuts down.

This really could be a RTC problem. You should enable the patch just to rule it out. And just to be sure, check all other needed BIOS setting (like Handshake, VT-d disabled etc.). But if the BIOS isn't posting anything, it could be hardware problem as well (don't hope so). Do you have Windows installed on your machine? Maybe it interfers with UEFI, trying to get the keys for security reasons and so resets them (but that is just a guess...) By the way: I'm pretty sure you need Lilu.kext for AppleALC to work, but I might be wrong.



#13
snam11

snam11

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 114 posts

so i did my homeworks, and i did some test to simulate a bios bootloop, and it was pretty easy: mounting the efi partition and importing config.plist in clover configurator did the trick every time...

i can confirm i don't have any rtc option enabled, and i've posted my pic.

i did noticed also a strange thing when the bios hangs. when i reset the cmos and re enter the settings, the time is set 2 hours back...

bios version is 1805.

main option are:

fast boot disabled

vt-d disabled

os type other os (keys deleted)

intel virtualization tech. disabled

cfg lock disabled

xhci hands off enabled

erp ready disabled

serial and parallel disabled

 

the thing i'm not sure about is boot device control, mine is set to uefi and legacy oprom. should i set to uefi only?

 

only os installed is el cap, and no windows.

 

 

i don't think is an hw problem. because i built 2 identical machines and both have same problem.

 

do you want me to enable just the applertc fix in clover?

 

thnx for the help!

 

 

EDIT: YAY!!! enabling applertc flag seems fixes at least the bootloop after mounting the efi partition. let's do some more tests...

Attached Files



#14
macinsane

macinsane

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts

 

 

EDIT: YAY!!! enabling applertc flag seems fixes at least the bootloop after mounting the efi partition. let's do some more tests...

:)







Also tagged with one or more of these keywords: ASUS Z170M PLUS, Nvidia, macOS, Sierra, Clover, toledo, PikeRAlpha, AGDP, Audio, NVMe


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2016 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy