Help with loading EBOOTs

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Help with loading EBOOTs

Post by PiCkDaT »

I'm helping develope LuaPlayerHM with homemister and we are trying to get the runeboot function to work better. Originally homemister had sceLoadExec to run an eboot, which was fine but on newer firmwares it did nothing. For newer firmwares sctrlKernelLoadExecVSHMs2 seems to be working just fine, but only EBOOTS compiled as PRX's. So I need a way either to run an EBOOT no matter what, or a way to determine if it was compiled as an ELF or PRX and what firmware is running. Any suggestions?
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

The later is easy, an ELF tells you it's an ELF in it's header.
Look at the first four bytes.
If not actually, then potentially.
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

Ah yes... well I never though of that.. how about the version of the PSP :\
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

For DAX firmwares, there is a version string in a flash0 file somewhere
so it can be printed on the System Information screen.
I forgot which one, but I'm sure you could find it.
If not actually, then potentially.
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

I've seen that somewhere.. but what if it is not DAX... is there no version check anywhere? there has to be right? since sony knows what FW you are runnig when it wants to try to update. btw M33 is DAX too right?.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Don't know about LUA, but it's easy to get the version in C. You'll find this sort of thing in all D_A's examples:

Code: Select all

	if &#40;sceKernelDevkitVersion&#40;&#41; < 0x03070110&#41;
	&#123;
		ErrorExit&#40;5000, "This program requires 3.71+.\n"&#41;;
	&#125;
Then this for the model:

Code: Select all

	if &#40;kuKernelGetModel&#40;&#41; != PSP_MODEL_SLIM_AND_LITE&#41;
	&#123;
		ErrorExit&#40;5000, "This program is for the psp slim only.\n"&#41;;
	&#125;
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

Thanks J.F. naw I wasn't talking about lua. We are modding lua's source :) thanks again though.
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
Post Reply