When I load the prx,I got an error code :80020149

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
PSPApple
Posts: 6
Joined: Fri Mar 28, 2008 2:00 am

When I load the prx,I got an error code :80020149

Post by PSPApple »

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...
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

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
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

that error means Illegal permission call, I think it explains everything ;)
Image
Upgrade your PSP
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

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.
PSPApple
Posts: 6
Joined: Fri Mar 28, 2008 2:00 am

Post by PSPApple »

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.
PSPApple
Posts: 6
Joined: Fri Mar 28, 2008 2:00 am

Post by PSPApple »

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 :)
Post Reply