| View previous topic :: View next topic |
| Author |
Message |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Fri Jan 02, 2009 4:30 am Post subject: Load something in a Module (last post) |
|
|
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 ;) _________________ Excuse me for my English, I'm French.
Last edited by BigProMaN on Mon Jan 05, 2009 4:43 am; edited 1 time in total |
|
| Back to top |
|
 |
phobox
Joined: 24 Mar 2008 Posts: 140
|
Posted: Fri Jan 02, 2009 5:15 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Fri Jan 02, 2009 5:24 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Fri Jan 02, 2009 6:07 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Fri Jan 02, 2009 7:13 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Fri Jan 02, 2009 11:42 am Post subject: |
|
|
Its possible, but loading an pbp file, i dont understand.
There an example in the sdk on loading prx files. |
|
| Back to top |
|
 |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Fri Jan 02, 2009 9:31 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Sun Jan 04, 2009 4:08 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|