You are not logged in.

#1 2008-02-05 22:56:18

Erroneous
Member
Registered: 2006-08-28
Posts: 35

[SOLVED] Error building vanilla kernel for PS3

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

#2 2008-02-05 23:19:02

Erroneous
Member
Registered: 2006-08-28
Posts: 35

Re: [SOLVED] Error building vanilla kernel for PS3

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

#3 2008-02-08 10:33:16

armin
Member
From: the Caribbean. Arrr...!!!
Registered: 2007-02-26
Posts: 46

Re: [SOLVED] Error building vanilla kernel for PS3

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

#4 2008-03-07 21:54:09

Erroneous
Member
Registered: 2006-08-28
Posts: 35

Re: [SOLVED] Error building vanilla kernel for PS3

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

Board footer

Powered by FluxBB