понедельник, 28 января 2008 г.

Dream finally becomes reality: use vanilla OS X kernel on normal PCs.

This might not be sth. new to some readers as the patch was initially released few days ago. The newest version as of today is v5.1, which includes various bug fixes and multiboot support.  Again, as the previous installation guide, this is also based my very own experience and not a simple duplication of the readme.

All credits go to netkas(who made this patch), def(for multiboot), Turbo and everyone works on the osx86 scene.

Update 1: Fixed a mistake in the tutorial  which will cause "endless reboot loop". Sorry for everyone who encounter this issue!

Update 2: The EFI patch has been confirmed to work with current 10.4.11/10.5.1 update. Many hackintosh users have enjoyed the same update experience as genuine MAC users.

Update 3: Download in this guide updates to the latest pc_efi version, which is v5.1 as of today(11/17). Link to ToH kernel is also updated.

What is EFI and why is this "patch"?

The Extensible Firmware Interface (EFI) is a specification that defines a software interface between an operating system and platform firmware.

EFI is intended as a significantly improved replacement of the old legacy BIOS firmware interface historically used by all IBM PC compatible PCs. But as of today, most PCs running Microsoft Windows still rely on BIOS, while Intel based Macs, since the day one, are using EFI. Despite the technical advantage, this is more like an artificial barrier to prevent normal PCs running OS X.

Ironically, Microsoft Windows support BIOS only, and Apple makes Boot campto fill the gap. The EFI patch works in a similar approach: it emulates EFI data for normal BIOS-based PCs and let OS X treat them as genuine EFI-based Macs.

The EFI emulation is a long dream in OSX86 community, but prior to this, thanks the Apple's open source Darwin Project and those Hackintosh gurus, we can still enjoy OS X on normal PCs, with patched kernels/kernel modules which just bypass EFI. Now with the EFI patch, the hackintosh can boot off VANILLA UNMODIFIED OS X kernel and use  vanilla kexts, which gives a more clean room and great peace of mind for future system updates.



Prerequisite for EFI patch

  • Hardware: this EFI loader supports Intel SSE3 processors, include but does not limit to Core Duo, Core 2 Duo, Coro Solo, Pentium D and motherboards with Intel chipset(not necessarily to be Intel brand, just chipset. 915 and later are fine) ONLY. If you're not sure, download cpu-zand run the test.
  • A working OS X installation. I assume you've got OSX working and just want to try out the new EFI. Otherwise, install one first. :) This guide is based on 10.5 Leopard, but most part also applies to 10.4 Tiger.
  • Some basic knowledge of UNIX shell. This shouldn't be a problem as I'll try to make the guide accurate and easy to follow
  • The Leopard installation DVD and USB flash drive, just in case of error recovery. I hope we'll never need them.

Prepare the Installation

Actual installation is really fast and easy, but before that, lets get all the necessary files in place.

1. Get the EFI patch

Download pc_efi_v51.zip. This is a repack of the original EFI patch and two necessary kext: AppleSMBIOS and dsmos.

2. Get the original kernel and modules

Here is the original kernel and some original kexts, please note that they are for Leopard 10.5.0 only(Download Leopard_Vanilla_Kernel_Kexts.zip). Tiger users may use Pacifist to extract them from System/Installation/Packages/BaseSystem.pkg in original DVD.

Picture 2

Picture 3

3. Place the EFI patch:

Extract pc_efi_v51.zip to your desktop, let's say, a folder named pc_efi_v51 and launch Terminal.app from Application->Utilities in Finder, then type:

 sudo mkdir /iamefi
 sudo cp /Users/xxx/Desktop/pc_efi_v51/* /iamefi/

when promoted, input your password, and don't forget to replace xxx with your user name.

This will copy all the necessary files for EFI patch in /iamefi directory.

4. Restore vanilla kernel:

For Leopard, there are currently two popular releases, namely BrazilMac and ToH. They all should work with the EFI patch. Anyway, let try to use the vanilla kernel first:

Extract Leopard_Vanilla_Kernel_Kexts.zip on Desktop and again, do this in the terminal:

 sudo mv /mach_kernel /mach_kernel.patched

After back up the patched kernel(comes with your installation), type

 sudo cp /Users/xxx/Desktop/Leopard_Vanilla_Kernel_Kexts/mach_kernel /

to install the new kernel. Don't forget to repair permissions:

 sudo chmod 644 /mach_kernel && sudo chown root:wheel /mach_kernel
 sudo chmod 644 /mach_kernel.patched && sudo chown root:wheel /mach_kernel.patched

Optional but highly recommend: Get the latest ToH kernel as well, as it works with or without EFI. Download and place it in root directory,

 sudo cp /Users/xxx/Desktop/mach_sleep/mach_sleep /mach_kernel.toh
 sudo chmod 644 /mach_kernel.toh && sudo chown 0:0 /mach_kernel.toh

5. Add necessary kexts:

Speak of necessary, I mean the minimal requirement to boot off the EFI+vanilla kernel. Some installation might miss dsmos.kext(an EFI module for page decryption, also made by Netkas), as its not necessary for patched kernel. But it's a must for vanilla kernel. The dsmos.kext is included in pc_efi_v51.zip. So install it if its not in your system:

 sudo cp -R /Users/xxx/Desktop/pc_efi_v51/dsmos.kext /System/Library/Extensions/

repair permissions:

 sudo chmod -R 755 /System/Library/Extensions/dsmos.kext
 sudo chown -R root:wheel /System/Library/Extensions/dsmos.kext

Optional: the newest efi patch is supposed to work with AppleEFIRuntime.kext but some users still have trouble there. So just remove(back it up) for safety. Do the same for AppleIntelCPUManagement.kext

 cd /System/Library/Extensions/
 sudo mv AppleEFIRuntime.kext AppleEFIRuntime.kext.vanilla
 sudo mv AppleIntelCPUPowerManagement.kext AppleIntelCPUPowerManagement.kext.vanilla

Delete kext cache so the change will take effect on next boot.

 sudo rm /System/Library/Extensions.mkext.*

you might want to put more vanilla kexts back but let's install EFI patch and get it working first.

6. Find your disk id

You'll need this shortly, type

 diskutil list

and check the output. Write down the disk id matching your installation, its in the format of diskXsY and can be easily identified by volume name.

Install EFI Patch

There are two approach for EFI installation, the "old good" startuptool and grub(since v4 and later come with multiboot support)

1. Use startuptool

By using startuptool, we alternative the boot loader comes with OS X to the EFI patched one. It's easy and most time, should be safe.

Reboot the OS X and press F8 during boot up which will take you to the Darwin loader option, select the destination OS X partition, type

 kernel.patched -s

and press enter to boot into single user mode using the old patched kernel. Type the following commands right after system loads, don't run "mount -uw /" as it will mount the target partition on read-write mode and startupfiletools will fail. Just proceed to the EFI installation straight:

 cd /iamefi

There are several files you can choose from, booti386, boot_v3, boot_v4(and boot_v5), booti386 is original Darwin loader and can be used to reverse the installation. The rest are various versions of efi loaders. Just use the latest here:

 ./startupfiletool /dev/rdiskXsY ./boot_v5

replace rdiskXsY with disk id you get in previous step. For example, you get disk0s2, so put rdisk0s2 here, don't forget the leading r

You'll get prompt like "HFS+ partition detected, write xxx bytes", which means that the EFI loader is successfully installed(hopefully). Now type reboot and enjoy the new EFI.

2. Use grub

By during this, the OS X installation keeps untouched and the EFI patch process is done before the actual Darwin loader. This is what "multiboot" for.

If you have grub setup already, just copy boot_v5 to any place on fat32/reiserfs/xfs/ext2/ext3/ntfs/any partition supported by grub. To make life easier, just put it in the root directory. And add entry to your menu.lst like this one

title Darwin

kernel (hd0,0)/boot_v5

where hd0,0 is a partition where your boot_v5 resides(not the OSX partition!)

after that, load grub and will choose Darwin and press enter - you have 5 secs to choose the hard drive with OS X , 80 - first, 81 - second, 82 - third and etc , if you will not press any key during 5 sec, it will start working with default drive.

For those Windows-only user, you can use grub4dos to load the boot_v5. Download this grldr.zip, extract, put it to your C:\(yes, do this in Windows). Then add an entry for this grldr in your XP or Vista loader. Please refer to myprevious installation guide, the last part about install tboot. Use exactly the same way to install this grldr, then create a file name menu.lst with following content:

find �set-root /bootmgr

timeout 10

default 0

title Leopard

kernel (hd0,0)/boot_v5

If you don't have Vista installed, change the first line to "find �set-root /ntldr" instead.

Trouble Shooting

The EFI patch is still in early stage so it's a big YMMV. The most common error is, EFI and vanilla kernel don't work together.

1. Restore old patched kernel

Again, press F8 when Darwin loads, and type the kernel name in option line, in our case, is "mach_kernel.patched"(without quotes). And you might want to further locate the issue, so type

 mach_kernel.patched -v

If you have ToH kernel backup, use it instead

 mach_kernel.toh -v

This will boot OS X with patched kernel and in verbose mode. After that, remove the vanilla kernel and restore the old one.

 sudo mv /mach_kernel /mach_kernel.vanilla && sudo mv /mach_kernel.patched /mach_kernel

repair permissions:

 sudo chmod 644 /mach_kernel && sudo chown root:wheel /mach_kernel
 sudo chmod 644 /mach_kernel.vanilla && sudo chown root:wheel /mach_kernel.vanilla

2. Verify if EFI actually works

If the system boot up with vanilla kernel, you're quite confident that EFI is working and the system is running the SAME kernel as those genuine MACs. As said before, EFI patch also works with some patched kernels. So to be sure, just download Geekbench and if EFI works, it will detect the system as "Mac" instead of "Hackintosh".

3. Vanilla kext "compatibility"

If your hardware supports, the current EFI patch does work with vanilla kernel and all vanilla kexts, but there is still something worth mention:

  1. Don't forget to put dsmos.kext if you use vanilla kernel. In fact, it's never hurt to just leave it there even you're about to use patched ones. Also, you still need Natit/NVinject for your video card and ALCinject for sound card etc. since EFI patch wouldn't take care of them.
  2. You can't expect a system with all vanilla, unmodified kexts, as we always need to edit some(Info.plist) and add device id, which is safe and wouldn't affect system stability or anything. So get to know the kext before you restore it.
  3. Power management(reboot/shutdown/sleep) is YMMV. For most users, three items matters: the kernel, AppleACPIPlatform.kext and AppleSMBIOS.kext.I highly suggest to use the AppleSMBIOS.kext comes with the efi patch(in pc_efi_v51.zip) as it fix the error/crash on "About This Mac" and system profile. And for the rest two, you may need to try and find the working combination(patched vs. vanilla). 
    Also, depends on the video cards, NVidia and GMA950 users are reported to have better luck here.
  4. Using vanilla AppleACPIPlatform.kext will lost all PS2 ports but if you're on an all USB setup, that's fine.
  5. Optional: A new IONetworkingFamily.kext fix is also available which enables the time machine as well as address the infamous "_CFGetHostUUIDString: unable to determine UUID for host. Error: 35″ bug. This is Leopard only and you can get it here.

Remove the EFI Patch

If you don't like it, just boot into single user mode(-s) and restore the vanilla boot loader and/or the old (patched) kernel. Refer to the previous installation/trouble shooting part for more info.

 ./startupfiletool /dev/rdiskXsY ./booti386

Please leave your comment if you have any questions or suggestions.

HOWTO: Install and Boot OS X On a Flash Drive

Remember when it was first revealed the Windows XP could be installed and booted off of a USB flash drive? Well, great for Windows users. What about Mac users? We were left out in the cold. If one were to search hard enough in the vast Web index that is Google, one could find just the snippets of how to boot a system from a USB drive, how to set a drive as bootable, yadda yadda yadda. Nothing guiding the way to creating a bootable installation of Mac OS X on a flash drive. I'm here to help.

Before I begin, let me say that I have been a Mac user for only two years. I made the switch, and I've learned enough about OS X in that time to let me do this. So, without any more small-talk, let's get into it!

Before You Begin

You will need a 1GB or larger flash drive. It is impossible to install OS X on anything smaller. After testing this procedure multiple times, the largest free space I had after booting up was 11.6MB.

You will also need the original Mac OS X Install Disc(s) that came with your computer.

Preparing the Flash Drive

Start out by completely formatting your flash drive. Open up Disk Utility, select your device from the source list (mine's a SanDisk Cruzer), and click on the Erase tab. Be sure the filesystem is Mac OS Extended (Journaled), and uncheck the option to install Mac OS 9 drivers. Space is crucial, and there will be no point in having OS 9 recognize our device if we're trying to get it to boot into OS X. Enter a name for your drive, and click on Erase.

Disk Utility

If you click on the new drive name, you will see that Owners are not enabled.

Disk Utility

We have to get that changed. Open up Terminal.app, and enter the following command:

sudo /usr/sbin/vsdbutil -a /Volumes/iTote

Be sure to change the name of the volume (iTote) to correspond to the name you gave your flash drive when you formatted it.

Terminal

Owners should now be enabled.

Disk Utility

Installing the Base System

In order to extract the critical system files and install them on the flash drive, we have to use Pacifist. Insert your Mac OS X Install Disc, and open Pacifist. When Pacifist recognizes the disc, click on Open Apple Install Packages.

Pacifist

Select your install media and click OK.

Pacifist

If you are prompted to insert another disc, click Skip. The files we are looking for are on the first disc.

After the package list loads, expand EssentialSystemSoftware, then EssentialSystemSoftwareGroup. The two packages that are needed in order for OS X to boot are BaseSystem and Essentials. Select them, then click on the File menu.

Pacifist

Select Install Files to Other Disk…

Pacifist

And choose your flash drive. Click Install to begin extracting and installing. This will take a while.

Pacifist

Remove Unnecessary Files

If you are using a drive smaller than 2GB, you will have to remove a few files before you can continue. Open up your flash drive, and navigate to /System/Library/Fonts. Scroll to the bottom, and you will find a group of Japanese and/or Chinese fonts. Removing these will free up over 100MB. DELETED! Be sure to empty your Trash.

Fonts

Copy Missing Files

Because we extracted the system with Pacifist, there are a few files that are missing off our flash drive. Open up your main hard drive which has your running copy of OS X installed. Navigate to /System/Library/CoreServices. Copy SetupAssistant over to /System/Library/CoreServices on your flash drive. It might be easier to have two separate finder windows, as you will have to authenticate yourself when you copy the file.

CoreServices

Now we need to copy the package receipts for BaseSystem.pkg and Essentials.pkg onto our flash drive. Open your main hard drive again, and go to /Library/Receipts. Copy both BaseSystem.pkg and Essentials.pkg over to /Library/Receipts on your flash drive.

Receipts

Make the Flash Drive Bootable

Now that all the required files are present, it's time to make the system recognize the device as bootable. Open up Terminal.app once more, and enter the following command:

sudo bless –verbose –folder "/Volumes/iTote/System/Library/CoreServices" –bootinfo

This command "blesses" the CoreServices folder, which makes the system recognize it as an installed operating system. Again, be sure to substitute the name of your flash drive for the volume name in the above command.

Terminal

Fixing File Permissions

When the files were copied from the installer CD, they didn't have the correct permissions to allow the system to read and write to them. Open up Disk Utility, and select your flash drive. Click on Repair Disk Permissions, and go get yourself a coffee while it runs.

Disk Utility

Booting From the Flash Drive

If you have an Intel Mac, you should be able to set the flash drive as the Startup Disk in System Preferences. For PowerPC Mac's, things are a bit more complicated. I'm not going to re-invent the wheel, so I'll forward you on to this article.

In Closing

Before you start complaining that this technique does not work with Intel Mac's, be aware that I have not tested this on an Intel Mac because, well, I don't have one. If anyone has an Intel Mac, please let me know if you can get this working, and what differences there are in the procedure.

Installing Mac OS X 10.5 Leopard on an IBM x86 - A Step by step Guide

The leaked file (DMG format) has a size 6.56GB, so you need a DVD9 to burn it. Although it can be installed in original Apple hardware directly.

With some modifications, you may also try to run the OSX Leopard on an IBM x86 PC.

Download the torrent Here ( Source : Demonoid, Size : 6.56GB )
MD5 = c38902e728dc47a4ccb34aa6143b9bbe [osx-leopard105.dmg]

Add these Trackers for faster download rates

http://inferno.demonoid.com:3416/announce
http://www.moviex.info:2710/r12xjr0azivx42cjuyzn3c73mdqxj31q/announce
http://vip.tracker.thepiratebay.org/announce
http//araditracker.com/announce.php?pid=241eac72250a7cd33b0ae3c7080e2e7d

The Credit goes to BraizlMac@osx86scene forum who made the original patch to make all these possible.This currently works on INTEL system with SSE3 support ONLY. An AMD/SSE2 patch should come shortly. Use CPU-Z to check the system capability if you are not sure.

Warning: the patch is rather experimental atm, and even your processor supports SSE3, the installation might still fails due to various compatible issues. Also, the patched DVD seems to be problematic, missing the booting setup part, and most likely would render a system unbootable. Most guides online are based on the instruction comes with the patch file, they didn't actually install it! I did manage to install the Leopard on my own PC and this guide is based on my very own, first-hand experience. I'll try to make it as accurate and correct as possible. [src : DigitMemo ]

Update: AMD/Intel SSE2 users try this. Need to patch the original Leopard DMG though, no pre-patched disk available atm.

What you'll need:

  • Optional: Original unpatched Leopard installation disk image, and patch file to enable x86 PC support and strip the image to 4.3G so it can fit on a single layer DVD. This requires access to an working OSX Tiger system, so might not feasible for everyone.
  • Optional but highly recommended: Patched 10.4.10 Tiger installation disk(torrent download). Other Tiger disk will also work.
  • the patched DVD image(torrent download), post install patch file(rs).
  • a DVD burner and empty DVD media
  • a USB Flash Drive formatted as FAT or FAT32, flash memory+usb card reader will also work
  • Computer with Windows installed, HDD with at least 10G free space.

Prepare before installation

1. Optional: If you have the original disk image and an OSX Tiger installation, then use thepatch file to shrink it on a Single Layer DVD. Read the instruction before applying. This will require around 15GB free space on your OSX partition.

2. Burn the patched DVD image.

There are many programs can do it but ImgBurn is recommended as it's small and free, and most important, as the name suggests, its perfect for burning .ISO files. Just select the image file name and burn.

imgburn

3. Optional: burn the Tiger install disk if there is no previous Tiger installation on your PC.

4. Prepare the hard drive.

Create a primary partition(primary is better, but extended logical partition is also OK, see below), , at least 10G, and format it to FAT32. This can be done by Partition Magic or Acronis Director Suite. Both are commercial software. Or, use the free gparted livecd instant.

5. Prepare the USB pen drive

Format the drive as FAT or FAT32, and rename the label to 123. Windows handle disk label's caps in a different(and inconstant) way with OSX, so using numeric only label names would be bullet proof.

Extract the patch file(files.rar) and place it on the pen drive, it should look like this:

pendrive

If you use other label names, edit 9a581PostPatch.sh and change the second line

 PATCH="/Volumes/123/files/leopatch/"

accordingly.

Install Leopard

Now lets install Leopard.

1. Optional but Highly recommend: install Tiger first. This can be done by inserting Tiger DVD on your computer and make sure you boot from it. Usually that's done if you press F8 or F12 or whatever key combination to give you the option to choose what disk/cd drive you want to boot from. Or you can always change boot device in BIOS setup. Select your CD/DVD drive. And

Select your language and when the welcome screen shows up

  1. Select Utilities -> Disk Utility
  2. Select your partition that you want to be OS X and go to the Erase tab
  3. For Volume Format, select Mac OS Extended (Journaled), set volume name as"Leopard" (no quotes, case sensitive)
  4. Click Erase. Now the partition should not be grey, it should be black to indicate that it is active.
  5. Close out of the Disk Utility and move onwards with installation.

Use "Customize" option and unselect all packages there. Just install base system. By installing Tiger first, the partition would be properly formatted and activated, which eliminate any potential problem. Now reboot and remove the Tiger DVD.

2. Install Leopard.

Insert Leopard DVD, and make sure to select booting from DVD. The installer will load(it will take a while, be patient). If you have Tiger installed, don't format the partition, just install it over the Tiger partition. Otherwise, same approach as Tiger installation, use Disk Utility to setup the partition.

Important: Use Customize… button and unselect all packages there. Then proceed to installation. When it's done, reboot. And make sure that your USB/Pen Drive is connected to your PC.

Patch Leopard Installation

After the reboot, also make sure you do the same step above: Press whatever key combination to give you the option to choose your boot device: Now Select your CD/DVD drive.

When the Darwin bootloader shows up, Hit F8; When you see the prompt, type -s and hit enter. The DVD will now load in verbose mode. Watch for any panics! It should load without a problem (of course, if you already installed, its all good!)

Once the setup is loaded(again, long wait, be patient), select your language. When the welcome screens shows up, select UTILITIES-TERMINAL. The terminal will now open. We will now browse to our Thumb Drive;

In the command line, type:

 cd /Volumes/123/files

Lets now run the script. This will patch the installation so it will boot properly:

 ./9a581PostPatch.sh

Let it run. You can answer yes when removing the ACPUPowerManagement.kext

Reboot.

The Bootfix patch

After reboot, if the system boots into Leopard fine, ignore this part and head to next section to setup multi boot. Otherwise, you might encounter blinking cursor or "HFS+ Error", follow the steps below then

If you install Leopard without Tiger first, the system might still boot into Windows instead or leave a system unbootable at all. Even the tboot loader trick(see below) wouldn't work. In this case, you need to repair the installation and setup boot property for it.

  1. Reboot using the Leopard DVD, make sure the USB pen drive is connected.
  2. Open a terminal after everything finally loads.
  3. Find out what disk your leopard was installed on by issuing this command (my machine was rdisk0s2, will use rdiskXsY below, substitute accordingly)
     diskutil list
  4. Active the partition
     fdisk -e /dev/rdiskXfdisk: 0>update  fdisk:*0> f Y  "Partition 2 marked active"  fdisk:*0> 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: 0> q
  5. Now goto bootfix directory by typing:

     cd /Volumes/123/files/bootfix

    and do the following

     ./dd if=/usr/standalone/i386/boot1h of=/dev/rdiskXsY bs=512  count=1umount /Volumes/Leopard  ./startupfiletool -v /dev/rdiskXsY /usr/standalone/i386/boot  ./bless -device /dev/diskXsY -setBoot -verbose

reboot

Post Installation: setup multi-boot

2. Now you're already in the exciting Leopard! After initial setup, load up Terminal(Applications/Utilities) within OSX and type

 sudo nano /Library/Preferences/SystemConfiguration/com.apple.Boot.plist

edit the Darwin time-out flag accordingly:

 <key>Timeout</key> <string>10</string>

reboot and now you can choose Mac OSX/XP/Vista using Leopard's boot loader.

3. Optional: you can also setup Windows as default OS and use windows' OS selector to launch OSX.

So reboot and select Windows partition, load Windows. Open a command prompt(if you're using Vista, make sure it's running as administrator). Use diskpart to mark the Windows partition active.

  1. Type diskpart
  2. If you have more than one disk, at the DISKPART prompt, type:
    list disk
  3. At the DISKPART prompt, type:
    select disk x
    Select the disk, x, where the partition you want to mark as active in
  4. At the DISKPART prompt, type:
    list partition
  5. At the DISKPART prompt, type:
    select partition y
    Select the partition, y, you want to mark as active.
  6. At the DISKPART prompt, type:
    active
    to active the selected partition and system will boot from it next time.
  7. At the DISKPART prompt, type:
    exit
    to quit the diskpart program

This will mark Windows partition as active, and the system will boot off it next time. If the PC has Windows XP installed, get this tboot(512 bytes only, a revised version of chain0 loader, support multi HDD as well as loading OSX on extended partition) file and put it to the same directory as ntldr(usually C:\), adding the following line to boot.ini

 c:tboot="Mac OSX Leopard"

If the PC is Vista only, put ntldr(get one from your XP installation CD), tboot and a boot.ini file to your Vista boot partition, for example

 [boot loader]timeout=0  default=c:tboot      [operating systems]c:tboot="Mac OSX Leopard"

Vista will automatically detect and add the Leopard entry on next boot.

Also, for Vista users, you may use bcdedit to add tboot, but the ntldr way is much much more easier. Anway, if you prefer the native Vista bootloader, here is

  1. put tboot on Vista boot partition, usually C:\

  2. Open a command prompt and make sure it's running as administrator and type:

    bcdedit /create /d "Mac OSX Leopard" /application bootsector

    This will retrun a {ID}

  3. Use the command line below to add the tboot, replace the {ID} accordingly:
     bcdedit /set {ID} device bootbcdedit /set {ID} path tbootbcdedit /displayorder {ID} /addlast

That's all. Enjoy the new Leopard!