Compiling PSPSDK on PS3 Linux and creating PSP and PS3 games

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
edepot
Posts: 111
Joined: Sat Apr 09, 2005 3:39 pm

Compiling PSPSDK on PS3 Linux and creating PSP and PS3 games

Post by edepot »

How many people here are programming the psp via a ps3?

How do you compile the PSPSDK on a PS3 running linux?
Previously you just run the shell script to download and compile the
pspsdk via Cygwin on a PC, but if you are doing it on a PS3 running
linux, how do you go about doing this? Is there a step by step
procedure? Since there is an easy installation guide for the
GENTOO linux maybe there is a guide for installing the PSPSDK on this
platform also.

Secondly since one of the SPE on the ps3 runs the ps3 os, is this
the so called hypervisor that provides security? Is this what is
blocking access to the GPU natively?

Also, when is there going to be a PS3SDK? One that provides easy
libraries for getting the sixaxis input, outputting via the GPU (if possible)
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Re: Compiling PSPSDK on PS3 Linux and creating PSP and PS3 g

Post by Shine »

edepot wrote:How many people here are programming the psp via a ps3?
I've thought about this, because it will be faster than the Cygwin environment on my Windows PC :-)
edepot wrote: Also, when is there going to be a PS3SDK? One that provides easy
libraries for getting the sixaxis input, outputting via the GPU (if possible)
I don't think something like a full PS3SDK is necessary. Sound works already with the Linux defacto audio standard ALSA. But you are right, things like the controller support could be added to the PS3 respository at http://svn.ps2dev.org/ and maybe later it will be merged to the Linux code base itself, because then every computer with Linux and USB can use Sonys controller.
edepot
Posts: 111
Joined: Sat Apr 09, 2005 3:39 pm

ps3sdk and pspsdk on ps3

Post by edepot »

Would it actually work? Can the pspsdk actually compile on PS3 linux?
Given that the subversion pspsdk contains sources on patches to the regular GNU sources for C and other libraries so that they can compile code and output PSP compatible binaries. And given that GNU C and
other libraries can compile on any supported processor (be it
x86, powerpc, etc). Does the subversion pspsdk actually patch the
regular GNU C and other libraries such that they work on ALL supported
CPU's so that the resultant compiler can output PSP binaries? Or are the
patches specific to a linux environment running on x86? If the patches
actually work on all CPU's then regular GNU C and other libraries must
currently work on CELL CPU's so that pspsdk can patch it to work on
the CELL right? Perhaps the regular GNU C already works on the single
PowerPC module on the CELL and the SPE's can be isolated. If so
does this mean people can actually compile the PSPSDK nowadays
on non x86 machines? (like maybe a mac powerpc running linux or
on a sparcstation running linux). If yes, then I think it should be no
problem running the pspsdk on a ps3 linux.
User avatar
groepaz
Posts: 305
Joined: Thu Sep 01, 2005 7:44 am
Contact:

Post by groepaz »

If so
does this mean people can actually compile the PSPSDK nowadays
on non x86 machines? (like maybe a mac powerpc running linux or
on a sparcstation running linux).
yes
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

IIRC adrahil has the pspsdk set up on a PS2 ;-)
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

danzel wrote:IIRC adrahil has the pspsdk set up on a PS2 ;-)
Yup :) Compiled nice and cleanly :P Even psplink works, up to some extent ^^
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

I've installed it on my PS3 and it works. Just checkout psptoolchain from SVN, compile it with toolchain.sh and add this to your /etc/profile:

Code: Select all

export PSPDEV=/usr/local/pspdev
export PSPSDK=/usr/local/pspdev/psp
export PATH=$PATH:/usr/local/pspdev/bin
Now you can test it with "cd /usr/local/pspdev/psp/sdk/samples/gu/cube ; make" and you should get an EBOOT.PBP.
FreePlay
Posts: 71
Joined: Wed Jan 04, 2006 6:53 pm
Location: Schenectady, New York, USA

Post by FreePlay »

adrahil wrote:
danzel wrote:IIRC adrahil has the pspsdk set up on a PS2 ;-)
Yup :) Compiled nice and cleanly :P Even psplink works, up to some extent ^^
I'm not entirely sure whether I should be impressed or horrified.
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

FreePlay wrote:
adrahil wrote:
danzel wrote:IIRC adrahil has the pspsdk set up on a PS2 ;-)
Yup :) Compiled nice and cleanly :P Even psplink works, up to some extent ^^
I'm not entirely sure whether I should be impressed or horrified.
Horrified :3
Nah, it is just surprising to see a clean compilation (just some warnings with vsnprintf stuff) on such an exotic system (RHEL-derivative with 2.2.1 kernel and old libc...)
hlide
Posts: 739
Joined: Sun Sep 10, 2006 2:31 am

Post by hlide »

a little bit off topic :

is gcc on PS3 able to compile programs for SPE and not only for CPU ?
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

hlide wrote: is gcc on PS3 able to compile programs for SPE and not only for CPU ?
Yes, you can compile for SPE (at least with my Gentoo installation).
Post Reply