Contribute
Register

Alan's Thin mini-ITX: GA-H87TN - i3-4330 - HD4600

Status
Not open for further replies.
Joined
Sep 22, 2010
Messages
26
Motherboard
ASUS MAXIMUS X HERO (WIFI/AC)
CPU
i7-8700K
Graphics
RX 580
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Alan's Thin mini-ITX: GA-H87TN - i3-4330 - HD4600

Components

Gigabyte GA-H87TN Thin mini-ITX Motherboard
http://www.newegg.com/Product/Product.aspx?Item=N82E16813128668

Intel Core i3-4330 Haswell Processor
http://www.newegg.com/Product/Product.aspx?Item=N82E16819116945

Lian-Li PC-Q05 Thin Mini-ITX Case
http://www.newegg.com/Product/Product.aspx?Item=N82E16811112357

Intel HTS1155LP CPU Cooler
http://www.newegg.com/Product/Product.aspx?Item=N82E16835203012

Samsung 840 EVO 120GB mSata

http://www.newegg.com/Product/Product.aspx?Item=N82E16820147315

Azurewave AW-CE123H 802.11ac/nbg WiFi+BT PCI Express Card
http://www.amazon.com/gp/product/B00HRFS1GQ/

GMYLE Micro USB Bluetooth 4.0 Dongle
http://www.amazon.com/gp/product/B007MKMJGO

FSP Group Mini ITX / 19V DC 180W Power Adapter
http://www.amazon.com/gp/product/B00F4O155Q/


Already Owned


PNY 8GB DDR3 SODIMM
http://www3.pny.com/8GB-2x4GB-PC3-10666-1333MHz-DDR3-Notebook-SODIMM-P3018C429.aspx

Kingston SSDNow V+200 120GB SSD
http://www.newegg.com/Product/Product.aspx?Item=N82E16820239374

LG Flatron E2350V 23" LCD Monitor


Comments

I've owned a gutted G4 Cube for sometime now and planned on using the components for it. However, at this time, I'm leaning toward a scratch build. The components were selected by both cost and need. For my computing needs, I do not need a fast(er) processor nor a discrete GPU.

Edit: Due to other obligations, I ended up using the Lian-Li case above.


Installation Notes

The GA-H87TN uses a AMI Aptio EFI/Bios Firmware so Unibeast will not work. This installation is using OSX Mavericks 10.9.2 and the Clover Boot Loader.

Clover Boot Loader

Once I loaded "Optimized Defaults" in the EFI/Bios, I followed the Clover Guide to boot the board. Make sure to use the UEFI boot only options and not the Legacy Bios options when building the USB Drive.

For config.plist, I started out with config.plist-Intel-HD4600-desktop.

The onboard ethernet port uses a Realtek RTL8111g. Head on over to Insanelymac for Meize's RTL8111 Kext. Add the Kext to /Volumes/EFI/EFI/CLOVER/kexts/10.9/ as noted in the Clover Guide.

After following the Clover Guide, you should have a bootable system with a working ethernet port.

Enabling Onboard Audio

There are multiple ways to enable onboard. They are all documented in toledo's guide: Mavericks: Audio Realtek ALC AppleHDA. I chose to implement via Clover Patched Realtek ALC Installation which is specifically at toleda/audio_CloverALC.

Installation:

1. Download and unpack the zip files from the following locations:

2. Change the audio id to 2 in config.plist. It should look like this:

Code:
<key>Audio</key>
<dict>
    <key>Inject</key>
    <string>2</string>
 </dict>

3. Via Finder, navigate to Downloads/audio_CloverALC-master/.

  • Unpack realTekALC.kext.zip.
  • Copy realTekALC.kext to /Volumes/EFI/EFI/CLOVER/kexts/10.9/

4. Via Finder, navigate to Downloads/audio_CloverALC-master/.

  • Unpack config-audio_cloverALC.plist.zip

From config-audio_cloverALC.plist, there are two KextsToPatch sections that need to be added to config.plist. They are:

Code:
<dict>    
<key>Comment</key>
    <string>10.9/AppleHDA/Resources/xml&gt;zml</string>
    <key>Find</key>
    <data>
    eG1sLnps
    </data>
    <key>Name</key>
    <string>AppleHDA</string>
    <key>Replace</key>
    <data>
    em1sLnps
    </data>
</dict>

Code:
<dict>
    <key>Comment</key>
    <string>10.9/AppleHDA/Realtek ALC887</string>
    <key>Find</key>
    <data>
    ixnUEQ==
    </data>
    <key>Name</key>
    <string>AppleHDA</string>
    <key>Replace</key>
    <data>
    hwjsEA==
    </data>
</dict>

5. Via Finder, navigate to Downloads/audio_ALC887-master/cloverALC/.

  • Execute audio_cloverALC887-90_patch.command

6. Reboot

If everything went right, you should have audio working from the green port by selecting the second Line Out in output devices.

Example Sound Output Devices Screenshot:

Sound Output Devices.png


Enabling HDMI Audio

Since I used the clover patching method to enable onboard audio, I went the same route to enable HDMI audio. The documentation is located at Mavericks:HDMI Audio - AppleHDA [Guide] and specifically toleda/audio_CloverHDMI. I also chose the SSDT method.

Installation:

1. Download and unpack the zip files from the following locations:

2. Via Finder, navigate to Downloads/audio_CloverHDMI-master/
  • Unpack and open config-hdmi-hd4600-92.plist
  • For 10.9.4, use config-hdmi-hd4600-92_V2.plist, the KextsToPatch Find/Replace values are different than what is shown below but it's basically the same.

You will need to add the DropTables key to the ACPI key to your config.plist. The DropTables key looks like:
Code:
<key>DropTables</key><array>
    <dict>
        <key>Signature</key>
        <string>SSDT</string>
        <key>TableId</key>
        <string>SaSsdt </string>
        <key>Comment</key>
        <string>HD4600+ HDMI Audio, copy/paste 2 properties</string>
    </dict>
</array>

Add all of the KextsToPatch to your config.plist. They look like:
Code:
<dict>
    <key>Name</key>
    <string>AppleHDAController</string>
    <key>Find</key>
    <data>PQwMAAB1Yesw</data>
    <key>Replace</key>
    <data>PQwMAAB1YesO</data>
    <key>Comment</key>
    <string>10.9/HD4600/HDMI audio 1/2</string>
</dict>
<dict>
    <key>Name</key>
    <string>AppleHDAController</string>
    <key>Find</key>
    <data>PQwNAAB1Ug==</data>
    <key>Replace</key>
    <data>PQwMAAB1Ug==</data>
    <key>Comment</key>
    <string>10.9/HD4600/HDMI audio 2/2</string>
</dict>
<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Find</key>
    <data>AQUJAAAEAACHAAAA</data>
    <key>Replace</key>
    <data>AQUJAAAIAAAGAAAA</data>
    <key>Comment</key>
    <string>10.9.2/Azul/Port 05/DP&gt;HDMI</string>
</dict>
<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Find</key>
    <data>AgQKAAAEAACHAAAA</data>
    <key>Replace</key>
    <data>AgQKAAAIAAAGAAAA</data>
    <key>Comment</key>
    <string>10.9.2/Azul/Port 06/DP&gt;HDMI</string>
</dict>
<dict>
    <key>Name</key>
    <string>AppleIntelFramebufferAzul</string>
    <key>Find</key>
    <data>AwYIAAAEAAARAAAA</data>
    <key>Replace</key>
    <data>AwYIAAAIAAAGAAAA</data>
    <key>Comment</key>
    <string>10.9.2/Azul/Port 07/DP&gt;HDMI</string>
</dict>

3. Via Finder, navigate to Downloads/audio_hdmi_8series-master/ssdt_series
  • Unpack audio_ssdt-hdmi_hd5k-amd-nvidia-2_v2 and navigate to the folder
  • Copy SSDT-1.aml to /Volumes/EFI/EFI/CLOVER/ACPI/patched/. If SSDT-1.aml already exists rename it to SSDT-2.aml (or 3 or 4, etc). If SSDT.aml doesn't exist, rename to SSDT.aml.

In config.plist, you will need to change DropOem to Yes under the SSDT key. However setting DropOem to false also seems to work. It should look something like:
Code:
<key>SSDT</key>
<dict>
    <key>DropOem</key>
    <YES/>
    <key>Generate</key>
    <dict>
        <key>CStates</key>
        <false/>
        <key>PStates</key>
        <false/>
    </dict>
</dict>

4. If you don't want screwed up graphics when you reboot, in config.plist:
  • Remove <key>ig-platform-id</key> <string>0D220003</string>
  • Change Inject Intel to false

It should look like this:
Code:
<key>Graphics</key>
<dict>
    <key>Inject</key>
    <dict>
        <key>ATI</key>
        <false/>
        <key>Intel</key>
        <false/>
        <key>NVidia</key>
        <false/>
    </dict>
</dict>

5. Rebuild the cache with your favorite tool. Mine is DPCIManager.

6. Reboot

If all went well, HDMI audio should now be enabled.

Example Sound Output Devices Screenshot:

Screen Output Device - HDMI.png

Example DPCIManager Screenshot:

DPCIManager.png


Credits

tonymacx86 - Clover Guide
Meize - Meize's RTL8111 Kext
toleda - All audio guides

Thanks to them!!! Without them, it would have taken many more hours to do the install. If I forgot to credit someone, please let me know.


I've uploaded my current config.plist as and example.

If there are any errors to the build or documentation, please let me know.

Alan

Edit History:

09/18/2014 - Updated Component List
09/25/2014 - Added comment to HDMI Audio section for 10.9.4
09/25/2014 - Put back Edit History section that was deleted before.
 

Attachments

  • config.plist.zip
    1.8 KB · Views: 357
Last edited:
Very good overview! I followed it and it worked quite well, but then I stupidly turned on Auto Update and it upgraded my machine to 10.9.4 which means I now get the "Select Proper Boot Device" error if I boot up without the Clover USB stick in place.

Is there a specific set of files I would need to update in the EFI now that 10.9.4 has overwritten? I know from the NUC project that I did via WonkeyDonkey's excellent guide that I would replace the mach_kernel but in Clover (since it's EFI) I'm not familiar with how to make the fix...
 
awe-some!

Fudged a few things, but managed to get it all working! Not bad for a first time hackintosh build. Nice of you to add the config.plist which has all the changes you detail in the post.

One question for you though. Does your front panel audio work? My case/wiring is all hand made, so it's probably bad wiring on my part, but I figured I'd ask.

Update: HD Audio vs AC97. Got a stripped down header; a dual USB 3.0 with HD audio off of amazon for $10. Front panel audio now works perfect, now I just need to drill some holes.

Writing this post from my new H87TN build, while listening to soundcloud. Sweet! :thumbup:
 
I'm sorry I haven't responded. I thought I had subscribed to my own thread but I hadn't.

fryPhone,

I had that happen to me once but I just reinstalled Clover on the boot drive. Making sure everything was setup properly. I just recently upgraded to 10.9.4 and didn't have any problems.

audiojunky,

I'm not using the front panel audio. I don't have it hooked up. Which front panel did you buy?

Alan
 
Yeah, as I thought, it was my wiring. I wired it as AC97, which won't work for any hackintosh. I got a HD audio header off of amazon, which totally works (plus I now have front panel USB). :D

I just drilled the holes for the panel and popped it in today. Couple of other things to fix on my case, and I'll have it back together. Performance wise, it's beating the pants off of my older mac mini.

This was a pretty sweet guide for the H87tn, it would have taken me significantly longer to figure out on my own. Thanks again!
 
Hey Alan,

Does Graphics Acceleration/OpenGL work for you? I can boot fine on mine, but exposé and video are very choppy leading me to suspect that it's rendering in software.

Edit: After hours of trial and error, I finally figured it out.

I believe the culprit was having a FakeID of 0x80860416 in Intel GFX in the Devices section.

That combined with these settings finally got QI/CI working!

Boot flag: -dart=0

In Graphics: Make sure only Inject EDID and Inject Intel are checked, nothing else and ensure ig-platform-id is 0x0D220003 (note the 0x in front).

Now on to get audio working!
 
This was a pretty sweet guide for the H87tn, it would have taken me significantly longer to figure out on my own. Thanks again!

Thanks and you're welcome. This board frustrated me for along time. I spent count less hours trying to bring it up then shelved it for awhile. It's my main machine but I'm about to change to my i5 machine so I can work on a scratch case build.

Alan
 
Now on to front panel USB3! I think this a problem with pretty much every MoBo, but I figured I'd start here. This is the output of my sys info for the usb. Looks like it's all Intel (but I can't really tell). I've seen a number of 'fixes' so I'm going to give a few a try, if I figure it out, I'll post back here (fyi I have a usb wifi dongle attached at the back which is what you see in WLAN):


USB 3.0 Hi-Speed Bus:


Host Controller Location: Built-in USB
Host Controller Driver: AppleUSBXHCI
PCI Device ID: 0x8c31
PCI Revision ID: 0x0005
PCI Vendor ID: 0x8086
Bus Number: 0x0a


802.11 n WLAN:


Product ID: 0x5370
Vendor ID: 0x148f
Version: 1.01
Serial Number: 1.0
Speed: Up to 480 Mb/sec
Manufacturer: Ralink
Location ID: 0x14300000 / 1
Current Available (mA): 500
Current Required (mA): 450
BSD Name: en1






USB 3.0 SuperSpeed Bus:


Host Controller Location: Built-in USB
Host Controller Driver: AppleUSBXHCI
PCI Device ID: 0x8c31
PCI Revision ID: 0x0005
PCI Vendor ID: 0x8086
Bus Number: 0x0a






USB 3.0 SuperSpeed Bus:


Host Controller Location: Built-in USB
Host Controller Driver: AppleUSBXHCI
PCI Device ID: 0x8c31
PCI Revision ID: 0x0005
PCI Vendor ID: 0x8086
Bus Number: 0x0a




USB Hi-Speed Bus:


Host Controller Location: Built-in USB
Host Controller Driver: AppleUSBEHCI
PCI Device ID: 0x8c26
PCI Revision ID: 0x0005
PCI Vendor ID: 0x8086
Bus Number: 0x1d


Hub:


Product ID: 0x8000
Vendor ID: 0x8087 (Intel Corporation)
Version: 0.05
Speed: Up to 480 Mb/sec
Location ID: 0x1d100000 / 2
Current Available (mA): 500
Current Required (mA): 0
 
Status
Not open for further replies.
Back
Top