PRX sample in PSPSDK
-
- Posts: 5
- Joined: Tue Sep 01, 2009 8:24 pm
- Location: São Paulo/SP (Brasil)
PRX sample in PSPSDK
Hi all
I'm trying the PRX example in pspsdk but I can't get it to work.
I can build both the prx-loader and the example prx and i copy the .prx file to the root of MS. I'm using Windows Vista.
But when I launch the Sample PRX Loader the app starts and exits out without printing anything to the screen.
I have a PSP-3000 with ChickHEN/CF 5.03GEN-B. Is it possible that it is not compatible with the sample? If so, is there any other way to use PRX?
I'm trying the PRX example in pspsdk but I can't get it to work.
I can build both the prx-loader and the example prx and i copy the .prx file to the root of MS. I'm using Windows Vista.
But when I launch the Sample PRX Loader the app starts and exits out without printing anything to the screen.
I have a PSP-3000 with ChickHEN/CF 5.03GEN-B. Is it possible that it is not compatible with the sample? If so, is there any other way to use PRX?
-
- Posts: 18
- Joined: Thu Aug 13, 2009 11:42 pm
The sample only works on 1.50 kernel because the eboot uses some kernel functions to load the prx and display informations about it.
Nice writeups on creating and using a PRX on 3.x+ firmwares are here (from the sticky of this subforum):
Nice writeups on creating and using a PRX on 3.x+ firmwares are here (from the sticky of this subforum):
Porting a 1.50 firmware homebrew to 3.xx firmware: http://forums.ps2dev.org/viewtopic.php?p=59266#59266
Making a kernel mode PRX: http://forums.ps2dev.org/viewtopic.php?p=58653#58653
-
- Posts: 5
- Joined: Tue Sep 01, 2009 8:24 pm
- Location: São Paulo/SP (Brasil)
pRX
Thanks for the answers
unsigned int: thank you but some of these information seems to be outdated as well as those samples
TyRaNiD: thanks, but i have studied those examples and i don't seem to understand how a prx gets loaded and unloaded and how does one export any routines from a prx?
unsigned int: thank you but some of these information seems to be outdated as well as those samples
TyRaNiD: thanks, but i have studied those examples and i don't seem to understand how a prx gets loaded and unloaded and how does one export any routines from a prx?
-
- Posts: 18
- Joined: Thu Aug 13, 2009 11:42 pm
Re: pRX
The second link I posted describes exactly these steps (hint: pspSdkLoadStartModule() and creating an .exp-file).daniel.franzini wrote:i don't seem to understand how a prx gets loaded and unloaded and how does one export any routines from a prx?
Those informations are still relevant, the methods of creating and loading a prx have not changed since 3.00.
-
- Posts: 5
- Joined: Tue Sep 01, 2009 8:24 pm
- Location: São Paulo/SP (Brasil)
prx - try #1
Hi
Thank you for the explanations. I found this link with a detailed tutorial on PRX.
I read it and tried to apply the info in it. Unfortunately, it did not work.
Here is the example I'm trying to run.
myprx.c
myprx_exp.exp
Makefile
Altough compilation and linking goes fine (an ELF is generated) psp-fixup-imports.exe gives me this error message:
Thank you.
Than
Thank you for the explanations. I found this link with a detailed tutorial on PRX.
I read it and tried to apply the info in it. Unfortunately, it did not work.
Here is the example I'm trying to run.
myprx.c
Code: Select all
#include <pspkernel.h>
PSP_MODULE_INFO( "MyPRX", PSP_MODULE_USER, 0 , 0 );
PSP_NO_CREATE_MAIN_THREAD();
int func(void)
{
return 0;
}
int module_start(SceSize argc, void* argp)
{
return 0;
}
int module_stop(SceSize args, void* argp)
{
return 0;
}
Code: Select all
PSP_BEGIN_EXPORTS
PSP_EXPORT_START(syslib, 0, 0x8000)
PSP_EXPORT_FUNC(module_start)
PSP_EXPORT_VAR(module_info)
PSP_EXPORT_END
PSP_EXPORT_START(myprx, 0, 0x0001)
PSP_EXPORT_FUNC(func)
PSP_EXPORT_END
PSP_END_EXPORTS
Code: Select all
TARGET=myprx
$(shell psp-build-exports -k $(TARGET)_exp.exp)
$(shell psp-build-exports -s -k $(TARGET)_exp.exp)
OBJS = $(TARGET).o $(TARGET)_exp.o
BUILD_PRX=1
PRX_EXPORTS=myprx_exp.exp
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS += -mno-crt0 -nostartfiles
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Code: Select all
Error, no .lib.stub section found
Than
-
- Posts: 37
- Joined: Wed Jan 14, 2009 5:53 am