[Cbe-oss-dev] Problem with rebuilding latest Linux Kernel for PS3

Michael Ellerman michael at ellerman.id.au
Sat Jul 26 19:38:22 EST 2008


On Fri, 2008-07-25 at 21:35 +0000, John Cunha wrote:
> 
> Hi,
>  
> I'm having some trouble building the 2.6.26 kernel on a Playstation 3
> (Please be patient with me)...
>  
> I downloaded
> http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2 
>  
> I then downloaded the PS3 patch for the 2.6.26 kernel at
> http://www.eu.kernel.org/pub/linux/kernel/projects/ps3/ps3-linux-kernel/patch-ps3-linux-2.6.26-stable.0.bz2 
> 
> I untarred the linux-2.6.26.tar.bz2 file with:
> tar xjf linux-2.6.26.tar.bz2
> 
> Next, I descended into the created linux-2.6.26 directory and places
> the patch-ps3-linux-2.6.26-stable.0.bz2 there.
>  
> Next I tried to patch the code with the
> patch-ps3-linux-2.6.26-stable.0.bz2 patch with :
> bzcat patch-ps3-linux-2.6.26-stable.0.bz2 | patch -p1
> (That seemed to work with no problems)

Do you actually need anything in the ps3 patch? 

> Next I did:
> sed -i s@'EXTRAVERSION ='@'EXTRAVERSION = -20080723'@ Makefile

It's neater to create a file in your kernel directory called
'localversion'.

> Next I did:
>    make oldconfig
> ... and got : 
> linux-2.6.26]# make oldconfig
>   HOSTCC  scripts/basic/fixdep
>   HOSTCC  scripts/basic/docproc
>   HOSTCC  scripts/kconfig/conf.o
>   HOSTCC  scripts/kconfig/kxgettext.o
>   SHIPPED scripts/kconfig/zconf.tab.c
>   SHIPPED scripts/kconfig/lex.zconf.c
>   SHIPPED scripts/kconfig/zconf.hash.c
>   HOSTCC  scripts/kconfig/zconf.tab.o
>   HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf -o arch/powerpc/Kconfig
> arch/powerpc/Kconfig:221: can't open file
> "arch/powerpc/perfmon/Kconfig"
> make[1]: *** [oldconfig] Error 1
> make: *** [oldconfig] Error 2
> 
> Something seems wrong... 
>  
> Any ideas? What have I done wrong? Have I missed a step?
> Again... I've very sorry to be bugging you with this...

A bit of digging will show that the PS3 patch introduces this hunk,
which is the start of your problems:

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 3934e26..0d67f29 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -218,6 +218,8 @@ source "init/Kconfig"
 source "arch/powerpc/sysdev/Kconfig"
 source "arch/powerpc/platforms/Kconfig"
 
+source "arch/powerpc/perfmon/Kconfig"


But that file doesn't exist. For starters you should try removing that
line and see if that's enough to get the kernel building.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20080726/d287e80d/attachment.pgp>


More information about the cbe-oss-dev mailing list