| View previous topic :: View next topic |
| Author |
Message |
mikesp
Joined: 08 Jul 2004 Posts: 4
|
Posted: Thu Jul 08, 2004 4:10 am Post subject: LoadExecPS2 have a troubles... |
|
|
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 |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Thu Jul 08, 2004 4:55 am Post subject: |
|
|
"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. _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
ole
Joined: 08 May 2004 Posts: 92 Location: Czech Republic
|
Posted: Thu Jul 08, 2004 5:59 am Post subject: |
|
|
| Quote: | | 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. |
|
| Back to top |
|
 |
mikesp
Joined: 08 Jul 2004 Posts: 4
|
Posted: Thu Jul 08, 2004 5:20 pm Post subject: |
|
|
Thanks a lot. I'll try to patch libcdvd.
But I'm still interesting, why LoadExePS2 doesn't work? |
|
| Back to top |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Thu Jul 08, 2004 5:32 pm Post subject: |
|
|
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.cgi/ps2link/ee/cmdHandler.c?rev=HEAD&content-type=text/vnd.viewcvs-markup _________________ pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department. |
|
| Back to top |
|
 |
|