| View previous topic :: View next topic |
| Author |
Message |
Aura

Joined: 24 Jul 2007 Posts: 37
|
Posted: Sat Sep 29, 2007 9:02 am Post subject: 3.XX programming, whats the difference? |
|
|
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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sat Sep 29, 2007 9:26 am Post subject: |
|
|
| 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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Sep 29, 2007 12:39 pm Post subject: |
|
|
| 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 |
|
 |
Aura

Joined: 24 Jul 2007 Posts: 37
|
Posted: Mon Oct 01, 2007 2:38 am Post subject: |
|
|
| 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 |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Mon Oct 01, 2007 8:40 pm Post subject: |
|
|
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 |
|
 |
Aura

Joined: 24 Jul 2007 Posts: 37
|
Posted: Tue Oct 02, 2007 5:39 am Post subject: |
|
|
| 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 |
|
 |
Hellcat
Joined: 24 Jan 2007 Posts: 84
|
Posted: Thu Oct 04, 2007 1:15 pm Post subject: |
|
|
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 |
|
 |
|