forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help needed building on OS X

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Trarman



Joined: 01 Jul 2005
Posts: 6

PostPosted: Fri Jul 01, 2005 12:35 am    Post subject: help needed building on OS X Reply with quote

I've followed the instructions from this page:
http://staff.philau.edu/barberej/psp_dev_guide.htm

and everything worked up until the very last step, using elf2pbp to create the eboot.pbp. That caused a seg fault every time until I found the patch at the end of this thread: http://forums.ps2dev.org/viewtopic.php?t=2143&highlight=elf2pbp&sid=0b4318718ce0977482424772015a6520

So now I was able to compile and link and create a pbp without error, but the resulting eboot.pbp does not run in pspe nor on my psp.

Anyone have some suggestions?
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Fri Jul 01, 2005 12:36 am    Post subject: Reply with quote

Does not run as in what? Do you get an error code?
Back to top
View user's profile Send private message AIM Address
Trarman



Joined: 01 Jul 2005
Posts: 6

PostPosted: Fri Jul 01, 2005 12:39 am    Post subject: Reply with quote

Sorry, I should have mentioned that. I get:
"The game could not be started. (800200D9)"
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Fri Jul 01, 2005 12:44 am    Post subject: Reply with quote

What firmware do you have? 1.0/1.5/1.51/1.52?

1.0 and 1.5 these work.

1.51/1.52 we cant get to work... yet
Back to top
View user's profile Send private message AIM Address
Trarman



Joined: 01 Jul 2005
Posts: 6

PostPosted: Fri Jul 01, 2005 12:53 am    Post subject: Reply with quote

Firmware 1.5. I'm using the latest version of PSP Brew to split the eboot.pbp into the two directories and put them on my psp.

Regardless, I would've expected Hello World to work on pspe. My suspicion is there is something wrong with the way I'm linking. Or the patched elf2pbp is mangling the eboot.pbp. Hmm... I'll try pbp-ing my outp binary on a windows machine and see if we can isolate the problem a bit.
Back to top
View user's profile Send private message
Trarman



Joined: 01 Jul 2005
Posts: 6

PostPosted: Fri Jul 01, 2005 1:07 am    Post subject: Reply with quote

Followup: Using elf2pbp on Windows makes no difference to the end result whether I convert "out" or "outp". (Had read somewhere in the forums that outpatch is no longer needed? Is that true?) Both created eboot.pbp's hang pspe (so I didn't bother with copying them across to the psp)

So I have to conclude that the problem occurs before I create outp. I saw some confusion over exactly what parameters are needed with the latest toolchain when running psp-ld. Could someone who has done this successfully on OS X tell me what command line they used?
Back to top
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Fri Jul 01, 2005 1:17 am    Post subject: Reply with quote

try this

(from the article)
psp-gcc startup.o hellopsp.o pg.o controller.o -Wl,-Ttext -Wl,8900000 -nostartfiles -o out -lc


Last edited by Agoln on Fri Jul 01, 2005 1:18 am; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
Trarman



Joined: 01 Jul 2005
Posts: 6

PostPosted: Fri Jul 01, 2005 1:18 am    Post subject: Reply with quote

Followup to Followup: I read in another thread that pspe might not be able to run Hello World afterall. So I copied the eboot.pbp's (both the outpatched and unpatched versions) that I created on Windows to the PSP, and they give the same error as before. So that confirms that my osx version of elf2pbp isn't the problem. Something's wrong with the compiling or linking steps.
Back to top
View user's profile Send private message
Trarman



Joined: 01 Jul 2005
Posts: 6

PostPosted: Fri Jul 01, 2005 3:05 am    Post subject: Success Reply with quote

Success!

For anyone using OS X that is having trouble and finds this thread, here's the exact steps I used:

Follow the instructions from this site:
http://staff.philau.edu/barberej/psp_dev_guide.htm
but don't do any of the manual compilation steps. Just set up the environment, get the source, and make the listed code changes.

Additionally, apply the osx patch to elf2pbp from this thread:
http://forums.ps2dev.org/viewtopic.php?t=2143&highlight=elf2pbp

vi startup.S and change .xodata.sceModuleInfo to .rodata.sceModuleInfo

rm *.o
psp-gcc -g -c hellopsp.c
psp-gcc -g -c pg.c
psp-gcc -g -c -xassembler -O -o startup.o startup.S
psp-gcc startup.o hellopsp.o pg.o -nostartfiles -o out -lc
elf2pbp out

The resulting EBOOT.PBP can run on your psp using whatever exploit method works for you.

Thanks for your help Agoln!
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Sat Jul 02, 2005 12:46 am    Post subject: Reply with quote

The instructions you have used are outdated. Compiling in macosx should be as straight forward as: ./configure ; make install

If anyone is new to PSP programming they should consider starting with the examples installed with the sdk, not hellopsp. elf2pbp has now been superceded by pack-pbp. outpatch is not necessary.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group