- Mount 10.7, 10.8 or 10.9 image (the OSX InstallESD.dmg image found within the OSX installation bundle you downloaded from Apple's app store)
- open /Volumes/*OS X Install ESD/BaseSystem.dmg
- Run Disk Utility
- select 'Mac OS X Base System' or 'OS X Base System', depending upon OS version (found at lower left of Disk Utility window)
- select restore
- select 'Mac OS X Base System' or 'OS X Base System', depending upon OS version, as source (should already be selected)
- select a partition on disk drive or usb thumb drive as destination, where partition has >= 5GB of space
- Click restore button
- Once the restore has been performed, from a terminal window:
cd /Volumes/*Base\ System\ 1 rm System/Installation/Packages cp -R /Volumes/*Install\ ESD/Packages System/Installation/PackagesWhere "/Volumes/*Base System 1/" is the name assigned to your newly restored thumb drive partition, your name may be different here. Additionally you need to install mach_kernel, the procedure for which depends upon the OS version. For OSX 10.7, OSX 10.8:
cp -R /Volumes/*Install\ ESD/mach_kernel ./For OSX 10.9, you can extract the mach_kernel from the installation package:
cd System/Installation/Packages pkgutil --expand BaseSystemBinaries.pkg x pax -0jr < x/Payload ./mach_kernel mv mach_kernel ../../.. rm -rf x
- Install current chameleon to your existing osx boot disk, or the partition you just set up above (/Volumes/*OS X Base System 1), or any other disk partition you can boot from. For chameleon, I recommend version 2254 or later (to include OSX 10.9 support). Current builds are discussed here: http://www.insanelym...howtopic=231075Download link here:http://www.insanelym...ameleon-22-svn/
On the partition you installed chameleon, you will at the very least need netkas's fakesmc Version 4.2 is here:
FakeSMC.4.2.zip 44.78KB 232 downloads from https://github.com/C...keSMC/downloads
If you're using a system with a built-in, non-usb keyboard (for example, a laptop keyboard), VoodooPS2Controller is mandatory as well. Here's the version I built for 10.6 (still works with 10.7): VoodooPS2.zip 139.69KB 556 downloads
Install fakesmc, VoodooPS2Controller in /Extra/Extensions
You will also need an smbios.plist and org.chameleon.Boot.plist in /Extra
1340 specific example versions of these plists can be found below.
At this point you should be able to boot chameleon, point it to your newly prepared lion install media, and proceed with an install. When you boot lion for the first time after installing, boot again via your new chameleon boot partition. The system should boot without the UseKernelCache=Yes option, and so chameleon will pick up your modded kexts from your existing /Extra partition. At this point you can copy over the modified kexts to /System/Library/Extensions and then add <key>UseKernelCache</key> <string>Yes</string> to your org.chameleon.Boot.plist. With UseKernelCache enabled, the system will boot faster but not pick up kexts from /Extra/Extensions.
Moving on to 1340 specific information...
For the 1340, other components you will need to complete your hackintosh configuration:
- For working battery status, LID close detection, you will need
- A modified DSDT dsdt.v8.zip 154.01KB 221 downloads Use the included dsdt-check.pl script to select which .aml file to install in /Extra (see readme.txt). If your system's address space is unusually, you may have to build your own DSDT.aml from the patched .dsl file generated by the script.
- My patch fix for AppleACPIPlatform AppleACPIPlatform.mcp79.v3.0.pkg.zip 45.72KB 145 downloads
- A battery monitoring kext, such as voodoobattery http://forum.voodoop...hp?topic=1092.0
- smbios.plist and org.chameleon.Boot.plist
329 downloads Install these in /Extra
Some notable values
- I've set the product name to MacBookPro5,5. This setting is important if you use the AGPM graphics power level injector described later on.
- I've set SMmemtype; this is the only DIMM memory attribute that is not automatically obtained from the system's SMBIOS (the memory type, speed, etc).
- You need npci=0x2000 under kernel flags to avoid losing console output during boot after the "PCI Configuration begin" message appears.
- As of 10.7, you should have a SystemId defined as the 1340 doesn't have a UUID defined in its SMBIOS and booting hangs for a minute or so without it. I recommend you customize the template value I provided with the output from uuidgen (run from a terminal window).
- PS2RestartFix allows halt&restart to work without a separate kext such as OpenHaltRestart.
- For bluetooth with HCI, I've written a driver that enables HCI mode, an installer is available here
- For working built-in audio, here is my pkg installer that takes care of all 3 parts to patching AppleHDA
261 downloads This package installer
- patches the AppleHDA binary codec ID using http://www.insanelym...-for-osx107108/
- updates the new format xml in AppleHDA's Resources directory
- installs HDAIDT in /S/L/E
- To fix the CMOS reset issue described in this thread, you must patch AppleRTC.kext. For 10.7, use the patch from post #340:
sudo perl -pi -e 's|\x75\x30\x44\x89\xf8|\xeb\x30\x44\x89\xf8|; s|\x75\x3d\x8b\x75\x08|\xeb\x3d\x8b\x75\x08|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTCFor 10.8
sudo perl -pi -e 's|\x75\x30\x89\xd8|\xeb\x30\x89\xd8|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC
- For 10.9
sudo perl -pi -e 's|\x75\x2e\x0f\xb6|\xeb\x2e\x0f\xb6|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC
- For graphics power throttling (saves roughly 6 watts of power when GPU is idle), use my injector (based upon oleg/king's work): 10.7 version:
304 downloads 10.8 version:
As of 10.8.3, I don't believe 9400m_gstate_inject works at all (screen goes black and system locks up at the point where the nvidia graphics starts up)