LoadExecPS2 have a troubles...

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

Moderators: cheriff, Herben

Post Reply
mikesp
Posts: 4
Joined: Thu Jul 08, 2004 3:42 am

LoadExecPS2 have a troubles...

Post 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
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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.
Shoot Pixels Not People!
Makeshift Development
ole
Posts: 92
Joined: Sat May 08, 2004 11:14 pm
Location: Czech Republic

Post 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.
mikesp
Posts: 4
Joined: Thu Jul 08, 2004 3:42 am

Post by mikesp »

Thanks a lot. I'll try to patch libcdvd.
But I'm still interesting, why LoadExePS2 doesn't work?
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

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