Lion's loadbin command.
Posted: Sat Mar 13, 2004 6:18 am
With the release of Lion's ps2exec client he suggests the addition of a loadbin command to ps2link:
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.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;