转贴:
Hey All,
As there are none i've seen, apart from in the rather erm... interesting readme included with the EFI patch, I thought i'd make a quick guide on how to install it, and a bit about what it actually is/does.
What is EFI?
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 personal computers.
Source: Wikepedia
Or more simply put, it's what Intel Mac's use instead of a BIOS, and it provides the communication between the hardware and firmware on a machine to allow proper functionality.
Why use the EFI patch?
EFI in this case allows unmodified aka Vanilla Mac OS X kernels to be used, this is of great advantage on some systems, as it essentially means that you will be able to install Apple Updates etc. without the worry of them breaking your system. It also allows you to use most other stock files, e.g. AppleSMBIOS, AppleACPIPlatform etc. kexts.
Requirements?
To use a stock kernel, you will need to be using an Intel Core Duo or Core 2 Duo CPU, and a motherboard with an Intel Motherboard (not just chipset!).
If your motherboard doesn't have one, don't panic - you can still install this patch and it still gives some advantages e.g. being able to use the stock kexts etc. though you will still have to use a modified kernel to boot.
1. OS X Pre-Installed, either Tiger or Leopard.
2. A HFS+ Formatted USB stick.
3. Mac OS X Tiger Install DVD.
Ok, so how do I install the damn thing?
1. Well, you'll need to get the bootloader first, which you can grab at irc.osx86.hu #Leopard - checkout the topic for the current download link. Got the files? Great. Extract them to your desktop.
2. Now, plug in that HFS+ Formatted USB stick, and copy the "pc_efi_v3" (in this case - newer versions may have a different folder name, so substitute the name if that is the case) folder to your USB stick.
3. OK, now you have a folder called "pc_efi_v3" on your USB stick? Good good... pop in your Tiger install DVD, and reboot!
4. Boot up the tiger install DVD, when you get to the install screen, select Terminal from the Utilities menu.
5. Type the following:
Code: Select all
diskutil list
And take note of your OS X partition identifier... this is an example of what you should see.
Code: Select all
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *149.1 Gi disk0
1: Windows_NTFS Windows XP 49.0 Gi disk0s1
2: Apple_HFS Leopard 100.0 Gi disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *969.8 Mi disk1
1: Apple_HFS walkman 969.6 Mi disk1s1
So in my case, my partition identifier is disk0s3.
6. Unmount your OS X parition by typing the following:
Code: Select all
diskutil unmount disk0s3
Note: Substitute the 0 and 3 for the correct identifier numbers for your OS X partition, as shown in your diskutil list.
7. cd to your USB stick pc_efi_v3 folder e.g. in my case:
Code: Select all
cd /Volumes/walkman/pc_efi_v3
Note: Substitute the volume name to match your USB stick name - in the example mine is walkman.
8. Type the following:
Code: Select all
./startupfiletool /dev/disk0s3 ./boot
Note: Substitute the 0 and 3 for the correct identifier numbers for your OS X partition, as shown in your diskutil list.
9. Reboot
You will now have an EFI bootloader.
OK, so it's installed... what now?
Well, now provided you have a C2D and Intel motherboard, you can replace your kernel with the official one! if not, don't worry. You can still always use the unmodified Apple kexts instead now
Note: It is recommended that you use the AppleSMBIOS included in the zip file, as this fixes the Hardware Overview in system profiler.
Edit: Clarified some commands, and cleared up some other things.
Last login: Sun Nov 11 13:15:57 on ttys000li-chunbiaos-acpi:~ lichunbiao$ cd /iamefili-chunbiaos-acpi:iamefi lichunbiao$ ./startupfiletool /dev/rdisk0s3Usage: startupfiletool [-v] li-chunbiaos-acpi:iamefi lichunbiao$ ./boot-bash: ./boot: Permission deniedli-chunbiaos-acpi:iamefi lichunbiao$ 权限不足?
直接复制下来的时候.....li-chunbiaos-acpi:iamefi lichunbiao$ ./startupfiletool /dev/rdisk0s3 ./boot
startupfiletool: opendev(/dev/rdisk0s3): No such file or directory
原帖由 兰陵萧萧声 于 2007-11-10 22:23 发表
Last login: Sun Nov 11 13:15:57 on ttys000li-chunbiaos-acpi:~ lichunbiao$ cd /iamefili-chunbiaos-acpi:iamefi lichunbiao$ ./startupfiletool /dev/rdisk0s3Usage: startupfiletool [-v] li-chunbiaos-acpi:i ...
What I did:
I have three partition on one hd(it is rdisk0) for mac os X, leo, leo, tiger in sequence.
So I just normally boot into second leo, make directory, copy files in it, run disk utility from applicaiton/utility, umount first leo, then open terminal
type in:
sudo -s
cd /iamefi (whatever name you gave)
./startupfiletool /dev/rdisk0s1 ./boot
it will show up some information, then go to reboot, done!