Contribute
Register

[Guide] Lenovo IdeaPad U330/U430/U530 using Clover UEFI

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Overview

The purpose of this guide is to provide a step-by-step guide to installing Mojave, High Sierra, Sierra, El Capitan, or Yosemite on the Lenovo u330/u430/u530.

Note: This guide will also work with Mavericks, although that is not my primary testing target.

My machine is a u430 with Broadcom BCM94352HMB (originally used a rebranded AR9280) and SSD.

Background/development thread is here: http://www.tonymacx86.com/laptop-compatibility/121632-lenovo-ideapad-u430-mavericks.html

If you are installing High Sierra, Sierra, El Capitan, or Yosemite, it is expected that you will read the guide here, but ask questions at the appropriate Sierra, Yosemite, or El Capitan threads. This thread should be used only for Mojave questions.


What you need

- Lenovo IdeaPad U330/U430/U530 (p or Touch)
- Mojave, High Sierra, Sierra, Yosemite or El Capitan downloaded from the Mac App Store
- 8GB USB stick
- (optional) 32GB USB stick for Lenovo OEM backup
- preferred (optional) Broadcom BCM94352 for native WiFi
- (optional) Atheros AR9280 WiFi (AR5BHB92) for native WiFi (not supported on Mojave)


BIOS settings

To start, set BIOS to Windows 8 defaults.

Then insure:
- UEFI boot is enabled
- secure boot is disabled
- enable Legacy Boot (but UEFI first) and you may experience less boot time glitches
- USB "deep sleep" is disabled

Note: If you have one of 'p' laptops (with Nvidia), keep it enabled in BIOS. It will be disabled automatically by SSDT-HACK.aml when running OS X.


Preparing USB and initial Installation

Prior to installing macOS/OS X, 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 Lenovo to accomplish this.

You can also leave Windows intact, but it can get tricky. Read here for more information: http://www.tonymacx86.com/multi-booting/133940-mavericks-windows-8-same-drive-without-erasing.html

This guide for creating USB and installing using Clover UEFI works well for this laptop: http://www.tonymacx86.com/el-capitan-laptop-support/148093-guide-booting-os-x-installer-laptops-clover.html

Special notes:

- Use the latest RehabMan Clover build

- Definitely copy RealtekRTL8111.kext to Clover/kexts/Other as having network support during post-install is helpful. The rest of this guide depends on it. An alternate is to copy FakePCIID.kext and FakePCIID_Broadcom_WiFi.kext to Clover/kexts/Other. This will enable WiFi, provided you have the BCM94352HMB WiFi card already installed. Since the u330 does not have an Ethernet port, BCM WiFi is your only choice. You cannot complete this guide (as written) without internet access.

Note: FakePCIID.kext and FakePCIID_Broadcom_WiFi.kext are available here: https://github.com/RehabMan/OS-X-Fake-PCI-ID

- GenericUSBXHCI.kext is not necessary with this laptop. Do not use it.

- Use the 'createinstallmedia' approach. It works well, and there is little chance for pilot error. This method also gives you a recovery partition.

- Certain USB3 sticks draw too much power to be recognized by BIOS. For example, I have a 64GB PNY USB3 stick that is recognized by BIOS only if I use a powered hub. I have another 16GB Sandisk USB3 stick which is recognized when plugged into the USB3 port directly.

- Use the config_install.plist from the u430 repo: https://github.com/RehabMan/Lenovo-U430-Touch-DSDT-Patch/raw/master/config_install.plist


Post Installation

Install Clover UEFI as described in the guide linked by the previous section (post #2). After installing Clover, and configuring it correctly (config.plist, kexts, etc) you should be able to boot from the HDD/SSD.

But there are still many issues and devices that won't work correctly. For that, we need to patch DSDT, provide a proper config.plist, and install the kexts that are required.

Since you have RealtekRTL8111.kext already injected by Clover, you should have internet access simply by using an Ethernet cable to your router. Plug it in and make sure you have internet access before continuing. Or if you're using FakePCIID_Broadcom_WiFi.kext, you can connect to your WiFi router before continuing.

Installation of the tools and patching is easy provided the scripts and tools at the Lenovo u430 repository: https://github.com/RehabMan/Lenovo-U430-Touch-DSDT-Patch

To start, the developer tools must be installed. Run Terminal, and type:

Code:
xcode-select --install
You will be prompted to install the developer tools. Since you have internet working, you can choose to have it download and install them automatically. Do that before continuing.

After the developer tools are installed, we need to get a couple of projects from my github.

In Terminal:
Code:
mkdir ~/Projects
cd ~/Projects
git clone https://github.com/RehabMan/Lenovo-U430-Touch-DSDT-Patch u430.git
Now it is time to install some more tools and all the kexts that are required...

In Terminal:
Code:
cd ~/Projects/u430.git
./download.sh
./install_downloads.sh
The download.sh script will automatically gather the latest version of all tools (patchmatic, iasl, MaciASL) and all the kexts (FakeSMC.kext, ACPIBatteryManager.kext, etc) from bitbucket and github. The install_downloads.sh will automatically install them to the proper locations.

Note: My u430 has a Synaptics trackpad. According to some of the feedback in this thread, some of these u330/u430/u530 laptops are coming with an ELAN trackpad instead. I'm not going to link the ELAN trackpad, due to the author's disregard for the open source license, but you can find it on the internet. You will lose much of the keyboard functionality (eg. function keys) present in my setup (brightness keys are accounted for).

If you wish, you can reboot to verify a few more items are working (many only partially).

To finish the setup, we need a correctly patched DSDT/SSDT.

With the current project, no patched DSDT/SSDTs are used. Instead I use Clover hotpatches and a small SSDT called SSDT-HACK.

In Terminal:
Code:
cd ~/Projects/u430.git
make
make install
The 'make' causes the SSDT-HACK.aml files to be compiled (with iasl), the results placed in ./build.

Finally, 'make install', mounts the EFI partition, and copies the built files where they can be loaded by Clover (to EFI/Clover/ACPI/patched).


Power Management

Everything required for CPU/IGPU power management is already installed with the steps above.
There is no longer any need to use the ssdtPRgen.sh script.

Also, be aware that hibernation (suspend to disk or S4 sleep) is not supported on hackintosh.

You should disable it:
Code:
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage
Always check your hibernatemode after updates and disable it. System updates tend to re-enable it, although the trick above (making sleepimage a directory) tends to help.


Final config.plist

Up to now, you've been using the same config.plist we were using for installation. After all the APCI files are in place (previous two steps), you're ready to use the final config.plist from the u430 repo.

First, mount the EFI partition:
Code:
cd ~/Projects/u430.git
./mount_efi.sh
Then copy the file:
Code:
cd ~/Projects/u430.git
cp config.plist /Volumes/EFI/EFI/Clover/config.plist
You could also copy the file using Finder.

After copying the config.plist from the repo to EFI/Clover/config.plist, you should customize the SMBIOS so you have a unique serial. You can use Clover Configurator to do this (use google to find/download it). DO NOT use Clover Configurator to edit your actual config.plist. Instead edit a