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 

Lion's loadbin command.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Mar 13, 2004 6:18 am    Post subject: Lion's loadbin command. Reply with quote

With the release of Lion's ps2exec client he suggests the addition of a loadbin command to ps2link:

Quote:

PKO_LOADBIN_CMD is a command that is sent to the loader
to tell it to copy a file from the host the EE memory. All
the loader should do is read the file from host then go back
to waiting for commands form client. the file can be any file
such as images, meshes or anything 'you' the programmer wants
to upload before executing the main elf.


#define PKO_LOADBIN_CMD 0xbabe0281
typedef struct
{
unsigned int cmd;
unsigned short len;
unsigned int address;
char filename[256];
}PK_LOAD_BIN_REQUEST;



Sounds like a good enough command to me, although I'd like to see the command number be 0xBABE020C to keep consistent with other numbers. Actually, having loadee and loadiop might be a good idea, too.
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Mar 13, 2004 7:14 am    Post subject: Reply with quote

loadiop would be pointless. My recommendation is that if someone does implement loadmem on ee, they fix pkoDumpMem() at the same time :).
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sat Mar 13, 2004 8:21 am    Post subject: Reply with quote

fix pkoDumpMem in what way ?
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Mar 13, 2004 8:44 am    Post subject: Reply with quote

how much ram can you dump with pkoDumpMem() and where can you dump it from?

IOW: how do I dump all 32MB of ram? SPRAM?
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sat Mar 13, 2004 9:47 am    Post subject: Reply with quote

I havent tried to dump all of the 32MB so far, biggest I dumped was 1MB from pksh with dumpmem dumpfile 0x1000000 10240000.

and dumping from scratchpad resulted in an interesting reset, interesting questions/insinuations :)

and trying to dump the bios showed a wrong offset point to dump from.
Guess ill have some fixing todo :(
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 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