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 

Help with loading EBOOTs

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



Joined: 04 Oct 2007
Posts: 69

PostPosted: Wed Mar 26, 2008 7:33 am    Post subject: Help with loading EBOOTs Reply with quote

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
View user's profile Send private message AIM Address
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Mar 26, 2008 7:38 am    Post subject: Reply with quote

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
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Wed Mar 26, 2008 7:40 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Mar 26, 2008 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Wed Mar 26, 2008 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Mar 26, 2008 10:45 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Wed Mar 26, 2008 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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