HP ProBook - Mavericks

                                    

Introduction


New Hp laptops series have UEFI implemented in BIOS, and it provides much more advantages over current BIOS-based bootloaders like Chimera/Chameleon.
- Faster BIOS boot time
- Easier OS X install/Upgrade with native methods
- Create and boot to Recovery HD, which enables Find My Mac option.
- Patching kexts on the fly
- Bootmenu customization
- Can boot to Windows UEFI (which recognizes > 4 partitions GPT drive)
- Don't need to mess with master boot records
- Native NVRam on 7-series laptops

The guide is for:
- 6-series laptop: HP Probook 4x30s, 6x60b, Elitebook 8x60p, 2x60p using 6-series chipset
- 7-series laptop: HP Probook 4x40s, 4x0, 6x70b, Elitebook 8x70p, 2x70p using 7-series chipset.
*Only HP Elitebook/Probook 6xx0b without Radeon card is supported
* HP Probook 4xx0s with/without Radeon card is supported
You can download the latest Clover files here:
https://www.dropbox.com/sh/083x2j1mvmfh4l9/ZSYm2_iQRf

*Always search in the first post before asking questions*

Known issues

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

- Sleep is not reliable on 6-series laptops. It can cause the system to auto restart some minutes after wake.

- Use HaltEnabler or other SLP_SMI_EN keys in config.plist may brick your laptop, the only way to solve is reflash your ROM! They are disabled by default but AVOID IT AT ALL COST

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

- NVRam in 7-series laptops only remembers the last boot partition value, others (like Find My Mac, Boot theme) are lost after restart. You can install EmuVariableUefi-64 to have Emulation nvram.

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

Guide changelog

12/10/2013: Added Mavs Style small S and bluemac S theme for Clover stretched screen.
12/8/2013
: Added HPFanReset.efi by RehabMan to work with DSDT Fan patches. Current users can use it by downloading the drivers here and put it to EFI/CLOVER/drivers64UEFI/, then repatch DSDT by PBI.

12/5/2013: Change Clover's SSDT by PBI's SSDT.aml. Added Mavs Style small theme by CosmosCJ. Change InjectKexts from Automatic to Detect.
11/17/2013
: Update the Clover download link for latest version, which caused some problems with latest config.plist.

11/13/2013
: New Clover bootloader with InjectKexts=Automatic. Now Clover will automatically detect if FakeSMC is already in kernel cache to inject kexts. Cleanup the guide.
11/5/2013: Some improvement in the guide and config.plist, remove Default Boot section because DefaultVolumes key is ignored. Added GenericUSBXHCI and ProbookARPT kexts to Clover.zip
11/1/2013: Some minor improvement in the guide, Fast Boot, SSDT and Sleep sections. New config.plist drops CPU SSDT tables only, instead of dropping all OEM SSDT tables. Added console spamming fix in Customization
10/29/2013: Make the guide easier to follow, add RealtekRTL8111 to Clover.zip and remove USB fixes in Config.plist
10/28/2013: Add DropOEM SSDT in config.plist to fix default behavior on laptops using Sandybridge CPU.


Install OS X Mavericks

1. Create partition for Clover bootloader:
- Create a FAT32 partition on USB drive (GPT or MBR partition table), with size at least 100MB and extract all files from Clover.zip to that partition.
- Select the right config.plist in config.zip and copy to EFI/Clover/.

2. Create Mavericks Installer partition (need a Mac):
- Use Disk Utility to create a Mac OS Extended (Journaled) partition, size at least 6GB on USB drive (it can be the same drive with 1st step, or another drive), name it "Untitled".
- Download Mavericks Install app from AppStore.
- Launch terminal and run the following script:
Code:
"sudo /Applications/Install\ OS\ X\ Mavericks.app
/Contents/Resources/createinstallmedia --volume /Volumes
/Untitled --applicationpath /Applications/Install\
 OS\ X\ Mavericks.app --nointeraction"
- Your Mavericks Installer partition will be renamed "Install OS X Mavericks"

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.

4. Plug all the flashdrives in step 1 and 2 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. Install screen will appear, use Disk Utility to format your drive as GPT, create a Mac OS X Extended (Journaled) partition and Install Mavericks. 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, 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...s-support.html and install with these options:

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

DSDT generator/patcher:
- ProBook model: your Probook Model
- Fan behavior: your prefered fan methods, need HPFanReset.efi to work.
- Display type: your display
SSDT generator/patcher: Generate SSDT.aml for your CPU Management
Optional patches:
- Intel USB3.0 patch: allows the use of vanilla AppleUSBXHCI.kext instead of GenericUSBXHCI.kext. This USB3 patch is valid only if you have a 7-series chipset.

Note: you must select one option from each of the first three groups to generate a patched DSDT.

Optional hardware-specific fixes:
- AHCI 3rd party kext: You can apply this option later if it turns out your DVD drive is not recognized by the system. It is not needed on every laptop.
- EDID generator: Inject correct display EDID to your system.
Misc OS X fixes:
- Color profiles: Recommended.
- Sleep fix: disables OS X version of "hybrid sleep" where upon entering sleep, a "hibernation image" is written to the boot drive. Recommend for SSD.
- blinkscreen: This option will very quickly "blink" the screen when you login, fixing the brightness issues:
Intel HD 3000: Screen brightness levels are not available before the first display sleep on
Intel HD 4000: The display is dimmed before the first display sleep on

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

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

14. (Optional) Restore vanilla AppleIntelCPUPowerManagement.kext, AppleRTC.kext (they're backed up in desktop) by using Kext Wizard.

15. Download latest Clover here: http://sourceforge.net/projects/clov...les/Installer/ (Download latest version in folder, not in "Looking for the latest version?") Run the installer with Customized options:
Install for UEFI motherboards
Themes: Choose your desired themes
Drivers64UEFI:
- EmuVariableUefi-64 (not needed on 7-series laptops)
- OsxAptioFixDrv-64
Install RC scripts on target volume
Install Clover Preference Pane

16. Clover installer will automatically mount your EFI partition and copy Clover bootloader files there. Copy following files to EFI partition of your internal drive (don't mistake with EFI partition of other drives):
- Copy patched DSDT.aml and SSDT.aml created by PBI from /Extra folder to /EFI/Clover/ACPI/patched/
- Copy config.plist from USB to /EFI/Clover/
- Copy HFSPlus.efi and HPFanReset.efi in /EFI/CLOVER/drivers64UEFI/ from your USB to /EFI/CLOVER/drivers64UEFI/ in EFI partition, remove VBoxHfs-64.efi

17. Install Clover Configurator here: http://www.osx86.net/files/file/49-clover-configurator/ , open config.plist with CC and edit those values:
- ACPI > GeneratePStates/CStates: uncheck
- Gui > Theme: set your theme name
- SMBIOS: create your new SMBIOS with random Serial Number

18. Recheck if config.plist, dsdt.aml and ssdt.aml are placed correctly in EFI partition of internal drive.

19. Restart, you should see Clover screen and option to boot to Mavericks. Enjoy!

Update OS X Mavericks

10.9.1: Run the update and restart, then run PBI again and select OS X Support Kexts > your laptop.

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.

1. Create your Windows UEFI install USB key by following the guide here:
http://www.eightforums.com/tutorials...e-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. In EFI partition containing Clover bootloader, remove EFI/Boot/bootx64.efi and copy EFI/Clover/CLOVERX64.efi to EFI/Boot/ and rename it to BOOTX64.efi

9. Restart.

Migrate from Chimera/Chameleon bootloader to Clover

CAUTION: You can't use Clover UEFI on MBR drive.

1. Boot to OS X, download latest Clover here: http://sourceforge.net/projects/clov...les/Installer/ (Download latest version in folder, not in "Looking for the latest version?"). Run the installer with Customized options:
Install for UEFI motherboards
Themes:
Choose your desired themes
Drivers64UEFI:
- EmuVariableUefi-64
(not needed on 7-series laptops)
- OsxAptioFixDrv-64
Install RC scripts on target volume
Install Clover Preference Pane

2. Clover installer will automatically mount your EFI partition and copy Clover bootloader files there. Copy following files to EFI partition of your internal drive (don't mistake with EFI partition of other drives):
- Copy patched DSDT.aml and SSDT.aml created by PBI from /Extra folder to /EFI/Clover/ACPI/patched/
- Extract config.plist from config.zip and copy it to /EFI/Clover/
- Copy HFSPlus.efi and HPFanReset.efi in /EFI/CLOVER/drivers64UEFI/ from your USB to /EFI/CLOVER/drivers64UEFI/ in EFI partition, remove VBoxHfs-64.efi

3. Use Clover Configurator here: http://www.osx86.net/files/file/49-clover-configurator/ to edit some values in your config.plist:
- ACPI > GeneratePStates/CStates: uncheck
- Gui > Theme: set your theme name
- SMBIOS: create your new SMBIOS with random Serial Number

4. (Optional) Restore vanilla AppleIntelCPUPowerManagement.kext, AppleRTC.kext by using Kext Wizard.

5. Recheck if config.plist, dsdt.aml and ssdt.aml are placed correctly in EFI partition of internal drive.

6. Restart to BIOS and enable these options in BIOS:
6-series laptop: UEFI Boot.
7-series laptop: UEFI without CSM.

7. Save settings and exit, you should see Clover screen and option to boot to Mavericks.

*If you get problems with new Clover bootloader, turn off UEFI settings in BIOS and you will get Chameleon/Chimera back*

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

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

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

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



AppleHDA:
Patch AppleHDA kext on-the-fly with Clover bootloader



7. Custom Entry

You can customize entries in Clover bootscreen. A typical entry looks like this:
Code:
                <dict>
                    <key>Disabled</key>
                    <false/>
                    <key>FullTitle</key>
                    <string>OS X Mavericks</string>
                    <key>Hidden</key>
                    <false/>
                    <key>Hotkey</key>
                    <string>m</string>
                    <key>InjectKexts</key>
                    <false/>
                    <key>NoCaches</key>
                    <false/>
                    <key>SubEntries</key>
                    <true/>
                    <key>Type</key>
                    <string>OSX</string>
                    <key>Volume</key>
                    <string>Your MacHDD UUID</string>
                </dict>





Note that the Volume value is your drive UUID in Clover bootloader, not UUID shown in OS X. You can find it in /Library/Logs/CloverEFI/boot.log. A guide for Custom Entry can be found here: http://clover-wiki.zetam.org/Configu...stom-/-Entries, it's recommended to create custom entries by Clover Configurator.



The custom entry will be added in Clover boot screen if it's matched. Other entries will be scanned if you set Scan Entries to true.

Hidden entries can be shown by pressing F3 in Clover bootscreen. Here are some useful custom entries.

Disable UEFI Internal entry:
Code:
                <dict>
                    <key>Disabled</key>
                    <true/>
                    <key>FullTitle</key>
                    <string>UEFI Internal</string>
                    <key>Hidden</key>
                    <false/>
                    <key>SubEntries</key>
                    <true/>
                    <key>Type</key>
                    <string>Other</string>
                </dict>



Inject kexts for Recovery partition:
Code:

                <dict>
                    <key>Disabled</key>
                    <false/>
                    <key>FullTitle</key>
                    <string>OS X Recovery</string>
                    <key>Hidden</key>
                    <true/>
                    <key>InjectKexts</key>
                    <true/>
                    <key>NoCaches</key>
                    <false/>
                    <key>SubEntries</key>
                    <true/>
                    <key>Type</key>
                    <string>OSXRecovery</string>
                </dict>



Modified Windows custom entry
Code:

               <dict>
                    <key>Disabled</key>
                    <false/>
                    <key>FullTitle</key>
                    <string>Windows 8.1 Professional</string>
                    <key>Hidden</key>
                    <false/>
                    <key>Hotkey</key>
                    <string>w</string>
                    <key>Path</key>
                    <string>\EFI\Microsoft\Boot\bootmgfw-orig.efi</string>
                    <key>SubEntries</key>
                    <true/>
                    <key>Type</key>
                    <string>Windows</string>
                    <key>Volume</key>
                    <string>Your EFI partition UUID</string>
                </dict>




Frequently Ask Question

1. 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
2. Recovery partition

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

To boot to Recovery partition, place all your essential kexts (FakeSMC, VoodooHDA, network kexts) in EFI/CLOVER/kexts/10.9

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

4. Reinstall or Update Clover bootloader

Make sure you unmount EFI partition before reinstall/update Clover. Run the installer with your settings. Then go to EFI/CLOVER/drivers64UEFI/ and remove VBoxHfs-64.efi.
Always check the information of new Clover version before updating.

5. Install Chameleon

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

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

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

 

Post a Comment

2 Comments

  1. Some confusion between 4540s or 4530s
    Hi, I have to make a decision, wether I buy one of the above notebooks (they are nearly the same price for me at the moment, the 4540s including additional +4gbs of ram), and I really would like to run MacOs on it, although I have no experience on this yet.

    I cant really judge which is the most compatible model in 4540s or 4530s, so could someone please tell me their opinion on that?

    ReplyDelete
  2. Blogger: Hackurmac - Post A Comment >>>>> Download Now

    >>>>> Download Full

    Blogger: Hackurmac - Post A Comment >>>>> Download LINK

    >>>>> Download Now

    Blogger: Hackurmac - Post A Comment >>>>> Download Full

    >>>>> Download LINK PI

    ReplyDelete