View Single Post
 
Old 06-20-2009, 04:55 PM
Voyn1x's Avatar
Voyn1x Voyn1x is offline
 
Join Date: Jan 2008
Location: United Kingdom
Posts: 554
[GUIDE] Gigabyte G31M-ES2L Retail Tutorial

What you need:
  • Your Retail DVD of Leopard.
  • A blank CD for the Boot CD.
  • A computer to burn an ISO.
  • A hard drive for installation.

Benefits of a retail installation against prepatched versions (iPC, iAtkos, iDeneb, Kalyway, JaS etc):

  • Full ability to use the inbuilt Software Update
  • Native OS X installation - nothing modified (legal in many countries! (if you use an original DVD)
  • A stable system

STEP 1 // Download the required files

All the files that needed for this board are attached below. Burn Boot132-G31M-ES2L.iso to a blank CD. Be sure to have access to the other files on another drive (a USB stick would suffice).

You will also need to download the Chameleon 2.0 bootloader, OSx86Tools and TextMate.

Within the attached Extra folder you will find:
  • A prepatched dsdt.aml for the G31M-ES2L
  • HDAEnabler.kext - Enables AppleHDA
  • VoodooPower.kext - Fixes Restart/Shutdown and enables SpeedStep
  • IOUSBFamily.kext - Stops USB drives being unmounted at Sleep

STEP 2 // Boot the Retail installation disk

Insert the Boot132 CD that you've just written and boot from it. You will see the ISOLINUX Loader.

When everything is loaded, remove the Boot CD and insert your Apple Leopard Retail DVD into your drive. You should see the word 'BOOT', when the DVD is recognized, press Enter.

It should now start to boot the Retail DVD, after a few minutes you will reach the OS X installation screen.

STEP 3 // Preparing the HD

Proceed through and select your language to enter the installation.

We now need to format the drive as HFS+. Open the 'Utilities' menu at the top and load up 'Disk Utility'. Select your disk from the menu on the left and open the Partition tab. Click the free space below the Volume Scheme dropdown then change the Volume Scheme to '1 Partition'.

Now, click the 'Options' button below and select 'GUID Partition table'. This step is very important! Click Ok to close and then Apply to format the disk.

Well done, your HD is now ready for Leopard

Quit Disc Utility to proceed with the installation.

STEP 4 // Configuring the installation

Accept the Terms of Use, select the drive you just prepared and continue.

Now if you wish, you can 'Customize' your installation. I normally uncheck the other languages, printer drivers and X11. This step is optional, but it will cut down the installation time.

Start the actual installation! Once the installation has finished you can either wait 30 seconds or click the 'Restart' button to reboot.

STEP 5 // First boot!

Now to the exciting part!

Remove the Retail DVD and insert the Boot132 CD into the drive. Currently, the HD is not able to boot the system on it's own, but we will change this shortly.

Boot using the CD as before. Once you get to the prompt, press Enter and type "80" if it's your primary disc or "81" if it's your secondary disc where Leopard is installed (normally it's 80). Hit Enter to boot the system!

When OS X has finished booting you will be presented with a nice Leopard intro video. Follow the steps to configure your system and reach the desktop.

STEP 6 // Make the system bootable on it's own

Firstly a little explanation about what we are about to do, to quote Munky:

Quote:
When you format a GPT (GUID Partition Table) disk in Disk Utility, there is always a hidden, 200Mb partition created as the first partition on the disk. This is supposed to be a 200Mb FAT-32 partition used for storing EFI drivers, and is mandated by the EFI / GPT specs.

Apple honours the specs and so puts the 200Mb partition there. However, (and this is the important part...) *Apple dont use it!*

So we can hijack it and use it for our own ends.
Insert the USB drive or medium that contains the files you downloaded earlier, mount the Chameleon dmg and run the installer.

Just before you click install, select the 'Customize' button in the lower left hand corner and check 'Chameleon EFI HFS', this will install the bootloader to the hidden EFI partition, leaving your retail installation untouched.



Don't reboot just yet. We need to copy over the files for the board to the hidden EFI partition. Normally here you would need to enter some commands in Terminal, but I have created a basic EFI partition mounter script to help automate the process a little bit (for an explanation of what this script does, read though this thread). Double click the 'EFI Partiton Mounter' which you downloaded, you will be presented with a list of your drives. It should look similar to this:

Code:
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *931.5 Gi   disk0
   1:                        EFI                         200.0 Mi   disk0s1
   2:                  Apple_HFS Vanilla                 931.1 Gi   disk0s2
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *189.9 Gi   disk1
   1:                        EFI                         200.0 Mi   disk1s1
   2:                  Apple_HFS Time Machine   189.6 Gi   disk1s2
I have highlighted above the numbers you need to pay attention to. Enter at the prompt the disk number containing the EFI partition you wish to mount. Occasionally this number changes so be sure to check the number each time.

Finder will then reload and you should see the EFI partition on your desktop.

Open up the EFI partition and replace the contents the Extra folder with my files. If you have done it correctly it should now look like this:



We're almost there now!

Unfortunately to get the Realtek ALC883 audio working, I had to install one kext to /System/Library/Extensions as this wouldn't load from the EFI partition. Using OSx86Tools select 'Install kexts', and follow the prompts, selecting AppleAzaliaAudio.kext

Time to reboot without the CD. If successful, you should now be greeted with the Chameleon GUI, which will then proceed to boot your system.

STEP 7 // Finishing up

The last thing you will need to do is get your graphics card fully working. There are a few methods for this - Injectors, EFI strings and DSDT. Personally I prefer using a EFI string, to create this I used the inbuilt GFX string creator in OSx86Tools. This comes with many presets included but for my card I had to create my own as none of them worked for me.

After selecting/creating a string, open up the com.apple.boot.plist within Extra (using TextMate) and copy and paste the provided Hexadecimal EFI String within the device-properties section and save:

Code:
....
<key>device-properties</key>
<string> *String goes here* </string>
....
Within the Extra folder, you may have noticed a file called smbios.plist. This file is responsible for showing certain details within System profiler. You'll probably want to edit this to show your own memory (rather than mine).

STEP 8 // Apple Software Update

Don't be scared, run Apple Software Update

Reboot...

Congrats, you are now running an up-to-date vanilla system!!



Download Boot132-G31M-ES2L.iso
(6.47 MB)
Attached Files
File Type: zip Extra-G31M-ES2L.zip (1,019.0 KB, 3051 views)
File Type: zip EFI-Partition-Mounter.zip (875 Bytes, 1567 views)
File Type: zip ALC883.zip (74.7 KB, 1925 views)

Mac OS X 10.6.4 Retail || Intel Core2 Duo E8200 2.66GHz || Gigabyte G31M-ES2L || GeForce 6600 GT 128MB || Realtek ALC883 Audio || Realtek RTL8169 LAN || Samsung SpinPoint F1 1TB HD || Sony Dual Layer IDE DVD RW DW-D22A || Apple Aluminium Keyboard || Mighty Mouse

MacBook Pro || 2.4Ghz Core 2 Duo || 200Gb HD || 2Gb Ram || NVIDIA GeForce 8600M GT

iPhone 4 || 16Gb
Reply With Quote