Contribute
Register

[Guide] HP EliteBook 820 840 G2 I5-5300U HD5500 El Capitan [ENG]

Status
Not open for further replies.
Joined
Apr 20, 2011
Messages
35
Motherboard
10.8.5
CPU
Intel I7 950
Graphics
ATI 5770
Mac
  1. iMac
Classic Mac
  1. 0
Mobile Phone
  1. iOS
Hello,

I will explain how i have installed Os X EL Capitan 10.11 on HP ElibteBook 820 G2.

Before start this installation, or buy this computer, you have to know that it's hard to find a compatible WiFi/BT module.
This guide still not 100% perfect.
This allow to install:
- El Capitan Public Beta 1 (10.11.0)
- El Capitan Public Beta 2 and above (10.11.0)

Yosemite 10.10.x doesn't support Broadwell processor and so can't be installed.

Working:
- Wifi and Bluetooth doesn't work, you have to find a compatible WiFi/BT card with NGFF M2 slot.

this one is compatible:
Dell DW1560 part code: 6xRYC
- SD card reader.
- Display port on the dock station

Needed materials:
- a Mac or hackintosh
- USB drive
- external hard drive (if you do fusion on post-install)

Other solution:

You can use HP Probook Installer Clover Edition 6.4 or up to install El Capitan.
It doesn't add anything more than working with my guide.
It will define you mac as a MacBookAir7,2.

1/Create Bootable USB Installer

1.a/ mac OS X installer

Must have Mac OS X El Capitan installer (from apple store) in the Applications folder
Format your USB key with HFS+ Journalised format and GUID partition
Open terminal and enter:
Code:
sudo /Applications/Install\ OS\ X\ El\ Capitan\ Public\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/ELCAPITAN --applicationpath /Applications/Install\ OS\ X\ El\ Capitan\ Public\ Beta.app --nointeraction
Change "/Volumes/ELCAPITAN" with "/Volumes/name-of-your-hdd"

1.b/ Install clover bootloader

Open last clover version
Choose to install it on your usb key
Choose personalize and check:
install for UEFI motherboard
install Clover in ESP
Themes/applestyle
Drivers64UEFI/EmuVariableUefi-64
Drivers64UEFI/OsxAptioFix2DRV-64

Open EFI Volume and
:go to EFI/CLOVER/kexts/10.11 and EFI/CLOVER/kexts/others and paste:
Fakesmc.kext
:go to EFI/CLOVER/drivers64EUFI and paste:
FSInject-64.efi
HFSPlus.efi
OsxFatBinaryDrv-64.efi

1.c/ Edit clover configuration file:

Open /EFI/CLOVER/config.plist with Clover Configurator.

ACPI:
under Fixes, click New way and checkr:
- New Way
- FixRegions
- addHDMI
DSDT name: dsdt.aml
SSDT:
- Plugin Type: 1
- SortedOrder: ssdt.aml

Boot:
check:
- dart=0 (do not check for El Capitan Public Beta 2 and up)
- gux_defer_usb2 (do not check for El Capitan Public Beta 2 and up)
- kext-dev-mode-1
- rootless=0 (do not check for El Capitan Public Beta 2 and up)
Default Boot Volume: LastBootedVolume
Legacy : PBR
XMPDetection: Yes
Timeout: 3

Devices:
USB:
- Inject
- Add ClockID
- FixOwnership

Properties:
- UseIntelHDMI

Gui:
- Mouse:
Double Click : 500
Speed : 8
check Enabled
- Scan:
in Custom check:
- Entries
- Tool
- Legacy
screen resolution, select 1366x768

Graphic:
ig-platform-id: 0x16260006
check Inject Intel

Kernel and Kexts patches, check:
- Kerel LAPIC
- KernelPm
- Apple TRC
- Asus AICPUPM

under KextstoPatch, click on + and add:
Name* : disabled:AppleIntelBDWGraphicsFramebuffer
Find* : [HEX]: 4139C4763E
Replace* [HEX] : 4139C4EB3E
Comment: Disable minStolenSize

click again on + and add:
Name* : disabled:IOAHCIBlockStorage
Find* : [HEX]: 004150504C452053534400
Replace* [HEX] : 0000000000000000000000
Comment: Enable TRIM for SSD

RTVariables:
BooterConfig: 0x28
CsrActiveConfig: 0x67

SMBIOS:
click on the magic wand and choose MacBookAir6,2

System Parameters
Inject Kexts: Detect
check Inject System ID

save and close.

2/ BIOS Configuration

At boot, press F10 to enter bios menu.
Onglet sécurité, uncheck:
order management of the system
tools hard drive / Save MBR

avanced:
In boot options, only check:
fast boot
boot USB
boot m UEFI Hybride (avec CSM)

peripherals configuration, only check:
Support USB legacy
Video Memory 512Mo
Prévention d’exécution des données
speed SATA max 6Gbps
Peripherals AHCI
processr multicoeur
deep sleep desactivate

integrated peripherals, only check:
peripherals WLAN
integrated LAN controller
wake on LAN deactivate
integrated camera
audio peripherals
microphone

Port options, only check:
USB port

HP Touchpoint Manager, uncheck all

3/ Install Mac on internal HDD

3.a/ Preparation of the hard disk

At startup, press F9 and select the usb key/drive to boot.
When installer started, format format your internal hard disk to mac Journalised with GUID partition with disk utility.
NB: You can create the Fusion drive at this point, see part 7.

3.b/ install on internal hard disk drive

Make the install on your internal hard disk drive.
At reboot, boot on the usb key and when clover is loaded, boot on the internal disk drive.

4/ post installation

4.a/ Install clover bootloader on internal disk drive

Repeat 1.b et 1.c
or install clover on internal disk drive, then copy/paste your EFI folder on the EFI partition of the internal disk drive.

4.b/ Install missing drivers

Copy following kexts in /Library/Extensions:
ACPIBatteryManager.kext
FakeSMC.kext
IntelMausiEthernet.kext
VoodooPS2Controller.kext

then install VoodooHDA.

Check root:wheel permission on files, do:
Open Terminal and type:
Code:
cd /Library/Extensions
ls -la
If it's not root:wheel, then enter:
Code:
chmod -R 755 <kext name>
sudo chown -R root:wheel <kext name>
About VoodooHDA, after install, reboot, go to system preference / VoodooHDA and select Apple....HDEF@1B to have working internal speaker and headphone/micro.

If it's noisy, you can reduise noise by set gain to 0.

Also, you can edit voodooHDA info.plist and set:
Code:
<key>iGain</key>
<integer>0</integer>

5/ DSDT

5.a/ dsdt dump

Copy Patchmatic in the folder /usr/bin
Open terminal and enter:
Code:
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract
iasl -da -dl *.aml
close the terminal.

5.b/ DSDT patch:

Open MaciASL
Go to preferences / sources and add:
http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master

Close preference window
Open dsdt.dsl
click on compile
you should find error on line 61:

cut line 43:
Code:
External (_SB_.ISCT.SAOS, MethodObj)    // Warning: Unresolved method, guessing 1 arguments
paste under this line (60):
Code:
External (_SB_.ISCT, UnknownObj)
click on patch
select and apply following patchs :
[audio] Audio Layout 12
[bat] HP ProBook-4x0s-G1
[sys] AC Adapter Fix
[sys] Shutdown Fix v2
[igpu] Brightness fix (haswell)

in the patch texte zone, paste:
Code:
#Maintained by: RehabMan for: Laptop Patches
#graphics_HD5500_yosemite.txt

#
# Use this patch if your laptop has Haswell graphics
#

into method label _DSM parent_adr 0x00020000 remove_entry;
into device name_adr 0x00020000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
    If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n
    Return (Package(0x08)\n
    {\n
        "device-id", Buffer(0x04) { 0x16, 0x16, 0x00, 0x00 },\n
        "AAPL,ig-platform-id", Buffer(0x04) { 0x02, 0x00, 0x16, 0x16 },\n
        "hda-gfx", Buffer(0x0A) { "onboard-1" },\n
        "model", Buffer(0x17) { "Intel HD 5500" },\n
    })\n
}\n
end;
Click on Apply, then Close.
go to File / save as
name it dsdt-patched and save it as Disassembled ASL file
save it again but with ACPI Machine Language Binary format.

5.c/ DSDT loading

paste dsd-patchedt.aml in:
EFI/Clover/ACPI/patched
and rename it dsdt.aml

6/ SSDT

Download Broadwell SSDT Generator
Copy Broadwell SSDT Generator on your desktop
rename it SSDTGen
open terminal and enter:
Code:
cd ~/Desktop/SSDTGen
chmod +x ssdtPRGen.sh
./ssdtPRGen.sh
Copy the new ssdt.aml file in EFI/Clover/ACPI/patched

7/ Fusion drive

7.a/ create a copy

Restart and go to bios then activate PCIe M2 SSD/HDD
Reboot on OS X.
Make a complete copy on external hard disk drive.
plug the external disk drive
format it as mac journalised with partition guid
make copy using superduper or copy carbon cloner
mount EFI from external hard drive with clover configurator
copy your EFI folder in it.
reboot on external hard disk drive.

7.b/ create fusion drive

format SSD drive to mac journalised.
open terminal and enter:
Code:
diskutil list
here is an output example, you may need to change value to yours, ex:

disk0 (SSD)
disk0s1 (EFI SSD)
disk0s2 (usable SSD)
disk1 (HDD)
disk1s1 (EFI HDD)
disk1s2 (usable HDD)
disk2 (external disk drive)

we will merge usable disk only,it will erase all data from SSD and HDD.

in terminal, enter: (if your diskxsx are different, change it in command line)
Code:
diskutil cs create fusion disk0s2 disk1s2
copy the final UUID, ex 5965TY-5678-5473-RRHY64DFG

enter:
Code:
diskutil coreStorage createVolume <UUID> jhfs+ <name of your future fusion drive> 100%
if we enter diskutil again in the terminal, we can see a new disk3 logical (LGV)

7.C/ make fusion drive bootable

Install Clover on the new fusion drive
Copy your EFI at the root of the fusion drive (/)

Use Clover Configurator, mount each disk: Disk0s1, Disk1s1 and paste EFI in it.

You should have the same EFI on each disk. (disk0s1, disk1s1 and disk3 the fusion one)
at each clover modification, you must copy it to each EFI partition.

Reboot on your new fusion drive.

8/ ENJOY !!

9/ Resources and thanks

All greatings to Rehabman
 
Last edited:
Not a Desktop - Moved to Laptop Support.
 
...
2/ Configurer le Bios

At boot, press F10 to enter bios menu.
Onglet sécurité, uncheck:

commande de la gestion du système
outils disque dur / Enregistrer la partition MBR

Onglet avancés:
Dans la partie Options d’amorçage, cocher uniquement les options suivantes:

amorçage rapide
périphérique d’amorçage USB
mode de démarrage UEFI Hybride (avec CSM)

Dans la partie Configurations des périphériques, cocher uniquement les options suivantes:

Support USB legacy
Taille mémoire vidéo 512Mo
Prévention d’exécution des données
vitesse SATA max 6Gbps
Mode du périphérique AHCI
processeur multicoeur
veille prolongée désactiver

...

Please read the rules: http://www.tonymacx86.com/faq.php

"All posts must be made in English. Any and all posts in other languages will be deleted."

Please edit your post.
 
Do the function keys work for you?
 
I am stuck at step #3. Clover boots up just fine, but OS X Installer gets a kernel panic before it can do anything.

Code:
panic(cpu 2 caller 0xffffff7f8b886af1): "Potentential Fifo Overflow in GFX\n"0/Library/Caches/com.apple.xbs/Sources/GraphicsDrivers/GraphicsDrivers-10.0.40/Common/IONDRV/Intel/SNB/SNB_CTRL.cpp:606
Debugger called: <panic>
Backtrace (CPU2), Frame : Return Address
...
<snip>
...
      Kernel Extensions in Backtrace:
         com.apple.driver.AppleIntelSNBGraphicsFB(10.0)[0DBCA6A7-DCCD-36CF-B074-20FCE6D5760A]@0xfffff7f8b87a000->0xffffff7f8b8a7fff
            dependency: com.apple.iokit.IOACPIFamily(1.4)[long hex num]@0xlonghexnum
            dependency: com.apple.iokit.IOPCIFamily(2.9)[long hex num]@0xlonghexnum
            dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[long hex num]@0xlonghexnum

Full screen photo in the attachment, config.plist from Clover also attached. Hardware details:

HP EliteBook 840 G2
i5-5200U (Broadwell)
HD5500 Graphics
8GB RAM

This isn't my first hackintosh, but it is my first experience with a laptop and with Clover. Any help would be appreciated!
 

Attachments

  • 20160204_143425.jpg
    20160204_143425.jpg
    806 KB · Views: 2,376
  • config.plist
    5.2 KB · Views: 377
I am stuck at step #3. Clover boots up just fine, but OS X Installer gets a kernel panic before it can do anything.

Code:
panic(cpu 2 caller 0xffffff7f8b886af1): "Potentential Fifo Overflow in GFX\n"0/Library/Caches/com.apple.xbs/Sources/GraphicsDrivers/GraphicsDrivers-10.0.40/Common/IONDRV/Intel/SNB/SNB_CTRL.cpp:606
Debugger called: <panic>
Backtrace (CPU2), Frame : Return Address
...
<snip>
...
      Kernel Extensions in Backtrace:
         com.apple.driver.AppleIntelSNBGraphicsFB(10.0)[0DBCA6A7-DCCD-36CF-B074-20FCE6D5760A]@0xfffff7f8b87a000->0xffffff7f8b8a7fff
            dependency: com.apple.iokit.IOACPIFamily(1.4)[long hex num]@0xlonghexnum
            dependency: com.apple.iokit.IOPCIFamily(2.9)[long hex num]@0xlonghexnum
            dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[long hex num]@0xlonghexnum

Full screen photo in the attachment, config.plist from Clover also attached. Hardware details:

HP EliteBook 840 G2
i5-5200U (Broadwell)
HD5500 Graphics
8GB RAM

This isn't my first hackintosh, but it is my first experience with a laptop and with Clover. Any help would be appreciated!

Your config.plist is wrong. For some reason you're forcing, with FakeID, Sandy Bridge graphics [HD3000] to load on your Broadwell system. It doesn't make any sense to do that. HD5500 is not HD3000.

Follow the Clover guide linked from the FAQ.

http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html

Pay attention the Broadwell info in the FAQ. It is important.
 
Your config.plist is wrong. For some reason you're forcing, with FakeID, Sandy Bridge graphics [HD3000] to load on your Broadwell system. It doesn't make any sense to do that. HD5500 is not HD3000.

Follow the Clover guide linked from the FAQ.

http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html

Pay attention the Broadwell info in the FAQ. It is important.

Yes, that did it. I was using the config.plist that UniBeast built for me, and I probably didn't pay close enough attention to the configuration options. I have El Capitan running quite smoothly with the following working:

- HD5500 Graphics (yay!)
- Trackpad/Keyboard
- Sound (VoodooHDA via MultiBeast + manual kext cache clearing)

I have a Dell DW1560 wifi+bt card on the way from Dell now (only $19 + tax in the US!), so I'll tackle that when it gets here. Meanwhile, I'm still trying to get the built-in SD Card reader working. My system is nearly identical to the OP, so I'm sure that it's possible.

To get the keyboard/trackpad working for the installation process, I added the VoodooPS2Controller.kext to the installer USB drive built by UniBeast and fixed permissions, in addition to the config.plist changes. My updated config.plist is attached in case anyone else needs it. The short version of my install process:

  • Build USB installer with UniBeast
    • edit config.plist (attached)
    • add VoodooPS2Controller.kext to USB drive and fix permissions
  • Install to main drive
  • Install Clover to main drive with MultiBeast
  • Patch DSDT
  • Run HP Probook Installer (this could also have installed Clover)
  • Add VoodooHDA.kext
    • manual kext cache clearing required
 

Attachments

  • config.plist
    7.5 KB · Views: 462
Working:
- Wifi and Bluetooth doesn't work, you have to find a compatible WiFi/BT card with NGFF M2 slot.

this one is compatible:
Dell DW1560 part code: 6xRYC
- SD card reader.
- Display port on the dock station

Was there anything special that you needed to do to get the SD Card Reader to work? Everything else I've been able to test seems to be working fine so far, although I still need to fine-tune the power management a bit.
 
Speaking of Power Management, mine's not working. :p The laptop will go to sleep but not wake up, requiring a hard reboot. Also, selecting "SHUTDOWN" from the menu seems to put it in the same type of sleep mode that it can't wake up from. Obviously not ideal.

Per the instructions, I created a custom SSDT.asl using the latest ssdtPRGen.sh from Piker-Alpha, placed it in /EFI/CLOVER/ACPI/patched and updated config.plist with the correct location in SortedOrder. It's loading SSDT-PS2.aml correctly, so I assume that it's also loading SSDT.aml.

I've also disabled hibernate and replaced the image with a directory. Here's the output of `pmset -g`:
Code:
Active Profiles:
Battery Power		-1*
AC Power		-1
Currently in use:
 standby              1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 powernap             0
 gpuswitch            2
 disksleep            10
 sleep                1
 autopoweroffdelay    14400
 hibernatemode        0
 autopoweroff         1
 ttyskeepawake        1
 displaysleep         2
 standbydelay         10800

The issue is very similar to the one described here, however in my case I have not installed any USB WiFi drivers; I'm using a new DW1560 card. (A previous build included usb wifi before I got the DW1560 card, but I have since wiped the drive and done a clean install without USB wifi.)

I've attached some system logs, as well as my ioreg from IORegistryExplorer 2., the SSDT.dsl generated by Piker-Alpha's script, and the results of `patchmatic -extract` (ACPI-stealthdave.zip). Some kextstat outputs that you've asked for in similar cases:
Code:
$ kextstat|grep -y acpiplat
   13    2 0xffffff7f82c7a000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (4.0) 3BE4E926-E063-3BBD-BE05-F6F97358C7A4 <12 11 7 6 5 4 3 1>
Code:
$ kextstat|grep -y appleintelcpu
<no  output>
Code:
$ kextstat|grep -y applelpc
   98    0 0xffffff7f82634000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 32BDCF9F-0473-32D4-9DAE-F523EFB2D244 <82 12 5 4 3>
Code:
$ sudo touch /System/Library/Extensions && sudo kextcache -u /
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Trackpad.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Mouse.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Keyboard.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Controller.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelMausiEthernet.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Broadcom_WiFi.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmFirmwareRepo.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM2.kext

I've also tried setting boot parameters of `darkwake=0`, `darkwake=1` and `darkwake=8` to no effect.

AND last but not least, a copy of my CLOVER folder (CLOVER-stealthdave.zip).

As always, your assistance is greatly appreciated!
 

Attachments

  • ACPI-stealthdave.zip
    25.9 KB · Views: 124
  • David_s-MacBook-Air.ioreg
    3.5 MB · Views: 157
  • ssdt.dsl
    9.9 KB · Views: 158
  • sleep-no-wake-4.log
    1.9 KB · Views: 135
  • sleep-no-wake-3.log
    2.4 KB · Views: 169
  • CLOVER-stealthdave.zip
    4.3 MB · Views: 165
Status
Not open for further replies.
Back
Top