""
All times are GMT +2. The time now is 11:34 AM.  

Go Back   PSX/PS2/PS3 Scene Newz > Playstation 3 Forums > PS3 Linux Discussion

PS3 Linux Discussion Linux on the ps3 discussion goes here.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2006, 03:48 PM
Ex-Cyber Ex-Cyber is offline
Registered User
 
Join Date: Jun 2004
Posts: 213

Notes on cross-compiling PS3 kboot


NB: I have only gotten to the point where I can build the kboot tree; I have no way to test the produced image, so I can't fully verify that I've done things correctly.

- There's a bug in ppu-as that pops up when cross-compiling the kernel on some hosts. You can work around this by dropping the attached ppu-makefile.patch into kboot-10/patches/linux/2.6.16/ - kboot will auto-apply it for you. I think it needs to be gunzipped first.

- If you get errors when building arch/powerpc/kernel/vdso32/gettimeofday.o, try applying the attached kboot-no-cross32.patch in kboot-10/

- there seem to be unresolved dependencies in the provided kboot tree: kexec-tools needs zlib, and coreutils needs libiconv.

- the kboot build runs mknod; you must be root for at least this portion of the build.
Attached Files
File Type: gz ppu-makefile.patch.gz (263 Bytes, 39 views)
File Type: gz kboot-no-cross32.patch.gz (382 Bytes, 39 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-16-2007, 06:09 PM
angra angra is offline
Registered User
 
Join Date: Feb 2007
Posts: 1
EC -

I registered on this board specifically to thank you for this post. I have been modifying kboot in an effort to facilitate something vaguely resembling pxe/netboot for automated installation. I have been compiling on the ps3, and having to copy the 1.3GB build tree off of the PS3 before every build attempt, and back afterwards. Cross-compile is a huge improvement that will save me a ton of time. I haven't fully tested yet, but things look good so far. Your notes got me past some early failures. Thanks-

PS how did you handle the depencies for kexec and coreutils?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-17-2007, 09:59 AM
Ex-Cyber Ex-Cyber is offline
Registered User
 
Join Date: Jun 2004
Posts: 213
It's been a while since I've done this (I'm running OpenBSD now, and it turns out that BSC's toolchain tree is a complete mess full of Linux/GNUisms, so I don't even have a working Cell toolchain right now). Basically I downloaded the sources for those libraries, built them, and installed them to the target tree. If memory serves, zlib has a very simple build system; I think I just did something like

Code:
CC=ppu-gcc make
and installed libz.a/so/h manually, but you can probably find some information in zlib's Makefile.

as for libiconv, it should support the GNU configure mechanism of specifying

Code:
--target=ppu --prefix=/path/to/target/tree
(where /path/to/target/tree is the directory which contains bin/ , lib/ , include/ et. al. for the PS3 toolchain.

Hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT +2. The time now is 11:34 AM.