Jump to content

[Guide] Gigabyte Z77X UD5H Clover UEFI Install/Tweak guide

Gigabyte Z77X UD5H Clover UEFI Gigabyte Guide

  • Please log in to reply
375 replies to this topic

#1
xpamamadeus

xpamamadeus

    InsanelyMac Legend

  • Donators
  • 588 posts
  • Gender:Male
  • Location:Croatia
Hi to all.
I like to share my Guide about this great board.




Table of Contents
UEFI SETUP
DSDT
SMBIOS
CLOVER
KEXT
INSTALLING OSX (MAKING UEFI CLOVER INSTALL USB)
CREDITS




1.UEFI setup

First of all we will be using F14 or F15r version in this guide soo be sure u are using this version. Load EUFI defaults before setup using this guide.
If u are using F15r version its all same.
Note for F15R

DON’T TOUCH fast boot options!!
If u touch them just once u can have some strange problems.
Only way to fix this problems its to reflah F15r again,sry no clear cmos or some other trick for fix this for now.

Main bios screen.

Posted Image



Under Advanced frequency Settings set your X.M.P. profile if your modules have one. Or set desired frequency manually here.

Posted Image

Set your Max OC settings like I do for my but put your values.

My oc are 4.7 ghz soo if your its 4.5ghz then u use 45,45,45,45 etc…
Very important to SetCPU PLL Overvoltage to disabled, or we have problems with USB after wake from sleep!

Posted Image

Set your desired CPU voltage here,u need it only if u overclock your CPU.

Posted Image

PWM control for my overclock.(Can be auto if u don’t overclock over 4.4-4.5 Ghz) this its for more stability under overclock.

Posted Image

Pheripherals set all like on picture here.

Posted Image

Power management change settings like this.

Posted Image

Most important bios settings for Clover are here
Posted Image
DSDT


Be sure u don’t boot your osx with already modded DSDT,and if u use clover be sure u don’t patch DSDT on the fly.
Set this in clover GUI soo we are sure u get clean dsdt!
Posted Image

We will use MaciASL u can download it from here.

After download install application and run it,go to preferences and add sources like this.

Posted Image

http://pjalm.info/repos/gigabyte
http://pjalm.info/repos/graphics


Go to iASL and choose ACPI 5 then hit update.

Posted Image


Close preferences.

Go to main window and press patch

Next choose Pjalm Gigabyte
Under it choose Z77X-UD5H and press apply.
Next choose patch for your Graphics adapter.
If u have Discrete Ati/nvidia choose Generic Descrete Graphics
If u have only Intel integrated then choose one of them and click apply,then close.

Now from File menu save it on desktop or elswere with DSDT name and format ACPI machine language binary.

Posted Image

Later u will put your patched DSDT in folder “EFI/Clover/OEM/Z77X-UD5H/UEFI/ACPI/patched



3. SMBIOS

We will use macMini 6,2 smbios for this board but we need to generate a own serial for this board.
Download Chameleon wizard for here.
Check premade SMBioses and select MAC Mini (6,2)
Press random on unique number and generate a serial.

Posted Image

We will use this serial in our config.plist
Check clover config next page.
4.Clover

We will just run setup/select our OSX system drive (my its named ML) and choose options like on this picture.

Posted Image

After installing Clover to our ESP setup will automatically mount it on desktop under name EFI

Now we must make some changes for you in clover settings.

First of all we will be using PlistEditPro for editing these settings.


Open EFI/EFI/CLOVER/OEM/
And u will found “SystemProductName” first of all we will rename this to our board name like this “Z77X-UD5H”

Now using PlistEditPro open config.plist under Clover/OEM/Z77X-UD5H/UEFI/config.plist

Original untouched sample looks like this.

Posted Image

Now we will delete what we don’t need here because clover automatically select many things right for our board/system.
Under ACPI delete all but GenerateIvyStates and change it to YES.

<key>ACPI</key>
<dict>
<key>GenerateIvyStates</key>
<true/>
</dict>


Under PCI set all to NO like this.

<key>PCI</key>
<dict>
<key>InjectClockID</key>
<false/>
<key>USBFixOwnership</key>
<false/>
<key>USBInjection</key>
<false/>
</dict>



SMBIOS add serial number we generated,product name,and Firmware features to looks like this.

<key>SMBIOS</key>
<dict>
<key>FirmwareFeatures</key>
<string>0x80001437</string>
<key>ProductName</key>
<string>Macmini6,2</string>
<key>SerialNumber</key>
<string>C02L76OLDWYN</string>
</dict>

Under Rtvariables find MBL and change it to your serial and after serial add 5 more numbers off your choice to looks like this.

<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>

SystemParameters


<key>SystemParameters</key>
<dict>
<key>InjectSystemID</key>
<string>Yes</string>
<key>boot-args</key>
<string>slide=0</string>
<key>prev-lang:kbd</key>
<string>en:0</string>
</dict>

KernelAndKextPatches
this will add TRIM support too.


<key>KernelAndKextPatches</key>
<dict>
<key>AppleRTC</key>
<false/>
<key>AsusAICPUPM</key>
<false/>
<key>Debug</key>
<false/>
<key>KernelCpu</key>
<false/>
<key>KextsToPatch</key>
<array>
<dict>
<key>Find</key>
<data>
QVBQTEUgU1NEAA==
</data>
<key>Name</key>
<string>IOAHCIBlockStorage</string>
<key>Replace</key>
<data>
AAAAAAAAAAAAAA==
</data>
</dict>
</array>
</dict>

or second version if u wanna use MacPro 5.1 for some reason the add this.

<key>1</key>
<dict>
<key>Find</key>
<data>
cgoATWFjUHJvNCwxAE1hY1BybzUsMQBY
</data>
<key>Name</key>
<string>AppleTyMCEDriver</string>
<key>Replace</key>
<data>
cgoAAAAAAAAAAAAAAAAAAAAAAAAAAABY
</data>







Leave other things for now like they are and save from file menu.
Later u can choose another themes etc.

5.KEXT

We will be using FAKESMC for this setup with some plugins and modifications wich will give you working both network adapters and marvel sata.
Download fakesmc from kozlek site.

Posted Image

Now put this file on desktop and extract it.
Binaries 5.1.67.zip
We need some of those files and some can be deleted.
Leave only those on picture.
Note:If u use only HD 4000 then dont use GPUSensors.kext!

Posted Image

Next open fakesmc like this

Posted Image

open Contents and create new folder named Plugins

Posted Image

Next download Attached File  Ethernet.zip   220.51KB   458 downloads
Put it in folder binaries on desktop.

Now copy all those files to folder fakesmc/plugins we created earlier
Posted Image

Next open info.plist under fakesmc and add marvel sata injection like this.

Posted Image

<key>IOKitPersonalities</key>
<dict>
<key>Marvell 88SE9172</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleAHCIPort</string>
<key>Chipset Name</key>
<string>88SE9172 AHCI</string>
<key>IOClass</key>
<string>AppleAHCI</string>
<key>IOPCIClassMatch</key>
<string>0x01060100&amp;0xffffff00</string>
<key>IOPCIPrimaryMatch</key>
<string>0x91721b4b</string>
<key>IOProbeScore</key>
<integer>15000</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>Vendor Name</key>
<string>Marvell</string>
</dict>
<key>SMC Device Emulator</key>

Save changes.

Now we have ready fakesmc.kext and we can copy it to EFI/CLOVER/OEM/Z77X-UD5H/UEFI/KEXT/10.8 on our EFI

Posted Image
For audio u will need to install patched applehda,I will not going to write about this since i am using cheap usb audio card and I am using original applehda.

6.INSTALLING OSX (making UEFI Clover install USB)

We will need hack or Mac to make make this happens,8 GB USB stick(preferred USB 3 for speed)
First mount clean untouched InstallESD.dmg from your appstore mountain lion installer version 10.8.3 like this.


Posted Image

Then go to Contents/SharedSupport and double click on InstalESD.dmg
Next start Disk utility
Choose your USB stick,and then click partition.
Change partition layout: to 1 partition
Then Click option and choose GUID partition table ,click ok.
Choose Format to Mac OS Extended (Journaled),and hit apply,then partition.
Now your USB should look like this.

Posted Image

Next we will restore InstallESD.dmg to our newly formatted USB stick.
Using Disk Utility choose MAC OS X install ESD
Next choose tab restore.

Posted Image


then drag your Untitled 1 to destination.

Posted Image

Next click restore,and then erase and wait till finish.
Unmount all of your MAC OS X install ESD then replug your USB stick.

Now mount your EFI of your USB stick using terminal and type
1. “diskutil list”

Posted Image

2. type “mkdir /Volumes/efi”
3. And then “sudo mount -t msdos /dev/disk5s1 /Volumes/efi” it will ask u for a password type it and u should have EFI of your USB mounted.

Copy complete EFI we created in this guide to this location.
Must look like this
Posted Image

Now when u boot choose UEFI +(name of usb stick) from boot menu .
Clover should start.
Next we have Mac OS X Install ESD option and we select it and we press space and choose option Withkext
First stage of setup should start and we install OSX, setup will restart.
After restart we again boot from USB and choose Install OSX option,press space and choose NoCaches With Kxt option.
Setup will now finish stage 2 and again restart.
Again boot from USB and select name of your new installed OSX and press space choose with kext.
U will get to desktop and now u can start installing Clover like describen in this Guide.
Good Luck!!


None of this its my work I just put it together in one place.

Attached File  config.plist.zip   981bytes   653 downloads
Attached File  FakeSMC.kext.zip   357.57KB   364 downloads

Credits

All credits goes to
Slice,Dmazar ,Apianti JRCS and others from http://www.projectosx.com/ for best bootloader in world
Toleda and PJALM for providing nice and easy to use DSDT patches.
phpdev32 for MaciASL
Kozlek https://bitbucket.org/kozlek/hwsensors for fakesmc and plugins
Shailua for Atheros LAN kext
hnak for Intel LAN kext
And many others for tweaks to fakesmc and many other tweaks, sry if I forgot add someone .


This its my first guide, sry for bad English and look of this guide.

Xpam.AmAdEuS

#2
xpamamadeus

xpamamadeus

    InsanelyMac Legend

  • Donators
  • 588 posts
  • Gender:Male
  • Location:Croatia
Fix for firewire bug when CSM disabled.

When we disable CSM we get alot of this error in Console
FW GUID in system is 00000000000000
VanillaCracker post this driver on another forum to fix this error.
Attached File  FirewireDriver.efi.zip   26.49KB   355 downloads
U need just put it into drivers64UEFI folder.

Now we dont have this error anymore in Console,and ioreg looks like this
Posted Image
There its no invalid 000000000000 GUID here.

#3
ultrazonestudios

ultrazonestudios

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
  • Gender:Male
Hi !

Thanks for your guide ! Now I know I was doing some bad things regarding my installation.

One question: can I create my USB ML installer and then install Clover with the procedure you describe but over the USB installer ?

Thanks again !

#4
xpamamadeus

xpamamadeus

    InsanelyMac Legend

  • Donators
  • 588 posts
  • Gender:Male
  • Location:Croatia

Hi !

Thanks for your guide ! Now I know I was doing some bad things regarding my installation.

One question: can I create my USB ML installer and then install Clover with the procedure you describe but over the USB installer ?

Thanks again !

Yes u can make usb like this with same settings.
U must have emuvariableUEFI driver only for USB install,and this file its not needed later for HDD install,i will update guide with this later.
USB dont need any RC scripts too soo its a little diferent.

#5
Kynyo

Kynyo

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 248 posts
  • Gender:Male
  • Location:Not your bisnizz...
  • Interests:
As I know Gigabyte Z77 boards don't need DSDT (Sleep, powermanagement workin' natively)
Am I wrong?!

#6
xpamamadeus

xpamamadeus

    InsanelyMac Legend

  • Donators
  • 588 posts
  • Gender:Male
  • Location:Croatia

As I know Gigabyte Z77 boards don't need DSDT (Sleep, powermanagement workin' natively)
Am I wrong?!

Ofcourse u r right.
Sry for distruping u.

#7
Kynyo

Kynyo

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 248 posts
  • Gender:Male
  • Location:Not your bisnizz...
  • Interests:
Ok. Now i understand what you have done. Simply injected Graphics via DSDT!
But for example 6xxx series works natively wo DSDT patch or GE=Y. It's needed to re-inject?

I appologise for confusion...

#8
xpamamadeus

xpamamadeus

    InsanelyMac Legend

  • Donators
  • 588 posts
  • Gender:Male
  • Location:Croatia

Ok. Now i understand what you have done. SImply injected Graphics via DSDT!
But for example 6xxx series works nativeli wo DSDT patch or GE=Y. It's needed to re-inject?

I appologise for confusion...

this patch inject HDMI audio not only Graphics.

#9
Shad0wLandsUK

Shad0wLandsUK

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts
  • Gender:Male
  • Location:Suffolk
xpamamadeus I thought you might like to look into this. I have a friend who runs SSDs on his hackintosh as well and he uses OCZ SSDs, I think you will find that since OCZ uses its own garbage collection system you do not need TRIM support on your SSDs. I do on mine cos they are Samsung, but I am 99% certain you do not.

#10
xpamamadeus

xpamamadeus

    InsanelyMac Legend

  • Donators
  • 588 posts
  • Gender:Male
  • Location:Croatia

xpamamadeus I thought you might like to look into this. I have a friend who runs SSDs on his hackintosh as well and he uses OCZ SSDs, I think you will find that since OCZ uses its own garbage collection system you do not need TRIM support on your SSDs. I do on mine cos they are Samsung, but I am 99% certain you do not.

U are right about OCZ ssd-s.
But patch its here in config soo others can use it,and it cannot do any harm to OCZ ssd-s.

#11
sbg

sbg

    InsanelyMac Protégé

  • Donators
  • 66 posts
Thanks for this great guide.
I followed exactly but my system hangs during boot with 'waiting for DSMOS'

Any suggestions would be appreciated.

#12
D-an-W

D-an-W

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 450 posts
Try adding this to boot-args...


<key>boot-args</key>
<string>slide=0 WithKexts</string>

#13
JypJyp

JypJyp

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts
  • Gender:Male
  • Location:England
Hi, I followed this guide and I'm now booting with Clover!! :)

Quick question, do your front USB3.0 ports work? Is there an extra kext that's needed for these ports? I thought the patched DSDT would fix it, however it hasn't.

Thanks, Ed.

#14
xpamamadeus

xpamamadeus

    InsanelyMac Legend

  • Donators
  • 588 posts
  • Gender:Male
  • Location:Croatia

Thanks for this great guide.
I followed exactly but my system hangs during boot with 'waiting for DSMOS'

Any suggestions would be appreciated.

Are we talking about setup or installed system?
If its setup then first time we start setup we press space and choose with kext.
If its setup stage 2 then we choose with kext without caches.
If its wotking system then we choose with kext and when system start we install fakesmc to S/L/E.

Hi, I followed this guide and I'm now booting with Clover!! :)

Quick question, do your front USB3.0 ports work? Is there an extra kext that's needed for these ports? I thought the patched DSDT would fix it, however it hasn't.

Thanks, Ed.

Yes front USB 3 ports work OOB.
Only needed thing its to make DSDT and using one of IvyBridge smbios.

I am suggesting that use macmini6,2 if u use integrated vga only or integrated + discrete vga.
I cannot suggest to use macmini6,2 if we use only discrete vga.
imac13,2 work best if we use discrete vga only !
But with Imac13,2 we have only 3 power states but that its normal becouse imac have theese this by design.

#15
sbg

sbg

    InsanelyMac Protégé

  • Donators
  • 66 posts
I am getting strange and unpredictable results and think I need to start over.
How do I do a complete uninstall of all Clover files?
I erased the ESP, deleted rc.local and rc.shutdown.local but when I try to do a fresh Clover install, it still remembers the preferences and efi files from the previous install. End up with the same strange behavior. Are there additional files to delete for a clean wipe?

#16
xpamamadeus

xpamamadeus

    InsanelyMac Legend

  • Donators
  • 588 posts
  • Gender:Male
  • Location:Croatia

I am getting strange and unpredictable results and think I need to start over.
How do I do a complete uninstall of all Clover files?
I erased the ESP, deleted rc.local and rc.shutdown.local but when I try to do a fresh Clover install, it still remembers the preferences and efi files from the previous install. End up with the same strange behavior. Are there additional files to delete for a clean wipe?

clean nvram
sudo nvram -c from terminal

#17
sbg

sbg

    InsanelyMac Protégé

  • Donators
  • 66 posts

clean nvram
sudo nvram -c from terminal

That solved it.
My system is now running well with Clover :)

Thanks for your help!

#18
ultrazonestudios

ultrazonestudios

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
  • Gender:Male
Hi again !

I'm having trouble with power management. At boot I get the error about unknown CPU 0x3a: power management could be incomplete or unsupported. I'm getting only 2 states (16 and 35). Before I was getting six states (12, 22, 29, 35, 40 and 45).

I've tried with 10.8.3 and 10.8.4. I've also tried different Clover versions (1794 and self-compiled versions). I've followed this guide but OSX refuses to detect my CPU properly.

Any tips or ideas ?

Thanks in advance!

#19
kn6600

kn6600

    InsanelyMac Protégé

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Location:Macedonia

Hi again !

I'm having trouble with power management. At boot I get the error about unknown CPU 0x3a: power management could be incomplete or unsupported. I'm getting only 2 states (16 and 35). Before I was getting six states (12, 22, 29, 35, 40 and 45).

I've tried with 10.8.3 and 10.8.4. I've also tried different Clover versions (1794 and self-compiled versions). I've followed this guide but OSX refuses to detect my CPU properly.

Any tips or ideas ?

Thanks in advance!


Drop OEM SSDT.


key>ACPI</key>

<dict>

<key>DropOemSSDT</key>

<true/>

</dict>


#20
ultrazonestudios

ultrazonestudios

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
  • Gender:Male

Drop OEM SSDT.


key>ACPI</key>
<dict>
<key>DropOemSSDT</key>
<true/>
</dict>


Thanks for your fast reply !

I'll try this afternoon. By the way… what does BIOS F16c include and/or add ?

Cheers !





Also tagged with one or more of these keywords: Gigabyte Z77X UD5H, Clover UEFI, Gigabyte, Guide


1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy