Guide for installing Mavericks on a Z77X-UD5H (UEFI mode) via Clover. Introduction. I would like to share with the community my method for installing Mavericks on a Z77X-UD5H motherboard in UEFI mode (without CSM) using Clover as the bootloader. With this setup you’ll benefit from faster boot times, easier install and upgrade, recovery partition and possibility of dual-booting Windows in UEFI mode. Requisites. 8Gb (or bigger) USB stick. Install OS X Mavericks.app downloaded from App Store in Applications’ folder (to create Mavericks' USB installer). A graphic adapter supporting GOP mode. Your graphics adapter (integrated or discrete) needs a UEFI-GOP BIOS in order to boot with CSM disabled. In the case of the Z77X-UD5H’s integrated graphic adapter (HD4000), the latest official BIOS F14 doesn’t provide GOP support, so if you want to use your HD4000 as the only graphic adapter in the system you’ll need to install a BIOS version providing GOP support for the HD4000. In my personal experience, BIOS F16 mod11 (from TweakTown forum, see links section) includes GOP support for the HD4000 and is a very stable BIOS. Maybe other BIOSes include GOP support, but the mentioned one is the only one I’ve tested extensively. If you don’t want to use the integrated HD4000 you’ll have to make sure your discrete adapter has GOP support. Most recent cards have the possibility of being updated to a BIOS including GOP support. I didn’t buy a graphic adapter recently, but probably the newest ones will have GOP support out-of-box. Check with your device’s vendor to see if a GOP BIOS is available for your card and update it following the instructions provided by your vendor. You can also use both integrated and discrete adapters at the same time. In this case, at least one of them needs GOP support in order to boot the system, which will boot from the GOP-enabled adapter, and once Mavericks’ UI loads, the non-GOP adapter will be enabled. A BIOS version capable of booting in full UEFI mode (with CSM disabled). Again, the best BIOS I’ve found so far is F16 mod11, which has very clear settings regarding CSM and how to disable it. The screen captures in the BIOS settings section explain how to disable CSM. Probably other BIOSes have the option to completely disable CSM, but again this is the one I’ve used for months and is rock solid. BIOS settings. I’m posting here screen captures of my BIOS settings. Right now I’m using F16 mod11, but most BIOSes have similar options, so if you are using a different BIOS version you’ll have to set it up as closely as possible to the settings I provide in these screen captures. Every screen capture is explained for reference. M.I.T. - Advanced frequency settings. The most important settings in this page are the base clock (CPU Clock Ratio) and the Extreme Memory Profile (X.M.P.). I set my clock to default (35) and the “Profile1” in X.M.P. (memory sticks are detected as 1600Mhz with this setting) since my RAM is 1600Mhz. M.I.T. - Advanced frequency settings - Advanced CPU core features. In this page I want to show you part of my overclock settings. If you do overclocking, set your frequency for each core (Turbo Ratio 1, 2, 3 and 4). I have achieved the best performance by setting each core to the same frequency. If you don’t overclock your CPU then leave every core to “Auto”. M.I.T. - Advanced memory settings. In this page I set everything to defaults but X.M.P. This is the same setting than the one found in the section “Advanced frequency settings”. In the different pages for “Timing Settings” you can put your RAM sticks’ latency specific values, but I’ve found no improvements by doing this. M.I.T. - Advanced voltage settings - 3D power control. You need to change the values in this page only if you overclock. If you don’t overclock, set everything to “Auto”. For overclockers, this the second page of settings directly related to overclocking, being the first the one in which we set up our cores’ frequency. In this one you have to set everything to “Auto” except the first three options, which should be set as stated in the screen capture. M.I.T. - Advanced voltage settings - CPU Core voltage control. This page is also related to overclock. If you’re not overclocking, set everything to “Auto”. If you overclock, set the first choice to “Normal” and the second one to your dynamic voltage, which will depend on your cores’ frequency. The settings stated in the screen capture work perfectly for a 4,7Ghz overclock. M.I.T. - Advanced voltage settings - DRAM voltage control. Set your memory sticks’ voltage here. I put “1,650v” since that is the voltage specified by my vendor. BIOS Features. The most important feature in this page is disabling CSM in order to boot in full UEFI mode. Depending on your BIOS version you may find this page a little different. If you have the option of selecting “Windows 8 WHQL” in “OS Type”, select it and an option for disabling CSM will appear. Sometimes this option doesn’t appear until you save & reboot. At the end of this page, although it doesn’t appear in the screen capture, there is an option for disabling secure boot. Set it to “Disabled”. Peripherals. In this page you can configure your integrated devices. An important setting here is your graphic adapter. In my screen capture I have enabled HD4000 as the default graphic adapter, because F16 mod11 BIOS includes GOP support for the HD4000, so you can boot with it in full UEFI mode. This way my system boots from the HD4000 and once Mavericks loads, my Nvidia GTX680 is enabled. In my case, I prefer leaving the GTX680 with a legacy ROM (non GOP support) and booting from the HD4000. Although it can’t be seen in the screen capture, both Intel Smart Connect and Marvell controller are disabled. Legacy USB, XHCI and EHCI are “Enabled”. Power management. In this page you have to disable “Wake on LAN” and set “High Precision Event Timer” to “Enabled”. How to create a Mavericks USB installer. I have found nguyenmac’s method to be the best one in order to create the Mavericks USB installer. Inspired by his method I’ve developed my own one. Basically we will partition the USB stick, copy the installer files over and finally install Clover on it. First you need Disk Utility to create two partitions on your USB stick. Select your USB drive on the left column and click on the “Partition” tab. Then select “Partition layout” and choose “2 partitions”. The first one will contain Clover files, so a good name for it is “Clover”. Its format has to be MS-DOS (FAT) and its size bigger than 300Mb. The second one will contain the installer files. Name it “Untitled” and format it to Mac OS Extended (journaled). In options, you have to set the partition scheme to Master Boot Record. Apply changes to your USB stick. Now run the following command in Terminal: Code (Text): sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction If this command gives you an error, check that you have your copy of "Install OS X Mavericks.app" in your "Applications" folder and the routes pointed by the command. At the end of the process of partitioning & copying installer files, your USB stick should look like this in Disk Utility: Now run Clover installer pointing to your “Clover” partition in your USB stick with the following options: Using Finder, go to your USB stick. Replace the EFI folder in the "Clover" partition of your USB stick with the EFI folder contained in my "EFI-USB.zip" file (See "Files" section). Then copy your FakeSMC.kext to the following route in your USB stick’s “Clover” partition: /EFI/CLOVER/kexts/10.9 (see the section "Utilities & Links" below). TIP: If you want to customize your system definition, have a look at the “Tricks” section to generate your system definition and add it to your USB stick’s /EFI/CLOVER/config.plist. Installation. Once you have set up your BIOS and created your USB installer it is time to boot the system from your USB and start installing. Press F12 at boot and select your USB drive as the boot device. It should appear as “UEFI: your device’s name”. Clover’s interface will appear and then you have to select “Install OS X Mavericks” using your keyboard’s left and right arrow keys. Then hit Enter and Clover will start the installer’s boot process. TIP: You can push the space key when your “Install OS X Mavericks” is selected in order to activate verbose booting (great for diagnostic purposes). You will see something like this: During installation it is better to boot with BIOS’ default DSDT and SSDT. This is done by leaving the folder “/EFI/CLOVER/ACPI/patched/” in your Clover partition empty. Graphic injection is necessary depending on your hardware. In my case, I’m booting from the HD4000, so it is not necessary for me to inject anything. Your mileage may vary depending on the graphic adapter you use to boot the system, and concretely on its GOP support, as explained before. In order to boot the installer you may need to change some options in the provided config.plist at boot time. This is done by selecting “Options” in Clover’s UI. Here you have some screenshots of these important configuration pages: There you can change graphics and CPU injection, DSDT to load and other stuff like kext patching. If the installer doesn’t boot with the provided settings you’ll have to play with these options until the installer boots successfully. If the installer UI pops up with a box containing four choices (Web help, Time Machine, Disk Utility and Install OSX) then you have correctly started the installer in UEFI mode. Partition your system’s hard drive and install the system to it. At this first stage you can use Disk Utility to carry out this task selecting “Disk Utility” before installing. When you select your hard drive and hit “Install”, the installer will start copying files to your disk. When it finishes the system will reboot, concluding the first stage of the installation. Now you have to boot again from your USB installer and this time a different option will appear. Select it and the second stage of the installation will start. Booting the system in verbose mode helps a lot when troubleshooting boot problems. If everything goes well the installer will conclude its work and the system will reboot. Installation is over now so we move on to the next step: post-installation. Post-installation. Boot again from your USB stick and this time you will have to select your Mavericks’ installation on your hard drive. The initial configuration will appear and then you’ll get to the desktop. Now it is time to install Clover on your hard drive. So fire up Clover’s installer and configure the installer to install on your hard drive with the same options we marked when creating the USB installer: Go to the EFI partition of your hard drive using Finder and delete the EFI folder. Now extract the contents of my “EFI-HD.zip” to your EFI partition. At the end, you should have an EFI folder on your hard drive’s EFI partition containing all my working Clover settings for the Z77 motherboard. Now you have to copy the following files to your hard drive’s EFI partition. Copy your FakeSMC.kext to /EFI/CLOVER/kexts/10.9 (see the section "Utilities & Links" below). Copy your network kexts to /EFI/CLOVER/kexts/10.9 (you can grab them from latest MultiBeast). Copy your DSDT.aml to /EFI/CLOVER/ACPI/patched (see the section “Tricks” to see how to compile your DSDT.aml). Copy your SSDT.aml to /EFI/CLOVER/ACPI/patched (see the section “Tricks” to see how to compile your SSDT.aml). TIP: If you want to customize your system definition, have a look at the “Tricks” section to generate your system definition and add it to your hard drive’s /EFI/CLOVER/config.plist. The system should be bootable by now, so disconnect all your USB drives and reboot. Now let’s boot from our new install on our hard drive. A different Clover interface will appear if you’ve correctly booted from the new install: I like to set different Clover themes on USB and hard drive installations, because this way you know where you are booting from. If you’ve copied my EFI folder and configured it properly, the system will boot to the desktop and there will be lots of rejoicing. Congratulations! Utilities & Links FakeSMC.kext (HWSensors project). The only mandatory kext for booting a hackintosh. MaciASL. The best app for compiling your DSDT.aml. Follow this guide if you need help on creating your DSDT. Pjalm's patches. These are code snippets to patch your DSDT. Clover bootloader. Clover bootloader installer. Clover Configurator. A great tool to configure your config.plist with a graphical interface full of features. PikeRAlpha’s SSDT generation script for Ivy Bridge processors. DPCIManager. Kexts' installer, cache rebuilder, PCI info, preboot.log reader… A must have utility! Gigabyte @ TweakTown forum. Latest beta & modded BIOS. Tricks. Creating your system definition with Clover Configurator. Open Clover Configurator and go to File > New. Then click on the SMBIOS tab and you will get to this screen: Click on the magic wand icon and the following screen will appear: Select your preferred system definition from the drop-down list at the top-left of the screen. It is a good idea to click on the “Shake” buttons in order to generate a random serial number for your machine. If you are using an Ivy-Bridge CPU your best choice is “MacMini6,2”. With this system definition you will get the best power management and other features like AirPlay. Once you have your serial number and definition ready, click on “Ok”. Then this screen will appear: Click on “Copy all data” and you will have a config.plist file containing your SMBIOS information. Save it and close Clover Configurator. Now open this config.plist with a plist editor app, such as Plist Editor Pro, and go to the section called SMBIOS. Right-click on it and select “Copy”: Now open the config.plist in which you want to add your system definition and select the entry called “Root”. Right-click on it and select “Paste as child”. A new section called “SMBIOS” will appear containing your system definition: Compiling DSDT and SSDT for your machine. The whole procedure for compiling a DSDT or a SSDT is beyond the scope of this tutorial, so I recommend reading topics in this forum related to the subject. There are lots of topics, as well as lots of tools to accomplish this task. Good luck! For DSDT compilation, start by this topic (credits to loginfailed). Fos SSDT compilation, follow this link (credits to PikeRAlpha). Other considerations. As a rule of thumb, if the configuration contained in your USB stick is valid for booting the first stage of the installation, this same configuration will be valid for booting the second stage and also for booting a hard drive install. So once you have your USB stick correctly configured for booting the installer, this configuration can work as a "baseline" when you have your system installed in your hard drive. There seems to be a bug in the FireWire implementation and Console gets spammed with a message saying "FireWire GUID is invalid: 0000000000000". To fix it, I have provided a driver in my EFI folders which resolves the problem of spamming. Devices work normally even with console spamming. Anyway, the bug appears again after waking the machine from sleep. To enable audio, you'll have to choose the way to enable your audio devices depending on the devices itself. If you want ALC audio, follow an appropriate guide for that. Toleda provided the forum with great guides for enabling onboard audio. For HDMI audio, just a DSDT patched with Pjalm's patches should be enough. Files. View attachment EFI-USB.zip View attachment EFI-HD.zip Credits. The Clover team (apianti, asava, blusseau, slice2009), Tonymacx86, toleda, PikeRAlpha, Pjalm, SJ_UnderWater, xpamamadeus, loginfailed and the whole Tonymacx86 community.