| View previous topic :: View next topic |
| Author |
Message |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Wed Mar 26, 2008 7:33 am Post subject: Help with loading EBOOTs |
|
|
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 |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Wed Mar 26, 2008 7:38 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Wed Mar 26, 2008 7:40 am Post subject: |
|
|
Ah yes... well I never though of that.. how about the version of the PSP :\ _________________ Enlighten me, Reveal my fate -- Follow - Breaking Benjamin |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Wed Mar 26, 2008 8:47 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Wed Mar 26, 2008 9:59 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Mar 26, 2008 10:45 am Post subject: |
|
|
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: | if (sceKernelDevkitVersion() < 0x03070110)
{
ErrorExit(5000, "This program requires 3.71+.\n");
}
|
Then this for the model:
| Code: | if (kuKernelGetModel() != PSP_MODEL_SLIM_AND_LITE)
{
ErrorExit(5000, "This program is for the psp slim only.\n");
}
|
|
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Wed Mar 26, 2008 11:00 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|