| View previous topic :: View next topic |
| Author |
Message |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Tue Jun 09, 2009 1:44 am Post subject: compress/encrypt prx |
|
|
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 |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Tue Jun 09, 2009 4:15 am Post subject: Re: compress prx |
|
|
| 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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Jun 09, 2009 4:35 am Post subject: |
|
|
| To "compress" ie make it smaller you use psppacker. |
|
| Back to top |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Tue Jun 09, 2009 5:52 am Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Jun 09, 2009 5:55 am Post subject: |
|
|
| Yes. They are not encrypted, only gzipped. |
|
| Back to top |
|
 |
m0skit0
Joined: 02 Jun 2009 Posts: 226
|
Posted: Tue Jun 09, 2009 7:39 am Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Jun 09, 2009 2:45 pm Post subject: |
|
|
| 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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Tue Jun 09, 2009 3:39 pm Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Jun 09, 2009 3:43 pm Post subject: |
|
|
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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Tue Jun 09, 2009 3:58 pm Post subject: |
|
|
| 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 |
|
 |
m0skit0
Joined: 02 Jun 2009 Posts: 226
|
Posted: Tue Jun 09, 2009 6:51 pm Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Jun 09, 2009 7:12 pm Post subject: |
|
|
| 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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Tue Jun 09, 2009 7:36 pm Post subject: |
|
|
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 |
|
 |
|