Lion's loadbin command.

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Lion's loadbin command.

Post by ooPo »

With the release of Lion's ps2exec client he suggests the addition of a loadbin command to ps2link:
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.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

loadiop would be pointless. My recommendation is that if someone does implement loadmem on ee, they fix pkoDumpMem() at the same time :).
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

fix pkoDumpMem in what way ?
Kung VU
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

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?
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

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
Post Reply