Kernel 64 EFI Patch OS X 10.2.6
Written on January 14, 2010 – 10:25 pm | by admin

Special case if
#systemsetup -setkernelbootarchitecture x86_64
cannot run while restarting, or by pressing “6″ and “4″ while loading
To run 64-bit kernel on any mac with 64-bit efi you need patched boot.efi file
You can find file named boot64.efi from your own OS, patch the boot.efi to enables 64 bit kernel
It enables 64-bit kernel support for some macmini/macbook/imac/macbookair models, which has 64-bit efi bootrom.
run these commands
cd ~/Desktop
sudo cp /System/Library/CoreServices/boot.efi /blah/user/Desktop/boot64.efi
edit the binary with hexeditor, example im using mac mini and replacing the value like stated below

Then
sudo cp /Users/blah/Desktop/boot64.efi /System/Library/CoreServices/
cd /System/Library/CoreServices/
sudo chown root:wheel boot64.efi
sudo chflags uchg boot64.efi
sudo bless --folder /System/Library/CoreServices/ --file /System/Library/CoreServices/boot64.efi
Next step – add arch=x86_64 to file /Library/Preferences/SystemConfiguration/com.apple.Boot.plist to Kernels Flags section
For example:
or
#nvram boot-args=”arch=x86_64?
or
#systemsetup -setkernelbootarchitecture x86_64
Now reboot, your mac should boot 64-bit kernel, but some models missing 64-bit intel video drivers, for example macbook4,1 with gmax3100, so only internal display will work, without qe/ci/opengl.
if something goes wrong, boot leopard/snowleopard dvd (or another installed osx system) and run this command in terminal
sudo bless -–folder /Volumes/YOUVOLUMENAME/System/Library/CoreServices -–file /Volumes/YOUVOLUMENAME/System/Library/CoreServices/boot.efi
p.s. if you have 32-bit efi, this commands will make no effect for you at all.
Mac Mini 3,1
change value 0×00 to 0×80 of boot.efi address 0×266db , Kenerl is LP64 on macmini3,1.
old
00266d0 30 47 01 00 00 00 00 00 00 00 00 00 00 00 00 00
–
new
00266d0 30 47 01 00 00 00 00 00 00 00 00 80 00 00 00 00
sh-3.2# uname -a
Darwin aRifs-Mac-mini.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:35:19 PST 2009; root:xnu-1486.2.11~1/RELEASE_X86_64 x86_64
MacBook Pro 3,1
Old -> 0×26708: 4B 47 01 00 00 00 00 00 04 00 00 00 00 00 00 00
New -> 0×26708: 4B 47 01 00 00 00 00 00 03 00 00 00 00 00 00 00
iMac7,1
modify boot64.efi on position 0×26718
Old: 0×0C
New: 0×07
Use at your own Risk :p

3 Responses to “Kernel 64 EFI Patch OS X 10.2.6”
By temennyarahulomok on Jan 20, 2010 | Reply
bukanna 10.6.2 tu versinya boyyy …..
By philippe on Feb 20, 2010 | Reply
Patch works fine with the Mini I bought yesterday at the Applestore in Paris ( Mac OS 10.6.2 Macmini3,1 ) seems to be faster today with its 64 bits kernel… now looking for the 64 bits extension for my canon scanner !