You are not logged in.
I installed all the base packages for ArchPPC and have chrooted into it. I downloaded/uncompressed kernel 2.6.24 from kernel.org and ran `cp arch/powerpc/configs/ps3_defconfig .config`. The first time, I went straight to make after that. That gave me the error "linux-2.6.24/scripts/gcc-version.sh: line 26: printf: #: invalid number". So I ran pacman -Sy gcc3, then edited my Makefile setting HOSTCC=gcc-3.3, HOSTCXX=g++-3.3, and CC=gcc-3.3.
Now when I run make (after doing make clean) the first error I get is:
include/asm/mmu-hash64.h:437: error: `SID_SHIFT' undeclared (first use in this function)
Any ideas?
Last edited by Erroneous (2008-03-07 21:51:51)
Offline
Actually, I noticed that when I run make on the kernel using gcc 4, it also says :0 error: -m64 not supported by this configuration. Could it be that the PPC version of GCC doesn't support compiling for 64 bit while the 3.3 version does but the 3.3 version gets other errors?
Offline
You need a ppc64 cross-compiler to build a ps3 kernel. You can use the crosstool pkgbuilds from here: http://kth5.telekommunisten.net/archlinux/crosstools/
All you need to do is to replace the 32 bit ppc targets with powerpc64-unknown-linux-gnu and it should build fine.
I'm a Pastafari
Offline
I ended up using the ps3toolchain available from http://ps2dev.org/ps3/Tools/Toolchain/p … 26.tar.bz2 on my i686 machine, and the kernel compiles fine if I add CROSS=/path/to/ppu/bin/ppu- to the Makefile.
Offline