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 irx

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



Joined: 24 Feb 2007
Posts: 22

PostPosted: Sat Feb 24, 2007 8:34 am    Post subject: elf to irx Reply with quote

any idea how? just change file extension?
Back to top
View user's profile Send private message
ps2devman



Joined: 09 Oct 2006
Posts: 265

PostPosted: Sat Feb 24, 2007 7:07 pm    Post subject: Reply with quote

hello no.

Either you do a .elf (made with ee gcc) that loads .irx (made with iop gcc) or a .elf that holds the binary image of the irx inside itself (best way to learn that last case is to study SMS source, a video player).

svn checkout svn://svn.pspdev.org/ps2ware/trunk/SMS

If you want to compile yourself a irx, see ps2sdk irx skeleton (if you are beginner just reuse SMS irx's or existing ones, so you just focus on learning the inter-dependencies between them and how initialize them by reading SMS source).
Back to top
View user's profile Send private message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Sat Feb 24, 2007 8:16 pm    Post subject: Reply with quote

the easiest example is maybe the PS2SDK itself...

Start by having a look at the PAD sample, Since PADMAN is an IRX but located in ROM, you'll have a example of loading...

and then look at the usb mass sample (mass_example.c)

Once you are ok with the principle, take a look to something more complex... (like SMS if you want)
_________________
http://psxdev.info/evilo/
Back to top
View user's profile Send private message Visit poster's website
jaymacdonald



Joined: 24 Feb 2007
Posts: 22

PostPosted: Sat Feb 24, 2007 11:59 pm    Post subject: Reply with quote

mass_example.c? where can i find this?
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