Downloads

InsanelyMac

Everything posted by Kogen Mantis

Thanks to Clover EFI Bootloader I was able to achieve almost perfect HacBook Pro from my Lenovo T420
This guide is work in progress and I’ll try to update it as often as I can outdated! For more updated guide head to tluck's post #481 (thanks tluck for taking over)
Why UEFI Only? Faster boot time, better hardware detection, native Mac OS X Installation process and Auto create Recovery HD, working iCloud and iMessage to name a few. But in general you will achieve almost perfect Macbook Pro clone that will most likely survive all future System updates. Note: I’ll be focusing on Mountain Lion but I guess Lion would work equally good. Lets start by preparing Mac OS X install media. You will need: - Working Mac OS X 10.6 or later (Hackintosh, Virtual machine or real Mac) - 8GB+ USB pen-drive - Legal copy of Mountain Lion install app - and an app called Lion Disk Maker - my custom Clover Package: Clover_v2_r1625k0.pkg.zip Prepare Mountain Lion install media using Lion DiskMaker.
Making install media bootable on your ThinkPad Run my custom Clover Package and change the install destination to the Mountain Lion install media you’ve just created using Lion DiskMaker. Generaly you don't have to worry about anything else it is all customized to work best on all ThinkPads.
Note (optional): At this point you can use another FAT32 formatted pen-drive to install Clover on to it. This pen-drive needs to be capable of storing at least 25MB+ of data. System installation Insert prepared OS X Mountain Lion Install Disk - 10.8 in your ThinkPad and set to boot in UEFI Only mode. And wait for the boot loader. You should be presented with screen like this:
Now start the installation process just like you would on a normal Mac. Partition your drive with GUID table and install. Adding Extra drivers using myHack You now should be running vanilla Mac OS X 10.8. Before you start upgrading and instaling software now is a good time to add missing drivers and install them in a clean and proper manner using myHack. 1. Download Extra Folder: Extra.zip 2. Download myHack and place it in your Application folder 3. Run myHack and choose myFix. When asked about Extra folder choose "Use My Own" and point to downloaded Extra folder from step 1. Reboot and check if everything is working fine. By everything, beside AppleACPIPlatform.kext ver 1.3.5, I mean Sound and Battery meter cause these are the only kexts that are in Extra/Extentions
Making your custom configuration using OEM folder ... under construction... Booting Clover EFI Bootloader from system drive It's time to get rid of the osx pen-drive you've been booting all the time and install my custom Clover to your main disk and boot directly from your hard drive EFI partition. This step is identical to the "Making install media bootable on your ThinkPad" but this time you will be using your main drive. Just make sure your disk drive is selected when installing. Note: Now You can customize your installation. You have the choice to install Clover Preference Panel and Optional RC scripts.
Remove pen-drive and reboot. If all went well you should be booting from your hard drives EFI partition now. Good luck! Software worth mentioning Clover EFI bootloader (thread) - (source code) - (changelog) - (wiki) CloverGrower (post) - (source code) HWMonitor + HWSensors (thread) - (source code) DSDT Editor (thread) DarwinDumper (thread) ... Thanks and credits @Slice, @dmazar and all Clover thread members, @joshhh and all T510 thread members, @gothic860 and all W520 thread members, @Manwe150 and all T420 thread members .…. to be continued. Update 2013-01-20: Flashed latest UEFI Bios version 1.43 + whitelist and started fresh DSDT patching Update 2013-01-30: Uploaded new LenovoEFI_Pack_Beta2.zip (from now on I'll be attaching latest version to this thread). I've started using the EFI/OEM/4180A32 folder specific for my T420 model and added minimal config in the root that should work for everyone else (testers needed). My latest DSDT.aml in EFI/OEM/4180A32/ACPI/patched and updated ThinkPad theme is included. Update 2013-05-15: Updated the post to reflect some changes and progress made in this topic. Using custom Clover r1625 that has all the stuff Lenovo UEFI user needs. This one is enabled to install to ESP by default with ThinkPad Theme and RC scripts and example EFI/CLOVER/OEM/4180A32 folder.

Today we had some fun with @k3nny about the OSX Mavericks icon in ThinkPad theme and we came up with this. (just in case you were wondering who is making the Mavericks)
I think this Mavericks icon will be the official 10.9 Developer Preview icon in ThinkPad theme
Here is the file: os_mav.icons.zip

@joshhh - Thanks for suggestions - I'll try to find some spare time and dig in a bit more into T430 + OSX. Please share your W530 kexts, dsdt and config.plist.
Ohh and You are right about the USB3 ports - I just didn't have time to put anything eles than my USB3 pen-drive. It seems that USB2 devices are not deferred to EHC controller thus no other driver takes over them. Use GenericUSBXHCI driver from this thread. - I wonder if we could fix it in DSDT?

Try again using my older custom package from post #117 and report back.
BTW: I guess I'll be switching from T420 to T430 soon. Right now I have both machines to decide witch one to sell. The T430 is a stronger model (i7) with optimus graphic card that I've always wanted to play with in OSX. To bad I still have very little time lately to do some serious hackintoshing, but I can report this about the new T430:
- I can boot successfully with older clover r1229 (I didn't had the time to investigate why Clover newer releases wont boot)
- USB3 works excellent OOB (booting from 32GB USB3 pen-driver - super fast)
- the NVIDIA NVS 5400M - works with graphic enabler (I have black screen with HD4000)
- too bad the whitelist bios can't be flashed to this device (no WiFI swapping for broadcome model) and I don't want to solder the eprom and flash it outside using phoenix flasher. - Can you guys suggest USB wifi that works OOB?
- T430 boots clover in full resolution (1600x900 and looks gorgeous) so I guess I'll update the ThinkPad theme background for high res in free time

@Tetonne - Here is how to make it work again.
1. Clean up all interfaces in System Preferences > Network
2. sudo mv /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist /System/
3. reboot and enter ThinkPad Setup > Disable Wireless Ethernet
4. Add Ethernet interface in System Preferences > Network and check if it is attached to en0.
5. Check your 17 digit serial number in your Clover OEM config.plist (you can change it just in case)
6. reboot and enable Wireless Ethernet in ThinkPad Setup
7. Now add Wi-Fi and check if it is on en1
8. login to AppStore than iCloud, than iMessage.
9. Be Happy

BTW: I'm happy to announce that ThinkPad Theme (from this thread) is available in official Clover build from r1719 and up. Also forgot to mention that the theme has been updated and split in two read post #9. So from now on updating Clover will be a more pleasurable experience for us

@sonic - The seccond pen-drive is an option. Uncheck UEFI install if installing on FAT32 usb. In case of preparing the osx Installer try partitioning the pen-drive again and setting GUID partition table. (Not mbr or apple). Also you can try renameing it to something short, like: osxinstall. The reason for using seccond fat32 formated pendrive is for ease of useing it on another computer in case of failure you can always change your config files or delete conflicting drivers etc.
.

@tluck - hmm just IRQ1 you say. Strange. Have you cleaned and rebuild caches after that? When making changes in DSDT always test it against fresh/stock settings. I gues cleaning nvram would also be a good idea.

@tluck - yes very nice indeed!
I saw you are using patched AppleIntelSNBGraphicsFB.kext and wanted to suggest you patching it via Clover but I see we have came up in a great understanding in the Clover subject.
Now that we have custom kexts patching going can I suggest patching AppleHDA.kext using clover and adding custom rc shoutdown script for replacing the:
- AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
- layout12.xml.zlib
- Platforms.xml.zlib
I'm very busy lately with my job and familly. That is why I'm going to stay in the shadow for some time. Keep up the good work tluck - You'r on fire!

@360game360 - bluetooth works OOB you just need to activate it using Linux or Windows. I have used latest ubuntu for that.
As for iMessage make sure your ethernet is en0 also try adding MLB full (17 digit) number in RtVariables to config.plist
@all - slightly updated first post.

@tluck - Yes I was thinking about the same thing. Now that Clover is doing DualLink patching for us we don't need it in dsdt.aml. I'll change that in the next release.
BTW: how should we call the Installer?
- ThinkPad EFI Pack
- Clover for ThinkPads
- Clover ThinkPad Edition
- other? (add your suggestions)

@honeywell - we won't support software you are mentioning so I suggest you use Lion DiskMaker (it's nice and easy - just like on real mac). I'll update first post soon to reflect changes and interesting info found in this thread. But in general the steps you need to take is:
1. Create install media using Lion DiskMaker
2. Use my custom Clover pkg to install Clover on install media
3. Boot from prepared pen-drive and install OS X
4. Repeat step 2 this time pointing to your hard drive
5. Start making your CLOVER/OEM/<PRODUCTMODEL> based on 4180A32
6. Install missing kexts using myHack (Sound, Battery, ACPI-1.3.5 and others if you need them)
@tluck - actually the new installer includes your dsdt and ssdt. I didn't have time to touch my dsdt and because yours works for others I've decided to use it

@ag6952563 - If you are using Clover r1597 in old folder structure, this can only mean that developers made Clover backwards compatible - interesting.
Anyways if you plan to still use chameleon - keep your kexts in /S/L/E (cause those injected by Clover won't be loaded). But I suggest you to move all your custom kexts from /S/L/E to /E/E and use myHack to deal with installing custom kexts, rebuilding system and kernel caches, fixing permissions etc.
I'm guessing that tluck is using "CLOVER/kexts/10.8" folder to share his custom kexts with others but he still have them installed in /S/L/E, cause not all kexts can be injected by Clover (and work). As for default partition for booting you can set it just like on normal mac using System preferences > Startup disk but for this to work nvram.plist file is needed cause we are using EmuVariableUefi-64.efi driver for settings storage (just install clover rc-scripts).
I'll soon finish my latest Clover custom build that will install config files compatible with our lenovos, themes, drivers, rc-scripts, etc. Stay tuned.
@all - I was thinking about adding custom OEM folders. For those that have HD (not HD+) displays that need DualLink = 0 or t420s series that have USB3 or maybe other models like x220, t520 etc. I just need people with supported hardware to step in and share details about their setup (what is different from t420, what needs to be added/removed). We could make one Combo EFI package that will work for all UEFI enabled ThinkPads.
UPDATE: I have just finished my custom build mentioned above (no OEM folders yet -actualy there is one for 4180A32 that includes dsdt and ssdt from tluck). This one is based on Clover r1625 and has all the stuff Lenovo UEFI user needs. This one is enabled to install to ESP by default with ThinkPad Theme and RC scripts. User has choice to install Clover Preference PaneI and Optional RC scripts. I have modified touchpad driver default pseudo-multigestures actions as follows:
4 fingers down - shows desktop (F11)
4 fingers up - shows mission control (Ctrl + Up)
4 fingers right - shows widgets (Ctr + Left)
4 fingers left - shows fullscrean apps (Ctrl + Right)
Again this one is for HD+ LCD by default - so HD (low res.) users change DualLink from 1 to 0 in config.plist
Clover_v2_r1625k0.pkg.zip

How did you install and what ver of Clover?
Try booting Clover from pen-drive first. The best option for you would be using tluck's OEM folder (just rename his model to yours) and you should be golden.

In case you ever wondered if you can track your Lenovo using Find my Mac - Yes you can! You can also lock it just like I did - but in that case - prepare yourself for some trouble.
I have locked my Lenovo via icloud.com using chrome. I was asked to enter 4 digit PIN code in case of unlocking. All went smooth in one minute Lenovo restarted and didn't boot, probably because Clover can't handle firmware unlock. Next I've tried to boot recovery (disabling vt-d first) and recovery partition booted. As always I've overrided the "No mouse & no keyboard notification screen" by presing Alt + space + left mouse few times and to my surprise this screen appeared.
There was no way to unlock it. The system was expecting 6 digit PIN not 4! Trying to reinstall the system by booting from my Install pen-drive showed up thesame screen. I had to wipe all the disk data using Linux to be able to run OS X Installer without the system lock screen.
I must say this was fun to look at on my Lenovo
Right now I'm doing a fresh install, this time on a 32GB pen-drive to try new EFIPack on my friends T430.

@Deridjian - try my custom Clover r1229 package to make a bootable USB pen-drive. Just point the installer on the FAT32 USB media (you don't have to change any settings) and try booting OS X from it.
Clover_v2_r1229k0.zip

@rayne - I'm afraid that you are doing it the other way round. You should install OS X first and than use free space to install windows. (I'm not using windows - so anyone is welcomed to correct me in this).
Just use installers Disk Utiliti to partition the drive in GUID mode and format OS X partition to HFS+.
BTW: What's your X230 type number?

Can you share your DarwinDump - I'll try to hunt it down.
As for USBmouse you don't need it - when booting from UEFI Mode the driver is already there in Lenovos UEFI Firmware so is the PS2 mouse driver. So again the whole "drivers64" directory is not needed in our case.
Just try booting without it - to see that there is no difference
BTW: I have just found out that when Injecting patched AppleHDA.kext from Clover and loading it in dummy myHack.kext there is no need to remove the original AppleHDA driver from /S/L/E. Sound and mic works excellent. This is good for peace of mind in case of future updates.
EDIT: I have just tested it against latest 10.8.4 beta build (12E36) and almost all worked great! Sound works and everything seems to work as it should. Spoke to soon. Microphone is gone and system can't rebuild caches thus trying to rebuild it every boot and fails. So the method of including kext's from Clover and in myHack dummy kext is acceptable but every time you update your system you must either delete/move conflicting kexts from /S/L/E or update your patched kexts to the same version the system is using. Or do nothing if you can live without microphone and kernel caches