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 

Load something in a Module (last post)

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



Joined: 29 Aug 2008
Posts: 16

PostPosted: Fri Jan 02, 2009 4:30 am    Post subject: Load something in a Module (last post) Reply with quote

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



Joined: 24 Mar 2008
Posts: 140

PostPosted: Fri Jan 02, 2009 5:15 am    Post subject: Reply with quote

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



Joined: 29 Aug 2008
Posts: 16

PostPosted: Fri Jan 02, 2009 5:24 am    Post subject: Reply with quote

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



Joined: 26 Oct 2005
Posts: 567

PostPosted: Fri Jan 02, 2009 6:07 am    Post subject: Reply with quote

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



Joined: 29 Aug 2008
Posts: 16

PostPosted: Fri Jan 02, 2009 7:13 am    Post subject: Reply with quote

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



Joined: 12 Aug 2008
Posts: 394

PostPosted: Fri Jan 02, 2009 11:42 am    Post subject: Reply with quote

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

There an example in the sdk on loading prx files.
Back to top
View user's profile Send private message AIM Address
BigProMaN



Joined: 29 Aug 2008
Posts: 16

PostPosted: Fri Jan 02, 2009 9:31 pm    Post subject: Reply with quote

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



Joined: 29 Aug 2008
Posts: 16

PostPosted: Sun Jan 04, 2009 4:08 am    Post subject: Reply with quote

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