Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fix your own kboot image for PS3, a howto would be nice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 209
Location: Sweden - Stockholm

PostPosted: Mon May 21, 2007 9:06 am    Post subject: Fix your own kboot image for PS3, a howto would be nice Reply with quote

Hello!

I am trying to build kboot-11 from kboot-20070425 (sony ADDON CD). I want to have reiserfs support in otheros.bld because i want my / to be reiserfs
having some trubles with gcc and some other stuff :(

I have searched the "World" for a otheros.bld that supports reiserfs but with no sucess

Someone with some experience about this? how to make a own kboot image?

This is the error i get when compiling gcc with kboot-11/Makefile any idees?

Code:

TARGET_CPU_DEFAULT=""
        HEADERS="ansidecl.h" DEFINES=""
        /bin/sh ../../gcc-3.4.6/gcc/mkconfig.sh tconfig.h
( echo '#ifndef __powerpc64__';
          echo '#define FLOAT';
          cat ../../gcc-3.4.6/gcc/config/fp-bit.c;
          echo '#endif' ) > fp-bit32.c
( echo '#ifndef __powerpc64__';
          cat ../../gcc-3.4.6/gcc/config/fp-bit.c;
          echo '#endif' ) > dp-bit32.c
/var/tmp/ps3/kboot-20070425/kboot-11/gcc-3.4.6-host/gcc/xgcc -B/var/tmp/ps3/kboot-20070425/kboot-11/gcc-3.4.6-host/gcc/ -B/var/tmp/ps3/kboot-20070425/kboot-11/build/host/powerpc64-unknown-linux-gnu/bin/ -B/var/tmp/ps3/kboot-20070425/kboot-11/build/host/powerpc64-unknown-linux-gnu/lib/ -isystem /var/tmp/ps3/kboot-20070425/kboot-11/build/host/powerpc64-unknown-linux-gnu/include -isystem /var/tmp/ps3/kboot-20070425/kboot-11/build/host/powerpc64-unknown-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc-3.4.6/gcc -I../../gcc-3.4.6/gcc/. -I../../gcc-3.4.6/gcc/../include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -msdata=none
           -c ../../gcc-3.4.6/gcc/crtstuff.c -DCRT_BEGIN
          -o crtbegin.o
In file included from /usr/include/stdio.h:833,
                 from ../../gcc-3.4.6/gcc/tsystem.h:79,
                 from ../../gcc-3.4.6/gcc/crtstuff.c:62:
/usr/include/bits/stdio.h: In function `vprintf':
/usr/include/bits/stdio.h:36: error: syntax error before "__restrict__"
/usr/include/bits/stdio.h: In function `getchar':
/usr/include/bits/stdio.h:43: error: syntax error before "__restrict__"
/usr/include/bits/stdio.h:59: confused by earlier errors, bailing out
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/var/tmp/ps3/kboot-20070425/kboot-11/gcc-3.4.6-host/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/var/tmp/ps3/kboot-20070425/kboot-11/gcc-3.4.6-host'
make: *** [gcc-3.4.6-host/.kboot-built] Error 2



and got a answer form anoter forum!

Quote:
Are you compiling this with the CELL SDK? If not, it will (of course) fail to work!



The only thing i do is download the file kboot-11.tar.gz

or take it from sonys addon CD, place it on the ps3 and to a make in that dir, the makefile downloads all files and tryes to kompile, do i need to setup a special env with CELL SDK ? for this

Have someone here succesfully compiled kboot to a otheros.bld ? do anyone have the time to make a little guide :-? any dev people please?


Someone must have the experiance for this, how is the otheros.bld for gentoo PS3 on ppc64 cd made? :roll:
_________________
This is me: Mikael Jenkler, use google translate when viewing my page, please!
Back to top
View user's profile Send private message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 209
Location: Sweden - Stockholm

PostPosted: Mon May 21, 2007 12:51 pm    Post subject: ? Reply with quote

Must it be build from

1. Build Environment

Hardware PS3
Software Fedora Core 6 full install


i am trying to build it with

1. Build Environment

Hardware PS3
Software gentoo chrooted install :idea:
_________________
This is me: Mikael Jenkler, use google translate when viewing my page, please!
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Mon May 21, 2007 2:42 pm    Post subject: Building your own kboot images Reply with quote

It's a work in progress...

http://overlays.gentoo.org/proj/cell/wiki/KbootBootloader
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 209
Location: Sweden - Stockholm

PostPosted: Mon May 21, 2007 2:56 pm    Post subject: Re: Building your own kboot images Reply with quote

rangerpb wrote:
It's a work in progress...

http://overlays.gentoo.org/proj/cell/wiki/KbootBootloader



But at the moment its only possible to use Software Fedora Core 6 full install ?

Or is there a fix to make it work in my environment (PS3 livecd with chroot up to stage 2 compile done)

What is the issue here? do i need some aditional CELL SDK software to manage this
_________________
This is me: Mikael Jenkler, use google translate when viewing my page, please!
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Mon May 21, 2007 3:42 pm    Post subject: Re: Building your own kboot images Reply with quote

jenkler wrote:
rangerpb wrote:
It's a work in progress...

http://overlays.gentoo.org/proj/cell/wiki/KbootBootloader



But at the moment its only possible to use Software Fedora Core 6 full install ?

Or is there a fix to make it work in my environment (PS3 livecd with chroot up to stage 2 compile done)

What is the issue here? do i need some aditional CELL SDK software to manage this


I thought the howto was quite clear on this. You should use a 64bit userland stage for this; which can be done in a chroot. I make no mention of needing fedora or the cell sdk.

The reason for using a pure 64bit environment is because certain parts of kboot must be 64bit and others can optionally be 32bit or 64bit. The 64ul eliminates compiler confusion and therefore is easier to build.
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
jenkler
Apprentice
Apprentice


Joined: 28 Apr 2003
Posts: 209
Location: Sweden - Stockholm

PostPosted: Mon May 21, 2007 7:27 pm    Post subject: ahhh Reply with quote

Quote:

Build environment ¶
I used a 2006.1 64-bit userland chroot to build kboot. It just seemed to build better in a pure 64bit environment. Extract the sources in this chroot and issue the proper make statement.


opps :oops:, Why did i not see that, sorry
Thanks alot man for posting back to me (i relly should have seen that), i will try this out tomorrow and see if it works :wink:

btw. which should you choose stage4-970-ps3_64ul.tar.bz2 or stage3-970-64ul-2007.0.tar.bz2 ? does it matter?
Because i compiled from stage1 (stage1-ppc64-64ul-2007.0.tar.bz2 ) on my PS3
1. bootstrap
2. emerge -e system

Is this not ul64? what do i need to do to get my build from stage1 to be = stage3-970-64ul-2007.0.tar.bz <-- if this should work
hehe the cool thing about gcc crash is that its seems relly random

Sorry for all questions but its great to talk to a DEV, Now I am happy :D
/jenkler
_________________
This is me: Mikael Jenkler, use google translate when viewing my page, please!
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Mon May 21, 2007 8:33 pm    Post subject: Reply with quote

Some of this discussion might be a little bit better for IRC. We can then sort things out. I suspect you are using someone else's stages since I/we (Gentoo) never released anything but stage4 for ps3. If you are starting with stage1 from someone else, I cannot comment on that.

Also, notice I said that I used a *2006.1* 64bit-userland stage in a chroot. So you can use whatever stage you want, just unpack a 2006.1 stage and chroot to it.
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
Opossum
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2005
Posts: 104

PostPosted: Wed Mar 05, 2008 12:26 pm    Post subject: Reply with quote

Hello!

I've the same problem.
I've installed gentoo on my ps3 with stage4-970-ps3_64ul.tar.bz2. My gcc version is 4.1.2 and gcc -dumpmachine return powerpc64-unknown-linux-gnu.

What is worng??

Tanks for your reply
Back to top
View user's profile Send private message
rangerpb
Retired Dev
Retired Dev


Joined: 19 Jan 2005
Posts: 147

PostPosted: Thu Mar 06, 2008 2:06 am    Post subject: Reply with quote

I think that is a normal response. What did you expect differently?
_________________
-->
rangerpb
<--
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum