Page 1 of 1

elf to irx

Posted: Sat Feb 24, 2007 8:34 am
by jaymacdonald
any idea how? just change file extension?

Posted: Sat Feb 24, 2007 7:07 pm
by ps2devman
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).

Posted: Sat Feb 24, 2007 8:16 pm
by evilo
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)

Posted: Sat Feb 24, 2007 11:59 pm
by jaymacdonald
mass_example.c? where can i find this?