Load EBOOT from flash ?

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Load EBOOT from flash ?

Post by Torch »

Is there any way of loading an EBOOT.PBP from somewhere in flash0/1/2/3 ?

If I read it into a buffer and load it from memory it breaks some homebrew presumably due to the lack of bootpath.
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

If I read it into a buffer and load it from memory it breaks some homebrew presumably due to the lack of bootpath.
So you can load and run it but it crashes? Let me turn your question into another: we all know that prx embedded in 3.00+ EBOOTs don't have CWD working and everyone willing to load something in the same folder can't use relative paths but have to reconstruct bootpath; shouldn't it be a goot idea to force a CWD automagically when it's the case and explicitly in cases like Torch's?
So the question is: how to force an arbitrary CWD into an executable context?
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

The cwd is set automatically by newlib by using the parameter of the module, which is usually the path. You can always load the prx of the eboot from a buffer, and pass it a path as argument so newlib would set the cwd from it.

For flash3 in the slim, you should be able to use sceKernelLoadModuleForLoadExecVSHMs3 to load the eboot.pbp or sceKernelLoadExecVSHMs3 to loadexec it, that's what sony was using in 3.6 for 1seg.pbp.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

What is this "newlib" and how do I use it?

EDIT: OK I think you're talking about the updated SDK. So thats why I've seen some ppl pass the location of the eboot in the parameters as well.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

newlib is one of the things installed when you install the toolchain :)
http://en.wikipedia.org/wiki/Newlib
Image
Upgrade your PSP
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

sceKernelLoadExecVSHMs3 gives a black screen for a PBP in flash3, or memory stick. It appears that the kernel has finished rebooting in game mode though.

And I can't load the data.psp into buffer for all homebrew because its probably running out of kernel memory.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

have you tried load module?
Image
Upgrade your PSP
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Pirata Nervo wrote:have you tried load module?
Won't that try to load the module in the current mode (for an XMB plugin, it will load the module in memory while VSH is active) The kernel is supposed to restart in GAME mode and then launch the homebrew, which I think only LoadExec type functions do.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

yeh probably.
I think moonlight has a better answer :)
Image
Upgrade your PSP
Post Reply