Contribute
Register

[Guide] HP ProBook/EliteBook/Zbook using Clover UEFI hotpatch

Status
Not open for further replies.
you may please create the efi folder because using this config nelas guide I go back to the IGPU error
hp Elitebook 840 g2 Broadwell (no AMD grafic)
not really, I don't have the same hardware as you
 
Zbook G2 17 High Sierra succesfully installed using this guide.
Almost everything worked after hotpatch.

Still needed after guide:
I Updated all kexts except for VoodooPS2Controller (kept rehabman's version) and moved them all to EFI->Clover->kexts->Other
-SD card reader kext. -> Sinetek-rtsx from github works.
Injected my NVME device as SSDT-NVME.aml

Code:
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20180427 (64-bit version)(RM)
* Copyright (c) 2000 - 2018 Intel Corporation
*
* Disassembling to non-symbolic legacy ASL operators
*
* Disassembly of iASLjgy4o7.aml, Fri Jul  3 15:27:45 2020
*
* Original Table Header:
*     Signature        "SSDT"
*     Length           0x0000008E (142)
*     Revision         0x02
*     Checksum         0x7C
*     OEM ID           "hack"
*     OEM Table ID     "nvme"
*     OEM Revision     0x00000000 (0)
*     Compiler ID      "INTL"
*     Compiler Version 0x20180427 (538444839)
*/
DefinitionBlock ("", "SSDT", 2, "hack", "nvme", 0x00000000)
{
    External (_SB_.PCI0.RP05, DeviceObj)    // (from opcode)

    Scope (\_SB.PCI0.RP05)
    {
        Device (NVME)
        {
            Name (_ADR, Zero)  // _ADR: Address
            Method (\_SB.PCI0.RP05.NVME._DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (LNot (Arg2))
                {
                    Return (Buffer (One)
                    {
                         0x03                                         
                    })
                }

                Return (Package (0x02)
                {
                    "built-in",
                    Buffer (One)
                    {
                         0x00                                         
                    }
                })
            }
        }
    }
}

-Nvidia K3100M I had to flash vga rom to the card first using windows and NVflash, and now OSX and Windows both recognize and boot perfectly with the card. (credit to EdwardGeo)
(I used this ROM https://www.techpowerup.com/vgabios/172759/172759)
-Modified the hotpatch generated SSDT-zbG2h.aml Under Device RMCF changed -> Name (DGPU, 0x03) to Name (DGPU, Zero) to activate the card.
Don't do this unless the card ROM is flashed or OSX will not boot!
-Duplicated config.plist and have one that disables and one that enables the Nvidia card on boot args.
For Nvidia card, add bootflag darkwake=0 (to fix wake from sleep)
To disable the GPU, you need to add the bootflag -wegnoegpu and there's no need for darkwake.
External displays and dock work only with the Nvidia card enabled.
The reason you might want to boot without Nvidia card is to save battery, and if the computer goes to sleep and you close the lid after, you won't be able to wake it after.
Same goes if you have an external display connected and the laptop goes to sleep.

Replaced the intel wifi card with HP Broadcom BCM94352HMB and using a M.2 (NGFF) Key A/E/A+E to Mini PCI-E Adapter with FFC Cable, I managed to get (almost perfect) wifi and Bt. getting the antennas to work was a bit of a hack, but in the end it works. (it's also a bit crammed in there with the NVME and the adaptor and wifi, but the case closes without a problem)
The only thing is I'm supposed to get 800mb/s out of the adapter and I'm only getting 300mb/s, even in windows, so maybe there's more to how the actual adapter works. Also the radio on/off button on the Zbook stays orange and doesn't work. But other than that both wifi and BT work flawlessly using:
BrcmBluetoothInjector.kext, BrcmFirmwareData.kext and BrcmPatchRam3.kext

And finally to get 100% out of this great machine, I'm still working on Thunderbolt.
It kind of works as is if you boot with a device connected, but it is a fluke. It recognizes the device as a PCI card that can be ejected (kernel panic if you try) and sleep causes KP as well.
I've tried injecting devices and a Falcon Ridge Thunderbolt ROM, and I feel I'm very close to getting true Thunderbolt drivers support, and then it's just a matter of force powering the TB device with a SSDT to have hotswap.
 
Last edited:
Zbook G2 17 High Sierra succesfully installed using this guide.
Almost everything worked after hotpatch.

Still needed after guide:
I Updated all kexts except for VoodooPS2Controller (kept rehabman's version) and moved them all to EFI->Clover->kexts->Other
-SD card reader kext. -> Sinetek-rtsx from github works.
Injected my NVME device as SSDT-NVME.aml

Code:
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20180427 (64-bit version)(RM)
* Copyright (c) 2000 - 2018 Intel Corporation
*
* Disassembling to non-symbolic legacy ASL operators
*
* Disassembly of iASLjgy4o7.aml, Fri Jul  3 15:27:45 2020
*
* Original Table Header:
*     Signature        "SSDT"
*     Length           0x0000008E (142)
*     Revision         0x02
*     Checksum         0x7C
*     OEM ID           "hack"
*     OEM Table ID     "nvme"
*     OEM Revision     0x00000000 (0)
*     Compiler ID      "INTL"
*     Compiler Version 0x20180427 (538444839)
*/
DefinitionBlock ("", "SSDT", 2, "hack", "nvme", 0x00000000)
{
    External (_SB_.PCI0.RP05, DeviceObj)    // (from opcode)

    Scope (\_SB.PCI0.RP05)
    {
        Device (NVME)
        {
            Name (_ADR, Zero)  // _ADR: Address
            Method (\_SB.PCI0.RP05.NVME._DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (LNot (Arg2))
                {
                    Return (Buffer (One)
                    {
                         0x03                                       
                    })
                }

                Return (Package (0x02)
                {
                    "built-in",
                    Buffer (One)
                    {
                         0x00                                       
                    }
                })
            }
        }
    }
}

-Nvidia K3100M I had to flash vga rom to the card first using windows and NVflash, and now OSX and Windows both recognize and boot perfectly with the card. (credit to EdwardGeo)
(I used this ROM https://www.techpowerup.com/vgabios/172759/172759)
-Modified the hotpatch generated SSDT-zbG2h.aml Under Device RMCF changed -> Name (DGPU, 0x03) to Name (DGPU, Zero) to activate the card.
Don't do this unless the card ROM is flashed or OSX will not boot!
-Duplicated config.plist and have one that disables and one that enables the Nvidia card on boot args.
For Nvidia card, add bootflag darkwake=0 (to fix wake from sleep)
To disable the GPU, you need to add the bootflag -wegnoegpu and there's no need for darkwake.
External displays and dock work only with the Nvidia card enabled.
The reason you might want to boot without Nvidia card is to save battery, and if the computer goes to sleep and you close the lid after, you won't be able to wake it after.
Same goes if you have an external display connected and the laptop goes to sleep.

Replaced the intel wifi card with HP Broadcom BCM94352HMB and using a M.2 (NGFF) Key A/E/A+E to Mini PCI-E Adapter with FFC Cable, I managed to get (almost perfect) wifi and Bt. getting the antennas to work was a bit of a hack, but in the end it works. (it's also a bit crammed in there with the NVME and the adaptor and wifi, but the case closes without a problem)
The only thing is I'm supposed to get 800mb/s out of the adapter and I'm only getting 300mb/s, even in windows, so maybe there's more to how the actual adapter works. Also the radio on/off button on the Zbook stays orange and doesn't work. But other than that both wifi and BT work flawlessly using:
BrcmBluetoothInjector.kext, BrcmFirmwareData.kext and BrcmPatchRam3.kext

And finally to get 100% out of this great machine, I'm still working on Thunderbolt.
It kind of works as is if you boot with a device connected, but it is a fluke. It recognizes the device as a PCI card that can be ejected (kernel panic if you try) and sleep causes KP as well.
I've tried injecting devices and a Falcon Ridge Thunderbolt ROM, and I feel I'm very close to getting true Thunderbolt drivers support, and then it's just a matter of force powering the TB device with a SSDT to have hotswap.

Thanks for sharing, i always suspected the lack of rom was the reason nobody was using the zbooks, while Dell M4800 has no issue with k2100m. I suggest you mod the card VBIOS to get lower voltages and better ram speed, do some testing in windows to find stable values, kepler mobile gpu can usually work at 0.7v idle and undervolt about 0.07v on all the curve compared to the default values, and ram usually clocks 400mhz higher. I got very good results on k2100m cards i got on dell workstations.
 
I have been following Rehabman post #1 since High Sierra and Mojave. I am preparing to upgrade to Catalina but don't see a similar thread like this. Try the UniBeast and it simply hangs on boot somewhere. I think I must update the kext somewhere (mine are from Mojave era). Trying to search this forum but there are 190 pages to go through and I wonder if someone can point me to the post that I can start reading. I haven't seen Rehabman's repo has any new update (also curious where he is now). My laptop is Elitebook 840 G1/Intel Graphics 4400/BCM94360HMB wifi card (the one with 3 antennas).
 
I have been following Rehabman post #1 since High Sierra and Mojave. I am preparing to upgrade to Catalina but don't see a similar thread like this. Try the UniBeast and it simply hangs on boot somewhere. I think I must update the kext somewhere (mine are from Mojave era). Trying to search this forum but there are 190 pages to go through and I wonder if someone can point me to the post that I can start reading. I haven't seen Rehabman's repo has any new update (also curious where he is now). My laptop is Elitebook 840 G1/Intel Graphics 4400/BCM94360HMB wifi card (the one with 3 antennas).

I will reply to myself. I follow https://github.com/Hologos/hackintosh-hp-elitebook-840-g3 and have upgraded to Catalina on my 840 G1. One problem I hit along the way is clover 2.4k and 2.5k structure difference but that is not hard to solve.
 
Will this method work for Catalina?
I don't think so.
Once Catalina is installed on another partition of the drive with the same parameters, but external keyboard and mouse will not work.
Mojave work. Catalina not.
How do I fix it?
What are your ideas?
 
Hello!

I have ProBook 4740s (C4Z36EA) with Mojave and LG monitor 24MK600M-B (HDMI connection).

External monitor not detected.

Can you help me?
 

Attachments

  • debug_12551.zip
    19.3 MB · Views: 54
Did you step-by-step guide?
 
I'm trying different solutions (from first page) but without success.
 
Someone has installed catalina on probook 4540s with opencore.
 
Status
Not open for further replies.
Back
Top