| View previous topic :: View next topic |
| Author |
Message |
PSPApple
Joined: 28 Mar 2008 Posts: 6
|
Posted: Fri Mar 28, 2008 12:05 pm Post subject: When I load the prx,I got an error code :80020149 |
|
|
I wanted to do something like this:
step 1: A user_mode_pbp.load( kernel_mode_prxA.prx );
step 2: kernel_mode_prxA.load( kernel_mode_prxB.prx );
I used the sdk api pspSdkLoadStartModule in step 2 like this:
SceUID mod = pspSdkLoadStartModule("kernel_mode_prxB.prx", PSP_MEMORY_PARTITION_KERNEL);
unfortunately, I got an error code 0x80020149 in step 2 while I had succeed loaded kernel_mode_prxA.prx in step 1 .
can anyone help me ?
sorry about my poor english ..... I wish someone could understand what I said... |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Fri Mar 28, 2008 3:52 pm Post subject: |
|
|
a) are you using a slim? you need to build the project as a prx file otherwise it wont work
b) are you using PSPlink? you need to build the project as a prx file otherwise it wont work
Please explain a bit better, we cant possibly help until you give us your makefile (via pastebin) or using the tags :)
Wally |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Fri Mar 28, 2008 10:02 pm Post subject: |
|
|
that error means Illegal permission call, I think it explains everything ;) _________________
Upgrade your PSP |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Fri Mar 28, 2008 11:08 pm Post subject: |
|
|
I think I know what happens...
In your kernel prx you are calling the sceKernelLoadModule of user mode. Since 3.71 M33-3, M33 allows again to use user functions in kernel prx's.
To fix it you have two alternatives:
1) USE_KERNEL_LIBS = 1 in the makefile, but it may break some other thing at compile time.
2) Use kubridge from M33 sdk, and use kuKernelLoadModule instead. |
|
| Back to top |
|
 |
PSPApple
Joined: 28 Mar 2008 Posts: 6
|
Posted: Sat Mar 29, 2008 2:23 am Post subject: |
|
|
| Wally4000 wrote: | a) are you using a slim? you need to build the project as a prx file otherwise it wont work
b) are you using PSPlink? you need to build the project as a prx file otherwise it wont work
Please explain a bit better, we cant possibly help until you give us your makefile (via pastebin) or using the tags :)
Wally |
a) no,I'm not using a slim and I had built the project as a prx.
b) no,I did not use psplink,I test my prx programe in my PSP
thank u for ur help :)
Last edited by PSPApple on Sat Mar 29, 2008 2:57 am; edited 1 time in total |
|
| Back to top |
|
 |
PSPApple
Joined: 28 Mar 2008 Posts: 6
|
Posted: Sat Mar 29, 2008 2:36 am Post subject: |
|
|
| moonlight wrote: | I think I know what happens...
In your kernel prx you are calling the sceKernelLoadModule of user mode. Since 3.71 M33-3, M33 allows again to use user functions in kernel prx's.
To fix it you have two alternatives:
1) USE_KERNEL_LIBS = 1 in the makefile, but it may break some other thing at compile time.
2) Use kubridge from M33 sdk, and use kuKernelLoadModule instead. |
hi,moonlight
ur opinion would be helpful~!
1) if I set USE_KERNEL_LIBS = 1 in the make file, i could not use some other user mode functions,or it world just like u had pointed out:"may break some other thing at compile time. "
its difficult for me to find out that missing lib to link, so I will try the other solution 2)
thank u very much :) |
|
| Back to top |
|
 |
|