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

John Cunha johncunha at hotmail.com
Sun Jul 27 04:07:05 EST 2008


Hi Michael
 
I've been trying to rebuild and use different kernels on the PS3 for a while now and never with any success.
The usual problems are that the kernel seems to build with success but the machine fails to reboot successfully using the newly build kernel.
 
I'll try to build this kernel without the patch.
John



> Subject: Re: [Cbe-oss-dev] Problem with rebuilding latest Linux Kernel for PS3> From: michael at ellerman.id.au> To: johncunha at hotmail.com> CC: cbe-oss-dev at ozlabs.org> Date: Sat, 26 Jul 2008 19:38:22 +1000> > 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
_________________________________________________________________
Find the best and worst places on the planet
http://clk.atdmt.com/UKM/go/101719807/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20080726/41488d5b/attachment.htm>


More information about the cbe-oss-dev mailing list