Skip to main content

Crosscompiling a PPC64 kernel

Couple of quick notes.. Get Dan Kegel's crosstool. Unpack it, edit demo-ppc970.sh (G5 - Powerpc toolchain) and make sure the only uncommented eval line reads like:

eval  `cat powerpc-970.dat gcc-4.0.1-glibc-2.3.5-hdrs-2.6.11.2.dat`
sh all.sh --notest

Once the new toolchain is in place, unpack your linux-2.6.16-rc1 file

export PATH=/home/devel/ppc/gcc-4.0.1-glibc-2.3.5/powerpc64-unknown-linux-gnu/bin:$PATH
wget http://michele.pupazzo.org/files/xserve-2.6.16-rc1.config -O .config




make ARCH=powerpc AS=powerpc64-unknown-linux-gnu-as
LD=powerpc64-unknown-linux-gnu-ld
CC=powerpc64-unknown-linux-gnu-gcc
STRIP=powerpc64-unknown-linux-gnu-strip
OBJCOPY=powerpc64-unknown-linux-gnu-objcopy
OBJDUMP=powerpc64-unknown-linux-gnu-objdump
RANLIB=powerpc64-unknown-linux-gnu-ranlib

Proceed with the usual kernel compiling lingo...