| View previous topic :: View next topic |
| Author |
Message |
pushpin
Joined: 11 Mar 2005 Posts: 6
|
Posted: Mon May 23, 2005 5:11 am Post subject: What's the fastest way to jump in to PSP dev? |
|
|
I've been away for a while, is there a thread that sums up how to jump in with coding for the 1.0 Jap bios PSP? Start to finish, sort of like the tuts available for DS and GBA dev?
Sorry if this has been covered but its looking like lots of unorganized threads and no central wiki has been setup (and actually used).
I guess I'm also asking, what toolchain is everyone using? |
|
| Back to top |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Mon May 23, 2005 6:44 am Post subject: |
|
|
use the source. nem's hello world for example, you can use the ps2dev gcc toolchain. or something like this for latest binutils.
configure --target=mipsel-unknown-elf --prefix=/usr/local/pspdev
and this for gcc-4.0.0
configure --target=mipsel-unknown-elf --prefix=/usr/local/pspdev --enable-languages="c"
wich should work just fine, you will then have a r4k capable compiler, wich suits the core of the psp. _________________ Kung VU |
|
| Back to top |
|
 |
Energy
Joined: 26 Mar 2005 Posts: 133 Location: uk/beds/flitwick
|
Posted: Mon May 23, 2005 10:15 pm Post subject: |
|
|
So getting started code-wise I'd start to build the PS2 toolchain...
http://ps2dev.org/kb.x?T=927
Then what? Soz I'm a similar newbie stage. All I've ever set up is the Dreamcast toolchain, which people had heavly documented. |
|
| Back to top |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Tue May 24, 2005 6:09 pm Post subject: |
|
|
either download the ps2dev toolchain, or do as I said with the latest binutils and gcc-4.0 wich you can get from ftp.gnu.org. _________________ Kung VU |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
|
| Back to top |
|
 |
Energy
Joined: 26 Mar 2005 Posts: 133 Location: uk/beds/flitwick
|
Posted: Wed May 25, 2005 12:45 am Post subject: |
|
|
thanks man.
:) |
|
| Back to top |
|
 |
th0mas
Joined: 24 Apr 2005 Posts: 43 Location: Canada
|
Posted: Wed May 25, 2005 1:43 am Post subject: |
|
|
is there any advantage to that psptoolchain-20050523.tgz over the ee-gcc from the most recent ps2toolchain also on oopo's site? _________________ http://th0mas.xbox-scene.com |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Wed May 25, 2005 1:57 am Post subject: |
|
|
| Not much advantage at the moment, really... |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Wed May 25, 2005 2:02 am Post subject: |
|
|
| ooPo wrote: | | Not much advantage at the moment, really... |
ee-gcc is based on GCC 3.2.2 and binutils 2.14. psp-gcc is based on GCC 4.0.0 and binutils 2.16. The immediate advantages are that psp-gcc will generate smaller, faster code, and it brings all of GCC4's features to the table, such as precompiled headers and whole unit compilation. psp-gcc was also built specifically for the MIPS R4k found in the PSP, so there's no fiddling with compiler flags other than the ones need to build your program. Also, newlib for PSP has routines you can use, all of string, ctype, stdio, etc.
Maybe it's a bit early for ooPo :). |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Wed May 25, 2005 2:08 am Post subject: |
|
|
Well, all that yeah. :)
..but there isn't anything psp-specific added to the toolchain yet other than being compiled for the right mips processor, which is what I was getting at. |
|
| Back to top |
|
 |
adresd
Joined: 17 Jan 2004 Posts: 43
|
Posted: Wed May 25, 2005 2:11 am Post subject: |
|
|
Surely it is a benfit to get everone at least using the same version (and a current one at that) from the start.
It Will make a whole host of tasks less painful.. esp if you consider the ps2 case and lessons learnt from there.
Getting everyone using a single toolchain will also help iron out any problems in that one, and encourage people to add/fix it.
Just my 2 cents/yen/pounds/whatever |
|
| Back to top |
|
 |
th0mas
Joined: 24 Apr 2005 Posts: 43 Location: Canada
|
Posted: Wed May 25, 2005 2:35 am Post subject: |
|
|
better newlib support was what I was looking for, thanks.. iirc the ee-newlib didn't quite do the trick? _________________ http://th0mas.xbox-scene.com |
|
| Back to top |
|
 |
t3ddY
Joined: 08 May 2005 Posts: 12 Location: The Netherlands
|
Posted: Wed May 25, 2005 3:59 am Post subject: |
|
|
| Now it's just a matter of time untill someone compiles that gcc for win32, together with some tools (bmp2c etc), nem's libs and a version of PSPE... That would be really cool :) |
|
| Back to top |
|
 |
Energy
Joined: 26 Mar 2005 Posts: 133 Location: uk/beds/flitwick
|
Posted: Wed May 25, 2005 5:37 pm Post subject: |
|
|
| t3ddY wrote: | | Now it's just a matter of time untill someone compiles that gcc for win32, together with some tools (bmp2c etc), nem's libs and a version of PSPE... That would be really cool :) |
ah ha!
could be a job for... you :D
lol |
|
| Back to top |
|
 |
t3ddY
Joined: 08 May 2005 Posts: 12 Location: The Netherlands
|
Posted: Wed May 25, 2005 6:33 pm Post subject: |
|
|
| I'm using ee-g++ @ the moment for my c++ and i'm to lame to build a whole new cross compiled gcc dist :) |
|
| Back to top |
|
 |
CoreCZ
Joined: 24 May 2005 Posts: 8 Location: UMD Drive
|
Posted: Wed May 25, 2005 6:39 pm Post subject: Not sure??? |
|
|
I installed ps2dev win32 enviroment that contains most of the tools.
So now I am stuck on creating the .bat which compiles the sources?
I have the compilers and sources, I just don't know how to make the bat which compiles it?, Any ideas?
Soz if it sounds like a n00b question its pretty hard to understand most of this as I am only 14 years old=) |
|
| Back to top |
|
 |
Energy
Joined: 26 Mar 2005 Posts: 133 Location: uk/beds/flitwick
|
Posted: Mon May 30, 2005 9:18 pm Post subject: |
|
|
Currently in the middle of this ooPo, and I think I'm just building libnew and I've got this problem...
| Code: |
cd: can't find cd to newlib-1.13.0
can't find file at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff -burN orig.newlib-1.13.0/config.sub newlib-1.13.0/config.sub
|--- orig.newlib-1.13.0/config.sub 2004-11-15 21:18:39.000000000 -0400
|+++ newlib-1.13.0/config.sub 2005-05-23 02:33:28.000000000 -0300
File to patch:
|
Now am I doing something stupid or will I have to start again?
Energy |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue May 31, 2005 12:12 am Post subject: |
|
|
| Code: | | cd: can't find cd to newlib-1.13.0 |
Looks like it had some trouble trying to unpack newlib. |
|
| Back to top |
|
 |
Yardbird
Joined: 31 May 2005 Posts: 11
|
Posted: Tue May 31, 2005 5:27 am Post subject: |
|
|
Hi, I managed to build the "hello world" example using the PS2Dev Environment for Win32, but I would also like to get this toolchain up & running. I was wondering if someone could enlighten me about what I have to do with the "startup.s" file? Using psp-gcc I get some messages regarding "illegal operands" in it (don't know anything about assembler, so I don't have a clue). |
|
| Back to top |
|
 |
Energy
Joined: 26 Mar 2005 Posts: 133 Location: uk/beds/flitwick
|
Posted: Tue May 31, 2005 7:13 am Post subject: |
|
|
| ooPo wrote: | | Code: | | cd: can't find cd to newlib-1.13.0 |
Looks like it had some trouble trying to unpack newlib. |
I don't know cause it seemed to unpack all of it before...
I'll try again or I'll build it manually. I might get back into programming for the dreamcast cause that was always fun too. Might try and see if I can get a multi-psp/dc enviroment setup made. Can't be that hard can it? :) |
|
| Back to top |
|
 |
0xdeadface
Joined: 31 May 2005 Posts: 62
|
Posted: Fri Jun 03, 2005 7:47 pm Post subject: |
|
|
Did anyone manage to compile the 4.0.0 toolchain for DOS/windows?
My knowledge of Linux/cygwin/doIknowWhat is limited to ls :o\
(I know "well there's a job for *you* 0xdf' but....well, yeah, have to give it a shot)
0xdf |
|
| Back to top |
|
 |
Squall333
Joined: 28 Apr 2005 Posts: 91
|
Posted: Sat Jun 04, 2005 3:46 am Post subject: |
|
|
| I treid to d/l binutils-2.13.2.1-EE.diff but the link seems to be dead is there anywhere else i can get it? |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
|
| Back to top |
|
 |
0xdeadface
Joined: 31 May 2005 Posts: 62
|
Posted: Sun Jun 05, 2005 12:02 am Post subject: |
|
|
Yikes...well, I managed to get into a bash shell and try to install the ps2dev toolchain with the quite specific instructions, but I must be doing something very wrong.
When I follow the steps and come to
../binutils-2.13.2.1/configure --prefix=usr/ps2dev/ee -target=ee
it responds with
'invalid configuration 'ee' : machine 'ee' not recognized
Unrecognized target system name ee.
Anyone who understands more of unix than I and can tell me what I must have done wrong?
0xdf |
|
| Back to top |
|
 |
0xdeadface
Joined: 31 May 2005 Posts: 62
|
Posted: Sun Jun 05, 2005 12:32 am Post subject: |
|
|
I assume it has to do with the directory structure as suggested by Now3d mentioned in the instructions, but that link is dead :(
0xdf |
|
| Back to top |
|
 |
0xdeadface
Joined: 31 May 2005 Posts: 62
|
Posted: Sun Jun 05, 2005 2:42 am Post subject: |
|
|
Well, being lazy I decided to uninstall and reinstall cygwin. Seems I did miss some program, and I figured a full reinstall fixed it.
So if anyone has trouble getting it installed....lol, just install ALL with the cygwin, you'll be sure to have the right modules.
:)
0xdf |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
|
| Back to top |
|
 |
0xdeadface
Joined: 31 May 2005 Posts: 62
|
Posted: Sun Jun 05, 2005 4:24 am Post subject: |
|
|
Just a huge thx to Oopo for making the install doable for mere humans.
0xdf |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sun Jun 05, 2005 4:44 am Post subject: |
|
|
| The real hard toolchain work is done by people other than me... I just make a fancy package. :) |
|
| Back to top |
|
 |
Energy
Joined: 26 Mar 2005 Posts: 133 Location: uk/beds/flitwick
|
Posted: Mon Jun 06, 2005 12:10 am Post subject: |
|
|
ooPo managed to get the script to run
*looks embarrased*
I forgot to include b2zip.
Anyway - for when my cygwin starts up can I have it so that the startup code is in a seperate file like 'psp_dev.sh' then in the bash_profile can I just put ./psp_dev.sh ?
Soz just want to check :) |
|
| Back to top |
|
 |
|