Note: This guide will also work with  Mojave, High Sierra, Sierra or El Capitan

Keep Handy this Guide before proceeding.

Common Problems and Workarounds in Hackintosh

1. Computer Specification

HP Pavilion 15-AB030TX
Intel® Core™ i5-5200U @2.2Ghz
16GB RAM PC12800 DDR3L
Intel® HD Graphics 5500 (Broadwell)
Nvidia Geforce GT 940M (Disabled in DSDT)
120GB WD Green SSD
1TB 5400 RPM SATA + HDD Caddy (Replaced with DVD-ROM)
Realtek ALC290
RTL8101E Ethernet
RTL8723BE (1×1) and BT 4.0 Combo (Replaced with Broadcom BCM943602BAED + BT 4.1 (DELL-DW1830))

2. What you need

– HP Pavilion 15-AB030TX or Similar Hardware
– Latest Clover EFI bootloader
– macOS Catalina downloaded from the Mac App Store
– 8GB+ USB stick
– Access to Mac or Hackintosh.
– (Optional) Broadcom BCM94352Z/BCM943602BAED for native WiFi.
– Writing ‘Hackintosh Laptop’ on the back of your HP Screen Panel.
– DVMT Pre-Allocation memory with Shell Command Won’t Work on this Machine, there is error notification about “can’t change the value with EFI”, Apply Binary PATCH Stolen Memory assertion to avoid Kernel Panic and Enable Full Graphics Acceleration with Clover. WhateverGreen is the preferred method (as of Mojave) for Graphics injection and Binary Patching.

If you want to dual boot with Linux make sure you know how to patch the wifi module.

3. BIOS settings

– UEFI boot is enabled
– secure boot is disabled
– enable Legacy Boot (but UEFI first) and you may experience less boot time glitches

4. Pre-Installation

Prior to installing macOS, it is a good idea to create an OEM recovery USB from Windows. If anything goes wrong and you want/need to get back to Windows, you can restore it via the USB. Use the utility provided by HP to accomplish this.

Always backup data you don’t want to lose. I take no responsibility for damaging your computer or data loss. This guide will lead you to do a “clean installation” which means formatting your main drive.

5. Preparing USB and initial Installation

Prepare a USB with 8GB or more, format by Disk Utility:

– Click Erase
– Format: Mac OS Extended (Journaled)
– Scheme: GUID Partition Map

disk utility

– Download Install macOS Catalina app from AppStore (or the version of macOS that you want to install)

– Download Latest Clover EFI
– Open the terminal app and paste this piece of code

Code:
 sudo "/Applications/Install macOS Catalina Beta.app/Contents/Resources/createinstallmedia" --volume  /Volumes/macOS --nointeraction

– Rename the install media (optional)…

Code:
 sudo diskutil rename "Install macOS Catalina" install_osx

– Install Clover to formatted USB with following selected

Code:
Install for UEFI Booting only
Install clover in ESP
Drivers64UEFI->FSInject-64
Drivers64UEFI->ApfsDriverLoader-64 -> This is the APFS file system driver
Drivers64UEFI->AptioMemoryFix-64
Drivers64UEFI->SMCHelper-64 (VirtualSMC.efi if using VirtualSMC.kext, SMCHelper-64.efi is not compatible with VirtualSMC.efi and must be removed)

– If you have a dual GPU (Intel + AMD or Intel + Nvidia), then you have to place SSDT-DiscreteSpoof.aml to
EFI -> Clover -> ACPI -> Patched

– Mount EFI Partition, replace config.plist (with config.plist from CLOVER Installer.zip)

– Restart and press F9 to choose Boot devices > Boot from EFI file > choose your EFI partition > EFI > Boot > BOOTX64.efi

– Clover bootloader screen shows up, select “Boot OS X Install from install_osx”.

– Use Disk Utility to format your drive as GPT, create an APFS partition (Mojave on HDD is also APFS, so no more HFS+) and install macOS Mojave to your formatted partition

– The system will restart after copying files from the USB drive

– After Restart press F9 to choose Boot devices > Boot from EFI file > choose your EFI partition > EFI > Boot > BOOTX64.efi

– Clover bootloader screen shows up, select “Boot OS X from (Install macOS Mojave)”

– When it’s done after reboot, select “Boot OS X from (your install target partition)”

– If everything goes well, you can boot straight to the desktop.

Clover: run the Clover Installer package:

– select the target of the install to “YourPartition” using “Change Install Location”

– select “Customize” (the default is a legacy install — we need to change it)

– check “Install for UEFI booting only”, “Install Clover in the ESP” will automatically select

– check following from Drivers64UEFI

Code:
Drivers64UEFI->FSInject-64
Drivers64UEFI->ApfsDriverLoader-64 -> This is the APFS file system driver
Drivers64UEFI->AptioMemoryFix-64
Drivers64UEFI->SMCHelper-64 (VirtualSMC.efi if using VirtualSMC.kext, SMCHelper-64.efi is not compatible with VirtualSMC.efi and must be removed)

– select “Install RC scripts on target volume” and/or “Install all RC scripts on all other boot volumes”.

6. Installation

Now that the installation USB drive is ready, let’s install OS X Catalina!

Boot from the USB Drive

Restart your computer and boot from the USB drive (Press Esc/F8/Del to access the boot selection menu).

Use the arrow keys to select Boot macOS Install from Install macOS Catalina (It should be selected by default). Press the spacebar and select Boot macOS in verbose mode. Verbose mode means that you’ll be able to see exactly what’s going on under the hood as macOS attempts to boot up its installer. You’ll be able to see the exact error message if booting fails.

Press Enter and cross your fingers. Clover will now boot the installer from your USB drive. This could take some time, in my case, it takes around 5 minutes (Don’t worry — the startup time is around 5 seconds after installing on an SSD).

Did it fail?

It’s more than likely that the boot will fail. Don’t panic (ha-ha), as kernel panics usually mean that you forgot to copy an essential kext to the EFI partition. Look up the exact error you’re getting before the boot log comes to an end and search Google for a solution.

Once you find an additional kext that your system needs, you’d attempt to copy it to the EFI volume, only to discover that it’s gone! Not to worry, it’s just unmounted and hidden. Follow this guide to mount the hidden partition, and then, follow the Copy Essential Kexts section above to copy it to the USB drive’s EFI partition.

Format the Target Hard Drive

Once the installation wizard boots, the next step is to prepare the hard drive that you want to install macOS on.

 

Click Continue, followed by Disk Utility.

Disk Utility

Select the target drive to install to (not the USB drive!) and click the Erase button. Make sure to back up anything important on that drive, as it will be deleted forever.

  1. Set the Name to MacintoshHD {for more macOS feel}.
  2. Set the Format to OS X Extended (Journaled).
  3. Set the Scheme to GUID Partition Map.

Erase

Click Erase to format the drive.

Install OS X to the Target Drive

Exit the Disk Utility and click Install OS X.

Click Show All Disks and select the drive you just formatted to install OS X on it. Finally, click Install.

Install

The process takes about 25 minutes. Be patient. For me, it hung at the end (“1 seconds remaining”) for around 5 minutes. Don’t be tempted to reset or cancel the installation.

When that’s done, the system will reboot. Make sure to boot from the USB device again, and select Boot OS X Install from Install macOS Catalina once again, in verbose mode. The installation is a two-part process that continues once you re-boot into the USB drive.

Finally, after about 25 more minutes, OS X El Capitan should be successfully installed on the target drive.

Boot into Catalina via the USB Device

After the second reboot, boot from the USB device once again, but this time, select Boot macOS from Catalina, and select verbose mode.

Press Enter and cross your fingers again. If all goes well, you’ll be presented with the setup wizard:

Welcome

Take a minute to set up your new Hackintosh laptop. Once you’re done, there are a few things you need to do to finish off the installation.

7. Kexts

Place these Kexts in /Library/Extensions

– AppleALC.kext (layout id 28 injected via Clover or DSDT) https://github.com/acidanthera/AppleALC/releases
– set config.plist -> Devices -> Audio -> Inject = 28 or layout id according to your codec.
(older AppleHDA_ALC290.kext (layout id: 3) doesn’t work anymore due to the removal of many Layout id’s form AppleHDA.Kext in Mojave, it worked fine till 10.13.6)

– FakeSMC.kext + ACPIBatteryManager.kext
https://bitbucket.org/RehabMan/os-x-acpi-battery-driver
https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek

or

VirtualSMC.kext + SMCBatteryManger.kext + SMCProcessor.kext
https://github.com/acidanthera/VirtualSMC/

– Lilu.kext https://github.com/acidanthera/Lilu/

– CPUFriend.kext https://github.com/acidanthera/CPUFriend/

– RealtekRTL8100.kext https://github.com/Mieze/RealtekRTL8100 (source)

– USBInjectAll.kext https://bitbucket.org/RehabMan/os-x-usb-inject-all/

– VoodooPS2Controller.kext https://bitbucket.org/RehabMan/os-x-voodoo-ps2-controller/

– WhateverGreen.kext https://github.com/acidanthera/WhateverGreen/

– AirPortBrcmFixup.kext https://github.com/acidanthera/AirportBrcmFixup/ (only if you replaced Wi-Fi/BT module with supported Broadcom Module)

– BrcmBluetoothInjector.kext or [BrcmFirmwareRepo.kext + BrcmPatchRAM2.kext] (only if you replaced Wi-Fi/BT module with supported Broadcom Module) https://bitbucket.org/RehabMan/os-x-brcmpatchram

Note: these Kexts can also be placed in EFI -> Clover -> Kexts -> Other but /Library/Extensions/ is the preferred location

8. Patching DSDT/SSDTs

Update your Clover folder and your BIOS then download and run RunMe.app and send me your zip file Created on your desktop.

DSDT patched i used,

“Fix _WAK Arg0 v2”
“HPET Fix”
“SMBUS Fix”
“HP-Pavilion-_____” – USE the IDENTICAL MODEL.
“IRQ Fix”
“RTC Fix”
“OS Check Fix”
“Fix Mutex with non-zero SyncLevel”
“Fix PNOT/PPNT” (use only if you’re dropping CPU related SSDTs)
“Add IMEI” (do not use if your DSDT or SSDTs already have IMEI/HECI/MEI device)

it is a very crucial step to making it work as an actual mac because DSDT patching is important to make all the PCI Components working else your ‘Hackintosh laptop’ will be sad.

9. SSDT.aml Creation

If you have the same or similar hardware use the SSDT files from the clover folder attached in Downloads Section.

10. Clover Bios setup

I used the rename trick for a long time (bootmgfw.efi to bootmgfw-orig.efi and then place CLOVERX64.efi renamed as bootmgfw.efi) but after each window update, I had to again rename it. and recently windows started replacing it at each boot. so I came up with this trick: I copied the BOOTX64.efi form EFI->Boot, created a folder named ubuntu inside EFI folder and placed BOOTX64.efi in EFI -> ubuntu then renamed BOOTX64.efi to grubx64.efi.
and in Bios move ubuntu to top of the boot order.

SEE: HOW TO UPDATE?

Enjoy!

That’s it! Enjoy your new Hackintosh Laptop, and if you absolutely love it, consider buying a MacBook!

The guide was modified by me and originally written by ChilledHamza for Mojave.

Having Problems: Check out the Guide for Post Installation