Jump to content
duduclx

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

16 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

sorry if that's old post im uploading fully functional DSDT for Hp elitebook 840 g2
feel free to use and response back if you found any issues.

 

 

DSDTpatched.aml

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.

Announcements

  • Similar Content

    • By tonyx86
      **********************************************************************************
      In this thread, I have fully documented the installation of macOS Catalina on my HP EliteDesk 800 G4 Mini. It is a PERFECT HackMini8,1 and is running very well for me without any issues. I hope this documentation helps you to install macOS on your hack. Please leave feedback if you think there is anything I can improve and let me know if you have any questions.
      **********************************************************************************
       
      Background
      This is my first "modern" hack supporting UEFI and my first hack using Clover "on-the-fly" patches.  My previous hacks
      Laptop: Thinkpad T61 / Nvidia NVS 140m Laptop: Dell Latitude E6410 / Nvidia G3100m Desktop: Gigabyte G31 / GeForce 9600 Desktop: Biostar TH55HD / Sapphire Pulse RX580 (Google "Catalina Biostar TH55HD" and look for user name deeveedee)  
      are all perfectly running Catalina and I patched them all "manually" - all DSDT patches applied with MaciSL with virtually no Clover on-the-fly patching and all booted Legacy Clover.  This UEFI hack was MUCH easier and took about 20 hours vs. a combined hundreds of hours for the old hacks.  I wanted a hack that was a little more future proof and I think this is it.  I hope you enjoy this as much as I am enjoying it.  It is a perfect MacMini8,1.
       

       
      My system specs
      HP EliteDesk 800 G4 Mini (I7-8700T / UHD 630 / Q370 Chipset / 32GB DDR4 RAM) 3 x DP Ports (connected to monitors using DP -> DVI adapters) 6 x USB 3.1 1 x USB Type-C 3.1 2 x NVMe SSD (M.2 PCIe x4 2280/2230 combo ports) 1 x SATA6 SSD 1 x Intel Ethernet RJ-45 Conexant CX20632 Audio Codec Unsupported M.2 PCIe x1 2230 Intel Wi-Fi (currently disabled in BIOS).  I may replace this with Brcm, but am using only Ethernet (IntelMausi) for now.  
      macOS Installation
      See macOS installation steps here See CLOVER (UEFI) installation later in this first post
      See BIOS configuration in attached BIOS configuration PDF document
      See EFI and /L/E kexts in attached EliteDesk.zip archive See how I developed my installation methodology here See references here See instructions here for installing two M.2 2280 NVMe SSDs and one SATA HD / SSD  
      What is not working
      Wi-Fi / Bluetooth (intentional since I have not yet replaced my Intel card).  
      What is not tested
      USB c 3.1 port (I have partially tested the USB 3 functionality of the port and it seems to be working fine with the SSDT-UIAC.aml here) Microphone port  
      What is working
      Everything not mentioned above Sleep / Wake Multiple displays with IGPU graphics acceleration, hot pluggable display ports and DP->DVI adapters USB 3.1 ports Audio (internal speaker and headphone jack) Ethernet Auto-sensing headphone jack automatically switches to internal speaker when headphones removed  
      Known Issues and their solutions - see here
       
      BIOS Version / Configuration
      Version: 02.11.01 Rev.A See attached BIOS configuration in PDF document "HP EliteDesk 800 G4 Mini BIOS Configuration.pdf" Intel ME must be enabled for proper sleep / wake of UHD 630
       
      Clover Configuration
      Clover for UEFI booting only Install Clover in the ESP UEFI Drivers Recommended drivers DataHubDxe FSInject SMCHelper File System drivers ApfsDriverLoader VBoxHfs Memory fix drivers AptioMemoryFix Additional drivers NvmExpressDxe Install RC scripts on target volume Themes Choose your desired theme Install Clover Preference Pane (option not available when installing on USB thumb drive)  
      UHD 630 Framebuffer Patching
      See here and here  
      Current Versions
      Catalina 10.15.5.02 Clover (UEFI) r5119 Lilu.kext 1.4.5 WhateverGreen.kext 1.4.0 AppleALC.kext 1.5.0 IntelMausi 1.0.3 (Not IntelMausiEthernet)  
      Credits To be provided
       
      ScreenShots
       
       
      HP EliteDesk 800 G4 Mini BIOS Configuration.pdf
      EliteDesk800 G4 Mini - Rev 0.91.zip
    • By ltooz_audis
      So, I cheap out and got a $20 dw1820a for my laptop hackintosh - EliteBook 820 G3 macOS Catalina 15.5. Clover wouldn't boot or work properly, OpenCore works perfectly with some adjustment.
      https://www.youtube.com/watch?v=46hanWDwZLA
      Cheers,
      Louis
    • By Fantome1S
      Finaly Success to boot on Sierra 10.12.6 (16G29) with Touchscreen working theres still things to fix but everything is almost working. During the Corvid StayAtHome Period I was able and have time to make this laptop boot on MacOS after a lot of attemps before going back to job. It was the hardest laptop hackintosh install attemp i've done so far and Sierra OS is the only that works. I tried El Capitan and Mojave and its never boot so I not even tested Catalina. I searched on the web and theres no install guide for this specific laptop or no Success install post on this laptop its look like a not very well supported laptop by hackintosh. Maybe some of you can help me correct the things that still not work. Audio work but with voodo (low sound and low quality) I want to make it work with AppleALC to get better quality sound. Thanks in advance
       
      Things that work:
       
      -Touchscreen
      -Trackpad (not the gesture for now) - Backlight Keyboard
      -EthernetPort and Wireless (with a wifi dongle. I will change to a broadcom wifi mini-pci chip)
      -Brightness Controls with FN key
      -Audio Voodoo ''low sound'' (will tried to change to AppleALC or AppleHDA fix method) 
      -USB 3.0
       
      Things that not work or need to be fixed:
       
      -Weird double long booting screen-first loading bar on the right. after real loading bar is visible ?
      -Audio (Voodoo) work but with low volume sound- still not success to make work AppleALC.kext method
      -SENSORS -CPU-HDD Temperatures, BATTERY LEVEL, ETC…
      - Sleep (Disabled): USB ports not works after wake from sleep
      -Trackpad Gestures
       
      Hardware:
       
      CPU: Intel Core i7-3687U, 2100 MHz
      GPU: Intel HD Graphics 4000
      RAM: 12 GB (4GB soldered + 8 GB Samsung DDR3 1600)
      Motherboard/Laptop model: Intel Panther Point QM77, Intel Ivy Bridge - (HP Revolve 810 G1)
      Audio Codec: IDT 92HD91BXX @ Intel Panther Point PCH - High Definition Audio Controller
      Ethernet Card: Intel(R) 82579LM Gigabit Network Connection
      Wifi/BT Card: Intel(R) Centrino(R) Advanced-N 6235
      HP hs2350 HSPA+ MobileBroadband Network Adapter
    • By Donw35
      Catalina update 10.15.5 without issues, make sure you update your kexts before hand and clover 5118
      Catalina update 10.15.4 without issues, make sure you update your kexts before hand and clover 5107
      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
×