- Joined
- Dec 9, 2015
- Messages
- 61
- Motherboard
- Gigabyte z3709n
- CPU
- i5-8600
- Graphics
- RX 580
This post is a step-by-step guide to Hackintosh (El Capitan 10.11) your Lenovo ThinkPad T460 notebook maintaining Windows 10 installation.
EDIT #6 - 2017-01-22: Finally Fully QE/CI without upper menu glitches! See README.TXT. Uploaded new file (PenDrive-T460_v2.0.zip). NOTE: If you're just updating configs and kexts from previous PenDrive-T460_v1.x simply:
EDIT #5 - 2016-10-29: Added Bonus Track section
EDIT #4 - 2016-10-22: Updated post-install steps fixing some WIP fixes and uploaded new file (PenDrive-T460_v1.2.zip)
EDIT #3 - 2016-08-30: Added sections 8 (kexts) and 9 (DSDT) and also uploaded new zip file (PenDrive-T460_v1.1.zip)
EDIT #2 - 2016-08-24: Updated What's Working section.
EDIT #1 - 2016-08-20: Included What's Working section.
What's Working:
What's not tested / not working:
Special thanks to @tluck and @RehabMan.
I assume you currently have:
EDIT #6 - 2017-01-22: Finally Fully QE/CI without upper menu glitches! See README.TXT. Uploaded new file (PenDrive-T460_v2.0.zip). NOTE: If you're just updating configs and kexts from previous PenDrive-T460_v1.x simply:
Code:
1) Backup your EFI folder and replace by this one
2) Update your kexts running "T460/EFI/CLOVER/kexts/_kext-install.command"
3) Install new utilites following section "Install the root utilities and clover scripts and files from Utilities folder to your HD" below in Step 5
EDIT #5 - 2016-10-29: Added Bonus Track section
EDIT #4 - 2016-10-22: Updated post-install steps fixing some WIP fixes and uploaded new file (PenDrive-T460_v1.2.zip)
EDIT #3 - 2016-08-30: Added sections 8 (kexts) and 9 (DSDT) and also uploaded new zip file (PenDrive-T460_v1.1.zip)
EDIT #2 - 2016-08-24: Updated What's Working section.
EDIT #1 - 2016-08-20: Included What's Working section.
What's Working:
- Full QE/CI
(Minor transparency issue 99% fixed using color profile sRGB IEC61966-2.1)
- Keyboard, trackpad and trackball
- Audio / Mic (patched using AppleHDA_ALC293.kext and SSDT. VoodooHDA not needed any more)
- Internal/External USB ports
- HDMI (audio also!)
- Camera
- Shut down / Reboot
- Brightness control (needs DSDT "Brightness fix")
- Battery Indicator (needs DSDT patch)
- Sleep and Wake (needs SSDT/DSDT patch)
- LED flashing when wake up after sleep (needs SSDT/DSDT patch)
- Wifi/BT (replaced Intel card for a BCM94352Z)
What's not tested / not working:
- Fingerprint
- SD Card Reader
Special thanks to @tluck and @RehabMan.
I assume you currently have:
- Lenovo Thinkpad T460 with intact out-of-the-box partitions (200+MB EFI Partition is needed for El Capitan)
- Windows 10 running
- Press F1 at Laptop startup and change BIOS settings:
- Set Security / Memory Protection / Execution Prevention = Enabled
- Set Virtualization / Intel VT = Disabled (you can enable it later)
- Set Virtualization / Intel VT-d = Disabled (you can enable it later)
- Set Secure Boot / Secure Boot = Disabled
- Set Startup / UEFI/Legacy Boot = UEFI Only
- SET Startup / CSM Support = Yes
- Set Security / Memory Protection / Execution Prevention = Enabled
The first think you must do is repartition your disk so we can install OS X on this partition:
- It's better to disable PageFile temporary so we can reduce Windows partition a lot: http://tunecomp.net/win10-page-file-disable/
- Also is a good idea to delete all Restore Points: http://www.groovypost.com/howto/delete-restore-points-windows-10-reclaim-disk-space/
- Now you can launch Disk Manager (Win+X > Disk Manager) and select Windows (C partition, right click and select Reduce Volume (e.g: I reduced my partition to have 80GB)
- Then you can create a new partition with all disk space you recovered (eg: In my case 400GB)
Because OS X and Windows 10 must be run on the same machine we need both OS work with time in the same manner, so you must setup Windows to use UTC Clock:
- Double Click file
DualBoot\WindowsTimeFixUTC.reg
- Download latest El Capitan (it is are free in the Apple App Store)
- Partition an 8GB (or larger) USB formatted with GUID Partition Table (GPT)
- Use the Partition Options... menu to change from MBR to GPT
- Name the partition USB - the install process will rename it, but it matches the script below.
- Use format: OS X Extended (Journaled)
Note: Be sure to use a new pendrive becasue I found problems using an old one.
- Run this command to copy the bits to the USB key:
Code:sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
- Manually mount the ESP of the USB and copy the entire EFI directory (from the Zip) onto the ESP directory of the USB
For example, assuming the USB is disk1 and you unzipped my file in ~/Downloads directory:
Code:diskutil mount /dev/disk1s1 cp -a ~/Downloads/T460/EFI/* /Volumes/EFI
Note: run "diskutil list" on the command line to find your USB and HD disk devices
- Install on your GPT disk - OS X partition.
Make sure the drive is formatted using Scheme: GUID Partition Map (GPT), Partition Name: OSX, Format: OS X Extended (Journaled) - Click through GUI Install menus and wait for the installation to fully complete - on a spinning disk takes about 30-45 minutes.
Follow these Notes and Tips:
- When the installer screens shows: "To pair a Bluetooth keyboard, turn it on and wait for your computer to connect to it.”
Hit the Space Bar to get past this step.
- When installer seems to hang at: "About a second remaining”
Don’t Panic, this "second" may take about 10 minutes or more to finish. Just wait for the installer to reboot the computer and continue the installation.The whole install process takes about 1 hour to complete.
- On the first boot from the HD when asked: "How Do You Connect?”
Select: “My computer does not connect to the Internet” And set up the network later after installation the NIC driver kext. And your Intel WiFi will not work. Period.
- Boot Clover from USB
On startup, hit F12 and select USB boot - but now in Clover select the newly installed disk/partition to start OS X.
Note: You may see 3 Volumes instead of the expected 2 on the HD - OS X + Recovery HD - make sure you pick the volume that is NOT labelled Recovery HD. See step 3 below to remove the logical volume eliminates the confusion.
- Complete the installation steps and login
Note: This will boot up OS X with Clover injecting the custom kexts from the USB (for now).
- Convert the Logical volume to Physical volume
The full installer likes to make a logical volume. So for simplicity, I recommend one to revert the root volumes to a regular volume. Run:
Code:sudo diskutil corestorage revert /
- Copy Clover USB files to HDD EFI partition
Transfer files to HDD EFI partition exactly like you did previously in USB:
Code:diskutil mount /dev/disk0s1 cp -a ~/Downloads/T460/EFI/* /Volumes/SYSTEM Note: You are now copying files to /dev/disk0s1 which is HDD EFI partition and its name is "SYSTEM"
- Install the root utilities and clover scripts and files from Utilities folder to your HD
This step is important as among other things, it installs the rc.scripts to save the nvram contents to a file upon reboot. Using a LogoutHook is more reliable than the CloverDaemon which often fails during shutdown. If you reinstall Clover from a pkg, then recopy the .fixed version to .local in /etc/rc.boot.d and rc.shutdown.d. In a Terminal run:
Code:cd ~/Downloads/T460/Utilities/root sudo cp -a * / sudo defaults write com.apple.loginwindow LogoutHook /etc/rc.shutdown.d/80.save_nvram_plist.local
- Remove the USB and Reboot to load Windows 10 again
- Run EasyUEFI_Free.exe an follow steps listed here: http://osxarena.com/2015/10/guide-how-to-dual-boot-osx-el-capitan-and-windows10-for-hackintosh/
Note: Only "Dual Boot Setting for OSX El Capitan and Windows10" section is needed
- I've seen this option that i didn't tested: http://blog.syedgakbar.com/2014/03/manually-installing-clover-on-efi-partition/
- Now you can reboot and press F12 here you can select to boot from OS X and Clover will load.
- Some kexts must be installed in your /System/Library path:
Code:cd T460/EFI/CLOVER/kexts ./_kexts-install.command ./_post-install-network-reset.command
- Ethernet Device Installation:
Code:sudo kextload /Library/Extensions/IntelMausiEthernet.kext sleep 10 sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
- Dump native ACPI files to EFI/Clover/ACPI/origin path:
At the main Clover bootloader screen, you can press F4 and Clover will dump the native ACPI files to EFI/Clover/ACPI/origin. You can then access them after you boot OS X to disassemble them and patch. Note that some BIOS implementations reverse the function of Fn+F4 with F4, so when in doubt, press both Fn+F4 and F4. There is no feedback during or after the dump, just a slight delay as the files are written. The delay is more noticeable if they are being written to USB, as would be the case when booting from a Clover USB. - Mount your EFI partition and copy dumped files to T460/ACPI-Tables path
Code:diskutil mount /dev/disk0s1 cp -v /Volumes/SYSTEM/EFI/CLOVER/ACPI/origin/ ~/Downloads/T460/DSDT/ACPI-Tables/
- Copy iasl (https://bitbucket.org/RehabMan/acpica/downloads/iasl.zip) binary to /usr/local/bin in your OS X System partition
- Disassembly files:
Code:cd T460/DSDT/ACPI-Tables iasl -da -dl -fe refs.txt *.aml
- Install files to your EFI/CLOVER/ partition:
Code:cd T460/DSDT ./create_patched_DSDT.bash ./complie_SSDT_and_install_patched_SSDT_and_DSDT.bash
- Reboot and Enjoy !
- Spanish Keyboard fix "swap º and < keys" :
- Edit file /Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.plist
- Add these two lines (aprox at line 298):
Code:... <key>Default</key> <dict> ... <key>Custom PS2 Map</key> <array> <string>;Items must be strings in the form of scanfrom=scanto (in hex)</string> <string>e027=0;disable discrete fnkeys toggle</string> <string>e028=0;disable discrete trackpad toggle</string> <string>56=29;swap "º" and "less than" keys (e.g.: Spanish Keyboard)</string> <string>29=56;swap "º" and "less than" keys (e.g.: Spanish Keyboard)</string> </array>
- Update Kext Cache:
Code:sudo touch /System/Library/Extensions sudo kextcache -i /Volumes/OSX
- Edit file /Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.plist
Attachments
Last edited: