<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Hi Michael<BR>
<BR>
I've been trying to rebuild and use different kernels on the PS3 for a while now and never with any success.<BR>
The usual problems are that the kernel seems to build with success but the machine fails to reboot successfully using the newly build kernel.<BR>
<BR>
I'll try to build this kernel without the patch.<BR>
<BR>John<BR><BR><BR><BR>
<HR id=stopSpelling>
<BR>
> Subject: Re: [Cbe-oss-dev] Problem with rebuilding latest Linux Kernel for PS3<BR>> From: michael@ellerman.id.au<BR>> To: johncunha@hotmail.com<BR>> CC: cbe-oss-dev@ozlabs.org<BR>> Date: Sat, 26 Jul 2008 19:38:22 +1000<BR>> <BR>> On Fri, 2008-07-25 at 21:35 +0000, John Cunha wrote:<BR>> > <BR>> > Hi,<BR>> > <BR>> > I'm having some trouble building the 2.6.26 kernel on a Playstation 3<BR>> > (Please be patient with me)...<BR>> > <BR>> > I downloaded<BR>> > http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2 <BR>> > <BR>> > I then downloaded the PS3 patch for the 2.6.26 kernel at<BR>> > http://www.eu.kernel.org/pub/linux/kernel/projects/ps3/ps3-linux-kernel/patch-ps3-linux-2.6.26-stable.0.bz2 <BR>> > <BR>> > I untarred the linux-2.6.26.tar.bz2 file with:<BR>> > tar xjf linux-2.6.26.tar.bz2<BR>> > <BR>> > Next, I descended into the created linux-2.6.26 directory and places<BR>> > the patch-ps3-linux-2.6.26-stable.0.bz2 there.<BR>> > <BR>> > Next I tried to patch the code with the<BR>> > patch-ps3-linux-2.6.26-stable.0.bz2 patch with :<BR>> > bzcat patch-ps3-linux-2.6.26-stable.0.bz2 | patch -p1<BR>> > (That seemed to work with no problems)<BR>> <BR>> Do you actually need anything in the ps3 patch? <BR>> <BR>> > Next I did:<BR>> > sed -i s@'EXTRAVERSION ='@'EXTRAVERSION = -20080723'@ Makefile<BR>> <BR>> It's neater to create a file in your kernel directory called<BR>> 'localversion'.<BR>> <BR>> > Next I did:<BR>> > make oldconfig<BR>> > ... and got : <BR>> > linux-2.6.26]# make oldconfig<BR>> > HOSTCC scripts/basic/fixdep<BR>> > HOSTCC scripts/basic/docproc<BR>> > HOSTCC scripts/kconfig/conf.o<BR>> > HOSTCC scripts/kconfig/kxgettext.o<BR>> > SHIPPED scripts/kconfig/zconf.tab.c<BR>> > SHIPPED scripts/kconfig/lex.zconf.c<BR>> > SHIPPED scripts/kconfig/zconf.hash.c<BR>> > HOSTCC scripts/kconfig/zconf.tab.o<BR>> > HOSTLD scripts/kconfig/conf<BR>> > scripts/kconfig/conf -o arch/powerpc/Kconfig<BR>> > arch/powerpc/Kconfig:221: can't open file<BR>> > "arch/powerpc/perfmon/Kconfig"<BR>> > make[1]: *** [oldconfig] Error 1<BR>> > make: *** [oldconfig] Error 2<BR>> > <BR>> > Something seems wrong... <BR>> > <BR>> > Any ideas? What have I done wrong? Have I missed a step?<BR>> > Again... I've very sorry to be bugging you with this...<BR>> <BR>> A bit of digging will show that the PS3 patch introduces this hunk,<BR>> which is the start of your problems:<BR>> <BR>> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig<BR>> index 3934e26..0d67f29 100644<BR>> --- a/arch/powerpc/Kconfig<BR>> +++ b/arch/powerpc/Kconfig<BR>> @@ -218,6 +218,8 @@ source "init/Kconfig"<BR>> source "arch/powerpc/sysdev/Kconfig"<BR>> source "arch/powerpc/platforms/Kconfig"<BR>> <BR>> +source "arch/powerpc/perfmon/Kconfig"<BR>> <BR>> <BR>> But that file doesn't exist. For starters you should try removing that<BR>> line and see if that's enough to get the kernel building.<BR>> <BR>> cheers<BR>> <BR>> -- <BR>> Michael Ellerman<BR>> OzLabs, IBM Australia Development Lab<BR>> <BR>> wwweb: http://michael.ellerman.id.au<BR>> phone: +61 2 6212 1183 (tie line 70 21183)<BR>> <BR>> We do not inherit the earth from our ancestors,<BR>> we borrow it from our children. - S.M.A.R.T Person<BR><BR><br /><hr />Find out how to make Messenger your very own TV! <a href='http://clk.atdmt.com/UKM/go/101719648/direct/01/' target='_new'>Try it Now!</a></body>
</html>