How can I load an EBOOT as a module from flash?

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Aura
Posts: 37
Joined: Tue Jul 24, 2007 4:30 am

How can I load an EBOOT as a module from flash?

Post by Aura »

I'm trying to load an EBOOT from flash, so my only method of doing so (in the 3.XX kernel) is to load it as a module, except whenever I do so I get 0x80020148 error, because as far as I'm aware you can only load a prx as a module, and not an EBOOT. So, I guess my question is, can you load an EBOOT as a module any other way, or is there any way of stripping down the EBOOT to some form of readable module?

Also, whenever I try and compile using anything from the modulemgr library, I get this error:
Error, could not fixup imports, stubs out of order.
Ensure the SDK libraries are linked in last to correct this error
make: *** [project4.elf] Error 1

How do I fix it?

Thanks.
-Aura
PSPApple
Posts: 6
Joined: Fri Mar 28, 2008 2:00 am

Post by PSPApple »

look at this api,but I am not sure

int sceKernelLoadExec ( const char * file,
struct SceKernelLoadExecParam * param
)
using 3.71m33-4

psp1000
User avatar
Aura
Posts: 37
Joined: Tue Jul 24, 2007 4:30 am

Post by Aura »

That function doesn't work in 3.XX kernel, it was replaced by sceKernelLoadExecMs2, which cannot boot anything from flash. Plus its loadexec'ing, and I need it to load as a module. But thanks for the help all the same ;)

-Aura
User avatar
Aura
Posts: 37
Joined: Tue Jul 24, 2007 4:30 am

Post by Aura »

Bump.

Sorry, but this one really does have be baffled (both actually).

-Aura
Archaemic
Posts: 38
Joined: Sun Mar 18, 2007 7:23 am

Post by Archaemic »

Read the DATA.PSP into a buffer and then use sceKernelLoadModuleBuffer.

I'd imagine. Haven't actually tried it.
Post Reply