Sep 18

Run the following command in Terminal to see exactly how many of OS X’s extensions are 64-bit and how many are still 32-bit and shows ppc kexts as well.

file /System/Library/Extensions/*.kext/Contents/MacOS/* | perl -nle 'print $1 if /\((.*)\)/' | sort | uniq -c

AboveĀ  command will take a few seconds to run.

Comparison between 10.5.8 and 10.6.0.
10.5.8

109 for architecture i386
106 for architecture ppc
3 for architecture ppc7400

10.6.0

135 for architecture i386
38 for architecture ppc
127 for architecture x86_64

You can also look at “Extensions” in the “Software” section of the System Profiler utility. (Select Apple Menu->About This Mac and then click “More Info”). One of the columns shows whether the .kext is 64-bit capable. Only those extensions that are not 64-bit will show up with a “No” in that column.

tags: , ,

Sep 15

Users who want to run the new 64-bit kernel on late-model Macs (pretty much anything released after early 2008) can do so by booting with the 6 and 4 keys held down. If you’re wondering whether your Mac has a 64-bit EFI firmware, you can type this command in Terminal:

# ioreg -l -p IODeviceTree | grep firmware-abi

The response will identify the machine as either having 32-bit or 64-bit EFI.

To boot 64-bit kernel every time you boot machine:

1. Print nvram settings

# sudo nvram -p

2. Set boot-args to use 64 bit kernel

# sudo nvram boot-args="arch=x86_64"

Don’t forget to add in your existing boot-args to the command above. Using nvram means you don’t need to have to remember to hold down 6 or 4 during booting each time. To go back to the 32 bit kernel, just set the boot-args using nvram without the arch=x86_64 option.

tags: , ,