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 

3.XX programming, whats the difference?

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



Joined: 24 Jul 2007
Posts: 37

PostPosted: Sat Sep 29, 2007 9:02 am    Post subject: 3.XX programming, whats the difference? Reply with quote

Hi, I was wondering what the difference was between programming for the 1.50 kernel, and the 3.XX kernels?

I've been working on an app that I want to port to the PSP Slim, but it obviously doesn't work on the 3.XX kernel, but I've found very little documentation on what needs to be done in order to get an app to the newer firmwares.

I will require kernel access in some cases, and I was wondering if this is accieved by loading an external .prx in kernel mode, or if its something more elaborate?

Finally, when trying to load some apps in the 3.XX kernel I recieve a 0x8002013c error (SCE_KERNEL_ERROR_LIBRARY_NOTFOUND), and was wondering if this is an error that is likely to occur because of the code, or an issue with my PSP?

Thanks.
-Aura

_________________
Live. Love. Be. Believe.

Free downgrading/unbricking service list!
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat Sep 29, 2007 9:26 am    Post subject: Reply with quote

Do you honestly honestly need kernel access? If you really do they the main thing to bear in mind is you really should separate the kernel specific bits into a separate module which a user mode component can call.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Sep 29, 2007 12:39 pm    Post subject: Reply with quote

Look at it this way - over half of all the complaints in 1.50 software is in how to set up a USER thread to access the net libs because you can't get WPA (or is it WAP... I can never remember this acronym) from the kernel net libs. So most of the GOOD 1.50 apps start in kernel mode, but immediately launch a user thread that takes over the running of the application. So just toss that and start in user mode to begin with. Check some of the recent threads - there's a number of 3.xx examples in them.
Back to top
View user's profile Send private message AIM Address
Aura



Joined: 24 Jul 2007
Posts: 37

PostPosted: Mon Oct 01, 2007 2:38 am    Post subject: Reply with quote

TyRaNiD wrote:
Do you honestly honestly need kernel access? If you really do they the main thing to bear in mind is you really should separate the kernel specific bits into a separate module which a user mode component can call.


I assume I need to use kernel mode, seeing as I need direct read/write access to flash, among other things.

How would a user mode component call the module? Would it be the same idea as loading a normal module, or would I have to do something different?

Thanks again.
-Aura

_________________
Live. Love. Be. Believe.

Free downgrading/unbricking service list!
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Mon Oct 01, 2007 8:40 pm    Post subject: Reply with quote

Hi! :)
Aura wrote:
How would a user mode component call the module? Would it be the same idea as loading a normal module, or would I have to do something different?

If you need kernel functions just put them in a kernel mode prx.
From your user mode app load the module and use its functions.

Here:
http://forums.ps2dev.org/viewtopic.php?t=9022

there's a thread with an example of what I'm saying. ;)

Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
Aura



Joined: 24 Jul 2007
Posts: 37

PostPosted: Tue Oct 02, 2007 5:39 am    Post subject: Reply with quote

sakya wrote:
Hi! :)
Aura wrote:
How would a user mode component call the module? Would it be the same idea as loading a normal module, or would I have to do something different?

If you need kernel functions just put them in a kernel mode prx.
From your user mode app load the module and use its functions.

Here:
http://forums.ps2dev.org/viewtopic.php?t=9022

there's a thread with an example of what I'm saying. ;)

Ciaooo
Sakya


Ah thanks, thats more than enough to get me up and running! Should definatly have the kernel stuff loading soon :D

-Aura

_________________
Live. Love. Be. Believe.

Free downgrading/unbricking service list!
Back to top
View user's profile Send private message
Hellcat



Joined: 24 Jan 2007
Posts: 84

PostPosted: Thu Oct 04, 2007 1:15 pm    Post subject: Reply with quote

It's a bit picky, that 3.xx kernel.

Don't forget NOT to use any usermode (only) functions in your kernel .PRX, since doing that will result in 0x8002013C when loading the module....
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