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 

compress/encrypt prx

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



Joined: 07 Dec 2008
Posts: 53

PostPosted: Tue Jun 09, 2009 1:44 am    Post subject: compress/encrypt prx Reply with quote

I have elf file and I need to compress it to prx. how to do that?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10


Last edited by hotter on Tue Jun 09, 2009 3:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Tue Jun 09, 2009 4:15 am    Post subject: Re: compress prx Reply with quote

hotter wrote:
I have elf file and I need to compress it to prx. how to do that?


add

BUILD_PRX=1

to your makefile
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Jun 09, 2009 4:35 am    Post subject: Reply with quote

To "compress" ie make it smaller you use psppacker.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Tue Jun 09, 2009 5:52 am    Post subject: Reply with quote

Sry for not very clear question... I mean I want to compress and encode prx like some others do. Now when I open my prx in hex editor I see ".Elf" at the bigining and all strings are editable... so I want to make it to "~PSP". I think its the same as firmwares prx'es are compresed and encripted. maybe now I make a point? can I do that with PSPPacker?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Jun 09, 2009 5:55 am    Post subject: Reply with quote

Yes. They are not encrypted, only gzipped.
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Tue Jun 09, 2009 7:39 am    Post subject: Reply with quote

You can't make ~PSP because they use Sony's signature for the encryption.
_________________
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: Tue Jun 09, 2009 2:45 pm    Post subject: Reply with quote

m0skit0 wrote:
You can't make ~PSP because they use Sony's signature for the encryption.


psppacker will give ~PSP files. You can check offset 0x150 to see if it was psppacker compressed only or Sony encrypted+compressed.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Tue Jun 09, 2009 3:39 pm    Post subject: Reply with quote

Well I tryed to use it. It hidded all string variables but I searched for "~PSP" and didnt find it, so I guess it is only gzipping prx. And a sad thing that when I added to psp it didnt work, I get error that prx is unsupported type.
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Jun 09, 2009 3:43 pm    Post subject: Reply with quote

First of all it SHOULD be a .prx file NOT .elf. You must build with BUILD_PRX = 1

On Windows, just drag your .prx on top of psp-packer.exe. The file will be compressed. It will have ~PSP as first 4 bytes.

Also, compressed kernel PRX only works on 3.71M33-3 and above.
Compressed user PRX only works on 4.01M33 and above.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Tue Jun 09, 2009 3:58 pm    Post subject: Reply with quote

Torch wrote:
First of all it SHOULD be a .prx file NOT .elf. You must build with BUILD_PRX = 1

Yes, I did that with prx.

Torch wrote:
On Windows, just drag your .prx on top of psp-packer.exe. The file will be compressed. It will have ~PSP as first 4 bytes

The file now is smaller, but the first 4 bytes is still ".elf".

Torch wrote:
Also, compressed kernel PRX only works on 3.71M33-3 and above.
Compressed user PRX only works on 4.01M33 and above.

I am using PSP slim 5.00M33-6 and PSPPacker v0.2.
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Tue Jun 09, 2009 6:51 pm    Post subject: Reply with quote

Of course, PRX is an ELF subtype :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
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Jun 09, 2009 7:12 pm    Post subject: Reply with quote

I dunno. When I compress my kernel PRX it becomes ~PSP. Haven't tried with user PRX. Maybe you have an old version? I'm using the psp-packer from 4.01M33-2 SDK.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Tue Jun 09, 2009 7:36 pm    Post subject: Reply with quote

With psp-packer from 4.01M33-2 SDK I get ~PSP file and file works fine! :)
Thx for help.
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
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