Jump to content
duduclx

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

15 posts in this topic

Recommended Posts

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

H9W31ET-ABU_4_390x286.jpg

 

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

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

Changer "/Volumes/ELCAPITAN" par "/Volumes/le-nom-de-votre-disque-dur"
 
1.b/ Install clover bootloader

Open last clover version
Choose to install it on your usb key
Choose personnalise 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:

:go to EFI/CLOVER/drivers64EUFI and paste:

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
sous 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
cocher Inject System ID
 
save and close.

 

 

 

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

Dans la partie Options des périphériques intégrés, cocher uniquement les options suivantes:

  • périphérique Wlan
  • controleur Lan intégré
  • wake on lan désactivé
  • camera intégré
  • périphérique audio
  • microphone

Dans la partie options de port, cocher uniquement les options suivantes:

  • port usb

Dans la partie options de HP Touchpoint Manager, tout décocher

 

 

3/ Installer le système Mac sur le disque dur


3.a/ préparation du disque dur
 
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 /Bibliotheque/Extensions:

then install VoodooHDA.

Check root:wheel permission on files, do:
Open Terminal and type:

cd /Library/Extensions
ls -la

If it's not root:whell, then enter:

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:

<key>iGain</key>
<integer>0</integer>

 

 

 

5/ DSDT

 


5.a/ dsdt dump
 

Copy Patchmatic in the folder /usr/bin
Open terminal and enter:

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:

External (_SB_.ISCT.SAOS, MethodObj)    // Warning: Unresolved method, guessing 1 arguments

paste under this line (60):

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:

#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/ chargement du Dsdt
 
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:

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 osx.
Make a complete copy on external hard disk drive.

  • plug the external disk drive
  • formate 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:

diskutil list

here is an outpu exemple, 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)

diskutil cs create fusion disk0s2 disk1s2

copy the final UUID, ex 5965TY-5678-5473-RRHY64DFG

enter:

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, momount 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/ Ressources and thanks

 

All greatings to Rehabman

Share this post


Link to post
Share on other sites
Advertisement

I've just seen something strange.

In dsdt patch, i use ig-platform-id 0x16160002 (the good one, hd5500)

In clover, i use 0x16260006 which is hd6000 but allow build-in display port.

I need to patch framebuffer to allow one and dual display port from the dock station.

If you need files, test, debug, it's will be a pleasure.

Cheers

Share this post


Link to post
Share on other sites

 

mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract
iasl -da -dl *.aml

hi,i can't pass this step.

 

getting the below:

 

RehabMan HDD$ patchmatic -extract

Usage: patchmatic <dsl-input> <patches-file> <dsl-output>

 where:

   <dsl-input>     name of ASCII DSL input file (output from iasl -d)

   <patches-file>  name of file containing patches to apply to <dsl-input>

   <dsl-output>    name of patched output file (to be compiled with iasl)

 

then :

 

:RehabMan HDD$ iasl -da -dl DSDT.aml

-bash: iasl: command not found

 

my laptop hp elitebook 840 g2

please help

Share this post


Link to post
Share on other sites

I have the same system and did the install with PBI. I finally got my aus=dio to work with the VoodooHDA package. My issues is that the Sd card reader does not work and my bluetooth only works after coming back from sleep. I am using the Dell DW1560 wifi/bt card.

Share this post


Link to post
Share on other sites

 

mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract
iasl -da -dl *.aml

hi,i can't pass this step.

 

getting the below:

 

RehabMan HDD$ patchmatic -extract

Usage: patchmatic <dsl-input> <patches-file> <dsl-output>

 where:

   <dsl-input>     name of ASCII DSL input file (output from iasl -d)

   <patches-file>  name of file containing patches to apply to <dsl-input>

   <dsl-output>    name of patched output file (to be compiled with iasl)

 

then :

 

:RehabMan HDD$ iasl -da -dl DSDT.aml

-bash: iasl: command not found

 

my laptop hp elitebook 840 g2

please help

 

 

put iasl in /usr/bin

 

I have the same system and did the install with PBI. I finally got my aus=dio to work with the VoodooHDA package. My issues is that the Sd card reader does not work and my bluetooth only works after coming back from sleep. I am using the Dell DW1560 wifi/bt card.

 

i don't like PBI, i tried it, and then do it manually.

now, i have fully patched appleHDA, with HDMI audio.

 

i have the same DW1560 aka BCM94352z.

bluetooth is not working.

 

still have issue with DisplayPort on the Slim Dock Station.

I have to test, but i leave it at my office.

triple screen (built-in screen, built-in DP, built-in VGA at the same time) is working.

 

still have partial Imessage working (sometime yes, sometime not), and still need a correct smbios to have a "perfect" ssdt.aml

 

i will update the guide soon.

Share this post


Link to post
Share on other sites

I got my bluetooth to work in 2 different ways.

 

First uncheck USB 3 in Bios. reboot, Bluetooth should work

 

Second way if to put the computer into sleep and the wake it up, Bluetooth works.

 

Still having issues with SD card reader not working.

Share this post


Link to post
Share on other sites
On 9/15/2015 at 12:53 AM, duduclx said:

I've just seen something strange.

In dsdt patch, i use ig-platform-id 0x16160002 (the good one, hd5500)

In clover, i use 0x16260006 which is hd6000 but allow build-in display port.

I need to patch framebuffer to allow one and dual display port from the dock station.

If you need files, test, debug, it's will be a pleasure.

Cheers

fusion drive is optional or mandatory? what is the purpose of fusion drive? 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By chan29ster
      Hello,
       
      Few days back I had bought HP Elite Desk 800 g1 workstation and its config. is:
       
      Intel Q87 Chipset motherboard
      Intel core i5 4570s processor
      4gb DDR3 ram
      500gb hdd
      4gb GTX 1050 TI OC LP
       
      In this machine I successfully installed macOS Sierra 10.12.6 (16G29). But I'm getting an error in verbose mode like some contagious file. Also I'm getting an error of shutdown. I have attached the screenshot of the same. I have also recorded the video and its url is : 
      You may see it at 0:40 seconds. Later on when whole process get completed then I get an error of shut down "You shut down  your computer because of a problem." Again and again I'm getting this error on every restart. If I'm somewhere wrong for any kext or any other thing for that, here is my EFI folder (https://drive.google.com/open?id=1k-MSKSHXK9TL3WOBPZj6O789jBau7kWx). Also I have attached my config.plist file. Audio is working, but didn't recognised the device. About this Mac is also showing details properly.
       
      Please help me out it would be grateful and appreciated
       
      Thanks




      config.plist
    • By Donw35
      Catalina update 10.15.3 without issues, make sure you update your kexts before hand.
      Catalina update 10.15.2 without issues, make sure you update your kexts before hand.
      Catalina update 10.15.1 without issue although you may have to make sure clover boots from the right partition.
      HP 840 G2/G3, working with OS X 10.15 Catalina, for this to work you will need the SSDT-ECUSBX.aml and place that  EFI/CLOVER/ACPI/Patched. 
      Make sure you remove Remove all patches about renaming acpi of EC or H_EC, revert all ACPI renaming in ACPI DSDT.
       
      My method to install OS X on the SSD from a working real Mac via SSD to USB converter. I then install Clover and add my kexts and set the config.plist
       
      Not working
      SD Card reader
      Finger Print device
       
      Working
      Video - screen looks better in OS X then it does in Windows 10
      Display port
      VGA port
      WiFi and BlueTooth working OOO using the below hack
      Battery status with Rehabman's DSDT patch
      Brightness controls
      Sounds - using VoodooHDA
      * Microphone - cannot turn it off or mute
      Keyboard backlight - controlled though BIOS anyways
      touchpad - using VoodooPS2Controller
      USB3 - this laptop has two on board only and I haven't test them using the docking station
      USB3.1 C
      Ethernet - using IntelMausiEthernet
      Sleep - kind of, closing the lid doesn't go to sleep but goes to sleep over time.
      Web Cam, works but I covered it up.
       
       

       
      SSDT-ECUSBX.aml
      CLOVER.zip
      CLOVER_HP_840_G3_02032020.zip
    • By rguibi
      Hello

      I have a laptop HP EliteBook 840 G2 - Core i5 5300U - 2.3 GHz and graphic card intel HD5500 and installed a SIERRA , but the definition of the graphics card is not installed
    • By fusion71au
      Clover r5101 ISO compiled with GCC and minimal config.plist compatible for use in VMWare Workstation.
       
      Tested with unlocked Workstation 15 running OSX 10.9 -->10.15 guest in Windows X64 host.
       
      Installation
      1. Download and unzip "EFI_Clover_r5101 for VMware.zip". Mount Clover-v2.5k-5101-X64.iso by double clicking on it.
      2. Mount your VM's EFI System Partition eg in terminal
      sudo diskutil mount disk0s1   3. Copy EFI folder from step 1 into the EFI partition
      4. Shutdown the VM, add bios.bootDelay = "3000" to your VM's vmx file
      5. Reboot your VM, press <F2> to access the VMware Boot Manager and add CLOVERX64.efi to the boot menu.
       
      Substitute your own unique and valid MLB and ROM variables in the /EFI/CLOVER/config.plist (Rt Variables section) to activate iMessage/Facetime on your VM.
×