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 

ELF to launch another ELF

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



Joined: 20 Dec 2005
Posts: 1

PostPosted: Wed Dec 21, 2005 9:38 am    Post subject: ELF to launch another ELF Reply with quote

I need to create a ELF file to launch automatic another ELF, but if I press a sequence of keys this ELF launch other ELF:

Sample

Boot launch the BOOT.ELF

If none key is pressed, the BOOT.ELF launch automatic PROJECT1.ELF
But if I press a specific key on boot (sample: L1+L2+R1+R2) then BOOT.ELF launch the PROJECT2.ELF

is it possible???

Sorry for BAD english
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Thu Dec 22, 2005 6:27 pm    Post subject: Reply with quote

I suggest to search the web for the PS2-KeyLauncher source code.
It can execute a specified program when a certain key is pressed.
Back to top
View user's profile Send private message
snowdog



Joined: 15 Jun 2005
Posts: 5

PostPosted: Sun Jan 08, 2006 4:44 am    Post subject: Reply with quote

Didn't want to create a new topic so thought I'd ask my ELF question here. Once you have developed homebrew code, how do you go about burning the code to a CD..?

I understand that you'd need either Swap Magic, a chipped PS2 or an official devkit to run the CD but am unsure how to build the CD itself.

Do I just drag the relevant files into Nero using a CD ISO doobrie..? Or is there something special that I need to do..? I have Nero and Alcohol 120%.

Any help you could give me would be much appreciated. :D
_________________
"You can keep all your Bests, Peles and Maradonas, Duncan Edwards was the greatest of them all!" - Tommy Docherty
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jan 08, 2006 5:20 am    Post subject: Reply with quote

You need to put the program and any IRXs it uses on the disc along with a file called "SYSTEM.CNF" to tell the PS2 what to run. The system.cnf for PS2Link looks like this:

Code:
BOOT2 = cdrom0:\PS2LINK.ELF;1
VER = 1.10
VMODE = NTSC


Burn the disc as ISO9660 level 1. That should be all you need for most modchips. For a few, you may need to also add a big dummy file to the disc. Say, 20 to 30 Megs long. Mine is that way. It doesn't matter what the dummy file is called or what's in it.

A few older mods also require the system.cnf to be located at a specific point on the disc. If yours is that way, you need a special program that creates ISO CD images and allows you to specify where a file starts at.
Back to top
View user's profile Send private message AIM Address
snowdog



Joined: 15 Jun 2005
Posts: 5

PostPosted: Sun Jan 08, 2006 7:12 am    Post subject: Reply with quote

Cheers for that...am a step closer with my experiment. Have downloaded an Atari VCS emulator and using Swap Magic it starts to boot up but freezes with a black screen. Might try bunging in those dummy files as well as disecting a PS2 CD game just to see if I'm missing anything else.
_________________
"You can keep all your Bests, Peles and Maradonas, Duncan Edwards was the greatest of them all!" - Tommy Docherty
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jan 08, 2006 12:28 pm    Post subject: Reply with quote

Remember with Swap Magic to do the "special boot." That's usually the Square button.
Back to top
View user's profile Send private message AIM Address
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