Sunday, 3 April 2011

OS X Snow Leopard Install using Retail DVD For P55 Motherboards and Intel Core i5 and i7

MAC OS X SNOW LEOPARD


NOTE : This method is not the current method of installing Mac OS X ,
the latest and the best way to install Mac OS X is the RazorBeast + RazorBoot method which i will be posting soon...

The following is not meant to be a definitive method for installing OS X on PC hardware. There are many methods, but this one allows you to install OS X on your P55 computer build using the Snow Leopard retail DVD. Also, it works every time, unlike other methods I have tried. I tailored the install method specifically for my computer, a Gigabyte P55M-UD2 motherboard with an Intel Core i5 750 processor, 4gb of G.Skill Ripjaws 1600 RAM and a Sparkle nVidia GeForce 9400 GT 1GB graphics card. Most likely the method will work for any P55 build, but you’ll have to modify which kexts you use for graphics, etc…

At the end of this guide, you will have a fully stable and functional P55 Hackintosh running OS X Snow Leopard 10.6.7 running the 64-bit Darwin Kernel. All included kexts are 64-bit ready. The only thing that will not be enabled by default is system sleep. To enable sleep after your install, follow this guide: Advanced DSDT Fixes: Enable Sleep on P55 Motherboards

NOTE: This guide assumes you have access to a working OS X install- the fastest and easiest way to get the job done.

What you need:
    •    A Mac or Working Hackintosh running OS X Leopard or Snow Leopard
    •    If using a Mac an external hard drive enclosure or adapter
    •    A Snow Leopard Mac OS X Install DVD
    •    A USB stick 8gb or larger, or a USB hard drive
    •    Patience and humility- it may not work out perfectly the first time, but you will learn from your mistakes, and with enough tenacity the promised land can be reached.
STEP 1: PREPARING THE USB DRIVE
In this step, we must prepare a USB Drive to act as an installer for OS X. You may have installed an operating system before using a DVD. This is similar to installing using a DVD, but instead of the computer starting up and booting the DVD, it will start up and boot directly into an external USB drive with your modified OS X Installer DVD copied onto it.
    1.    Boot into your existing OS X Installation.
    2.    Insert your USB drive that you intend to use for booting the installer.
    3.    Open Applications/Utilities/Disk Utility.
    4.    Highlight your USB drive in the left column.
    5.    Click the Partition Tab.
    6.    Click Volume Scheme- choose 1 Partition.
    7.    Click Options…
    8.    Select GUID Partition Table. Click OK.
    9.    In the Name: field type: InstallDrive
    10.    In Format: field select Mac OS Extended (Case Sensitive, Journaled)
    11.    Click Apply, then click Partition.
    12.    Right click on InstallDrive in Finder or Desktop. Choose Get Info.
    13.    In the lower right corner, click the lock icon open, type your password and un-checkIgnore Ownership on this Volume checkbox. Click the lock icon closed.
    14.    Insert Mac OS X Install DVD or mount Mac OS X Install DVD.dmg
    15.    Switch back to Disk Utility.
    16.    Highlight InstallDrive in the left column.
    17.    Click Restore.
    18.    Right click on Mac OS X Install DVD and choose Set as Source.
    19.    Right click on InstallDrive and choose Set as Destination.
    20.    Un-check Erase Destination checkbox.
    21.    Click Restore, click Restore again, and then type your password.
The DVD will now copy onto your USB drive. It should take less than 10 minutes to complete depending on hard drive speed, DVD speed, etc...
   


 
STEP 2: INSTALL CHAMELEON BOOTLOADER TO USB DRIVE
Chameleon is a bootloader. It is open-source software that you load onto your hard drive that loads first and enables your computer to recognize and boot into an OS X Startup Disk or USB Installer. Think of it as a middle ground between your BIOS and your Operating System. In this step you will install Chameleon to your USB Installer drive.
    1.    Download Razormacx86-SnowLeopard.zip
    2.    Open and place Razormacx86-SnowLeopard folder on the desktop.
    3.    Open Apps folder
    4.    Open PC EFI 10.1
    5.    Select InstallDrive and click Continue.
    6.    Click Install, and then type your password.

STEP 3: COPY NECESSARY FILES TO USB INSTALLER DRIVE
In this step, you will copy the boot file, DSDT.aml, and Extra folder from tonymacx86-snowleopard to Snow Leopard. You will also delete the 10.6.0 (10.0.0) Vanilla kernel and drop in the 10.6.0 (10.0.0) Qoopz Voodoo kernel. This is necessary because in OS X Snow Leopard 10.6.0-10.6.1, P55 based systems are not supported- the Qoopz kernel allows P55 support. The boot file is a modified version of Chameleon 2.0 RC3 (PC EFI v10.5!) which includes support for P55 motherboards and i5/i7 1156 processors. If you don’t install this file, the system clock will run too fast causing system-wide problems. The DSDT.aml is a modified version of the instructions that the computer sends to the Operating System which helps the OS recognize devices properly. The one included has fixes for CMOS reset, USB, and HD Audio.
The Extra folder contains com.apple.boot.plist, Extensions Folder, Extensions.mkext, and smbios.plist. apple.com.boot plist is a file which allows you to give Chameleon commands, select alternate kernels, give the system boot commands, etc… The smbios.plist contains information that identifies your computer to OS X. The Extensions Folder contains kexts (kernel extensions) that by default reside in System/Library/Extensions. Extensions.mkext is a cache of all of the kexts in your Extensions folder. At boot, the system loads the cache files located in /Extra/Extensions and /System/Library/Extensions. (/Extra/Extensions.mkext and /System/Library/Extensions.mkext) respectively.
    1.    Open Applications/Utilities/Terminal
    2.    Type: sudo rm /Volumes/InstallDrive/mach_kernel and type your password. (this deletes the stock Kernel)
    3.    Type: sudo rm /Volumes/InstallDrive/boot and type your password. (this deletes the boot file installed from PC EFI 10.1)
    4.    Close Terminal.
    5.    Set up Windows as shown in the photo below.
    6.    Click and drag boot, DSDT.aml, and Extra from Razormacx86-SnowLeopard to InstallDrive. (boot will become invisible when moved to Snow Leopard)
    7.    Open Qoopz Voodoo kernel for 10.6.0 & 10.6.1 folder.
    8.    Drag mach_kernel to InstallDrive.




STEP 4: PREPARE SNOW LEOPARD HARD DRIVE
Now you need to format your destination hard drive (Snow Leopard) to accept the installation by your InstallDrive. I strongly recommend using a SATA drive.
    1.    Open Applications/Utilities/Disk Utility.
    2.    Highlight the hard drive you want to use as the destination for your actual Snow Leopard Install in the left column.
    3.    Click the Partition Tab.
    4.    Click Volume Scheme- choose 1 Partition.
    5.    Click Options…
    6.    Select GUID Partition Table. Click OK.
    7.    In the Name: field type: Snow Leopard
    8.    In Format: field select Mac OS Extended (Journaled).
    9.    Click Apply, then click Partition.
    10.    Close Disk Utility.
    11.    Right click on Snow Leopard in Finder or Desktop. Choose Get Info.
    12.    In the lower right corner, click the lock icon open, type your password and un-checkIgnore Ownership on this Volume checkbox. Click the lock icon closed.
    13.    Shut down computer.
    14.    Remove all hard drives except InstallDrive and Snow Leopard.


STEP 5: CHANGE BIOS SETTINGS
In order for your computer to boot directly into the external USB OS X Installer that we just created, you must change your BIOS settings in CMOS Setup Utility. The BIOS is set up by default to load any SATA or IDE drives before USB drives. Now is a good time to load the Optimized Defaults in the BIOS if you haven’t already, and then make the necessary changes as shown in the pictures.
    1.    Turn on computer, and tap Delete key repeatedly- wait a few seconds for the computer to load CMOS Setup Utility.
    2.    Click Load Optimized Defaults and accept.
    3.    Click Advanced BIOS Features.
    4.    Click Hard Drive Priority.
    5.    Move USB Drive to top of list by highlighting it and hitting PAGE UP.
    6.    Press Escape to get back to Menu.
    7.    Match your settings to the pictures below.
    8.    Click Save & Exit Setup and accept.









STEP 6: BOOT FROM USB DRIVE AND INSTALL OS X
Upon this restart, the USB Installer will boot using Chameleon boot loader. You should see the PC EFI v10.5 logo, the InstallerDrive and a blue countdown ribbon. It will boot on it’s own- you don’t need to do anything. The com.apple.boot.plist in /Extra contains the kernel flag –v which allows you to watch as the system loads the files that run OS X. If you want to view an apple logo with a spinning wheel, you can remove it later. It is easier to see what’s wrong if you watch the boot sequence.
    1.    Follow the steps of the OS X Installer to install OS X to Snow Leopard.
    2.    After the installation is finished, don’t restart. Turn the power button off without shutting down.
    3.    Remove USB InstallDrive and turn on computer.
STEP 6.5: ALTERNATE METHOD (OPTIONAL)If you used a Mac laptop & external enclosure to prepare the InstallDrive, and do not have an existing OS X install on your P55 machine, you may find the following alternate method easier. Instead of booting into an existing install to copy the mach_kernel, you can use the OS X Installer's Terminal to copy the kernel to Snow Leopard.
    1.    Boot back into InstallDrive with Snow Leopard attached.
    2.    Go to Utilities/Terminal
    3.    Type: rm /Volumes/Snow\ Leopard/mach_kernel
    4.    Type: cp /mach_kernel /Volumes/Snow\ Leopard/
    5.    Reboot
    6.    Boot back into InstallDrive, then pause Chameleon countdown and select Snow Leopard
    7.    Proceed to STEP 9, then install Chameleon, /Extra, boot, & DSDT.aml following STEP 7 & 8 and the rest of the guide directly from Snow Leopard installation.


STEP 7: INSTALL CHAMELEON TO SNOW LEOPARD DRIVE
After installing, the computer will restart. Boot into your working install to replace files and install Chameleon to your Snow Leopard hard drive. This is the exact thing you did to the USB Installer drive earlier. In this step you will install Chameleon to your Snow Leopard hard drive.
    1.    Boot back into your existing OS X Installation.
    2.    Open Apps folder
    3.    Open PC EFI 10.1
    4.    Click Continue, then Change Install Location…
    5.    Select Snow Leopard and click Continue.
    6.    Click Install, and then type your password.


STEP 8: COPY NECESSARY FILES TO SNOW LEOPARD DRIVE
In this step, you will copy the boot file, DSDT.aml, and Extra folder from tonymacx86-snowleopard to Snow Leopard. You will also delete the 10.6.0 (10.0.0) Vanilla kernel and drop in the 10.6.0 (10.0.0) Qoopz kernel.
    1.    Open Applications/Utilities/Terminal
    2.    Type: sudo rm /Volumes/Snow Leopard/mach_kernel and type your password. (this deletes the stock Kernel)
    3.    Close Terminal.
    4.    Set up Windows as shown in the photo.
    5.    In Snow Leopard, drag Extra to trash. Type your password.
    6.    Click and drag boot, DSDT.aml, and Extra from tonymacx86-snowleopard to Snow Leopard.
    7.    Open Qoopz Voodoo kernel for 10.6.0 & 10.6.1 folder
    8.    Drag mach_kernel to Snow Leopard




STEP 9: FIRST BOOT
The first boot of your new Snow Leopard install will show you a video and then lead you through a standard OS X setup routine for a new Mac.
    1.    Complete the OS X setup routine.
    2.    When you finally get to the desktop, restart the computer. This helps set initial boot caches.


STEP 10: INSTALL ADDITIONAL KEXTS TO SYSTEM/LIBRARY/EXTENSIONS
There are a few kexts that you can’t use in /Extra/Extensions. These include Ethernet kexts. Also, you’ll need to create new cache files any time you remove or replace kexts. There are a few invaluable programs to allow you to do these tasks effortlessly. They are Kext Utility and Kext Helper b7. You can do all of the things in Terminal, but these apps make it easy and foolproof.
Open tonymacx86-snowleopard Apps folder.
    1.    Drag Kext Utility and Kext Helper b7 to your Applications folder.
    2.    Open Kext Helper b7.
    3.    Drag RealtekR1000SL.kext (or Intel82566MM.kext if you have an Intel Motherboard) from System – Library – Extensions into Kext Helper b7.
    4.    Type your password and click EASY INSTALL.
    5.    Close Kext Helper b7.
    6.    Open Snow Leopard drive.
    7.    Drag /Extra/Extensions folder onto Kext Utility application. (This will repair permissions on the folder, backup your cache file, and replace cache file with an updated one.)
    8.    Drag /System/Library/Extensions folder onto Kext Utility application.
    9.    Open Applications/Utilities/Disk Utility
    10.    Highlight Snow Leopard in the left column.
    11.    Click Repair Permissions.
    12.    Restart computer.


 
Get the latest updates .
                                                                     Automatically




STEP 11: UPDATE TO 10.6.7
Upon the release of Mac OS X Snow Leopard 10.6.7, and the 27" Intel Core i5 and i7 iMacs, OS X Snow Leopard supports P55 based systems and also the Sandy Bridge CPUs. This means that you can update without worrying about putting the Qoopz kernel back in the installer itself puts back the Darwin Kernel which is more stable than Qoopz kernel but putting the Qoopz kernel will boot the system normally. The update will install the 10.7.1 Darwin Kernel (in iMac's and Mac Pro's) and 10.7.3 in Sandy Bridge in early MacBook Pro update , as well as a host of security and stability fixes. Details are available on Apple’s website.
    1.    Download the Mac OS X 10.6.7 Combo Update here: http://support.apple.com/downloads/DL1361/en_US/MacOSXUpdCombo10.6.7.dmg
    2.    Drag your /System/Library/Extensions folder to the desktop. You may need some of the 10.6.0 Extensions later. It’s always good to have a backup before any ‘point’ system update.
    3.    Right click and rename the folder 10.6.0 Extensions.
    4.    Mount MacOSXUpdCombo10.6.7.dmg
    5.    Install MacOSXUpdCombo10.6.7.pkg


OPTIONAL INSTALLS:
The following step is optional- you may now be finished!


STEP 12: ENABLE QUARTZ EXTREME AND CORE IMAGE (QE/CI)
This step is necessary only if you don't have the full power of your graphics card already. By default, the com.apple.boot.plist has GraphicsEnabler=Yes selected, and should work for most cards. You can test if you have QE/CI enabled by pressing F12 (Dashboard) and trying to add a widget. If you see ripples, you have QE/CI enabled.
This step allows OS X to fully recognize and enable the power of your graphics card, like a driver. If you have an nVidia graphics card, you can also use NVEnabler 64.kext which is located on the tonymacx86-snowleopard folder in System-Library-Extensions. This kext is known to solve issues with TV-out.
    1.    Open Razormacx86-SnowLeopard.
    2.    Drag NVEnabler 64.kext from System – Library – Extensions into Kext Helper b7.
    3.    Type your password and click EASY INSTALL.
    4.    Close Kext Helper b7.
    5.    Open Snow Leopard drive.
    6.    Drag /Extra/Extensions folder onto Kext Utility application.
    7.    Drag /System/Library/Extensions folder onto Kext Utility application.
    8.    Open Extra folder
    9.    Drag com.apple.boot.plist to desktop.
    10.    Double click to open in TextEdit
    11.    Remove the GraphicsEnabler=yes line.
    12.    Drag the edited com.apple.boot.plist back to Extra folder.
    13.    Open Applications/Utilities/Disk Utility
    14.    Highlight Snow Leopard in the left column.
    15.    Click Repair Permissions.
    16.    Restart computer.

YOU’RE DONE!
One final note. This is how I got my system working. If I find a way without replacing any old kexts, I’ll certainly let you know. I’m working on enabling sleep for this motherboard, and I will post a method if I come across a solution.

If you’re having issues with any component, most likely graphics if you have an ATI card, know that there are many ways to enable graphics. Most likely there is a solution that can be found. I may be able to help you if you post your issue in the comments to this post. Thanks for reading and I hope it worked for you! Special thanks goes out to the entire OSx86 Hackintosh community! This guide was cobbled together from various sources- I did not invent this method, and do not wish to take any credit beyond putting it into plain English. ;)

-Razormacx86

PS: If you want to enable the Apple Boot Screen on startup, read this post:
Then browse through the Razormacx86 Blog and in that on the right columb in the content table checkout for the Apple Boot Screen Blog!...

EDIT #1 (2009-11-17): Razormacx86-SnowLeopard.zip now contains a modified version of PC EFI v10.5 for P55 Boards! This means ATI users can now use GraphicsEnabler=Yes flag in com.apple.boot.plist. I updated the com.apple.boot.plist to include this flag by default. Therefore, you may not have to use NVEnabler 64.kext anymore either. I made a few changes to the guide accordingly. Unfortunately I don't have an ATI card to test. I believe both nVidia and ATI cards will now be fully enabled by default by using this guide. For further ATI solutions, check out this post on netkas' blog.

EDIT #2 (2009-12-07): If you're having trouble booting, it may be the 10.6.0 Qoopz kernel. Replace each reference of the Qoopz kernel in the above guide with the Vanilla 10.6.2 kernel. Also, I added an optional STEP 6.5 specifically for users who do not have an existing Hackintosh install on their P55. After installation, instead of booting into an existing install to copy the mach_kernel, you can use the OS X Installer's Terminal to copy the kernel to Snow Leopard.


-Razormacx86



No comments:

Post a Comment