The Foreigner – MacOS Sierra 10.12.2 on an Alienware 13 R3 (2016)

This is a great Hackintosh candidate if you’re dual-booting and making good use of the GTX 1060 in Windows. It’s a true quad-core with good build quality and very portable. We’ll be installing Sierra 10.12.2 using Clover bootloader. All modifications documented here are done at your own risk – I am not responsible for any damage to your hardware.

Fully portable audio production rig

Specifications:

Alienware 13 3rd Generation Laptop
Intel i7-6700HQ 2.6Ghz Quad-Core Processor
Intel HD 530 / Nvidia GeForce GTX 1060 6GB Dual Graphics (Optimus switching)
32GB RAM (2x16GB 2133Mhz DDR4 upgraded from OEM 1x8GB 2133Mhz DDR4)
13 x 10.6 x 0.87 inches 5.4lbs.
13.3-inch, 2560 x 1440 OLED touch panel

What Works:

  • M.2 NVMe Storage (256GB Toshiba OEM / 512GB Intel p600)
  • USB-C / USB 3.1
  • Intel HD 530 Graphics (Metal Support) @ QHD 2550×1440
  • Second QHD 2550×1440 Monitor (HDMI connection in DisplayPort Alternate mode on rear ThunderBolt3 Port with USB-C to USB-A/HDMI/USB-C breakout adapter)
  • Keyboard and TouchPad with Multi-touch and Gestures
  • Gigabit Ethernet (Killer e2400)
  • WiFi (BCM94352Z)2.4 / 5.0 / BT4LE (BT4LE not tested yet, but shows compatible)
  • Nvidia GeForce GTX 1060 powered down in DSDT with _OFF patch
  • Audio ALC298 ID-13
  • i7-6700HQ Power/Throttling/SpeedStep
  • 32GB RAM (2x16GB 2133mhz DDR4)

Not Working:

  • Touchscreen (detected as USB HID Synaptics Touch Digitizer V04 (0x06cb:0x16f9, but not working and Ink prefpane is present.)
  • Brightness adjustment (this may be because of differences in the brightness adjustment implementation in ACPI for OLED screens)
  • Sleep (inconsistent, not needed for my purposes)
  • Sometimes the system doesn’t boot and gives an error allocating pages or it slows to a stop while booting. This was happening frequently during the build and less frequently once everything was setup.

How To:

What is not included in this how to:

BCM94352Z – The stock Killer 1435 WiFi is not supported in MacOS, configuring a BCM94352Z in its place is well documented elsewhere.

Get your Software:

My Configuration Files (config.plist etc)

MacOS Sierra

Clover EFI bootloader
RehabMan’s Fake PCI ID
RehabMan’s FakeSMC
RehabMan’s ACPI Battery Manager
RehabMan’s HackrNVME
HFSplus.efi
Kext Utility
Clover Configurator (Vibrant)
EMlyDinEsH’s Apple PS2 Smart Touch Pad
vit9696’s AppleALC
Mieze’s AtherosE2200

Make the Installer (You need a working Mac to do these steps):

    1. Download Sierra in the App Store (10.12.2 as of 1-JAN-2017)
    2. Format USB drive (16GB or more) with GUID as HFS journaled, name it ‘sierra’
    3. make your USB in Terminal:
    4. sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/sierra --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction
    5. Download Clover EFI bootloader and do a customized install to your newly created USB (see screenshot) – under drivers install only EmuVariableUefi-64:
    6. Your EFI partition from the USB will be mounted already. Replace or add the following files. BOLD files are included in a link on this post.
      • /EFI/CLOVER/config.plist (use config_install.plist and rename to config.plist once copied into EFI)
      • /EFI/CLOVER/drivers64UEFI/HFSPlus.efi
      • /EFI/CLOVER/drivers64UEFI/OsxAptioFix2Drv-free2000.efi
      • /EFI/CLOVER/kexts/Other/FakeSMC.kext
      • /EFI/CLOVER/kexts/Other/ApplePS2SmartTouchPad.kext

Copy the Clover installer and all the files you’ve downloaded to a new folder in the root of “Install macOS Sierra” for post-installation

  • Eject the EFI volume and the install volume and move over the Alienware

 

Installing MacOS Sierra on the Alienware 13 R3:

  1. Plug in your USB, Boot the system, and press F2 to get into the BIOS (version 1.0.1 as 2-JAN-2017) and make the following changes:
    • Directed I/O VT-d [DISABLED]
    • Secure Boot [DISABLED]
  2. Exit saving changes, the system will reboot, press F12 to get to the boot menu. Select the USB device. Clover will load, choose the install OSX option.
  3. Install OSX normally. You’ll want to go the Disk Utility and make sure your NVMe drive shows up. Format it in Disk Utility as GPT / HFS Journaled. When the system reboots as part of the normal install process, you’ll need to press F12 again to boot from the USB installer, this time, there will be a new option in Clover for your installation, boot to that.
  4. When completing the setup, say no to any options to ‘sign in’ and select ‘I don’t connect to the internet’ when asked, we’ll fix this later.
  5. Once you reach the desktop post-install, install Clover on your new installation and copy these files to the EFI partition, again, BOLD files you will need to source yourself due to possible licensing issues:
    • /EFI/CLOVER/config.plist (use the actual config.plist now)
    • /EFI/CLOVER/drivers64UEFI/HFSPlus.efi
    • /EFI/CLOVER/drivers64UEFI/OsxAptioFix2Drv-free2000.efi
    • /EFI/CLOVER/kexts/Other/FakeSMC.kext
    • /EFI/CLOVER/ACPI/patched/*.aml (copy all .aml files here)
  6. Delete all the numbered folders in /EFI/CLOVER/kexts/ (10.12 etc.) and leave only the ‘Other’ folder.
  7. Install Kext Utility, run it, and right-click it to keep it in the dock.
  8. Install Clover Configurator
  9. Generate HackrNVMeFamily-10_12_2.kext by following RehabMan’s instructions (no spoof).

S/L/E Kext Installation:

**DO NOT REBOOT** Until all of these steps are followed:

  1. Select all of the following kexts and drag them onto Kext Utility in the dock. This will install them to /System/Library/Extensions (S/L/E). I’ve found Clover injection isn’t working 100% for me, so I’ve resorted to installing them in SLE:
    • ACPIBatteryManager.kext
    • ApplePS2SmartTouchPad.kext
    • AppleALC.kext
    • FakePCIID.kext
    • AtherosE2200Ethernet.kext
    • HackrNVMeFamily-10_12_2.kext
  2. Remove IONVMeFamily.kext from S/L/E and save it for the future.
  3. Open /EFI/CLOVER/config.plist (either with a plist editor, Xcode, or Clover Configurator) and disable all Piker’s IONVMeFamily Patches, they’re done by HackrNVMe now
  4. Quit and relaunch Kext Utility to clear caches, then reboot. Done.

Special Notes:

  • OsxAptioFix2Drv-free2000.efi is a special compilation of OsxAptioFix2Drv.efi that frees up some memory before booting/fixing. I found it increased the reliability of the boot, but I’m not 100% sure it’s actually doing anything to help.
  • This machine doesn’t have usable native NVRAM support. If your NVRAM emulation doesn’t work, try replacing /private/etc/rc.shutdown.d/80.save_nvram_plist.local with my version (mine simply writes nvram.plist to the EFI volume no matter what.) Delete your old nvram.plist if it’s already present.
  • Sometimes I have to unplug/replug my HDMI monitor connection on startup.
  • ACPI Patches include Skylake LPC, ssdtprgen.sh, OSI cleanup, Nvidia PowerOff, and some general syntax cleanup.
  • If you update, things should be OK, but the system may remove kexts in S/L/E and may REPLACE IONVMeFamily.kext which needs to be kept out of S/L/E

 

Welcome to Macintosh.