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 

Calling SDK functions from within uCLinux

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



Joined: 15 Aug 2005
Posts: 93

PostPosted: Sun Jan 31, 2010 7:20 pm    Post subject: Calling SDK functions from within uCLinux Reply with quote

Long time no post :).

Rambling around in my room, found the old PSP, and was curious what happened in the scene. From what I can tell, nothing.

Anyway, I successfully setup a cross compiler, and got applications running on Linux on the PSP (albeit no C++... sad :( ).

My question is, how can I link the PSPSDK libraries against programs compiled to run in Linux? I am using mipsel-linux-gcc, not the standard psp-gcc. What is the difference? Is psp-gcc just a frontend for the former, which does some extra, or...?
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Sun Jan 31, 2010 9:04 pm    Post subject: Reply with quote

Quote:
My question is, how can I link the PSPSDK libraries against programs compiled to run in Linux?

In general, you can't. Most Linux source code/programs are not immediately suitable for compilation/execution on PSP.
Usually there's at least a little bit, and often quite a lot of work needs to be done.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
Gary13579



Joined: 15 Aug 2005
Posts: 93

PostPosted: Mon Feb 01, 2010 7:10 am    Post subject: Reply with quote

Jim wrote:
Quote:
My question is, how can I link the PSPSDK libraries against programs compiled to run in Linux?

In general, you can't. Most Linux source code/programs are not immediately suitable for compilation/execution on PSP.
Usually there's at least a little bit, and often quite a lot of work needs to be done.

Jim


I'm not talking about porting an application written on my PC to the PSP... I've got uCLinux running on my PSP, and have already written a simple hello world for it.

Is it really impossible/at least very hard to call PSP functions from within uCLinux? I'd have assumed it would be relatively easy, since the PSP's firmware should still be loaded, underneath uCLinux.

Edit: aha, the OSK must somehow be pulling joypad data, which would come from sce* functions? Looking into that now...
Back to top
View user's profile Send private message
cloudhunter



Joined: 17 Aug 2006
Posts: 86

PostPosted: Mon Feb 01, 2010 8:05 am    Post subject: Reply with quote

Gary13579 wrote:
Is it really impossible/at least very hard to call PSP functions from within uCLinux? I'd have assumed it would be relatively easy, since the PSP's firmware should still be loaded, underneath uCLinux.


I'm afraid that as soon as uCLinux starts up, it wipes the firmware out of memory entirely and runs by itself. It just relies on the PSPSDK/firmware to initialise a few things first.

As such there is no way of calling the functions.
_________________
:)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Gary13579



Joined: 15 Aug 2005
Posts: 93

PostPosted: Mon Feb 01, 2010 8:13 am    Post subject: Reply with quote

cloudhunter wrote:
Gary13579 wrote:
Is it really impossible/at least very hard to call PSP functions from within uCLinux? I'd have assumed it would be relatively easy, since the PSP's firmware should still be loaded, underneath uCLinux.


I'm afraid that as soon as uCLinux starts up, it wipes the firmware out of memory entirely and runs by itself. It just relies on the PSPSDK/firmware to initialise a few things first.

As such there is no way of calling the functions.


Well, from what I can see, the kernel creates a wrapper from the IPL input commands to a /dev/input. Is there a list of the IPL functions anywhere? Poked around in the SDK and couldn't find any.
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