Page 1 of 1

LoadExecPS2 have a troubles...

Posted: Thu Jul 08, 2004 4:10 am
by mikesp
Hi.
I've some question about using LoadExecPS2 function.
I try to write my own demo loader from DVD, but after calling LoadExecPS2 my console clear the screen and hangs up. Naplink report about "Get Reboot Request From EE".

I use a call like
LoadExecPS2("cdrom0:\\DEMO1.ELF;1",0,NULL);

Also I was try to use a piece of code from ps2menu - RunLoaderElf(char *filename), but it seems libcdvd 1.15 don't work with DVD and can't read the elf into memory.

Please, give me an advice how to solve this problem.
Thanks in advance

Posted: Thu Jul 08, 2004 4:55 am
by Drakonite
"Get Reboot Request From EE" means the IOP was reset, which kills off host: and tty (printf) support. LoadExecPS2 resets the IOP, so it's normal to lose those things and you just kinda have to deal with it ;)

Personally, I can't see any purpose for using a DVD.

Posted: Thu Jul 08, 2004 5:59 am
by ole
but it seems libcdvd 1.15 don't work with DVD
Read the "Software Development->LIBCDVD - does it work for DVD-ROM disks?" post . There is some clue how to patch the libcdv for DVD-ROMs.

Posted: Thu Jul 08, 2004 5:20 pm
by mikesp
Thanks a lot. I'll try to patch libcdvd.
But I'm still interesting, why LoadExePS2 doesn't work?

Posted: Thu Jul 08, 2004 5:32 pm
by pixel
It works. Since it rebooted the IOP, it loaded the elf, rebooted the IOP, and started running the elf. Now, I'd say that your demo1.elf is the one that has to be blamed.

So, you shouldn't use LoadExePS2, but rather load the ELF, and start a thread for it. Look for pkoLoadElf and pkoExecEE inside ps2link's cmdHandler.c: http://cvs.ps2dev.org/cgi-bin/viewcvs.c ... cvs-markup