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 

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

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



Joined: 28 Mar 2008
Posts: 6

PostPosted: Fri Mar 28, 2008 12:05 pm    Post subject: When I load the prx,I got an error code :80020149 Reply with quote

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
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Fri Mar 28, 2008 3:52 pm    Post subject: Reply with quote

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
Code:
tags :)

Wally
Back to top
View user's profile Send private message AIM Address
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Fri Mar 28, 2008 10:02 pm    Post subject: Reply with quote

that error means Illegal permission call, I think it explains everything ;)
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Fri Mar 28, 2008 11:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
PSPApple



Joined: 28 Mar 2008
Posts: 6

PostPosted: Sat Mar 29, 2008 2:23 am    Post subject: Reply with quote

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
Code:
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
View user's profile Send private message
PSPApple



Joined: 28 Mar 2008
Posts: 6

PostPosted: Sat Mar 29, 2008 2:36 am    Post subject: Reply with quote

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
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