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 

UMD help needed

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



Joined: 01 Mar 2005
Posts: 24

PostPosted: Wed Jun 08, 2005 8:10 am    Post subject: UMD help needed Reply with quote

Howdy guys, I've been messing about trying to create a kernel debugger and memory patcher (think GDB/action replay for PSP) but I'm having some serious problems with sceIoOpen and sceIoRead -- I'm trying to open the executable from the UMD, but I'm getting an error every time.

Anyone have some working code for this? It's really starting to get aggrivating.
Thanks.

Also -- any data on the USB 2.0 or networking hardware yet? I need some way of dumping the data out of memory in real time for analysis and command & control over either TCP/IP or USB URBs.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Jun 08, 2005 9:04 am    Post subject: Reply with quote

As written here, providing any information related to "activating" the UMD is currently against the forum rules.

In this thread Tyranid provides a program to dump the PSP's kernel. Right now this is your best bet for USB and networking info.
Back to top
View user's profile Send private message
Kamilion



Joined: 01 Mar 2005
Posts: 24

PostPosted: Wed Jun 08, 2005 10:54 am    Post subject: Reply with quote

I see nothing in that list that pertains to this...

I'm not trying to access an ISO here, I'm talking about loading a file from the real media on the PSP.

Thanks for the tip on the kernel memory dump, I'm running through it now.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Jun 08, 2005 10:58 am    Post subject: Reply with quote

You can't read files off of the UMD without "activating" it. It's that code that we don't want posted to the forums. There's nothing wrong with your question, we just can't provide the answer :).
Back to top
View user's profile Send private message
Kamilion



Joined: 01 Mar 2005
Posts: 24

PostPosted: Wed Jun 08, 2005 11:07 am    Post subject: Reply with quote

Ahhhh. Well, that makes sense. And I suppose; is answer enough -- there's another function I'm missing.

Anyway, in the kernel dump, I happened acrost this...

FAT over USB Mass
-unit=
Usage: usbfat [<option>...]
<option>:
-unit=<U> # %d <= <U>
-node=<N> # %d <= <N>
-buf=<B> # %d <= <B>
This driver manages up to <U> drive(s) simultaneously.
(allocate %d bytes per unit. default: <U>=%d)
This driver manages up to <N> node(s) simultaneously.
(allocate %d bytes per node. default: <N>=%d)
The number of disk buffer entries is <B>.
(allocate %d bytes per entry. default: <B>=%d)
<U>,<N> and <B> must be specified by decimal.
SceLFatFs

USB Mass Storage drivers, eh?

And,

sceHP_Remote_Driver
module
sceLED_Service
SceUtils5120
SceUtils4096
photo_plugin_module
Kern
sceHP_Remote_Driver
sceLED_Service
module
sceMesgLed

"HP_Remote_Driver" and "LED_Service".... interesting. Infrared remote?
Back to top
View user's profile Send private message
Kamilion



Joined: 01 Mar 2005
Posts: 24

PostPosted: Wed Jun 08, 2005 9:26 pm    Post subject: Reply with quote

Ahha! found it.
Thanks, mrbrown -- that tip about activating it paid off. Much appreciated.

I'm trying to get a project started here -- one that will make all jobs on the PSP much simpler.

A common kernel mode debug system that can monitor nearly anything's execution in real time and feed it back to the developer over (hopefully) USB 2.0 URBs and a custom XP driver and monitor, OR, a TCP/IP link over wireless (USB2.0 preferred for profiling and debugging due to the high volume of data being transferred.)

Something like this will allow us to monitor the execution of any program and what function calls it attempts to use on the fly -- thus allowing us to watch what goes on between a game saving to the memory card -- and the encryption key used for such. Due to compatibility reasons, saves have to be encrypted with a key all PSPs have -- including the 1.5s and 1.51s. This approach also allows us to locate a potential buffer overflow in the save code of an arbitrary peice of software -- IE the X-box Mechassult/007 Agent Under Fire savegame buffer overflow exploits.

Somehow I doubt Sony would bother changing the savegame encryption in newer firmwares, as that would piss off the bulk of PSP owners who now could not load any of their previous saves.

It's quite obvious that the PSP's save system uses some kind of symetrical encryption that uses a single key to encrypt and decrypt, otherwise the saves wouldn't work on any other PSP. The fact that I happen to have a 100% mercury save I got off some site is proof of that.
Anyway, I think something like an in-kernel-memory debugger could very well work considering the kernel's 8MB memory allocation isn't full while running other software, and this would most defintely help with debugging of homebrewn software -- it's quite possible a program such as this could even do full system profiling just like the SDK's battery simulator and emulator are capible of (Which I'm making an assumption that it is from the SN systems webpages I've perused through) and allow profiling of homebrewn software for scaled back processor speeds to save battery life. I've already taken a look at the kernel memory dumper's code and I'm working on some code that might possibly be the beginnings, but since I'm a rank amature I'm sure it's riddled with bugs and f--kups and horrible coding style.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Jun 09, 2005 2:18 am    Post subject: Reply with quote

SIRCS is the IRDA driver, and AFAIK HP_Remote refers to the "headphone port" remote control.
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