Finally i got working macOS Sierra in this laptop. Thread based on
https://www.tonymacx86.com/threads/guide-dell-inspiron-15-7559-sierra-install-10-12-4.201576/ and
https://www.tonymacx86.com/threads/...ke-i7-6700hq-hd-530-using-clover-uefi.195422/
Working
- Battery
- Sleep
- QE/CI (Nvidia Web Driver)
- Keyboard + Backlight
- Touchpad / ELAN1200
- USB 2.0/3.0
- Speakers and internal mic
- WebCam
- Wi-fi (replace with BCM94532z NGFF)
- Ethernet
- HDMI
- SD Card slot
- Display Port
Not yet working:
- Stock Wi-fi
- Brightness Control (alternative: use Brightness Slider app from App Store)
- Keyboard Backlight Control (fn+F3 / F4 not works)
- In-line Mic Headset / Headphone (since its combojack maybe must use custom AppleALC ALC255 config to fix it)
- Most FN keys (only fn+F11/F12 works)
Not Tested (Please PM me if you already test, I don't have time to test it):
Bugs:
- When you restart from Windows to MacOS, speakers won't works. to fix it, just shutdown then boot direct to MacOS.
Prerequisites:
BCM94532Z NGFF WiFi card for wifi. (Clover config includes a patch)
Reboot and access the BIOS setup by pressing ESC then select Enter Setup.
- Disable Fastboot (if available)
- Disable Secure Boot
- Disable VT-d
- Disable Intel Virtualization Technology
Create partition for OS X
Boot to Windows 10. Install MacDrive from Mediafour to create a partition for OS X. Open MacDrive and click create. You can now create a HFS+ partition on the drive you just installed Windows 10 on. I suggest you give them 50/50 GB storage each. So, in my case, since this laptop has 2 Hard Drive (NVMe SSD and SATA HDD) i partitioned a HFS+ partition with 128GB on my SATA HDD. Close MacDrive after you successfully created the drive. Name it as you like.
Create the USB Installer (16gb or larger required):
1. Download sierra via the Mac App Store
https://itunes.apple.com/us/app/macos-sierra/id1127487414?mt=12
2. Create usb using the included app
3. Install clover onto the usb drive using the default UFEI options.
4. While the usb drive's EFI partition is mounted (or use EFI Mounter), replace the config.plist in the EFI>CLOVER file with the one in the ROG_502_Sierra>usb_config.plist and put HFSPLUS.efi driver into the drivers64UEFI folder. place the kexts from "ROG_502_Sierra>clover_kexts" to EFI>CLOVER>kexts>Other. Open the EFI>CLOVER>kexts folder and delete all the folders but NOT the the "Other" one.
5. Place the ROG_502_Sierra folder onto the usb drive.
6. Boot from the usb drive by pressing ESC at boot. When clover comes up choose the sierra installer. You will get errors but allow a full 5 minutes for it to boot.
7. Use Disk Utility to erase/format your disk or partition for OS X then install to it. It will take about 20 minutes.
Post Install
1. ESC at boot and choose the usb drive again to load clover and choose the partition you just installed to. It will continue installing then reboot.
2. ESC at boot again and choose the usb drive again to load clover then choose the OSX install on the hard drive when clover comes on.
3. Install clover to the hard drive using the default UEFI settings.
4. While the hd's EFI folder (or use EFI Mounter) is mounted open it up in finder and go to EFI>CLOVER and replace the config.plist with the one from the ROG_502_Sierra>config, plist. Open the EFI>CLOVER>kexts folder and delete all the folders but NOT the the "Other" one. place the kexts from the "ROG_502_Sierra>clover_kexts" folder in there. Copy HFSPLUS.efi driver from the ROG_502_Sierra into the CLOVER>drivers64UEFI folder.
5a. Use Kext Wizard to install the kexts in the ROG_502_Sierra>system_kexts folder to System/Library/Extensions.
6. Rebuild kernel cache.
7a) Patching DSDT And SSDTs
- Turn on your laptop and press ESC boot the Clover bootloader.
- Highlight the OS X disk and press “F4” to generate the native ACPI files.
(Note: You won’t see anything while pressing F4 - the files are generated silently)
- Boot OS X and mount EFI partition with Clover Configurator
- Go to “
EFI/Clover/ACPI/” and copy the “origin” folder you just created to your desktop
-
Delete all files from the folder on your desktop that doesn’t start with DSDT or SSDT
- Copy “
ROG_502_Sierra/refs.txt” into this folder
- Open terminal and run this command to install iasl (password will be prompted)
Code:
cd ~/Desktop/ROG_502_Sierra
sudo cp iasl /usr/bin
- Copy the code below into the terminal to disassemble those files into the form we can edit (use your account name in the code)
Code:
cd ~/Desktop/origin
iasl -da -dl -fe refs.txt DSDT.aml
--> This command will create DSDT.dsl files in the origin folder
7b) DSDT Patching
- Place
ROG_502_Sierra/MaciASL.app into your
Applications folder
- Open
DSDT.dsl (from your origin folder) in
MaciASL
Note: Now we are going to edit this file and compile it back again to use it to load with your system later. It is really important that you don’t make mistake here. You can click on “Compile” to check if you extracted the DSL files correctly. Warnings doesn’t matter but errors do. If you got an error here it means you disassembled the files wrong. Now there are many edits which we are going to do with this file. After each one you can click on “Compile” to check for errors.
before patching, open MaciASL. Go to the program’s preferences and add this source:
http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master
Click on Patch and apply the following patches (Must use Internet connection):
[syn] Rename _DSM methods to XDSM
[bat] Asus G75VW
[sys] Fix _WAK Arg0 v2
[sys] Fix PNOT/PPNT
[sys] IRQ Fix
[sys] OS Check Fix (Windows 8)
[sys] SMBUS Fix
[sys] Skylake LPC
see 'Before' column in MaciASL and look if '0x6D' exist, then use this patch
[usb] USB3_PRW 0x6D Skylake (instant wake)
if not, use [usb] USB3_PRW 0x0D Skylake (instant wake)
Keyboard Backlight Patch
under this method
Code:
Method (SCDG, 1, NotSerialized)
{
....
}
add this
Code:
Name (BOFF, Zero)
Method (SKBL, 1, NotSerialized)
{
If (Or (LEqual (Arg0, 0xED), LEqual (Arg0, 0xFD)))
{
If (And (LEqual (Arg0, 0xED), LEqual (BOFF, 0xEA)))
{
Store (Zero, Local0)
Store (Arg0, BOFF)
}
ElseIf (And (LEqual (Arg0, 0xFD), LEqual (BOFF, 0xFA)))
{
Store (Zero, Local0)
Store (Arg0, BOFF)
}
Else
{
Return (BOFF)
}
}
ElseIf (Or (LEqual (Arg0, 0xEA), LEqual (Arg0, 0xFA)))
{
Store (KBLV, Local0)
Store (Arg0, BOFF)
}
Else
{
Store (Arg0, Local0)
Store (Arg0, KBLV)
}
Store (DerefOf (Index (PWKB, Local0)), Local1)
^^PCI0.LPCB.EC0.WRAM (0x04B1, Local1)
Return (Local0)
}
Method (GKBL, 1, NotSerialized)
{
If (LEqual (Arg0, 0xFF))
{
Return (BOFF)
}
Return (KBLV)
}
Click
Compile and if you have any errors (warnings don’t matter) try again. Save the file as: DSDT.aml in a new folder on desktop called “SSDTs” and file format:
ACPI Machine Language Binary.
7c) SSDT.aml Creation
This is the file we need to create to ensure proper
CPU power management and turbo mode. This part refers to
[Guide] Native Power Management for Laptops. If you have troubles with creating ssdt.aml you can check there.
- To prepare we need to use this
code in terminal (this will download the SSDT generator)
Code:
curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/Beta/ssdtPRGen.sh
- Now
enter this code to give the program permissions
- After the warning type “
y” to continue (You should see only one Warning and one Error. If you get more you should check if your SMBIOS is right). Then type “
n”
twice to finish the process
- Copy this command to move the created SSDT to your desktop folder
(Note: This is easier because the file is in hidden folder. You have to change the username in the code for it to work)
Code:
cp ~/Library/ssdtPRGen/ssdt.aml ~/Desktop/SSDTs/SSDT.aml
-->
SSDT.aml should appear in
Desktop/SSDTs
- Copy
SSDT.aml to
EFI/Clover/ACPI/patched/
- Shut down your laptop.
7d) SSDT Patching
- Go to the “ROG_502_Sierra” and copy
SSDT-UIAC.aml to
Desktop/SSDTs folder too
--> You should now have these
*.aml files without errors in your SSDTs folder on desktop. If the patched ones are missing .aml add it.
DSDT.aml (patched)
SSDT.aml (step 7c)
SSDT-UIAC.aml (ROG_502_Sierra)
- Open Clover Configurator (or efimounter) and mount internal EFI. Open
EFI/Clover/ACPI/patched/ and place all your
*.aml files here
- Open the
EFI/Clover/config.plist with Clover Configurator (*make sure its from Desktop EFI not USB EFI). Go to the section
SMBIOS and click the magic wand icon. Choose the MacBook icon and select
MacBook Pro 11,2 in the dropdown menu. Shake a few times with the Week and Unit until you find a Serial that’s not valid (means it isn’t used yet by an official Mac). You can check that here:
Check Your Service and Support Coverage - Apple Support
8. Reboot.
9. Choose Clover To Be Your Default Boot Option
- Turn of your laptop and enter
BIOS settings (Press F8 on boot)
- Go to Boot section and choose “
Add Boot Option” —> Choose your system disk —> Navigate to “
EFI/Clover” —> Choose “
CLOVERX64.efi” and name it “
CLOVER”
Extra
To correct the Alt and Cmd keys just swap the option and cmd modifier keys in the keyboard section in System Preferences.
Fix ELAN1200 Trackpad (guide from here
https://www.tonymacx86.com/threads/...d-limited-support.204227/page-35#post-1475873)
I make it extra because this kext is still WIP (Work In Progress, under development)
At first, you have to delete the I2C kexts from /System/Library/Extensions, these are:
- AppleIntelLpssI2C.kext
- AppleIntelLpssI2CController.kext
Code:
cd /System/Library/Extensions
sudo rm -rf AppleIntelLpssI2C.kext
sudo rm -rf AppleIntelLpssI2CController.kext
Next, install the VoodooI2C.kext from ROG_502_Sierra folder use Kext Wizard. When you are done, rebuild your kextcache:
Install Nvidia Web Driver for QE/CI
download from here:
http://www.nvidia.com/download/driverResults.aspx/117854/en-us
Install it and reboot, then you have full QE/CI
If nvidia not work, you need
EmuVariableUefi-64.efi on
EFI/Clover/drivers64UEFI
Changelog Thread:
2017-05-07
- Updated Nvidia Web Driver guide
2017-05-05
- Updated VoodooI2C.kext
2017-05-04 - 2
- Add refs.txt
- Add keyboard backlight patch
2017-05-04
- Updated VoodooI2C.kext
- Updated DSDT Patching guide