Contribute
Register

Guide To Install Mavericks with Clover Bootloader

Joined
Oct 21, 2012
Messages
3,392
Motherboard
HP Elitebook 8470p
CPU
i5 3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
Introduction

11825122674_efdd3fedc7_o.png


New Hp laptops series have UEFI implemented in BIOS, and it provides much more advantages over current BIOS-based bootloaders like Chimera/Chameleon.
- Faster boot time
- Easier OS X install/Upgrade with native methods
- Create and boot to Recovery HD, for Time Machine and Disk Utility
- Patching kexts on the fly (no need to patch kexts after update)
- Can boot to Windows UEFI (which recognizes > 4 partitions GPT drive)
- Don't need to mess with master boot records

The guide is for:
- 6-series laptop: HP Probook 4x30s, 6x60b, Elitebook 8x60p, 2x60p
- 7-series laptop: HP Probook 4x40s, 4x0 G0, 6x70b, Elitebook 8x70p, 2x70p, 9470m
- 8-series laptop: HP Probook 4x0 G1, Elitebook 8x0 G1

* HP Probook s series with/without Radeon card is supported
* HP Elitebook/Probook b series with Intel HD3000/4000/4400/4600 is supported
* HP Elitebook 8x70p/Probook 6x70b with AMD 7570M/7650M is experimentally supported
* Other HP Elitebook/Probook b series with AMD card is NOT supported

*Always search in the first post before asking questions*

Compatible Wifi card

Here is the list of recommended compatible wifi cards:
- HP Probook 4x30s: HP-branded Atheros AR5B195
- HP Probook 6x60b/5330m, HP Elitebook 8x60p/2x60p: HP-branded Broadcom 43224HMS (582564-001/582564-002)
- Other laptop:
  • WIFI ONLY: Atheros AR9280/9285, Broadcom 4322/43224 (better OS X feature support)
  • WIFI + BT: AR5B195 (not recommended), Broadcom 43225HMB/4352HMB (better OS X feature support)

Known issues

- Distorted bootscreen with 7-series laptops using 1366x768 display + UEFI native (without CSM) setting. Changing Clover resolution to 1024x768, or enable UEFI Hybrid (with CSM) can fix it.

- 6-series laptops can have restart-on-wake problems.

- There is 10s-15s delay before going to sleep. It's a function (or a bug?) in Mavericks, even on real Mac (confirmed by RehabMan)

- Find My Mac does not work properly. Don't lock your mac because it's hard (or unable) to unlock again.

- Battery status is slow to update on some 4540s. If you have the problem, remove EmuVariableUefi-64.efi.


Install OS X Mavericks

Download the required files in https://www.dropbox.com/sh/28spnh4ozkb424m/AACuCmfpsu9tSvEv_4CSU67za.

1. Prepare a USB with 8GB or more, format by Disk Utility:
- Partition Layout: 2 Partitions
- 1st Partition: Name CLOVER, Format: MS-DOS (FAT), Size: >300MB
- 2nd Partition: Name MacUSB, Format: Mac OS Extended (Journaled), Size: >7GB
- Options: Master Boot Record
12475004833_baec2d51ba_o.jpg
- Download Clover.zip, extract then copy EFI folder to CLOVER partition.
- Download Config.zip, extract then select right config.plist and copy to /EFI/Clover/​
2. Create Mavericks Installer partition (need a Mac):
- Download Mavericks Install (if you have Haswell laptops, you must have 10.9.2+) app from AppStore.
- Launch terminal and run the following script:
Code:
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/MacUSB --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
- Your Mavericks Installer partition will be renamed "Install OS X Mavericks"

NOTE: If you have the error with the script, or you can't boot using this method, you can create MacUSB partition by using Unibeast (you will not have Recovery partition this way).

3. Enable these options in BIOS:
6-series laptop: UEFI Boot.
7-series laptop: UEFI Native without CSM or UEFI Hybrid with CSM (if you have Windows Legacy)
Disable Wake on LAN.
Disable Firewire device.

4. Plug the flashdrive to USB 2.0 ports. Restart and press F9 to choose Boot devices > Boot from EFI file > choose your Clover bootloader partition > EFI > Boot > BOOTX64.efi

5. Clover bootloader screen shows up, select "Boot OS X Install from Install OS X Mavericks" (your Mavericks Installer partition).

6. Press spacebar if a nagging screen about Mouse/keyboard appears. Install screen will appear, use Disk Utility to format your drive as GPT, create a Mac OS X Extended (Journaled) partition and install Mavericks to your formatted partition. The installer will extract necessary files to "Install OS X Mavericks" (not your target partition). This takes a lot of time at the end, though you only see "a minute remaining". This will end PHASE 1.

7. Restart and press F9 to choose Boot devices > Boot from EFI file > choose your Clover bootloader partition > EFI > Boot > BOOTX64.efi

8. Clover bootloader screen shows up, select "Boot OS X Install from Install OS X Mavericks" (your Mavericks Installer partition, not your install target partition).

9. Install screen will appear and continue installation. This time, installer will install files to your target partition and create Recovery HD partition. This will end PHASE 2.

10. Restart and press F9 to choose Boot devices > Boot from EFI file > choose your Clover bootloader partition > EFI > Boot > BOOTX64.efi

11. Clover bootloader screen shows up, press F4, select "Boot OS X from YourPartition".

12. If everything goes well, you can boot straight to Mavericks desktop.

13. Download HP Probook Installer here http://www.tonymacx86.com/hp-probook-mavericks/128774-hp-probook-installer-clover-edition.html and install with these options:

Clover UEFI: Install Clover UEFI bootloader

OS X support kexts
: select only the version that matches your laptop (4x30s, 4x40s, etc).
Config and DSDT patcher:
- ProBook model: your Probook Model
- Fan behavior: Readings only.
- Display type: your display resolution
SSDT generator/patcher: Generate SSDT.aml for your CPU Management

Misc OS X fixes:
- Probook/Elitebook Logos: Change MacBook logos in About This Mac to Probook/EliteBook
- Color profiles: Recommended.

Extra tools: All optional. Select the ones you want.

After making your selections, click 'Continue' and allow the ProBook Installer to work.

14. Restart and enjoy! If you don't have sound, use Kext Wizard to rebuild cache and restart.

15. If you can't login to iCloud/AppStore, clear network settings:
- Go to /Library/Preferences/SystemConfiguration/ and delete these files:

  • CaptiveNetworkSupport
  • com.apple.airport.preferences.plist
  • com.apple.network.eapolclient.configuration.plist
  • NetworkInterfaces.plist
- Go to System Preferences > Network, delete all connection. Then restart
- Go to System Preferences > Network, add your connection again.


*** If you have any problems, please post troubleshooting files***

EC Reset

If you have problems with keyboard, touchpad, auto restart in OS X, you may try EC reset:
- Unplug AC Adapter, remove battery.
- Hold the power button for 30 seconds.
- Attach your battery, plug AC Adapter then turn on the laptop.


Update OS X Mavericks

You can update to any 10.9.x version you want like a real Mac. If you have trouble with sleep after update, then run this in terminal:
Code:
[I]sudo pmset[/I] -a [I]hibernatemode 0[/I]

Install Windows UEFI as dual boot

Install Windows UEFI (and other UEFI OSes) are quite easy because you don't need to mess up with Boot records. See FAQ for more detail.

**To Install Windows 7 UEFI on 7-series laptops, you must select UEFI hybrid (with CSM) in BIOS.

1. Create your Windows UEFI install USB key by following the guide here:
http://www.eightforums.com/tutorials/15458-uefi-bootable-usb-flash-drive-create-windows.html

2. Use Disk Utility or GParted to create a partition with Mac OS X Extended format on hard drive for Windows. This will prevent OS X from convert your drive to GPT/Hybrid MBR.

3. Restart and press F9 to choose Boot devices > Boot from EFI file > choose your Windows Install USB key > EFI > Boot > BOOTX64.efi

4. Use Windows installer to format the partition you prepared as NTFS. Complete install and now you will boot to Windows by default, Clover disappears.

5. Restart and press F9 to choose Boot devices > Boot from EFI file > choose your EFI partition (which contains Clover bootloader) > EFI > Clover > CLOVERX64.efi

6. You can now see Clover bootloader with new entry "Boot Microsoft UEFI Menu from EFI".

7. Boot to OS X and use Clover Configurator to mount EFI partition of your Windows UEFI drive (in case you have installed Windows to second drive, select disk1s1). Go to EFI/Microsoft/Boot/ and rename bootmgfw.efi to bootmgfw-orig.efi

8. Restart.

9. If you can only boot to Windows after updating Windows, then rename new bootmgfw.efi to bootmgfw-orig again.

**Note: If you installed Windows 7 UEFI, you should install latest Service Pack before installling HD3000 update***

Migrate from Chameleon

Download the required files

1. Boot to Clover from USB, press F4 at Clover screen.

2. Boot to your OS X Mavericks. Download HP Probook Installer here http://www.tonymacx86.com/hp-probook-mavericks/128774-hp-probook-installer-clover-edition.html and install with these options:

Clover UEFI: Install Clover UEFI bootloader

OS X support kexts
: select only the version that matches your laptop (4x30s, 4x40s, etc).
Config and DSDT patcher:
- ProBook model: your Probook Model
- Fan behavior: Readings only.
- Display type: your display resolution
SSDT generator/patcher: Generate SSDT.aml for your CPU Management

After making your selections, click 'Continue' and allow the ProBook Installer to work.

Repatch DSDT

Download the required files

1. Boot to Clover from USB or HDD, press F4 at Clover screen.

2. Boot to your OS X Mavericks. Download HP Probook Installer here http://www.tonymacx86.com/hp-probook-mavericks/128774-hp-probook-installer-clover-edition.html and install with these options:

Config and DSDT patcher:
- ProBook model: your Probook Model
- Fan behavior: your desired fan behavior.
- Display type: your display resolution
After making your selections, click 'Continue' and allow the ProBook Installer to work.

Update Clover and kexts

Download latest HP Probook Installer here http://www.tonymacx86.com/hp-probook-mavericks/128774-hp-probook-installer-clover-edition.html and install with these options:

Clover UEFI: Update Clover UEFI bootloader

OS X support kexts
: select only the version that matches your laptop (4x30s, 4x40s, etc).



Config Clover

I suggest that you always update to the latest Clover Configurator to avoid removed keys in latest Clover

1. Mount EFI partition

The recommend way is using Clover Configurator to mount EFI partition (Extra > MountEFI). Note that you have to unmount existing EFI partition first.

To mount EFI partition, you can use the following command in terminal:
Code:
diskutil list
mkdir /Volumes/EFI
sudo mount -t msdos /dev/disk0s1 /Volumes/EFI  
--Note:  if diskutil tells you your mavericks install is on disk1, disk2, etc change /disk0s1 appropriately.

2. SSDT

SSDT CpuPm and Cpu0Ist have to be dropped to avoid conflict with new CPU SSDT tables. You shouldn't drop all OEM SSDT tables because some tables is benefitcal like SataAhci or PtidDevc SSDT (it can slow down sata in rare chance).
Code:
        <key>DropTables</key>
        <array>
            <dict>
                <key>Signature</key>
                <string>SSDT</string>
                <key>TableId</key>
                <string>CpuPm</string>
            </dict>
            <dict>
                <key>Signature</key>
                <string>SSDT</string>
                <key>TableId</key>
                <string>Cpu0Ist</string>
            </dict>
        </array>

SSDT can be generated automatically by select Generate in config.plist:
- GeneratePStates
- GenerateCStates​

If you want to use SSDT.aml, remove Generate and put your SSDT.aml to EFI/Clover/ACPI/patched/

3. Default Boot Entry

By default, Clover will auto select the last boot OS X entry as default for timeout. You can change this to a fixed default entry by setting this in Boot tab of config.plist:

Default Boot Volume: the partition name containing entry's bootloader. For Windows or Linux, it's usually "EFI". For OS X, it's the name of your OS X partition.
Default Loader: If one partition name has many bootloader (like "EFI" partition, containing both Windows and Linux bootloader), you can specify which one is default by setting the exact path to that bootloader.

4. Fast Boot

To reduce the BIOS checking time (HP logo on screen) significantly by 5-6s, you can turn on Fast Boot in BIOS (it will be disabled if you installed HP Protect Tools in Windows). Please note that this will disable mouse devices and booting to USB devices from Clover bootscreen. To enable Full Boot temporarily, press ESC at boot and select Continue Startup.

To bypass the Clover bootscreen, set Boot/Timeout to 0. You can trigger the Clover bootscreen by pressing any key right after HP logo disappears.

5. Legacy OS boot

If you have Legacy OSes installed, you can enable Clover to boot legacy OS by editing your config.plist:
- Gui > Scan > Custom: check Legacy
- Boot > Legacy: LegacyBiosDefault

For 7-series laptops, you also have to select UEFI with CSM in BIOS.

6. Disable wake up by USB devices


To prevent USB devices from waking up your sleep, add this to your Devices section in config.plist
- USB Inject
- Add ClockID

7. Patching Kexts on-the-fly

Clover can patch your kexts in kernel cache on-the-fly in KextsToPatch section. Clover will find bits value in your specified kexts and replace it. AppleRTC and AppleIntelCPUPowerManagement are patched by default in Kernel and Kext Patches:
- AppleRTC
- ASUS AICPUPM​

You can patch other kexts in Config.plist. Note that the config.plist uses 64-base value, while Clover Configurator shows your hexa value.

Trim Enabler
CC: 4150504C4520535344 -> 000000000000000000
config.plist
Code:
            <dict>
                <key>Comment</key>
                <string>Trim Enabler</string>
                <key>Find</key>
                <data>
                QVBQTEUgU1NE
                </data>
                <key>Name</key>
                <string>IOAHCIBlockStorage</string>
                <key>Replace</key>
                <data>
                AAAAAAAAAAAA
                </data>
            </dict>

External display port
http://www.tonymacx86.com/hp-probook-mavericks/127832-clover-patch-external-display.html
AppleHDA:
http://www.tonymacx86.com/hp-probook-mavericks/118877-patch-applehda-kext-fly-clover-bootloader.html
11335437705_7a9f7d4d12_o.jpg


8. Custom Entry

You can customize entries in Clover bootscreen by editing Custom Entries. Open your config.plist with Clover Configurator, press + button under Custom Entries. You need to fill in options:
- Volume: Your partition UUID, you can find them in /Library/Logs/Clover/EFI/boot.log
- Path: The path to your .efi boot file. If not specified, Clover will use default value based on Type
- Title/Full Title: Check the box to switch to Full Title, then name your entry.
- Hidden: Hide the entry in Clover screen, you can show them by pressing F3.
- Disabled: Remove the entry in Clover screen
- Type: Select your Entry OS X.

Note that the UUID has to be of the partition containing entries. For example, if you see "Boot Microsoft Windows from EFI", then EFI is the partition containing Windows UEFI.
11096021326_2a9d6a965f_o.jpg



Frequently Ask Question

1. How is multitouch toupad support?

You can use two finger for scrolling/right click.
If you want to assign three-finger gesture, go to System Preferences > Keyboard > Shortcuts > select the shortcut and swipe three-finger to assign.

2. Spotlight Console spamming


When you mount a FAT32 or faulty partition in Mavericks, especially EFI partition, Spotlight will try to index your partition and fail, which lead to tons of console errors. To disable permanently spotlight in a specific partition, go to that partition and create .metadata_never_index file by using the following command in terminal:
Code:
touch .metadata_never_index
3. Recovery partition

If you don't have a Recovery partition, you can create one by using RecoveryHDUpdater:
https://plus.google.com/104196173613585151128/posts/6fPkZSoiDHs

4. Can't activate iMessage/Facetime

Do step 3.x in the link below:
http://www.insanelymac.com/forum/topic/298027-guide-aio-guides-for-hackintosh/#entry2020598

5. Can't use VGA port with HD4000 or above

Use a Displayport-to-VGA or HDMI-to-VGA adapter, both work fine.

6. Sleep

Turn off Wake on Ethernet in System Preferences and BIOS. If you have trouble with auto-wake caused by USB devices, turn off Wake on USB in BIOS, or disable wake by USB in your config.plist (see above).

Some HP laptops have fingerprint sensor. If you disable it in BIOS, your system will auto wake after sleep. Enable it in BIOS will fix this

7. Reinstall or Update Clover bootloader

Make sure you unmount EFI partition before reinstall/update Clover. Run the installer with your settings.
Always check the information of new Clover version before updating.

8. Install Chameleon

Set up your Chameleon bootloader, Extra partition, patch AICPM and AppleRTC kexts, then turn off UEFI in BIOS.

9. How to know if you're installing Windows UEFI

In 7-series laptops, if your Windows installation can boot with UEFI (without CSM) option in BIOS, you're installing Windows UEFI.
In 6-series laptops, use gdisk to check if your drive is GPT/Protective MBR. Only Windows UEFI can install to GPT/Protective MBR drive.

10. Can't install Windows UEFI because it says this is a MBR drive

If you use Disk Utility to create a FAT partition, your drive will be converted to GPT/Hybrid MBR. To fix this, delete or reformat that FAT partition to Mac OS Extended, or use gdisk in Linux usb to convert your drive to GPT/Protective MBR.

Credit

All my thanks to RehabMan, philip_petev, Slice and all Clover developers, HP Probook members, who spent hours of coding to help me complete my Hackintosh laptops. This is my first guide and I want all your comments to complete it.

http://www.tonymacx86.com/hp-probook-mavericks/112380-guide-installing-mavericks-hp-probook.html

http://www.insanelymac.com/forum/topic/282787-clover-v2-instructions/
 

Attachments

  • Config.zip
    20.9 KB · Views: 2,359
  • Clover.zip
    4.6 MB · Views: 1,862
You have serial numbers in your config.plist's, you may want to take them out and advise people use their own or generate one from Chameleon Wizard.
 
Old guides were here
 
1. Create Clover bootloader partition:
- UEFI Bootloader can only be installed on FAT32 partition (USB or hard drive). Create a partition with FAT32 partition and extract all files from Clover.zip to that partition.
- Select the right config in config.zip and copy to EFI/Clover/.
- Create your own ssdt by Revogirl's script, copy to EFI/Clover/ACPI/patched.
Can we just use existing SSDT.aml and DSDT.aml from existing ML installation?

13. Use Kext utility or Kext wizard to install your kexts:

- ACPIBatteryManager.kext
- FakeSMC.kext
- AppleHDA.kext
- AppleIntelE1000e.kext (for Intel Ethernet)
- RealtekRTL81xx.kext (for Realtek Ethernet)
- HSSDBlockStorage.kext
- JMB38X.kext
- BCM20702A0_injector.kext (for Broadcom Bluetooth)
- IOath3kfrmwr.kext (for Atheros Bluetooth)
- GenericUSBXHCI.kext (not needed on Ivy Bridge laptops)

Could we just use ProBook Installer for this step "OS X support ketx" instead?
 
Can we just use existing SSDT.aml and DSDT.aml from existing ML installation?



Could we just use ProBook Installer for this step "OS X support ketx" instead?

Yes, you can. HP Probook Installer will patch your AppleIntelCPUPowerManagementClient and AppleRTC also, which is not needed because of Clover's patch-on-the-fly feature. You can reinstall vanilla kexts instead.
 
14. Open your Clover bootloader partition, go to EFI/Clover/ACPI/origin/, copy your original DSDT.aml and using RehabMan's patches: https://github.com/RehabMan/HP-ProBook-4x30s-DSDT-Patch.

I am having issue with original DSDT. It has some errors. As a result, MaciACL would refuse to save aml version.
Rehabman could you help with with it. I am attaching my raw DSDT v.F42 for 4440s. You could load corrected file to the repository, so folks could access fixed version.


Please, hold on, I am about to finish the installation...
the one I have attached have too many errors for some reason...
 
I am having issue with original DSDT. It has some errors. As a result, MaciACL would refuse to save aml version.
Rehabman could you help with with it. I am attaching my raw DSDT v.F42 for 4440s. You could load corrected file to the repository, so folks could access fixed version.


Please, hold on, I am about to finish the installation...
the one I have attached have too many errors for some reason...

You can use HP Probook installer to automatically generate/patch your dsdt. Have you selected APCI 5.0 in MacIACL?
 
Do I need to pre-create EFI partition on target disk before Maverick installation takes place, or just create MacOS partition, install Maverick. And later, Clover boot-loader installer will create EFI partition on target disk (step 16)?

I think you are missing this step after clover install on target disk:
Select the right config in config.zip and copy to EFI/Clover/.
 
You can use HP Probook installer to automatically generate/patch your dsdt. Have you selected APCI 5.0 in MacIACL?

Right on, I opened it on older machine and it automatically selected 4.0. I changed it to 5.0, but still have 2 errors:
3946, 6126, syntax error, unexpected PARSEOP_IF
If (CondRefOf (FPED)) <--
{
FPED ()
}

27020, 6126, syntax error, unexpected PARSEOP_METHOD, expecting $end and premature End-Of-File
Method (\_SB.DCKD, 0, Serialized) <--
{
Store (0x01, Local0)
If (And (GPL0, 0x2000))
{
Store (0x00, Local0)
}

Return (Local0)
}
 
Right on, I opened it on older machine and it automatically selected 4.0. I changed it to 5.0, but still have 2 errors:
3946, 6126, syntax error, unexpected PARSEOP_IF
If (CondRefOf (FPED)) <--
{
FPED ()
}

27020, 6126, syntax error, unexpected PARSEOP_METHOD, expecting $end and premature End-Of-File
Method (\_SB.DCKD, 0, Serialized) <--
{
Store (0x01, Local0)
If (And (GPL0, 0x2000))
{
Store (0x00, Local0)
}

Return (Local0)
}

You should select ACPI 5.0 and apply all the patches. Follow the guide here:
https://github.com/RehabMan/HP-ProBook-4x30s-DSDT-Patch/wiki/How-to-patch-your-DSDT
Or upload your raw dsdt here. I will give it a look.
 
Back
Top