Contribute
Register

GA-Z87MX-D3H N760 ITX El Capitan with Clover

Status
Not open for further replies.
Joined
Dec 21, 2013
Messages
149
Motherboard
Gigabyte Z490 Auros Ultra
CPU
i9-10850K
Graphics
RX 6900 XT
Mac
  1. iMac
  2. MacBook Air
  3. MacBook Pro
Mobile Phone
  1. iOS
Guide to install/migrate from Yosemite to El Capitan with Clover.

What works:
  • Startup
  • Shutdown
  • Sleep
  • Wake from Sleep (via USB)
  • USB 2.0 ports
  • USB 3.0 ports and external drives
  • USB 2.0 ports on Apple LED Display
  • Apple LED monitor via mini-Displayport on N760 ITX
  • iMessage
  • FaceTime
  • Bluetooth (using the GMYLE adaptor - note that Bluetooth does not work in the BIOS & Clover boot menus)
  • Bluetooth wake from sleep
  • Wifi (TP-LINK TL-WDN4800 N900 is detected as a Airport)
  • Airdrop (only when using the ethernet connection...)
  • Continuity
  • Handoff (SMS receiving and sending, answering and making calls)

What does not work:
  • iTunes DRM

GeekBench Results
Screen Shot 2015-11-07 at 14.24.22.png

Components:
  • Intel Core i5-4670K Haswell Processor
  • Gigabyte Z87MX-D3H Socket 1150 Micro ATX Motherboard
  • Corsair CML16GX3M2A1600C10 Vengeance Low Profile 16GB (2x8GB) DDR3 1600 Mhz
  • GMYLE (TM) Micro USB Bluetooth 4.0 Dongle Dual Mode w/ Low Energy Technology Wireless Adapter (Broadcom BCM20702 chipset)
  • TP-LINK TL-WDN4800 N900 Wireless Dual Band PCI Express Adapter
  • MSI N760 2GD5 Overclocked ITX PCIe Graphics Card
  • Apple Magic Mouse
  • Apple Bluetooth Keyboard
    Note: Does not work in the Clover Boot Menu or BIOS. You need a backup USB/PS2 Keyboard for that.
  • Apple 27 Inch Cinema Display (connected via Mini-Displayport)
  • Corsair H80i Water Cooler



Step 1 - Preliminaries:
  • Ensure that the Z87MX-D3H has the latest F7 BIOS as available from Gigabyte: http://www.gigabyte.com/products/product-page.aspx?pid=4490#bios
  • Note you will need access to a MAC to download and create a USB installer
  • Ensure that you have a USB or PS/2 keyboard available - unless your USB Bluetooth device works in the BIOS (The GMYLE one does not)
  • Create you own El Capitan Installer as per the following TonyMac El Capitan Installation Guide by following Step 1 and Step 2

Step2 - Before you proceed make the following BIOS settings
  • Load Optimised Defaults first
  • If your CPU supports VT-d, disable it for installation (you can enable it again later - useful for running virtual machines, etc)
  • If your system has CFG-Lock, disable it
  • If your system has Secure Boot Mode, disable it
  • Set OS Type to Other OS
  • Set XMP to no in the BIOS for installation. (Can be set back to 'profile1' after installation)
  • Set XHCI Mode to "Smart Auto"
  • Set Internal Graphics to "Disabled" if you are using a dedicated graphics card
  • Ensure Init Display first is set to the PCI slot of your card - assumed to be "PCIe 1 Slot"
  • Set XHCI Handoff to "Disabled" - this will disable USB 3.0 - but will ensure all ports work at USB 2.0 speeds for installation - until we fix USB 3.0 later in the guide.
  • Set EHCI Handoff to "Disabled" - this will disable USB 3.0 - but will ensure all ports work at USB 2.0 speeds for installation - until we fix USB 3.0 later in the guide.

Step 3 - Installation
  • Follow Step 4 of the TonyMac El Capitan Installation Guide
  • Note that you should use a USB 2.0 port for the installation as USB 3.0 does not work by default on the GA-Z87MX-D3H
  • Note the comment about MaxWell cards and the "nv_disable=1" which should be entered at the Clover boot menu (Does not apply here as I have a Nvidia GTX 760 Card which is not a MaxWell based card)

Step 4 - Post Installation
  • Follow Step 5 of the TonyMac El Capitan Installation Guide. Note that you have to boot from the USB installer at this stage - booting from the HDD will not work yet.
  • You may use the following example clover config.plist: View attachment ga-z87mx-d3h el capitan config.plist.zip (Note I have blanked out my serial, ROM and MLB values - these should be generated). Alternatively use the one provided in the Clover installation guide.
  • Make sure you select the iMac 14,2 definition or "product name" in Clover Configurator.
    Note that it is important to not choose a definition at random - but a definition that closely mirrors your Hackintosh hardware with an actual Mac. See the following URL for the relevant iMac models and the following URL for the iMac 14,2 hardware specification which matches my system components.
  • Make sure you use the "Magic Wand" to create a unique serial number for your Hackintosh. Do not select the first value but try this a few times. Ensure that you have a unique serial and it is not used by an existing Macintosh machine - enter it here: https://selfsolve.apple.com/. If the serial is valid but not already assigned to someone with a a real mac you'll get the follow message (which is what you are after): "We're sorry, the number you have provided cannot be found in our records. Please verify the number and try again".
    If you get any other response regenerate the serial - follow the "How to Fix iMessage" guide.

Step 5 - Fixing USB 3.0 (Based on matt77303's "El capitan USB issues - possible fix." thread)
  1. Note that this fix is specific for this board. If you have another board (e.g. GA-Z97) - refer to matt77303's thread above.
  2. Update your BIOS settings to set "XHCI Hand-Off" to "Enabled" and "EHCI Hand-Off" to "Enabled" if you have not already done so.
  3. Download:
  4. Open Clover Configurator. It will prompt you to mount you EFI directory. Afterwards - ensure you load you existing Clover config.plist file (usually /EFI/EFI/CLOVER/config.plist)Screen Shot 2015-11-07 at 13.29.24.png
  5. Add the DSDT Patch Configuration:
    1. Click the little + icon on the right
    2. Use "change _OSI to XOSI" as the comment
    3. Enter "5F4F5349" in the "Find* [HEX]" field
    4. Enter "584F5349" in the "Replace* [HEX]" field
    Screen Shot 2015-11-07 at 13.28.42.png
  6. Ensure the following configuration options are set in Clover via Clover Configuration
    1. In the Acpi -> Fixes section untick "FIXUSB"
    2. In the Devices -> USB section untick "Inject", "Add ClockID", "FixOwnership" and "HighCurrent"
    3. In the Rt Variables section set your BooterConfig to "0x28" and "CsrActiveConfig" to "0x67"
  7. Be sure to save you configuration and reboot by pressing the export button Screen Shot 2015-11-07 at 13.29.49.png
  8. Launch MaciASL and ensure that the compiler preferences is set to the latest version (5.0 or 5.0A)
    Screen Shot 2015-11-07 at 13.35.20.png
  9. Copy the following into the MaciASL window
    Code:
    DefinitionBlock ("SSDT-XOSI.aml", "SSDT", 1, "hack", "hack", 0x00003000)
    {
        // All _OSI calls in DSDT are routed to XOSI...
        // XOSI simulates "Windows 2012" (which is Windows 8)
        // Note: According to ACPI spec, _OSI("Windows") must also return true
        //  Also, it should return true for all previous versions of Windows.
        Method(XOSI, 1)
        {
            // simulation targets
            // source: (google 'Microsoft Windows _OSI')
            //  http://download.microsoft.com/downlo...nACPI_OSI.docx
            Name(WINV, Package()
            {
                "Windows",              // generic Windows query
                "Windows 2001",         // Windows XP
                "Windows 2001 SP2",     // Windows XP SP2
                "Windows 2006",         // Windows Vista
                "Windows 2006 SP1",     // Windows Vista SP1
                "Windows 2009",         // Windows 7/Windows Server 2008 R2
                "Windows 2012",         // Windows 8
            })
            Return (LNotEqual(Match(WINV, MEQ, Arg0, MTR, 0, 0), Ones))
        }
    }
    //EOF
    Screen Shot 2015-11-07 at 13.37.55.png
  10. Save As "SSDT-XOSI.aml" in "ACPI Machine Language Binary" format in "EFI/Clover/ACPI/patched"
    Screen Shot 2015-11-07 at 13.43.01.png
  11. Open up Kext Wizard and install FakePCIID.kext and FakePCIID_XHCIMux.kext downloaded earlier.
    Screen Shot 2015-11-07 at 13.44.48.png
  12. Reboot.

    Note You'll want to enable "Screen Sharing" temporary to be able to log into your machine if anything goes wrong before continuing to the next section of the guide. Otherwise you will not be able to access your machine from within El Capitan.
  13. Fix USB Wake from Sleep
    1. Reboot your machine and press F4 at the Clover Boot Menu. Clover will write your native DSDT configuration to "EFI/Clover/ACPI/origin". Note that there is no response or notification when pressing F4...
    2. Once booted, mount your EFI partition and copy your "DSDT.aml" from "EFI/Clover/ACPI/origin/" to your desktop.
    3. Open the file in MaciASL
    4. Change the following
      Code:
      Method(XWAK, ...
      {
         ..some code...
      }
      to
      Code:
      Method(XWAK, ...
      {
         Return(0)
         ..some code...
      }
      Screen Shot 2015-11-07 at 13.55.25.png
    5. At this point MaciASL will throw two errors and refuse to compile the DSDT. Specifically you will see something the following two error messages:
      Code:
      6645, 6126, syntax error, unexpected PARSEOP_ZERO
      11024, 6126, syntax error, unexpected PARSEOP_ARG0
      Screen Shot 2015-11-07 at 13.56.07.png
    6. Open preferences and go to the Sources tab and add the following Patch Source: "http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master".
      Screen Shot 2015-11-07 at 13.56.21.png
    7. Once complete click the Patch icon and you will be presented with a list of patches to apply to the DSDT.
    8. . Select “[syn] Fix ADBG Error” and once the "Apply" button is no longer greyed out and the details of the patch displayed - click "Apply"
      Screen Shot 2015-11-07 at 13.57.55.png
    9. Click close and click on the "Compile" button. Only the PARSEOP_ZERO error should now display in the Log.
    10. Repeat the previous step and apply the "[syn] Fix PARSEOP_ZERO Error” patch
    11. You will now be presented with the following errors:
      Code:
      69, 6074, Name already exists in scope (_SB_.PCI0.PEG0)
      70, 6074, Name already exists in scope (_SB_.PCI0.PEG0.PEGP)
      71, 6074, Name already exists in scope (_SB_.PCI0.PEG1)
      72, 6074, Name already exists in scope (_SB_.PCI0.PEG2)
      Navigate to the relevant lines and comment the entries out as follows:
      Code:
      //External (_SB_.PCI0.PEG0)
      //External (_SB_.PCI0.PEG0.PEGP)
      //External (_SB_.PCI0.PEG1)
      //External (_SB_.PCI0.PEG2)
      Screen Shot 2015-11-07 at 14.10.15.png
    12. You should now only have warning in the logs and no errors.
      Screen Shot 2015-11-07 at 14.10.37.png
    13. Compile the DSDT. It will be saved in place. Copy it to the "EFI/Clover/ACPI/patched" folder.
  14. Restart your machine and USB 3.0 should now be working by indicating the device speed is "Up to 5 Gb/sec" (you will need a USB 3.0 High Speed device to verify this)
    Screen Shot 2015-11-07 at 14.01.33.png
  15. Disable screen sharing if it was enabled

Step 6 - Fix Intermittent Bluetooth:
  • Download BrcmPatchRAM for Mac OS 10.11 and later provided by RehabMan here: https://bitbucket.org/RehabMan/os-x-brcmpatchram/downloads/
  • Install the "BrcmPatchRAM2.kext" and "BrcmFirmwareRepo.kext" using Kext Wizard or your favourite tool. Note the warning about using multiple/the wrong combination of kexts!
  • Reboot. You should see something similar to this below to indicate bluetooth is now working properly.
    Code:
    16/04/2016 12:17:41.000 kernel[0]: BrcmPatchRAM2: Version 2.2.3 starting on OS X Darwin 15.4.
    16/04/2016 12:17:41.000 kernel[0]: BrcmPatchRAM2: Published new IOKit personality for BrcmFirmwareStore.
    16/04/2016 12:17:43.000 kernel[0]: BrcmPatchRAM2: Published new IOKit personality for BrcmPatchRAMResidency.
    16/04/2016 12:17:45.000 kernel[0]: BrcmPatchRAM2: [0a5c:21e8]: BrcmPatchRAMResidency does not appear to be available.
    16/04/2016 12:17:45.000 kernel[0]: BrcmPatchRAM2: [0a5c:21e8]: BrcmFirmwareStore does not appear to be available.
    16/04/2016 12:17:45.000 kernel[0]: BrcmPatchRAM2: [0a5c:21e8]: USB [000272C824D3 v274] "BCM20702A0" by "Broadcom Corp"
    16/04/2016 12:17:45.000 kernel[0]: BrcmPatchRAM2: unable to find disabled BrcmFirmwareStore personality.
    16/04/2016 12:17:46.000 kernel[0]: BrcmPatchRAM2: unable to find disabled BrcmPatchRAMResidency personality.
    16/04/2016 12:17:46.000 kernel[0]: BrcmPatchRAM: Loaded firmware "BCM20702A1_001.002.014.1502.1764_v5860.zhx" from resources.
    16/04/2016 12:17:46.000 kernel[0]: BrcmPatchRAM: Decompressed firmware (30360 bytes --> 71148 bytes).
    16/04/2016 12:17:46.000 kernel[0]: BrcmPatchRAM: Firmware is valid IntelHex firmware.
    16/04/2016 12:17:47.000 kernel[0]: BrcmPatchRAM2: [0a5c:21e8]: Firmware upgrade completed successfully.
    16/04/2016 12:17:47.000 kernel[0]: BrcmPatchRAM2: [0a5c:21e8]: Found existing IOKit personality "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport".
    16/04/2016 12:17:47.000 kernel[0]: BrcmPatchRAM2: Processing time 5.815 seconds.
    16/04/2016 12:17:47.000 kernel[0]: BrcmPatchRAM2: Version 2.2.3 starting on OS X Darwin 15.4.
    16/04/2016 12:17:47.000 kernel[0]: BrcmPatchRAM2: uploadFirmware could not open the device!
    16/04/2016 12:17:47.000 kernel[0]: BrcmPatchRAM2: [0a5c:21e8]: Found existing IOKit personality "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport".
    16/04/2016 12:17:47.000 kernel[0]: BrcmPatchRAM2: Processing time 0.48 seconds.

Step 7 - Fix Corsair H80i Wake From Sleep:
When installing the Corsair H80i one of the steps requires connecting the pump to a USB header. Unfortunately one side effect of this is that your Hackintosh will wake from sleep instantly after it tries to go to sleep.

Note: This will only fix the wake from sleep issue. The Corsair pump and the fans attached to it still will not function as per Windows (in other words they will not increase their rate of spin as the CPU temperature increases!). It is recommended to set a adequate default value (when logged into windows) or to download a program which will control the fans and the pump. See either MacFanControl or HWSensors.
  • The fix is to deactivate USB wake from sleep. This implies that you will only be able to wake your Hackintosh with the power button or a device connected to the PS/2 port (mouse/keyboard).
  • Download RehabMan's version of MaciASL as per step 5 and ensure that "http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master" is added as a patch source.
  • Mount your EFI partition and open your existing "DSDT.aml" in "/Volumes/EFI/Clover/ACPI/patched" folder.
  • Apply the DSDT with the "[usb] USB_PRW 0x0D (instant wake)" patch.
  • You may be will now be presented with the following errors:
Code:
69, 6074, Name already exists in scope (_SB_.PCI0.PEG0)
70, 6074, Name already exists in scope (_SB_.PCI0.PEG0.PEGP)
71, 6074, Name already exists in scope (_SB_.PCI0.PEG1)
72, 6074, Name already exists in scope (_SB_.PCI0.PEG2)
  • Navigate to the relevant lines and comment the entries out as follows:
Code:
//External (_SB_.PCI0.PEG0)
//External (_SB_.PCI0.PEG0.PEGP)
//External (_SB_.PCI0.PEG1)
//External (_SB_.PCI0.PEG2)
  • Compile the DSDT and ensure the up to date version is placed in the "/Volumes/EFI/Clover/ACPI/patched" folder.
  • Reboot (Note: Remember to enable screen sharing in case you have inadvertently disabled USB and you need to rescue your Hackintosh).
Thanks goes to tonymacx86, RehabMan, jay monkey & matt77303 on whose work this guide is based.
 

Attachments

  • Screen Shot 2015-11-07 at 14.09.04.png
    Screen Shot 2015-11-07 at 14.09.04.png
    259.4 KB · Views: 667
Last edited:
Hello Milmber,
Thanks for your manual. I have similar hardware in my pc as you:

Corsair VS 650W
Corsair Carbide Series 200R
Kingston V300 SV300S37A/240G
(2.5", 240GB, SATA/600)
Intel Core i5-4670K 3.4GHz BOX
Gigabyte GA-Z87MX-D3HCrucial
DDR3 2x8GB 1600MHz CL9 Ballistix Sport XT
Gigabyte GTX 770 GDDR5-4GB
BCM94360CD 802.11ac

I used suggested plist.config file and modified it with my MLB, Serial etc.

  • Startup
  • Shutdown - not working, PC shutdown and start up automatically after few second
  • Sleep - work perfectly (all usb ports works fine after wake)
  • Wake from Sleep (via USB) and WOL are working fine _ I use WOL every day - not an option to disable it
  • USB 2.0 ports
  • USB 3.0 ports and external drives
  • USB 2.0 ports on Dell Display
  • iMessage
  • FaceTime
  • Bluetooth (using the BCM94360CD - Bluetooth does work in the BIOS & Clover boot menus)
  • Wifi (BCM94360CD)
  • Airdrop
  • Continuity
  • Handoff (SMS receiving and sending, answering and making calls)

Can I do something with my shutdown?
I checked last wake reason:
Nov 3 10:08:34 Marek_PC kernel[0] <Notice>: Wake reason: GLAN (Network)
Looks find, PC was woke by me via WOL.... Milmber you are the only hope!

PS: I did not modify any DSDT, never done that before, so I'm not familiar with it, that was not required with Yosemite. Can I make sure, that during the boot PC do not get any errors?

I have dual boot OS X and Windows 10 on seprate SSD drives with latest Clover.
 
ok small update
My hack crash when I wake him up clicking on mouse (attached screenshot)
I tried once more and it go to sleep well and work fine when I woke it up.
:O

In attachment there is also my config.plist file

Working! FakePCIID.kext and FakePCIID_XHCIMux.kext were missing
 

Attachments

  • crash.txt
    7.5 KB · Views: 398
  • config.plist
    4.3 KB · Views: 443
Hey guys,

I have some serious USB 3 Problems in High Sierra, did U already made them work?

I always get the Error spammed:

XHC@14000000: AppleUSBHostCrontroller::setPowerStateGated: going to state 1 returned 0xe00002e9
XHC@14000000: AppleUSBHostCrontroller::hardwareExceptionThreadCallGated: 0x00000001
XHC@14000000: AppleUSBHostCrontroller::setPowerStateGated: going to state 2 returned 0xe00002e9
XHC@14000000: AppleUSBHostCrontroller::hardwareExceptionThreadCallGated: 0x00000004
XHC@14000000: AppleUSBHostCrontroller::hardwareExceptionThreadCallGated: attempting recovery
 
ok small update
My hack crash when I wake him up clicking on mouse (attached screenshot)
I tried once more and it go to sleep well and work fine when I woke it up.
:O

In attachment there is also my config.plist file

Working! FakePCIID.kext and FakePCIID_XHCIMux.kext were missing

Hey guys,

I have some serious USB 3 Problems in High Sierra, did U already made them work?

I always get the Error spammed:

XHC@14000000: AppleUSBHostCrontroller::setPowerStateGated: going to state 1 returned 0xe00002e9
XHC@14000000: AppleUSBHostCrontroller::hardwareExceptionThreadCallGated: 0x00000001
XHC@14000000: AppleUSBHostCrontroller::setPowerStateGated: going to state 2 returned 0xe00002e9
XHC@14000000: AppleUSBHostCrontroller::hardwareExceptionThreadCallGated: 0x00000004
XHC@14000000: AppleUSBHostCrontroller::hardwareExceptionThreadCallGated: attempting recovery

Attach Problem Reporting Files.

Post ioreg as ZIP: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

Also, press F4 at the main Clover screen, then compress and attach the EFI/CLOVER folder in use. And please, in order to reduce the size, omit EFI/Clover/themes.
 
Status
Not open for further replies.
Back
Top