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 

sceKernelLoadExec fails with 8002013A on 3.52 M33

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



Joined: 04 Oct 2007
Posts: 2

PostPosted: Thu Oct 04, 2007 2:44 am    Post subject: sceKernelLoadExec fails with 8002013A on 3.52 M33 Reply with quote

If i call sceKernelLoadExec() in a kernel mode prx on 3.52 M33 it fails with 8002013A (Library not linked yet).

The Makefile for the prx looks like that:
Code:
TARGET = helper
OBJS = main.o

PSP_FW_VERSION = 352

BUILD_PRX = 1
PRX_EXPORTS = exports.exp

USE_KERNEL_LIBC = 1
USE_KERNEL_LIBS = 1

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS = -mno-crt0 -nostartfiles

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


Which library must be linked additional to it?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Oct 04, 2007 6:19 am    Post subject: Reply with quote

You don't give nearly enough info to answer the question. What lib are you trying to load? Why are you even trying to load it? Why are you using that method of loading?
Back to top
View user's profile Send private message AIM Address
skillz4fun



Joined: 04 Oct 2007
Posts: 2

PostPosted: Thu Oct 04, 2007 6:30 am    Post subject: Reply with quote

Ok.
It's a kernel prx module loaded by an user mode running application.
I need a kernel mode modul to start another EBOOT.PBP from memory stick.

my test code is:
Code:
#include <pspkernel.h>
#include <psploadexec.h>

PSP_MODULE_INFO("name", 0x1006, 1, 1);
PSP_MAIN_THREAD_ATTR(0);

/*
Function called by Main-Application to run another EBOOT.PBP
"i" is a test return value.
*/

int retval(int * i)
{
   const char * tmp = "ms0:/PSP/GAME/OTHER/EBOOT.PBP";

   struct SceKernelLoadExecParam EBOOTPBP;

   EBOOTPBP.args = strlen(tmp)+1;
   EBOOTPBP.argp = tmp;
   EBOOTPBP.key = NULL;
   EBOOTPBP.size = sizeof(EBOOTPBP)+strlen(tmp)+1;
   // "i" contains 0x8002013A after the following call:
   *i = sceKernelLoadExec(tmp,&EBOOTPBP);
   
   return 0;
}

int module_start(SceSize args, void *argp)
{
   return 0;
}

int module_stop(SceSize args, void *argp)
{
   return 0;
}
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