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 

Mystery bit

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



Joined: 13 May 2005
Posts: 33

PostPosted: Fri May 13, 2005 6:30 am    Post subject: Mystery bit Reply with quote

Two days ago, I was examining the .prx files on the Ridge Racer UMD, I decided to pack them all in .PBP files, and run them. I came up with the following list:

ifhandle X
videocodec X
audiocodec X
memab 80020148
mpegbase 80020148
openpsid 80020148
pspnet_adhoc_auth X
sc_sascore X
usb X
usbpspcm X

Everything with an X, boots up to the white PSP screen with lots of memstick activity, then kills the PSP. The three remaining ones quit with the 80020148 error. Those were also the only files to not have the byte in the ~PSP file at offset 0x06 set to 01, the rest of those files all had. I decided to try it with the flasher program, and lo and behold, almost the same thing happened. With the only exception that the flasher executable boots through the white PSP screen, and dies after that screen fades (Takes about 15 seconds). After doing some research, I found out that what the bit does is make the PSP ignore almost the entire header in the ~PSP file. The only things it needs are the values at offsets 0x2C (The filesize) and the one at offset 0x58. Changing the one at 0x2C results in the PSP not going past the white screen (Not fading to black), and setting the one at 0x58 to 00 00 00 results in an 800200D9 error. Any other value at 0x58 seems to work, but still make the PSP die after fading to black. I know that the PSP ignores the rest of the values, because resetting the 0x06 byte back to 00 then results in an 80020148 error. So everything up to 0xD3 with the exception of the two aformented offsets, can be zeroed out. My theory, and this is pure guesswork, is that this byte sets what type of executable is used, though I can't provide any solid basis for that.
_________________
Live free, prosper, and under my rule.
Back to top
View user's profile Send private message
allthatinny



Joined: 06 May 2005
Posts: 24

PostPosted: Fri May 13, 2005 7:16 am    Post subject: Reply with quote

I tried what you did and someone told me that those files are like dll files you got to have something to excute them.
Back to top
View user's profile Send private message
Grover



Joined: 23 Feb 2005
Posts: 50

PostPosted: Fri May 13, 2005 9:45 am    Post subject: Reply with quote

PRX files appear to be similar in operation to IRX files on PS2. Ie they are separate callable modules that sit in mem (ala dll's).
_________________
Bye.
Back to top
View user's profile Send private message
Erant



Joined: 13 May 2005
Posts: 33

PostPosted: Fri May 13, 2005 4:45 pm    Post subject: Reply with quote

allthatinny wrote:
I tried what you did and someone told me that those files are like dll files you got to have something to excute them.


I know that, but like I said, the same applies to the flasher programs.

Also, .PRX files are roughly the same as .ELF files, just that PRX files are dynamic in memory or something. Both ELF and PRX files can be used as libraries, but also as executables. The flasher program executable is a PRX file.
_________________
Live free, prosper, and under my rule.
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