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 PRX in user mode???

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



Joined: 17 Mar 2006
Posts: 16
Location: México

PostPosted: Sun Mar 19, 2006 3:12 pm    Post subject: Loading PRX in user mode??? Reply with quote

hi i'm using FW 2.6 and i'm trying to load a PRX i need to be in kernel mode to load it ?

i need to call pspSdkInstallNoPlainModuleCheckPatch() ????
Back to top
View user's profile Send private message
placasoft



Joined: 28 Mar 2005
Posts: 53

PostPosted: Mon Mar 20, 2006 6:13 am    Post subject: Reply with quote

Well for pspSdkInstallNoPlainModuleCheckPatch() you need kernel mode, so there is noway of loading a prx in usermode =/

nice day,
placa
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Mon Mar 20, 2006 10:29 pm    Post subject: Reply with quote

except you implement your own prx loader :) (which isnt that hard afterall, just a bit of work)
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
hubevolution



Joined: 17 Mar 2004
Posts: 32

PostPosted: Mon Mar 20, 2006 11:45 pm    Post subject: Reply with quote

well that's true but actually the main reason for someone asking how can prx be loaded is because he wants to use system prx to access kernel-only features ... so a loader wouldn't do the trick in this case I guess :)
Back to top
View user's profile Send private message
R2k



Joined: 17 Mar 2006
Posts: 16
Location: México

PostPosted: Tue Mar 21, 2006 7:32 am    Post subject: Reply with quote

hmm not exactly i'm trying to make custom-made PRXes i will try to figure out how to make my own PRX loader but the only i wanted to know if exists an alternative to pspSdkInstallNoPlainModuleCheckPatch(). thanks to everyone for the info
Back to top
View user's profile Send private message
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Tue Mar 21, 2006 9:05 pm    Post subject: Reply with quote

We plan to add PRX loading support to eLoader at some point in the quite near future, so if you're patient then you should get this support for free.

Alternatively if you do implement your own PRX loader, then I'd love to see the source ... ;)
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Tue Mar 21, 2006 9:25 pm    Post subject: Reply with quote

indeed. and please document the relocation entries in some readable format (ie, not source :=D)
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Mar 22, 2006 3:56 am    Post subject: Reply with quote

Manually loading a pspsdk prx file should be realtively painless, all the code and data is stored as a single contiguous block of data referenced by the the first program header, then it is just a case of going through the section headers pulling out the relocation ones and pulling out the relative offset of relocation from the loaded block and fixing it up relative to the place you loaded it at. Final steps are just to zero the .bss and fixup imports (which eLoader will already do).

Doing sony ones is slightly trickier as they actually contain two blocks of data and the relocations could be relative to either, but I cannot see much use for loading sony prxes for the most part.

groepaz's psp doc has info on the relocations, and there is always prxtool which does a cheating version of the reloc fix up already in its prx->elf conversion routine.
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