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 

Loading a usermode PRX from a kernelmode PRX

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



Joined: 02 Jun 2009
Posts: 226

PostPosted: Mon Jan 25, 2010 10:03 pm    Post subject: Loading a usermode PRX from a kernelmode PRX Reply with quote

I got this error when trying to do that: 0x80020149 (SCE_KERNEL_ERROR_ILLEGAL_PERM_CALL). Can somebody please explain this error?

And is there any way I can load a usermode PRX from a kernelmode PRX? Or otherwise load a usermode PRX as a plugin on CFW?

Thanks for your time! :)
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Davee



Joined: 22 Jun 2009
Posts: 59

PostPosted: Mon Jan 25, 2010 10:18 pm    Post subject: Reply with quote

What firmware are you running?
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Mon Jan 25, 2010 10:37 pm    Post subject: Reply with quote

5.00 M33-6
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Thu Jan 28, 2010 7:24 am    Post subject: Reply with quote

Yes I can explain.

You are probably trying to compile your Kernel Module using newlib, doing so results in Permission Errors on loading modules...

To remedy that you will have to rely on the smaller kernel lib...

So make sure your makefile contains the following 2 lines...

USE_KERNEL_LIBC = 1
USE_KERNEL_LIBS = 1

In doing so you will be able to load modules just fine.
But keep in mind that a lot of newlib features wont be available, so some functions you might be using you will have to reimplement or import yourself...
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Thu Jan 28, 2010 10:49 pm    Post subject: Reply with quote

Yup, was that, thanks for pointing that out :)

Any ideas why it doesn't work with newlib?
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Jan 29, 2010 1:41 am    Post subject: Reply with quote

Why the hell would anyone use newlib for a kernel module? Just compiling an empty module with it produces 84KiB of bloat.
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sun Jan 31, 2010 3:03 am    Post subject: Reply with quote

Thanks Torch, but what I'm asking is why it produces an error, not discussing why someone would or not use it :P
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
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