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 

A question of unraveling prx modules using the prxtool

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



Joined: 10 Sep 2007
Posts: 85

PostPosted: Fri Jan 18, 2008 4:34 pm    Post subject: A question of unraveling prx modules using the prxtool Reply with quote

Hi everyone,

Recently I upgraded my psp to 3.71 and downloaded the prxtool from this site to try to look into the 3.71 firmware. I never tried to do anything with the prx before hence I don't know if it has always been this way since the beginning. but in my psp, all the prx modules are located in flash0:/km instead of flash0:/kd as many developers claimed here. Is it just because of the 3.71 firmware or something unusual I could have done to my psp previously that led to this?

In addition, when i try to run the prxtool, all modules but systemctrl150.prx returns the following message:

Error: Magic value incorrect (not an ELF?)
Error: Couldn't load prx file structures

Probably because all those prxs are in encrypted form and could not be disassembled directly (is that true?). If that's the case, how could I turn those modules back to the decrypted form?

Thanks!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cloudhunter



Joined: 17 Aug 2006
Posts: 86

PostPosted: Fri Jan 18, 2008 6:50 pm    Post subject: Re: A question of unraveling prx modules using the prxtool Reply with quote

M.Jackson wrote:
Hi everyone,

Recently I upgraded my psp to 3.71 and downloaded the prxtool from this site to try to look into the 3.71 firmware. I never tried to do anything with the prx before hence I don't know if it has always been this way since the beginning. but in my psp, all the prx modules are located in flash0:/km instead of flash0:/kd as many developers claimed here. Is it just because of the 3.71 firmware or something unusual I could have done to my psp previously that led to this?

In addition, when i try to run the prxtool, all modules but systemctrl150.prx returns the following message:

Error: Magic value incorrect (not an ELF?)
Error: Couldn't load prx file structures

Probably because all those prxs are in encrypted form and could not be disassembled directly (is that true?). If that's the case, how could I turn those modules back to the decrypted form?

Thanks!


You have a fat PSP with 1.50 kernel addon ;) That is what is stored in km.

Show hidden files and folders, and you'll see the kd folder, and then you can use jas0nuk's prxdecrypter.

But to be honest, the best way is to get psardumper and the 3.71 EBOOT, and to dump the firmware decrypted :)

Cloudy
_________________
:)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Sat Jan 19, 2008 3:06 am    Post subject: Reply with quote

OH!!! can't believe I was fooled by this simple trick of hidden files...Thanks very much for pointing me to the right direction.

Another question concerning prx is: how can we figure out the exact definitions of the exported functions from a prx that was not currently included by the PSPSDK (how do we know how many arguments the function would take or how some of the related constants are defined)? For example, there was a discussion about led.prx which was not covered by the existing SDK. But some one gave out the definition of its exported functions as well as a bunch of constants used by the module. Where did those info come from? Is looking into its disassembly code the only way to figure all these out? What role is the prxtool playing in this?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Sat Jan 19, 2008 7:39 pm    Post subject: Reply with quote

M.Jackson wrote:
Another question concerning prx is: how can we figure out the exact definitions of the exported functions from a prx that was not currently included by the PSPSDK (how do we know how many arguments the function would take or how some of the related constants are defined)?
Mostly by disassembling the PRX and manually analyzing the assembly code involved. If you know assembly well enough, you can tend to figure out what params are passed, how many, and what sort they are.
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