- Joined
- Sep 1, 2014
- Messages
- 2,944
- Motherboard
- GA-H87N-WIFI
- CPU
- i7-4790S
- Graphics
- GT 740
- Mac
- Mobile Phone
GA-H87N-WIFI: UniBeast/Yosemite to Clover/El Capitan
This guide assumes you have an existing Yosemite install using UniBeast. If you are installing from scratch, see this guide instead.
My Configuration:
In Yosemite:
In El Capitan:
BIOS Settings (Sanity Check)
Get El Capitan
Other Things to Download
Switch Boot Loader to Clover for the Yosemite Installation
Test Clover Installation
Install El Capitan
Note: the speed of this installation process is not a reflection on the speed or quality of your hardware. It’s just going to take a while.
Clear Outdated Kexts
Depending on how you installed with MultiBeast and what kexts you might have installed to get various hardware working before, you may have a number of outdated kexts installed. Some of them may cause problems in El Capitan. These kexts are located in /System/Library/Extensions/
While this may not be strictly necessary, I find it safest to remove all the old kexts and install current versions of the ones I need.
The one you are almost sure to have is an older version of FakeSMC.kext. I also had Ethernet, wireless and bluetooth drivers, and the bluetooth one at least is known to be incompatible with El Capitan. Finally, I had a third-party AHCI driver which is not necessary for this board. (I originally had a Yosemite audio driver, but it was overwritten during the upgrade.)
To inventory the kexts you've added, you can delete FakeSMC and rebuild the kext cache, which as a side effect will list the rest of the custom kexts for your review. Open Terminal and run these commands:
In the output of that last command you should see a number of lines reading kext-dev-mode allowing invalid signature ... for kext SomeName.kext Just note the names of the kexts in those lines.
Unless you're sure that each of those is both current and compatible with El Capitan, it may be best to delete it (either with a similar sudo rm -rf /System/Library/Extensions/SomeName.kext command or in Finder). We will install curent versions for all the hardware on the board later. When you're finished, run the last line above again (sudo touch ...). This time it should omit any of the kexts you've removed. I kept going until it didn't list any exceptions.
When that list has been trimmed down to only the known compatible kexts, reboot. In the next step, we'll install current versions of the needed hardware drivers to get the system running properly again.
Final Hardware Setup
At this point, if you installed network kexts to the EFI partition (or you have working kexts from your Yosemite installation) at least one of your Ethernet ports should work. If you look in System Preferences / Network, you should see an Ethernet entry and it should be green if the network is hooked up properly.
The sound card outputs will not work, and one or both of your Ethernet ports may not work if you didn't install the kexts to the EFI partition. Finally, CPU power saving is not fully configured, which may cause problems with the heat level and/or sleep mode. To fix these:
That’s it! Your hackintosh should be working in El Capitan. Enjoy.
Credits: tonymacx86 (original Clover installation procedure)
Audio script from toleda
Wireless kexts from RehabMan (wireless and bluetooth), Bluetooth handoff enabler from lisai9093
DSDT patches from pjalm
This guide assumes you have an existing Yosemite install using UniBeast. If you are installing from scratch, see this guide instead.
My Configuration:
- GA-H87N-WIFI with BIOS F5
- Haswell refresh Core i7-4790S
- 2x 8 GB DDR3-1600
- Samsung SSD, separate HDD for storage
- GeForce GT 740 (natively supported)
- BCM94352HMB half mini PCI-E wireless/bluetooth, replacing the Intel wireless card the board shipped with
In Yosemite:
- Boot loader: Chimera
- System definition: MacPro3,1
- iMessage: not configured (trouble getting FileNVRAM working)
- Working: Ethernet, Airport, Bluetooth, Sound, USB3, Sleep/Wake
- CPU Idle: 0.8 GHz
- Unigine Heaven: FPS 14.0, Score 352 (rendering 1920x1080 at 4K resolution)
In El Capitan:
- Boot loader: Clover
- System definition: iMac14,1
- iMessage: configured
- Working: Ethernet, Airport, Bluetooth, Sound, USB3, Sleep/Wake
- CPU Idle: 0.8 GHz
- Unigine Heaven: FPS 14.0, Score 352 (rendering 1920x1080 at 4K resolution)
BIOS Settings (Sanity Check)
- Press DEL during boot to access BIOS
- In BIOS Features:
- Fast Boot: Disabled
- Intel TXT(LT) Support: Disabled
- VT-d: Disabled
- Windows 8 Features: Other OS
- Boot Mode Selection: UEFI & Legacy
- LAN PXE Boot Option ROM: Disabled
- In Peripherals:
- Initial Display Output: PCIe 1 Slot (if graphics card installed)
- XHCI Mode: Smart Auto
- XHCI Hand-off: Enabled
- EHCI Hand-off: Enabled
Get El Capitan
- Open Mac App Store
- Log in with your Apple ID
- Download OS X El Capitan
- When the download finishes and the setup screen appears, Quit the app from the menu bar. You should now see the application /Applications/Install OS X El Capitan.app
Other Things to Download
- Clover
- Clover Configurator (only needed if you want to run iCloud/iMessage/etc.)
- View attachment config.plist
- FakeSMC.kext
- AppleIntelE1000e.kext
- ALXEthernet.kext
- audio_cloverALC-110.command (hit "View Raw" to download)
- HFSPlus.efi
- KextBeast
- Only if using the suggested wireless card above:
- Wireless: RehabMan-FakePCIID (get the latest version listed)
- Bluetooth: RehabMan-BcrmPatchRAM (get the latest version listed)
Switch Boot Loader to Clover for the Yosemite Installation
- Unzip the Clover package you downloaded
- Run the Clover_version.pkg program that was just extracted
- Hit Continue on the version/credits screen
- Hit Continue on the Important Information screen
- Choose your Yosemite system drive and hit Continue
- Hit Customize
- Select Install for UEFI booting only (and make sure Install Clover in the ESP is also selected)
- Under Driver64UEFI, select EmuVariableUefi-64, OsxAptioFixDrv-64, and PartitionDxe-64
- Select Install RC scripts on target volume
- Hit Install, enter your password if prompted, and let the installation complete
- The Clover installation should have left a new drive mounted on your system called EFI
- Navigate to EFI/EFI/CLOVER/kexts/
- Delete all the numbered directories, leaving only Other
- Unzip and copy the FakeSMC.kext you downloaded into Other/
- Similarly, if you want working Ethernet before the system fully boots, copy either or both of AppleIntelE1000e.kext (the Ethernet port closest to audio jacks on the GA-H87N-WIFI) and ALXEthernet.kext (the Ethernet port closest to the built-in video jacks on the GA-H87N-WIFI) to Other/
- Even if you see it mentioned in other guides, do not copy NullCPUPowerManagement.kext onto the drive (instead we will set up functional CPU power management)
- Navigate to EFI/EFI/CLOVER/drivers64UEFI/
- Remove VBoxHfs-64.efi and copy in the HFSPlus.efi that you downloaded
- Set up config.plist (the Clover configuration file)
- Edit the config.plist that you downloaded. Search for MacHDD and replace it with the name of your Yosemite system drive. This is required for it to boot into the OS after a few seconds without waiting indefinitely for your input. Save config.plist.
- If you don’t care about iCloud/iMessage/etc. then copy config.plist to EFI/EFI/CLOVER/ now
- Otherwise if you do want iCloud/iMessage/etc., then you must further customize config.plist. For more details on this process see How to Fix iMessage.
- Unzip and run Clover Configurator. (If it ever prompts you to mount an EFI partition, you can safely say no.)
- Select File/Open from the menu then select your config.plist file
- Go to SMBIOS on the left
- Click the "magic wand" icon
- Select the iMac image (currently leftmost)
- Select iMac (14,1)
- Click shake next to Week of Manufacture a few times and shake next to Unit Number a few times
- Copy down the Serial Number that’s generated
- Exit Clover Configurator
- Edit config.plist
- Search for <key>SerialNumber</key> and replace the serial number on the next line with your modified serial number
Code:
<key>SerialNumber</key> <string>C02K1234F8J3</string>
- Search for <key>MLB</key> and replace the value on the next line with your modified 12-character serial number followed by 5 random alphanumeric characters (17 characters total).
Code:
<key>MLB</key> <string>C02K1234F8J312345</string>
- Save config.plist and then copy it to EFI/EFI/CLOVER/, overwriting the default one that’s in there.
Test Clover Installation
- Right click on the EFI drive in Finder, and select Eject "EFI"
- Reboot
- You should see a Clover menu with one or two options: Boot Mac OS X from YourDriveName and possibly Boot Recovery from Recovery HD
- You can select between them with the arrow keys, or use the mouse
- Select Boot Mac OS X from YourDriveName (move to it and hit Enter or double-click)
- Check that the all of the following are working:
- Ethernet ports
- Sound
- USB3 (if you have a USB3 device available)
- Wireless/Bluetooth (if something other than the default Intel card installed)
- If anything isn't working, stop here and troubleshoot before moving on to install El Capitan
Install El Capitan
Note: the speed of this installation process is not a reflection on the speed or quality of your hardware. It’s just going to take a while.
- Run /Applications/Install OS X El Capitan
- Hit Continue
- If it complains about a current backup, either stop and create one, or hit Continue
- On the license screen, hit Agree and then on the popup, Agree
- It should have selected your system disk to install to, but if not, select it. Hit Install.
- The initial stage of the installation will go quickly and then the machine will restart
- Your Clover menu should now have more options: Boot Mac OS X from YourDriveName, Boot OS X Install from YourDriveName, and possibly Boot Recovery from Recovery HD. Choose Boot OS X Install from YourDriveName.
- If you miss the reboot and it goes automatically back into Yosemite, just reboot and select the Boot OS X Install... option.
- You should see the apple logo and a slow progress bar as the installer loads.
- The screen will go black and then white and then black again and a new progress bar will start.
- If it freezes on the white screen with a beach ball, you probably do not have FakeSMC.kext in the right place on your EFI drive. Make sure it's in EFI/CLOVER/kexts/Other/ and all the numbered directories under kexts/ are gone.
- Eventually a graphical "OS X" screen should appear, with another progress bar and a time estimate.
- At the end of that progress bar, it will reboot again, though if you’re not watching and you have set your startup disk name correctly in config.plist it may automatically boot to the new install and you may just see the login screen. If you’re at the Clover boot screen, select Boot Mac OS X from YourDiskName and you should get to the login screen.
- After logging in, you may get prompted to sign in with an Apple ID. If you have not done the iCloud/iMessage setup above, you may not want to sign in with an Apple ID yet.
- If the system reboots the moment you log in, try booting in Safe Mode in order to get through the setup screen and go on to the next step (clearing old kexts)
- After the setup, you should end up at the desktop. Congratulations! But your hardware probably isn't all working yet, so stick with me for a little longer.
Clear Outdated Kexts
Depending on how you installed with MultiBeast and what kexts you might have installed to get various hardware working before, you may have a number of outdated kexts installed. Some of them may cause problems in El Capitan. These kexts are located in /System/Library/Extensions/
While this may not be strictly necessary, I find it safest to remove all the old kexts and install current versions of the ones I need.
The one you are almost sure to have is an older version of FakeSMC.kext. I also had Ethernet, wireless and bluetooth drivers, and the bluetooth one at least is known to be incompatible with El Capitan. Finally, I had a third-party AHCI driver which is not necessary for this board. (I originally had a Yosemite audio driver, but it was overwritten during the upgrade.)
To inventory the kexts you've added, you can delete FakeSMC and rebuild the kext cache, which as a side effect will list the rest of the custom kexts for your review. Open Terminal and run these commands:
Code:
sudo rm -rf /System/Library/Extensions/FakeSMC.kext
sudo touch /System/Library/Extensions/ && sudo kextcache -Boot -U /
In the output of that last command you should see a number of lines reading kext-dev-mode allowing invalid signature ... for kext SomeName.kext Just note the names of the kexts in those lines.
Unless you're sure that each of those is both current and compatible with El Capitan, it may be best to delete it (either with a similar sudo rm -rf /System/Library/Extensions/SomeName.kext command or in Finder). We will install curent versions for all the hardware on the board later. When you're finished, run the last line above again (sudo touch ...). This time it should omit any of the kexts you've removed. I kept going until it didn't list any exceptions.
When that list has been trimmed down to only the known compatible kexts, reboot. In the next step, we'll install current versions of the needed hardware drivers to get the system running properly again.
Final Hardware Setup
At this point, if you installed network kexts to the EFI partition (or you have working kexts from your Yosemite installation) at least one of your Ethernet ports should work. If you look in System Preferences / Network, you should see an Ethernet entry and it should be green if the network is hooked up properly.
The sound card outputs will not work, and one or both of your Ethernet ports may not work if you didn't install the kexts to the EFI partition. Finally, CPU power saving is not fully configured, which may cause problems with the heat level and/or sleep mode. To fix these:
- Unzip the following kexts (downloaded earlier) and move the resulting files to the Desktop: AppleIntelE1000e.kext and ALXEthernet.kext
- If using the suggested wireless card above, also extract four more kexts:
- Unzip RehabMan-FakePCIID.zip and copy FakePCIID.kext and FakePCIID_BCM94352Z_as_BCM9436OCS2.kext from the Release/ directory to the Desktop
- Unzip RehabMan-BrcmPatchRam.zip and copy BcrmPatchRAM2.kext and BrcmFirmwareRepo.kext from the Release/ directory to the Desktop
- Unzip the KextBeast application you copied from the postinstall directory of the USB stick earlier. Run the resulting application. When it finishes, restart.
- Both Ethernet ports should be working now. If you have the recommended wireless card installed, wireless should be working too. Make sure you have Internet access before proceeding.
- Delete all the .kext files remaining on the Desktop.
- Unzip the audio_cloverALC-110.command.zip you copied from the postinstall directory of the USB stick
- Mount the EFI partition of your hard drive with a command like this (you can use diskutil list to confirm the correct identifier of the EFI partition):
Code:
mkdir /Volumes/EFI && sudo mount_msdos /dev/disk0s1 /Volumes/EFI
- Double-click the audio-cloverALX-110.command file in Finder. When prompted, answer:
- Confirm Realtek ALC892 (y/n): y
- Enable HD4600 HDMI audio (y/n): n (I'm not using the built-in HD4600 GPU)
- Clover Audio ID Injection (y/n): y
- Use Audio ID: 1 (y/n): y
- The script will then download and install audio drivers.
- When it finishes, restart. After the restart, your audio jacks should be working. In System Preferences / Sound you can turn on the volume control in the menu bar. If you have speakers or headphones handy, try playing a song in iTunes to be sure.
- Open Terminal. Go to the ssdtPRGen.sh page and run the "curl" and "chmod" commands at the top of the instructions on that page. This will install the ssdtPRGen.sh script.
- Run the script using the following command. Answer n to both prompts when it runs.
Code:
~/ssdtPRGen.sh
- Mount your EFI partition, something like:
Code:
mkdir /Volumes/EFI && sudo mount_msdos /dev/disk0s1 /Volumes/EFI
- Still in terminal, run
Code:
open ~/Library/ssdtPRGen
- Copy the SSDT.aml file in the Finder window that just opened to EFI/EFI/CLOVER/ACPI/patched/
- GA-H87N-WIFI ONLY: Copy this View attachment DSDT.aml file to EFI/EFI/CLOVER/ACPI/patched/ It includes a few fixes, such as increasing the power available to the USB ports for charging devices and enabling USB3 on the rear ports. (Other boards would need a different DSDT file.)
- Right-click the EFI drive in Finder and select Eject "EFI"
- Reboot one last time
- If your machine reboots upon waking, but only after it has been sleeping for several hours ("standby" mode), try running the following terminal command to restrict it to regular "sleep" instead of allowing standby:
Code:
sudo pmset -a standby 0 && sudo pmset -a autopoweroff 0
That’s it! Your hackintosh should be working in El Capitan. Enjoy.
Credits: tonymacx86 (original Clover installation procedure)
Audio script from toleda
Wireless kexts from RehabMan (wireless and bluetooth), Bluetooth handoff enabler from lisai9093
DSDT patches from pjalm
Last edited: