[GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Anything from How to burn a dvd correctly, to fixing your bathroom sink

Moderator: mac-mini

[GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby BrazilMAC on Thu Oct 25, 2007 2:01 pm

INTEL SSE3 ONLY! New Kernel for SSE2 and AMD is floating around..You just need to look

GUIDE FOR AMD: viewtopic.php?f=16&t=2135

Complete Guide on How to Patch your 9A581 (GM) DVD to Work on a HackinTosh (UPDATED 31th of OCTOBER) - Time Machine Fix Included

FILES FOR THIS GUIDE:
http://files-upload.com/files/591525/Br ... -Patch.zip
http://www.megaupload.com/?d=DKBGAE3J
http://rapidshare.com/files/66668407/Br ... h.zip.html
http://www.mediafire.com/?61fyrffyobm
Updated on 31st October 19:00PM GMT


Thanks to a lot of people in the forums and IRC that made this happen! (SPECIALLY TEMIS, YOU RULE MAN!!!)This is a guide to help you all in getting your Leopard Unpatched DVD to run on your hack.

First, I just want to let you know that depending on your configuration, you may need some files that are not included here (meaning, kexts). But I will try to help the best I can to get you going. Don’t give up!

After compiling your Patched DVD, you may want to burn it to a DVD-RW or Just setup a partition to load the install from. I will guide you in both situations. Pick the method that suits you best.

First, the things you will need:

1 – The 9a581 GM DVD image
2 – the zip file containing all the files needed for this guide
3 – Blank DVD-RW or a spare partition

Ok, first of all, make sure that your original DVD images is alright. Make sure after you download, you check to see if it is not corrupt.

Also, whenever you see a command between quotes in this guide, type them on terminal without the quotes!

· Place the image on your desktop. It should be named osx-leopard105.dmg
· Unzip the zip file on your desktop; PLACE ALL THE CONTENTS ON YOUR DESKTOP (2 PATCH FILES AND 3 FOLDERS)
· Now lets open the patch file. Double click the 9a581-patch.sh file in your desktop. This should open it in text edit. If not, just right click it and select open with->textedit
· Now, look for the line where it says: DMG="/Users/XXX/Desktop/osx-leopard105.dmg". Make sure you change XXX with your username. This path points to the GM image located on your desktop! Save and close the file.
· Now, open up a terminal window; just type terminal in spotlight and load terminal from there;
· On your terminal window, do a sudo –s command and enter your password.
· Now Type “cd desktop" in the terminal window and hit enter.
· Now type ./9a581-patch.sh THE PATCH WILL NOW EXECUTE! Be patient, go grab some coffee or kiss your wife. It will take a bit of time.
· When the patch is done, you will see a Leo_Patched_DVD.iso image file inside the 9a581-patch folder. The size should be 4,698,669,056 bytes. If it is a bit more, dont worry. This is the image we will either burn to a DVD-RW or restore it to a partition. More ahead…

NOTE: PREBINDING ERRORS ARE ALRIGHT IF YOU GET THEM WITH THE SCRIPT


INSTALLATION METHOD 1 – Burn the Image

Now that we have our patched image, Leo_Patched_DVD.iso, lets burn it to a DVD-RW (I chose a DVD-RW since if you screw up, you can just erase it)

* If you are a Windows user, I recommend ImgBurn (http://www.imgburn.com/) to burn your .iso

· Open up disk utility;
· Make sure that your DVD-RW is on the drive; Click the drive on the left column in disk utility; now on your right side of the window, select erase. This will blank out the media (make sure you select the DVD drive, not another partition on your system!!)
· After that, Click Burn on the top left corner; browse to the 9a581-patch folder and select the Leo_Patched_DVD.iso. This will now burn it to the DVD. Wait a bit, kiss your wife again or get some more Brazilian coffee…
· After it is done (make sure you let disk utility verify your image), you will now have a fresh 9a581 patched DVD (it includes the new patched kernel as well,I didn’t tell you that huh?)

INSTALLATION METHOD 2 - RESTORE Leo_Patched_DVD.iso TO A PARTITION

Some people prefer using a spare partition to do the install instead of a DVD. That is quick install option if you want to test out the process without the long waits of burning a dvd, loading, etc… Just remember, the process below is to setup a partition for the installation files, not the actual leopard installation!! Well here it is:

· First, you need a partition somewhere. I recommend having a second hard disk since you can just reformat after you are done installing. Use Disk utility to partition the drive. It should be MAC OSX Journaled format. Also, it needs to be MBR. Partition and format (Make sure the Volume is named “Leopard”)
· Lets flag the partition and make it bootable.

Somehow, The Leopard Installation process does no make the partition bootable. You need to do this yourself (working on a fix). Before you run the steps below, make sure you copy the files located in files/i386 (from the pack) to /usr/standalone/i386/ on your tiger disk.

-----------------------A NOTE ABOUT THIS SECTION:---------------------------------------

Before you start this section: Kali (The Great!)has released a CD that will simplify the MAKE IT BOOTABLE process:

http://www.tiny.cc/TJSym (Edit: GreenD is now offline. R.I.P)

I would recommend using it for those that are new to this. I you use the CD, just jump to the next section


Many have reported a better "success rate"( If I can call it that way) when applying the commands below from the terminal window when booting from the DVD. What I mean is, Boot the DVD and when the welcome window shows up, run the terminal from the Utilities menu. also, the steps below will work either BEFORE or AFTER the Install.

· Open up terminal. This is what you do (red text is what terminal will show after the commands you enter):

sudo fdisk -e /dev/rdiskX ( replace X and x with the disk/partition you will restore the image to)
fdisk: 1> update
Machine code updated.
fdisk:*1> f 1
Partition 1 marked active.
fdisk:*1> w
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
Writing MBR at offset 0.
fdisk: 1> q

Your partition is now active!

MAKING IT BOOTABLE

*Note: If you are trying this with the USB disk method, place the startupfiletool, boot and boot1h files in your USB disk. When running the commands add a "./" to it

ie: ./startupfiletool -v /dev/rdisk1s1


· First, Lets Unmount the disk: In terminal type: diskutil umount diskXsx
· Ok, now lets put the file “boot1h” in the beginning of the partition: In terminal, browse to the i386 folder inside the 9a581-patch folder. Then type this:
sudo dd if=boot1h of=/dev/rdiskXsx bs=512 count=1
· Now, lets run the startup tool to embed the boot code: (Place startuptool in your usr/sbin folder, on your Tiger Disk if installing from tiger;otherwise, see above)
sudo startupfiletool -v /dev/rdiskXsx boot
· And last, lets give the pope’s blessing to the partition:
sudo bless -device /dev/diskXsx -setBoot –verbose

Now, mount and bless the mount:
· diskutil mount /diskXsx
· bless -mount /Volumes/YOUR_VOLUME_NAME -setBoot -verbose
(Volume name is prob Leopard)

The partition is now bootable. The bless command wont give you any confirmation. It will just give you a "args:" line followed by your command.

-------------------------------------------------------------------------------------------------------

Now, to restore the Leo_Patched_DVD.iso to the partition:
· Open up Disk utility; Select Restore;
· Drag the Leo_Patched_DVD.dmg to the Source textbox and then Drag the Destination partition (the one you partitioned above) to the destination text box (this is on the right hand side in disk utility). Hit Restore. Wait a bit and the restore process is done!

Well done…now you have either a patched DVD or a “patched” partition containing the install. This is what we called “Pre-installation process. Let’s go now for the “Post-Installation” process…
Last edited by BrazilMAC on Fri Nov 16, 2007 1:03 pm, edited 35 times in total.
Asus P5W DH Deluxe
Intel Core Duo E4300 OC'd to 3.38GHZ
2GB RAM OZC 1066MHZ
2 500GB SEAGATE SATA
1 External 500GB LACIE
Quaddro FX5500 512MB
White/Silver Antec Case
23" HP 2335
20" Dell 2007FP
http://www.uvme.biz/367530HPImage
User avatar
BrazilMAC
Full Member
 
Posts: 102
Joined: Mon Aug 13, 2007 1:02 pm

[GUIDE] Installing Leopard 9a581 GM on a Hackintosh PART 2

Postby BrazilMAC on Thu Oct 25, 2007 2:02 pm

POST INSTALLATION INSTRUCTIONS

Again, thanks for all the help from other members of the community. This guide was compiled with info gathered from the community, not from me!!! I am just writing to help you all!!!!! And Thanks for all the help!

In the first part, I showed you how to patch your DVD/prepare an installation partition. Lets now move to the install process.

You will need a partition to install Leopard. The partition we just did earlier was just to hold the installation files. Make sure you have a partition on one of your disks to receive the install. And the partition where you will be installing needs to be MBR not GUID!!!

After inserting the DVD/booting the install partition, just go and install leopard as usual. Make sure you un-select printer drivers/languages/xcode, etc… Our DVD is a single layer one without all the garbage. If you picked the restored partition method, the restored partition should show on the bootloader. If not:

· When the Darwin Bootloader loads, used advanced options and type rd=diskXsX (where X is the disk where you restored to, and X the partition number). This should boot into it (if not, there is something wrong with your setup!) Check the MAKING IT BOOTABLE SECTION from the post above or use Kalis CD. Link listed above.

After installing Leopard, reboot into Tiger again. DONT BOOT INTO LEOPARD YET!!!

NOTE: If you got the GreenD Patched DVD, The post patch method can be run from an External USB Pendrive. If no Tiger installation is present, Boot to the DVD, and once the Welcome Screen shows up, select Utilites->Terminal. Get a bit familiar with UNIX so you know how to browse to the PenDrive! The GreenD DVD has the instructions necessary.

Now we will run the Post Patch script to replace some kexts. This is due to the fact that When Leopard installs, it gets its kexts from their install package. We need to copy ours to the install partition so that it boots properly.

· After you boot into Tiger (or the DVD) Open up a terminal window and do a “sudo –s”; Enter your password (no need for sudo if booting from DVD, we are already root);
· Type “cd” and a hit space. Now, drag the folder 9a581-patch on your desktop to the terminal window and hit enter. This should give you the path to the folder (DVD boot, browse to your PenDrive file location)
· Now type ./9a581-PostPatch.sh THE POST PATCH WILL NOW EXECUTE! Wait a tit bit…

The Script will ask you to reboot, Hit Y/N and reboot.

We should be done now!!!! You now should boot to your Leopard installation disk. If you get stuck after this, boot with a –v option and watch for errors/panic.

From here on, we can post your problems here and we will try to
sort it.

AGAIN: The kexts here are the common ones used on everyday installations, but this was tailored for an ASUS P5W-DH Deluxe. If you get any panics with –v switch, we can try to pinpoint to what kernel is doing it. Some people have reported that the BootCache.kext gives panics. It is a bit more to do, but we can all get it sorted here.

Hope this helps a lot of you!
Image
Last edited by BrazilMAC on Thu Nov 01, 2007 11:38 am, edited 10 times in total.
Asus P5W DH Deluxe
Intel Core Duo E4300 OC'd to 3.38GHZ
2GB RAM OZC 1066MHZ
2 500GB SEAGATE SATA
1 External 500GB LACIE
Quaddro FX5500 512MB
White/Silver Antec Case
23" HP 2335
20" Dell 2007FP
http://www.uvme.biz/367530HPImage
User avatar
BrazilMAC
Full Member
 
Posts: 102
Joined: Mon Aug 13, 2007 1:02 pm

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby gotoh on Thu Oct 25, 2007 2:29 pm

nice guide Brazil...
Now if only my network was faster, I might have a chance to try Leo before next week end (currently my down rate is at 40Kb/s), I don't even have 2Gb of this damn DMG...
HackPro : Gigabyte P35-DS4, C2D E6400@3.2Ghz, 4Gb DDRII, GeForce 7900GS OC
NVinject HOME
Important notice for NVinject users !
User avatar
gotoh
Moderator
Moderator
 
Posts: 592
Joined: Wed Aug 15, 2007 8:15 pm
Location: France

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby BrazilMAC on Thu Oct 25, 2007 2:31 pm

Gotoh, thanks! It wouldnt be possible without you guys!

Im not sure if this would deserve a stickie...I woudl like lots of feedback so we can get everyone going on this.
Asus P5W DH Deluxe
Intel Core Duo E4300 OC'd to 3.38GHZ
2GB RAM OZC 1066MHZ
2 500GB SEAGATE SATA
1 External 500GB LACIE
Quaddro FX5500 512MB
White/Silver Antec Case
23" HP 2335
20" Dell 2007FP
http://www.uvme.biz/367530HPImage
User avatar
BrazilMAC
Full Member
 
Posts: 102
Joined: Mon Aug 13, 2007 1:02 pm

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby iGuru on Thu Oct 25, 2007 2:43 pm

Thanks for this, I've tried to make the image myself a few times so far, and each time something had been slightly wrong... I'll try this and let you know how it goes :)

Cheers,
~mac.nub
Post Powered by ~iGuru [Formerly known as mac.nub]
http://www.macdotnub.co.cc

MacBook Pro 17" - C2D T9500, 4GB, 200GB, 8600m GT 512MB, DVD-RW - Leo 10.6.1
Custom - C2D E6750 @ 3GHz, 4GB, 200, GTX 260 896MB, Bluray - Win Vista x64
User avatar
iGuru
Global Moderator
Global Moderator
 
Posts: 112
Joined: Mon Oct 08, 2007 11:05 pm
Location: United Kingdom

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby starfish on Thu Oct 25, 2007 2:45 pm

Thanks for the guide. Is the kernel included the final one (not the one for 9A527)?
starfish
Newbie
 
Posts: 32
Joined: Sat Aug 11, 2007 7:33 am

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby seaman on Thu Oct 25, 2007 2:46 pm

Thanks for the guide.It looks like even I will be abble to do it.
seaman
Newbie
 
Posts: 23
Joined: Sun Jan 14, 2007 5:36 am

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby Nuphor on Thu Oct 25, 2007 2:46 pm

Cheers BrazilMAC, looks like there's a small bug in the shellscript though. Specifically, IOHDIXController.kext doesn't get copied chmod'ed and chown'ed. Specifically:

Code: Select all
cp -R /leo/IOHDIXController.kext /Volumes/osx86dvd/System/Library/Extensions
User avatar
Nuphor
Newbie
 
Posts: 8
Joined: Thu Oct 25, 2007 8:20 am

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby starfish on Thu Oct 25, 2007 2:53 pm

The following line
Code: Select all
rm -rf /Volumes/osx86dvd/System/Library/Extensions/IOHDIXController.kext

should be moved above
Code: Select all
# New extensions
for kext in `ls files/Extensions`; do
   cpfix Extensions/$kext /Volumes/osx86dvd/System/Library/Extensions/
done

And the following lines are not needed
Code: Select all
cp -R /leo/IOHDIXController.kext /Volumes/osx86dvd/System/Library/Extensions
chmod -R 755 /Volumes/osx86dvd/System/Library/Extensions/IOHDIXController.kext
chown -R root:wheel /Volumes/osx86dvd/System/Library/Extensions/IOHDIXController.kext
starfish
Newbie
 
Posts: 32
Joined: Sat Aug 11, 2007 7:33 am

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby BrazilMAC on Thu Oct 25, 2007 2:54 pm

hmmm...didnt see that one coming!!!

i will fix that one when I get home. Must be a typo!!!

Also, yes the Kernel is the new one already patched (the 9a581 kernel)
Asus P5W DH Deluxe
Intel Core Duo E4300 OC'd to 3.38GHZ
2GB RAM OZC 1066MHZ
2 500GB SEAGATE SATA
1 External 500GB LACIE
Quaddro FX5500 512MB
White/Silver Antec Case
23" HP 2335
20" Dell 2007FP
http://www.uvme.biz/367530HPImage
User avatar
BrazilMAC
Full Member
 
Posts: 102
Joined: Mon Aug 13, 2007 1:02 pm

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby bablefish on Thu Oct 25, 2007 2:56 pm

The IOHDIX kext is included with the second version of my patch-package.... I forgot it in the first package (and also had a minor error in the script that pointed to /leo instead of the correct path)..

I will send you a link BrazilMAC (I have sent the package to so many people I can't keep track of which has received the updated package)...
bablefish
Newbie
 
Posts: 26
Joined: Tue Aug 28, 2007 6:59 am

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby BrazilMAC on Thu Oct 25, 2007 2:57 pm

cool...for the time feing I removed the link for the fil package above. I will correct the errors when home (I have windows at work, crap huh?)

I should be back withn 45 minutes.

Later all

And thanks bablefish, waiting for that pack!
Asus P5W DH Deluxe
Intel Core Duo E4300 OC'd to 3.38GHZ
2GB RAM OZC 1066MHZ
2 500GB SEAGATE SATA
1 External 500GB LACIE
Quaddro FX5500 512MB
White/Silver Antec Case
23" HP 2335
20" Dell 2007FP
http://www.uvme.biz/367530HPImage
User avatar
BrazilMAC
Full Member
 
Posts: 102
Joined: Mon Aug 13, 2007 1:02 pm

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby bablefish on Thu Oct 25, 2007 2:58 pm

You have a PM :-)
bablefish
Newbie
 
Posts: 26
Joined: Tue Aug 28, 2007 6:59 am

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby DsurioN on Thu Oct 25, 2007 3:17 pm

Does this support SSE2?
DsurioN
Newbie
 
Posts: 2
Joined: Thu Oct 25, 2007 3:13 pm

Re: [GUIDE] Installing Leopard 9a581 GM on a Hackintosh

Postby iGuru on Thu Oct 25, 2007 3:19 pm

No. SSE2 is not supported.
Post Powered by ~iGuru [Formerly known as mac.nub]
http://www.macdotnub.co.cc

MacBook Pro 17" - C2D T9500, 4GB, 200GB, 8600m GT 512MB, DVD-RW - Leo 10.6.1
Custom - C2D E6750 @ 3GHz, 4GB, 200, GTX 260 896MB, Bluray - Win Vista x64
User avatar
iGuru
Global Moderator
Global Moderator
 
Posts: 112
Joined: Mon Oct 08, 2007 11:05 pm
Location: United Kingdom

Next

Return to OSX86 How-To's

Who is online

Users browsing this forum: No registered users and 3 guests