- Joined
- Aug 21, 2011
- Messages
- 402
- Motherboard
- GA-Z97N-WIFI
- CPU
- i7-4790K
- Graphics
- HD4600
- Mac
- Classic Mac
- Mobile Phone
Guide for using Clover UEFI Booting on Z77X-UD5H with HD4000 and GT640 enabled
Clover UEFI booting is BETA testing.... In saying this, there are a lot of changes all the time. This guide may not work for you.
Changes in revisions are listed here: http://www.projectosx.com/forum/index.php?showtopic=2656&st=0
Relevant Notes:
-Changes to the config.plist-> added 2 new sections GUI and Themes
-Booting with CSM Disabled -> My Gigabyte GT640 has a UEFI VBIOS version F12. I have also added a patched BIOS F15r (tweaktown) to have GFX UEFI. This allows you to boot in full UEFI without the CSM support needing to be enabled.
-I still have problems with the Clover GUI resolution. I have manually tried setting the screen resolution(as described below) at boot with no results. CSM driver is no longer working and causing a blank/black screen. PatchVBios also has the same results. The CSM management has changed in newer revisions and I will have to try to get a working Clover GUI again with my screen resolution (I can boot, but without the proper resolution). CSM driver used to correct the resolution problem.
-This guide works for Clover r1665+.
BIOS boot settings need to include UEFI BIOS booting first. Example:
UEFI: USB USB will be the selection you want when booting off of your UEFI USB stick.
Hard drive booting will need UEFI:HDDname first, before P0:HDDname.
Making a Bootable Installer Guide: http://www.osx86.net/guides-tutorials/19291-guide-clover-efi-bootloader-70.html#post131499
You need to have Xcode Command Line Tools installed. This can be downloaded from the Apple Developer webpage using a free dev. account.
Download the Zip file from Github. https://github.com/STLVNUB/CloverGrower
Move the file to desired location before running as this will create lines for the file directory and the file can not be moved later on.
Unzip whichever package you downloaded and run CloverGrower.command, you only need to do this ONCE.
CloverGrower will download all sources, GCC, edk2 and Clover.
First build will take some time as it needs to compile GCC, then it builds edk2 BaseTools and then compiles Clover.
"Common Sense" commands needed to finish the whole process.
On subsequent uses you only need to open terminal and type "clover"
CloverGrower will update any source files from edk2 or Clover and build you a package.
The package file will be created in your CloverGrower file under BuiltPKG. There will be a file revision name and updated files will created here as well.
UEFI USB Stick: (Testing First Recommend)
Run the package file. Click Continue twice. Click Customize.
Clover EFI:
1. UEFI Boot (UEFI motherboards)
2. SATA 64bit
3. UEFIdrivers- HFSPlus-64.efi, OsxAptioFixDrv-64.efi, OsxFatBinaryDrv-64.efi, EmuVariableUefi-64.efi (needed for OSX installation)
Navigate to /EFI/Drivers64UEFI:
HFSPlus-64.efi, OsxAptioFixDrv-64.efi, OsxFatBinaryDrv-64.efi
I am only using these 3 Drivers in EFI/drivers64UEFI. The rest can be moved/renamed/ or deleted. HFSPlus-64.efi is posted in FS Drivers file in the attachments to this post.
EmuVariableUefi-64.efi, This driver its used for installing OSX using Clover UEFI and does not need to be removed after instalation since it use only 0.05 sec to load. But can be removed.
config.plist
Create the config.plist to run as you would in Chameleon/Chimera sort of.
A few Extra things are needed to run Mountain Lion. boot-args - slide=0 is necessary. HDAInjection is turned off if you still use MultiBeast for the 898.kext and Injector, also with custom DSDT-898 Audio Injection (HDMI enabled). StringInjection is used with DeviceProperties to enable HD4000 as I would before. GraphicsEnabler=No is also added. PatchVBios=No is also used with this combination.
Place the SSDT.aml into /EFI/ACPI/patched.
Place your DSDT.aml into the same folder as SSDT.aml. I would recommend creating a DSDT.aml for use with Clover. You will need to extract and compile a DSDT.aml file and fix any errors present. I would also suggest running Toleda's patching for cleaning up your DSDT after creating your DSDT.aml file. Toleda's patching for HDMI/HD4000 will inject the HD4000 for you. You may remove the string injection for HD4000 from the config.plist.
Under ACPI you need to place this string:
<key>DsdtName</key>
<string>DSDT.aml</string>
New Example config.plist without DSDT.aml and with SSDT.aml- HD4000 and GT640 enabled- OSX is the name of the root drive
Adding Speed-Stepping for Macmini6,2 (Clover)
Rename the SSDT file to SSDT.aml and place into EFI/ACPI/patched folder. Do not drop OEM Speed-Step (this topic is debated and works for some and not others). Drop GenerateCStates and GeneratePStates.
Moving EFI folder to SSD/HDD
After testing UEFI USB drive I moved the EFI folder (from working USB or Clover modified file) to the hidden EFI partition using these steps:
0) Open Terminal
1) Type the following commands
2) mkdir /Volumes/efi
3) sudo mount -t msdos /dev/disk0s1 /Volumes/efi (where disk0 = your OSX root drive)
4) Now you should see your EFI partition mapped to your Desktop
5) Copy EFI folder to the EFI partition
6) Reboot
7) Go into your BIOS (delete)
8) Change the Default Boot Device to UEFIYour macintosh HDD)
Clover UEFI booting is BETA testing.... In saying this, there are a lot of changes all the time. This guide may not work for you.
Changes in revisions are listed here: http://www.projectosx.com/forum/index.php?showtopic=2656&st=0
Relevant Notes:
-Changes to the config.plist-> added 2 new sections GUI and Themes
-Booting with CSM Disabled -> My Gigabyte GT640 has a UEFI VBIOS version F12. I have also added a patched BIOS F15r (tweaktown) to have GFX UEFI. This allows you to boot in full UEFI without the CSM support needing to be enabled.
-I still have problems with the Clover GUI resolution. I have manually tried setting the screen resolution(as described below) at boot with no results. CSM driver is no longer working and causing a blank/black screen. PatchVBios also has the same results. The CSM management has changed in newer revisions and I will have to try to get a working Clover GUI again with my screen resolution (I can boot, but without the proper resolution). CSM driver used to correct the resolution problem.
-This guide works for Clover r1665+.
BIOS boot settings need to include UEFI BIOS booting first. Example:
UEFI: USB USB will be the selection you want when booting off of your UEFI USB stick.
Hard drive booting will need UEFI:HDDname first, before P0:HDDname.
Making a Bootable Installer Guide: http://www.osx86.net/guides-tutorials/19291-guide-clover-efi-bootloader-70.html#post131499
You need to have Xcode Command Line Tools installed. This can be downloaded from the Apple Developer webpage using a free dev. account.
Download the Zip file from Github. https://github.com/STLVNUB/CloverGrower
Move the file to desired location before running as this will create lines for the file directory and the file can not be moved later on.
Unzip whichever package you downloaded and run CloverGrower.command, you only need to do this ONCE.
CloverGrower will download all sources, GCC, edk2 and Clover.
First build will take some time as it needs to compile GCC, then it builds edk2 BaseTools and then compiles Clover.
"Common Sense" commands needed to finish the whole process.
On subsequent uses you only need to open terminal and type "clover"
CloverGrower will update any source files from edk2 or Clover and build you a package.
The package file will be created in your CloverGrower file under BuiltPKG. There will be a file revision name and updated files will created here as well.
UEFI USB Stick: (Testing First Recommend)
Run the package file. Click Continue twice. Click Customize.
Clover EFI:
1. UEFI Boot (UEFI motherboards)
2. SATA 64bit
3. UEFIdrivers- HFSPlus-64.efi, OsxAptioFixDrv-64.efi, OsxFatBinaryDrv-64.efi, EmuVariableUefi-64.efi (needed for OSX installation)
Navigate to /EFI/Drivers64UEFI:
HFSPlus-64.efi, OsxAptioFixDrv-64.efi, OsxFatBinaryDrv-64.efi
I am only using these 3 Drivers in EFI/drivers64UEFI. The rest can be moved/renamed/ or deleted. HFSPlus-64.efi is posted in FS Drivers file in the attachments to this post.
EmuVariableUefi-64.efi, This driver its used for installing OSX using Clover UEFI and does not need to be removed after instalation since it use only 0.05 sec to load. But can be removed.
config.plist
Create the config.plist to run as you would in Chameleon/Chimera sort of.
A few Extra things are needed to run Mountain Lion. boot-args - slide=0 is necessary. HDAInjection is turned off if you still use MultiBeast for the 898.kext and Injector, also with custom DSDT-898 Audio Injection (HDMI enabled). StringInjection is used with DeviceProperties to enable HD4000 as I would before. GraphicsEnabler=No is also added. PatchVBios=No is also used with this combination.
Place the SSDT.aml into /EFI/ACPI/patched.
Place your DSDT.aml into the same folder as SSDT.aml. I would recommend creating a DSDT.aml for use with Clover. You will need to extract and compile a DSDT.aml file and fix any errors present. I would also suggest running Toleda's patching for cleaning up your DSDT after creating your DSDT.aml file. Toleda's patching for HDMI/HD4000 will inject the HD4000 for you. You may remove the string injection for HD4000 from the config.plist.
Under ACPI you need to place this string:
<key>DsdtName</key>
<string>DSDT.aml</string>
New Example config.plist without DSDT.aml and with SSDT.aml- HD4000 and GT640 enabled- OSX is the name of the root drive
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SystemParameters</key>
<dict>
<key>boot-args</key>
<string>slide=0</string>
<key>prev-lang:kbd</key>
<string>en:0</string>
<key>InjectSystemID</key>
<string>Yes</string>
</dict>
<key>GUI</key>
<dict>
<key>DebugLog</key>
<false/>
<key>DefaultBootVolume</key>
<string>OSX</string>
<key>HideEntries</key>
<dict>
<key>InternalUEFI</key>
<true/>
</dict>
<key>Mouse</key>
<dict>
<key>DoubleClick</key>
<string>500</string>
<key>Enabled</key>
<true/>
<key>Mirror</key>
<false/>
<key>Speed</key>
<string>2</string>
</dict>
<key>Theme</key>
<string>bootcamp</string>
<key>Timeout</key>
<string>15</string>
<key>Volumes</key>
<dict>
<key>Legacy</key>
<string>No</string>
</dict>
</dict>
<key>Graphics</key>
<dict>
<key>GraphicsInjector</key>
<string>No</string>
<key>PatchVBios</key>
<string>No</string>
<key>LoadVBios</key>
<string>No</string>
</dict>
<key>ACPI</key>
<dict>
<key>DropOemSSDT</key>
<string>No</string>
<key>GeneratePStates</key>
<string>No</string>
<key>GenerateCStates</key>
<string>No</string>
</dict>
<key>CPU</key>
<dict>
<key>Turbo</key>
<string>Yes</string>
</dict>
<key>PCI</key>
<dict>
<key>HDAInjection</key>
<string>No</string>
<key>InjectClockID</key>
<string>No</string>
<key>USBFixOwnership</key>
<string>No</string>
<key>USBInjection</key>
<string>No</string>
<key>StringInjector</key>
<string>Yes</string>
<key>DeviceProperties</key>
<string>7f0000000100000001000000730000000200000002 010c00d041030a000000000101060000027fff04002c000000 4100410050004c002c00690067002d0070006c006100740066 006f0072006d002d0069006400000008000000010066011400 00006800640061002d0067006600780000000d0000006f6e62 6f6172642d31</string>
</dict>
<key>RtVariables</key>
<dict>
<key>LogEveryBoot</key>
<string>Yes</string>
<key>LogLineCount</key>
<string>3000</string>
<key>MLB</key>
<string>C02L76OLDWYN65832</string>
<key>MountEFI</key>
<string>OSX</string>
</dict>
<key>KernelAndKextPatches</key>
<dict>
<key>AppleRTC</key>
<string>No</string>
<key>AsusAICPUPM</key>
<string>No</string>
<key>KernelCpu</key>
<string>No</string>
</dict>
<key>SMBIOS</key>
<dict>
<key>ProductName</key>
<string>Macmini6,2</string>
</dict>
</dict>
</plist>
Adding Speed-Stepping for Macmini6,2 (Clover)
Rename the SSDT file to SSDT.aml and place into EFI/ACPI/patched folder. Do not drop OEM Speed-Step (this topic is debated and works for some and not others). Drop GenerateCStates and GeneratePStates.
Moving EFI folder to SSD/HDD
After testing UEFI USB drive I moved the EFI folder (from working USB or Clover modified file) to the hidden EFI partition using these steps:
0) Open Terminal
1) Type the following commands
2) mkdir /Volumes/efi
3) sudo mount -t msdos /dev/disk0s1 /Volumes/efi (where disk0 = your OSX root drive)
4) Now you should see your EFI partition mapped to your Desktop
5) Copy EFI folder to the EFI partition
6) Reboot
7) Go into your BIOS (delete)
8) Change the Default Boot Device to UEFIYour macintosh HDD)