Load something in a Module (last post)

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

Moderators: cheriff, TyRaNiD

Post Reply
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Load something in a Module (last post)

Post by BigProMaN »

Hello all,

When I try to loadexec an Eboot which is in Flash0, sctrlKernelLoadExecVSHMs2() returns 0x80020147, it means : SCE_KERNEL_ERROR_PROHIBIT_LOADEXEC_DEVICE.

Is there a way to start an Eboot in Flash0 ?

Thanks in advance ;)
Last edited by BigProMaN on Mon Jan 05, 2009 4:43 am, edited 1 time in total.
Excuse me for my English, I'm French.
phobox
Posts: 127
Joined: Mon Mar 24, 2008 6:22 pm

Post by phobox »

first of all,
why an eboot.pbp?
a pbp contains metadata like icons and sfo file that are used by the vsh...
wouldn't be a prx(or elf) ok?
Ciao! from Italy
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Post by BigProMaN »

Yes it would be oKay ...
But if I use OSLib in a prx, it compile normally but nothing displays on screen :s . That's why I have to use an Eboot, but before I tried to use a prx, unsuccessfully.
Excuse me for my English, I'm French.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

The problem is that there is not a proper vsh exec for flash0.
LoadExecVSHMs is for ms as its name indicates, and normal loadexec is for disc0 usage for games.

Maybe some day i will make some more patches so that there is not that device check in loadexec.
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Post by BigProMaN »

OK, so for now, it's impossible to LoadExec an eboot in Flash.
Thanks for your answer !

I'll try to make a prx using OSLib so :s

Has anyone got an idea, why nothing displays on screen with a module, whereas it works perfectly with an Eboot (using OSLib) ?
Are there particular options to change ?

Thanks :)
Excuse me for my English, I'm French.
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

Its possible, but loading an pbp file, i dont understand.

There an example in the sdk on loading prx files.
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Post by BigProMaN »

I know that, my problem is : with the same code, when I compile it as an Eboot it works, whereas when I compile it as a prx, it doesn't work, nothing is displayed on screen.

My question is : are there any options to change in the code when we compile a prx with OSLib ? (like Heap size, stack size ...)

Thanks ;)
Excuse me for my English, I'm French.
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Post by BigProMaN »

Sorry for double posting, but I finally identified my problem :
A module compiled with libGe, OSLib, Graphics.c... works when I just blit text with printf(), or when I just clear the screen with a particular color ...
but as soon as I load something (a picture, a font ...), the load fail even if the file exists. Impossible to load anything in a module :(

I tried to allocate Heap size (PSP_HEAP_SIZE_KB(4096), I tried a few values), but it doesn't change anything.

Thanks in advance for any help :)
Excuse me for my English, I'm French.
Post Reply