Contribute
Register

[Success] SCQ's Intel NUC DC3217BY (CLOVER/El Capitan)

SCQ

Joined
Jun 29, 2013
Messages
39
Motherboard
NUC DC3217BY (D33217CK - i3 3217u)
CPU
Core i3
Graphics
HD4000 integrated
Mac
MacBook Pro, Mac mini
Mobile Phone
iOS
10.12 Update: To update from El Capitan to Sierra using the App Store see Post 69 in this thread.

The following guide is a complete walk through for installing a fresh version of OS X El Capitan on the Intel NUC DC 3217BY. It's also reported as working for the Intel NUC DC 3217YE without the need for any changes.

It requires no previous experience and all of the basic installation and post-installation tools are available on tonymacx86.com.

The method we'll be following installs and uses Clover as the default bootloader.

Components
These are the components that I've used to build my Intel NUC DC3217BY Hackintosh. If you have used different components then you may need to add your own dsdt or ssdt edits, kexts or patches once you've installed OS X.

Intel DC3217BY Barebone Mini PC
Samsung MZ-M5E250BW - mSATA 250GB 850 Evo SSD
Corsair CMSO8GX3M2A1600C11 1600mHz 2x4gb SODIMM
DW1515 WLAN Half Mini PCIe (you'll find these easily on Ebay)
IOGEAR GBU521 Bluetooth Micro Adapter
AOC-I2757FM Widescreen High Definition Monitor
Apple MC184B Wireless Keyboard
Apple MC380Z Magic Trackpad

Note: I chose the AOC monitor as it's similar in design to the Apple 27" screen. It has built in speakers as well as a jack. The jack can be used as a pass-through to connect to a set of 2.1 subwoofer and speakers using just the HDMI Audio capabilities of the NUC's inbuilt HD4000 chipset. The DW1515 wifi adapter also works well with AirPlay devices.

Table of Contents

Step 1: Download OS X El Capitan
Step 2: Create a Bootable USB with UniBeast
Step 3: Download Install Tools​
Step 4: Recommended BIOS Settings
Step 5: Install OS X El Capitan
Step 6: Post Installation with Clover
Troubleshooting and Optimizations


Before You Begin

1. Register here at tonymacx86! If you don't have a user account create one.
2. Get the latest UniBeast for El Capitan tool (v6x) from the downloads section.
3. Purchase a 16GB or larger USB drive (personally, I use a 32gb).
This guide assumes that you'll be installing El Capitan from scratch. If you have an existing system perform a
full backup using Carbon Copy Cloner or similar backup software. By doing this, you can always go back to your working installation.

UniBeast is the tool that we'll use to create a bootable installer out of your downloaded version of OS X. In order to start fresh, you'll need access to a functional computer running Mac OS X Snow Leopard 10.6.8 or later. This is a requirement, as you need access to the Mac App Store to download OS X and create the installation drive.

STEP 1: Download OS X El Capitan
The full operating system is a free download for anyone who has purchased Mac OS X Snow Leopard, Lion, or Mountain Lion or has a Mac preloaded with OS X Mavericks or Yosemite. Download the Application from the Mac App Store using your Apple ID on any Mac or functional computer running Mac OS X 10.6.8 or later.
1. Open Mac App Store
2. Log in using your Apple ID​
3. Download OS X El Capitan
Install OS X El Capitan will appear in /Applications. Do not move it anywhere else.

STEP 2: Create a Bootable USB Drive with UniBeast
Take your time - this is pretty simple, but it's easy to miss things if you rush. Follow each step to the letter.
1. Insert the USB drive into the machine that you used to download El Capitan​
2. From Finder, open /Applications/Utilities/Disk Utility
3. Highlight the USB drive in the left column (make sure it's the USB drive you've selected!!)​

4. Click on the Partition tab
5. Click Current and choose 1 Partition
6. Click Options...
7. Choose GUID Partition Table
8. Under Name: type USB (You can rename it later)
9. Under Format: choose Mac OS Extended (Journaled)
10. Click Apply, then Partition
11. Download and run UniBeast
12. Click Continue, Continue, Continue, Continue, Agree
13. At Destination Select, choose USB and click Continue
14. At Select OS Installation screen, choose El Capitan and click Continue
15. At Bootloader Options screen, choose UEFI Boot Mode
16. At Graphics Configuration screen, ignore all choices and click Continue.
17. Verify installation options, then click Continue, enter password and click Install

UniBeast will now create the bootable USB drive. The process should only take about 10 minutes, depending on system and drive speed. Do not unplug or stop during this time. If the process doesn't complete, you definitely need a 16GB drive - some 8GB drives are not large enough. The method requires 7.45GB free space.


STEP 3: Install Tools

You now need to download some additional tools that you'll use post install.


STEP 4: BIOS Settings

For the DC3217BY Intel NUC to run OS X, you need to make sure to set the BIOS to Optimized Defaults, your hard drive to AHCI mode and on-board graphics to 128mb.

  1. BIOS Setup is accessed by pressing F2 after the Power-On Self-Test (POST) memory test begins and before the operating system boot begins, so after pressing the power button keep rapidly pressing and releasing F2 until you see the BIOS screen opens.
  2. Press F9 to Load BIOS Defaults
  3. In ADVANCED>DEVICES & PERIPHERALS set Chipset Sata Mode to AHCI
  4. Set HDMI/Display Port Audio to Enabled
  5. Set IGD DVMT Memory to 128mb
  6. In ONBOARD DEVICES set Thunderbolt to enabled
  7. In BOOT CONFIGURATION set UEFI Boot to enabled
  8. Set Secure Boot to enabled
  9. Set Legacy Boot to enabled
  10. Set Boot USB Devices First to enabled.
  11. Set OS Type to Other OS
  12. Exit and Save the BIOS settings.


STEP 5: Install OS X El Capitan on the NUC
1. Insert the USB drive in any free USB port on the NUC.​
2. Connect an Apple USB keyboard and mouse to the two other USB ports​
Note: You won't be able to connect the IOGEAR GBU521 USB BT Micro Adaptor yet as you've run out of USB ports. I'll tell you when you can plug it in.​
3. Connect a monitor to the HDMI out.​
4. Turn on the NUC​
5. When the the Clover boot screen loads choose Boot Mac OS X from USB
6. When you arrive at the Installer, choose language.​

If you have issues reaching the installer you may not have installed UniBeast correctly on the USB drive. First make sure that you followed Step 2 above to the letter. If you still have issues, make sure that you have correctly configured the BIOS settings, see Step 4 above.

7. You MUST erase and format the destination drive according to the following steps before continuing.
  • In the top menu bar choose Utilities, and open Disk Utility
  • Highlight your target drive for the El Capitan installation in left column.
  • Click Erase button
  • For Name: type El Capitan (You can rename it later)
  • For Format: choose OS X Extended (Journaled)
  • For Scheme: choose GUID Partition Map
  • Click Erase
  • Close Disk Utility
8. When the installer asks you where to install, choose El Capitan.
9. Complete OS X El Capitan setup
10. DO NOT restart! There are a few more steps before the system drive is bootable.


STEP 6: Post-Installation with Clover

  1. Open Finder
  2. Copy the contents of the folder EL Capitan Install Tools from the USB drive to your NUC's /Downloads folder
  3. Eject the USB drive and physically remove it from the NUC (this is important, otherwise you may incorrectly select the USB drive in the next steps)
  4. Open /Downloads/EL Capitan Install Tools/El Capitan Post-Install Tools. The Post-Installation.zip contains the custom Clover installer and essential kexts. These will provide boot from hard drive.
  5. There are two custom Clover installers. UEFI Boot Mode (Clover_v2.3k_r3270_UEFI.pkg) is the one you need to Open for 7 Series UEFI capable systems (i.e. the DC3271BY Intel NUC). Right click (or ctrl click for one button mice) and select Open. When it's installed...
    • Open Downloads/EL Capitan Install Tools/CustoMac Essentials.pkg.This will install both FakeSMC and Ethernet support.
    • Open Finder. If EFI is listed as a drive in the left hand menu go to 8. ...if not
    • Open /Downloads/EL Capitan Install Tools/EFI Mounter v3.This will mount the EFI partition on your HDD.
    • Type in your password when requested. You will see that EFI will appear as a drive in the left hand menu in Finder.
    • Note: If you are asked to select a drive, you haven't ejected the USB drive in 3. Exit EFI Mount v3 and go back to 3. above (It's not worthwhile guessing and getting this bit wrong as you'll probably end up with a Kernal Panic when you do restart and will have to start the install from scratch all over again, so remove that USB drive and then re-try 7.).
  6. Open /Downloads/EL Capitan Install Tools/Clover Configurator. The next steps configure the system definition, configure graphics, provide the system with a unique serial number, and change the Audio ID to 3 ready for the HDMI Audio Fix.
  7. At the bottom of the Clover Configurator home screen click the EFI>EFI>CLOVER>config.plist. This will mount the config.plist that we need to edit
    • Select the SMBIOS tab
      [*]Press the Magic Wand Icon
      [*]Choose the Mac Pro System definition from the list of pictured systems. Then choose MacPro3,1 from the dropdown. This will auto-populate your config.plist with appropriate SMBIOS information including a unique serial number.
      (Optional)You can choose to "shake" both the Week of Manufacture and the Unit Number a few times each if you so choose.
      [*]Select the Boot tab
      [*]Change Default Boot Volume by overtyping it El Capitan (the name you gave the HDD, type it exactly or it won't boot automatically)
      [*]Open the Device tab, in Audio overtype the Inject number, change it to 3
      [*]Close Clover Configurator (select OK when prompted)
  8. Open /Downloads/EL Capitan Install Tools/ssdt_hdmi-hd4000-7series-3.zip
  9. Inside it you'll see a file named SSDT-1.aml, copy it to EFI/EFI/CLOVER/APCI/Patched
  10. Rename the file you just copied into EFI/EFI/CLOVER/APCI/Patched from SSDT-1.aml to SSDT.aml
  11. Shutdown the NUC
  12. If you have a wireless keyboard and mouse...
    • Remove the Apple USB keyboard and mouse
    • [Insert the IOGEAR USB BT Micro Adaptor19. Power on the NUC
  13. Once rebooted, Mount the EFI partition again (see step 7 above)
  14. Now you have a choice:
    • If you want a permanent HDMI Audio fix and you're happy with editing the config.plist then skip to step 22 below.
    • If you're less confident with editing system files you can still run Toledo's HDMI Patch tool, which you'll need to run after every OS X update that you install in the future. In which case carry on and stop at step 21.
  15. Open /Downloads/EL Capitan Install Tools/b - graphics_intel_hd4k-capri-b-90_patch.command
  16. When prompted enter your password
  17. Reboot the NUC. You're done. Do no more.
  18. If you opted for the permanent HDMI Audio fix at step 18, or you want to now enable it then keep reading...

Required reading:
toleda's thread on HDMI Audio

Step 1:
If you're coming to this section with a fresh installation of OS X go straight to Step 2.

Otherwise...
Make sure you haven't installed any binary patches to /System/Library/Extensions/AppleIntelFramebufferCapri.kext (compare the version in /S/L/E with the version in the Mac OS X Installer).

If you have, revert to the original kext by reinstalling the version from the OS X Installer to /System/Library/Extensions using KextUtility or a similar program. Similarly, remove any kext patches related to HDMI audio that you may have installed previously in your Clover config.plist file.

Step 2:
After reading toleda's guide above you need to identify the correct patches for your system and situation; in the case of the DC3217BY;Clover bootloader (using config.plist), OS X 10.11 El Capitan, Ivy Bridge NUC with HD4000 (Capri) graphics
NOTE: non-DC3217BY systems will require a different selection, so be very careful.
For the DC3217BY this means that you will need to download the following file, which contains the necessary kext patches to add to your own Clover config.plist:

https://github.com/toleda/audio_Clov...-100.plist.zip


Step 3:
After downloading and extracting the file above, open config-hdmi_hd4000-100.plist in any text editor.

Verify that your Clover config.plist (EFI/EFI/CLOVER/Config.plist) has the "KernelAndKextPatches" section.

Copy and paste the contents of the "KextsToPatch" section from the file you downloaded into the "KernelAndKextPatches" section in your Clover config.plist.

Save and reboot to find out if your HDMI audio now works.


Yay! Thanks to tonymacx86 you now have a fully updated bootable version of OS X El Capitan on your Intel DC3217BY NUC! And a super handy USB rescue drive. It's easy to get frustrated, but don't give up! If you get stuck, there are many users with similar hardware in the tonymacx86 Forum to provide support.

Thanks to all of the hard working developers, hackers, and testers all over the world without whom this guide would never have been possible, including tonymacx86 and MacMan (for UniBeast and Mount EFI, and the amazing resource that is tonymacx86.com) , SynGatesFan200 and davids74 (for inspiring me to try a Mavericks install on the DC3217BY in the first place), toleda and nobodynose for their help in getting HDMI Audio working, and everyone that has helped me out along the way, and who continue to share their knowledge and experience on this site. Thank you all.

Troubleshooting and Optimizations:
After you've completed the guide, things such as HDMI audio and iMessage may not work automatically and universally. The list below should serve to fully optimize your system after initial setup.



Clover Bootloader Credits
UniBeast contains and deliver files from the Clover EFI Bootloader project. For more information and sources used see http://sourceforge.net/projects/cloverefiboot/. Clover v2 is open source based on different projects: Clover, rEFIt, XNU, VirtualBox. The main is EDK2 latest revision.

Clover Note: UniBeast delivers basic bootloader support based on our testing on recommended CustoMac systems. For further bootloader customization, download and run the official Clover package. Advanced users may also compile Clover by downloading the full source.

Clover Developers:
Slice, with help of Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, rehabman…

Source code credits:
Intel, Apple, Oracle, Chameleon, rEFIt and Xom.

Clover Source and Downloads:
Sourceforge: Clover
 
Last edited:

toleda

Moderator
Joined
May 20, 2010
Messages
24,458
Motherboard
Asus Maximus VII Impact
CPU
Core i7-4770K
Graphics
RX 560 + HD4600
Mac
iMac, MacBook Pro, Mac mini
Classic Mac
512K, LC, Power Mac
Mobile Phone
iOS
If anyone can please explain how to get HDMI Audio working using Clover
HDMI Audio AppleHDA/Post #1/OS X HDMI Audio Guides/ssdt injection/1. Guide
Same thread/Post #1/Problem Reporting/Post to same thread as the guide.
 

nobodynose

Moderator
Joined
Sep 30, 2012
Messages
4,210
Motherboard
ASRock Z370M Pro4
CPU
i7-8700
Graphics
RX 560
Mac
iMac, MacBook, MacBook Pro, Mac mini
Classic Mac
iBook, iMac, Quadra
Mobile Phone
Android, iOS
Thanks to toleda's patient help, I have HDMI audio working on my DC3217BY NUC under El Capitan!

Guide:

  1. Inject Audio ID = 3 via Devices/Audio/Inject/3 in Clover's config.plist.
  2. Install the supplied SSDT-1.aml from ssdt_hdmi-hd4000-7series-3.zip in toleda's repo as SSDT.aml in /EFI/EFI/CLOVER/ACPI/Patched.
  3. Rebooted and checked for audio. At this point, System Info reports an HDMI audio device (with Audio ID: 3): System Info.png
  4. DCPIManager also shows the audio device: DCPIMgr.png
  5. But the Sound prefs panel does not.
  6. Next step was to make the necessary Capri framebuffer edit (see http://www.tonymacx86.com/graphics/125239-hd4600-hd4000-hd3000-framebuffer-edits.html). The script I used was graphics_intel_hd4k-capri-b-90_patch.command.zip (https://github.com/toleda/graphics_Intel_framebuffers/blob/master/HD4000-Capri Edit/graphics_intel_hd4k-capri-b-90_patch.command.zip).
  7. After running this script and rebooting, I now have HDMI audio again!
 

SCQ

Joined
Jun 29, 2013
Messages
39
Motherboard
NUC DC3217BY (D33217CK - i3 3217u)
CPU
Core i3
Graphics
HD4000 integrated
Mac
MacBook Pro, Mac mini
Mobile Phone
iOS
Thanks to toleda's patient help, I have HDMI audio working on my DC3217BY NUC under El Capitan!
Thanks nobodynose. Works for me too. I've revised the guide to accommodate the fix.

I've also updated to 10.11.1 from the App Store with no issues. Just had to re-run the audio patch after installation to re-enable HDMI Audio.
 

toleda

Moderator
Joined
May 20, 2010
Messages
24,458
Motherboard
Asus Maximus VII Impact
CPU
Core i7-4770K
Graphics
RX 560 + HD4600
Mac
iMac, MacBook Pro, Mac mini
Classic Mac
512K, LC, Power Mac
Mobile Phone
iOS
had to re-run the audio patch after installation to re-enable HDMI Audio.
1. Restore Desktop/AppleIntelFramebufferCapri-orig.kext
2. Download (View Raw) config-hdmi_hd4000-100.plist.zip
3. Paste Capri/Port 0x5 DP>HDMI patch to config.plist/KernelAndKextPatches/KextsToPatch/
4. Restart
 

SCQ

Joined
Jun 29, 2013
Messages
39
Motherboard
NUC DC3217BY (D33217CK - i3 3217u)
CPU
Core i3
Graphics
HD4000 integrated
Mac
MacBook Pro, Mac mini
Mobile Phone
iOS

nobodynose

Moderator
Joined
Sep 30, 2012
Messages
4,210
Motherboard
ASRock Z370M Pro4
CPU
i7-8700
Graphics
RX 560
Mac
iMac, MacBook, MacBook Pro, Mac mini
Classic Mac
iBook, iMac, Quadra
Mobile Phone
Android, iOS
Looking at this I'm a little lost. :think: How, in steps, did you perform this, please.
I had previously installed the binary patch to AppleIntelFramebufferCapri.kext to get it working. I just reverted that to the original version which I had saved to the desktop (you can get it from the OSX installer if necessary) using Kext Utility, then added the patches to my Clover configuration. Just copy the "KextsToPatch" section into the correct section of your config.plist.
 
Top