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 

Made a "How to setup the psptoolchain" tutorial...

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



Joined: 30 Oct 2007
Posts: 35

PostPosted: Wed Dec 12, 2007 11:09 pm    Post subject: Made a "How to setup the psptoolchain" tutorial... Reply with quote

You probably wonder why I did this, since there are so many how-to's out there. Well it's because I followed them all and I still couldn't get my SDL app to run. Here is what worked for me:

http://www.guztech.nl/index.php/tutorials

Comments are welcome!

[UPDATE] I made some changes with the links, i've updated the link. I also have a tutorial about how to make usbhostfs_pc work as non-root (for those like me :P)


Last edited by Oguz286 on Thu Dec 13, 2007 10:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Dec 13, 2007 12:30 am    Post subject: Reply with quote

Looks nice.

It may be a slightly out of date as you've made me remember to add smpeg-psp to psplibraries. Which I have. :)
Back to top
View user's profile Send private message Visit poster's website
Oguz286



Joined: 30 Oct 2007
Posts: 35

PostPosted: Thu Dec 13, 2007 12:39 am    Post subject: Reply with quote

ooPo wrote:
Looks nice.

It may be a slightly out of date as you've made me remember to add smpeg-psp to psplibraries. Which I have. :)


*doh* If you'd have said that a couple of days ago, I could have spared me a throbbing headache :P No sweat, i'll change it. Thanks!
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Dec 13, 2007 2:23 am    Post subject: Reply with quote

I made the change after reading your guide, it wasn't added a couple days ago. :)
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Dec 13, 2007 9:24 am    Post subject: Reply with quote

ooPo wrote:
I made the change after reading your guide, it wasn't added a couple days ago. :)


The person compiling DukeNukem 3D for the PSP pointed out another problem - SDL_mixer/timidity/config.h needs

Code:
#define LITTLE_ENDIAN


added to it for the PSP or it won't play MIDI files correctly. It apparently defaults to big endian unless one of the platform definitions switches it to little. You'll notice in config.h that linux and W32 and i386 are all handled, but not the PSP. That probably should be dealt with as well.
Back to top
View user's profile Send private message AIM Address
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Dec 13, 2007 10:51 am    Post subject: Reply with quote

Code:
Sending        config.h
Transmitting file data .
Committed revision 2348.

Added.
Back to top
View user's profile Send private message Visit poster's website
Oguz286



Joined: 30 Oct 2007
Posts: 35

PostPosted: Thu Dec 13, 2007 11:31 am    Post subject: Reply with quote

Oh btw, i forgot to add some info about how to get usbhostfs_pc working as non-root (it only worked as root, before i got it fixed). I'll add that tomorrow :)
Back to top
View user's profile Send private message
Oguz286



Joined: 30 Oct 2007
Posts: 35

PostPosted: Thu Dec 13, 2007 10:33 pm    Post subject: Reply with quote

Changed the link and added another tutorial. See first post :)
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Dec 14, 2007 9:34 am    Post subject: Reply with quote

Oguz286 wrote:
Changed the link and added another tutorial. See first post :)


Nice! but there's one issue with the psplink article - the 054c and 01c9 will NEVER be different. 054c is Sony's manufacturer's code, and will only be different if key 0x43 in the idstorage is bad. The 01c9 is hardcoded in the usbhostfs code and will only be different if you alter the source and recompile.
Back to top
View user's profile Send private message AIM Address
zilt



Joined: 21 Feb 2006
Posts: 45
Location: Ontario, Canada

PostPosted: Fri Dec 14, 2007 12:17 pm    Post subject: Reply with quote

J.F. wrote:
The 01c9 is hardcoded in the usbhostfs code and will only be different if you alter the source and recompile.


Not always. You can change the 01c9 value for usbhostfs_pc by adding the '-p <value>' option and changing the 'pid' value in psplink.ini. You only really need to do this if you have more than 1 psp connected (I'm constantly testing with 3 different psp connected at once to my system - and this is the only way to do it).
_________________
"We are dreamers, shapers, singers, and makers. We study the mysteries of laser and circuit, crystal and scanner, holographic demons and invocations of equations. These are the tools we employ and we know... many things." -- Elric, B5
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Dec 14, 2007 4:34 pm    Post subject: Reply with quote

zilt wrote:
J.F. wrote:
The 01c9 is hardcoded in the usbhostfs code and will only be different if you alter the source and recompile.


Not always. You can change the 01c9 value for usbhostfs_pc by adding the '-p <value>' option and changing the 'pid' value in psplink.ini. You only really need to do this if you have more than 1 psp connected (I'm constantly testing with 3 different psp connected at once to my system - and this is the only way to do it).


Oh, right. Thanks for reminding me. So that part should be added to the tutorial. 01c9 unless you change it with the ini... and they may need more than one entry, depending on how many PSPs they're using.
Back to top
View user's profile Send private message AIM Address
Oguz286



Joined: 30 Oct 2007
Posts: 35

PostPosted: Sat Dec 15, 2007 12:25 am    Post subject: Reply with quote

So if I understand this correctly, 054c belongs to Sony, so every PSP out there has the same vendor id. 01c9 is built in usbhostfs_pc and doesn't change unless you recompile it with a different value or if you use the -p <value> option and changing the pid value in the config file. I'll change the tutorial, thanks! Btw, J.F., you don't mind that I used a bit of your howto do you? ;)

Can I post this in the sticky? That way the same questions won't be asked again (I hope).
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Dec 15, 2007 9:18 am    Post subject: Reply with quote

Oguz286 wrote:
So if I understand this correctly, 054c belongs to Sony, so every PSP out there has the same vendor id. 01c9 is built in usbhostfs_pc and doesn't change unless you recompile it with a different value or if you use the -p <value> option and changing the pid value in the config file. I'll change the tutorial, thanks! Btw, J.F., you don't mind that I used a bit of your howto do you? ;)


Not at all. Feel free. Much of "my" info was from the Mac OSX howto to begin with. People come along and add a little more info, like you're doing now. So the finished howto gets a little better each time.
Back to top
View user's profile Send private message AIM Address
noquarter



Joined: 23 Jul 2006
Posts: 17

PostPosted: Thu Dec 20, 2007 8:45 am    Post subject: Reply with quote

Thanks for the tut,it'll make it easier cause I have to reinstall my macbuntu system.I got some really weird behavior goin so I'm just gonna reinstall.
Thanks a bunch.
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