Howto compile the 2.6.23 kernel for the Mac Pro
October 24, 2007
This is based on a post on ubuntuforums.org, extended with Mac Pro specific points for version 2.6.23 of the kernel. Tested under Ubuntu Gutsy.
- Start by becoming root, let's avoid sudo'ing all the time
- Get all libraries and dependencies
apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev libncurses5 libncurses5-dev subversion
- Change to /usr/src
- Download the 2.6.23 kernel source
- Unpack the kernel source
tar -xf linux-2.6.23.tar.bz2
- If this is not the first time you're compiling a kernel, remove the old symlink
rm -rf linux
- Set the new symlink to version 2.6.23
ln -s linux-2.6.23 linux
- Get the mactel-linux kernel patches
svn co https://mactel-linux.svn.sourceforge.net/svnroot/mactel-linux/trunk/kernel/mactel-patches-2.6.23
- Go into the patch directory
- Apply the patch
- Change to the kernel source directory
- Download my custom .config file from the attachment of my post or from here and unzip it and drop it into /usr/src/linux
- If this is not the first time you're compiling the kernel, make sure everything is nice and clean
- Do the compiling and packaging
make-kpkg -initrd kernel_image kernel_headers modules_image
- Change to /usr/src
- Install the generated packages
dpkg -i linux-image-*.Custom_i386.deb
dpkg -i linux-headers-*.Custom_i386.deb
- Edit /boot/grub/menu.lst and make sure, that 2.6.23 are the two first entries and remove the "splash" boot option.
- Get and install the latest release of "Envy" an excellent script to set up proprietary graphics card drivers.
dpkg -i envy_0.9.8-0ubuntu8_all.deb
- Select the 2.6.23 rescue image to boot. We have to do this because the "envy" is only going to work when we have booted with the right kernel. If you'd choose the regular 2.6.23 image than it would have problems getting X up and running. So don't do it.
- When in the prompt, start the envy text interface.
- Select "Install Nvidia driver" for Nvidia or "Install ATI driver" for ATI. Wait a couple of minutes until it finishes.
The following should work at this point:
- fully accelerated graphics card drivers
- sound (when plugged into the rear connector)
Known Issues (maybe someone has a good idea how to solve these?)
- sound doesn't work when loudspeaker is plugged into the front connector
- cpu frequency scaling (this is probably a kernel bug - very annoying as the CPU core temperatures are much higher this way)
- cpu fan control (they are set to 500RPM, doesn't matter how hot the CPU gets - this is very dangerous for CPU-intensive tasks!)
Posted byvfxdude at 4:46 PM