forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LoadExecPS2 have a troubles...

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
mikesp



Joined: 08 Jul 2004
Posts: 4

PostPosted: Thu Jul 08, 2004 4:10 am    Post subject: LoadExecPS2 have a troubles... Reply with quote

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
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Thu Jul 08, 2004 4:55 am    Post subject: Reply with quote

"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
View user's profile Send private message Visit poster's website
ole



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Thu Jul 08, 2004 5:59 am    Post subject: Reply with quote

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
View user's profile Send private message
mikesp



Joined: 08 Jul 2004
Posts: 4

PostPosted: Thu Jul 08, 2004 5:20 pm    Post subject: Reply with quote

Thanks a lot. I'll try to patch libcdvd.
But I'm still interesting, why LoadExePS2 doesn't work?
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Thu Jul 08, 2004 5:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group