How to load prx?Need help

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

Moderators: cheriff, TyRaNiD

Post Reply
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

How to load prx?Need help

Post by gambiting »

Hi! I want to try out my new Go! Cam psp camera,but I can't load needed modules as mentioned here http://forums.ps2dev.org/viewtopic.php?t=7074 .My code looks like that:

Code: Select all

#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspgu.h>
#include <png.h>
#include <stdio.h>
#include "graphics.h"
#include <pspsdk.h>
#include <pspctrl.h>
#include <psploadexec_kernel.h>
#include <pspusb.h>
PSP_MODULE_INFO&#40;"Camera", 0, 1, 1&#41;;
PSP_MAIN_THREAD_ATTR&#40;THREAD_ATTR_USER | THREAD_ATTR_VFPU&#41;;

int main&#40;&#41;
&#123;
pspDebugScreenInit&#40;&#41;;
initGraphics&#40;&#41;;
pspSdkLoadStartModule&#40;"flash0&#58;/kn/usbacc.prx", PSP_MEMORY_PARTITION_KERNEL&#41;;
pspSdkLoadStartModule&#40;"flash0&#58;/kn/usbcam.prx", PSP_MEMORY_PARTITION_KERNEL&#41;;
pspSdkLoadStartModule&#40;"flash0&#58;/vsh/nodule/camera_plugin.prx", PSP_MEMORY_PARTITION_KERNEL&#41;;
while&#40;1&#41;
&#123;
if &#40;sceUsbStart&#40;"USBBusDriver", 0, 0&#41; &#41;
&#123; 
printTextScreen&#40;30,30, "Loading of USBBus driver failed!", 0xFFFFFF&#41;;
&#125;
if &#40;sceUsbStart&#40;"USBAccBaseDriver", 0, 0&#41;&#41;
&#123; 
printTextScreen&#40;30,40, "Loading of USBAccBaseDriver failed!", 0xFFFFFF&#41;;
&#125;
if &#40;sceUsbStart&#40;"USBCamDriver", 0, 0&#41; &#41;
&#123; 
printTextScreen&#40;30,50, "Loading of CamDriver driver failed!", 0xFFFFFF&#41;;
&#125;
if &#40;sceUsbStart&#40;"USBCamMicDriver", 0, 0&#41;&#41;
&#123; 
printTextScreen&#40;30,60, "Loading of USBCamMicDriver failed!", 0xFFFFFF&#41;;
&#125;
flipScreen&#40;&#41;;
sceKernelSleepThread&#40;&#41;;

&#125;

&#125; 
And makefile:

Code: Select all

TARGET = Camera
OBJS = main.o graphics.o framebuffer.o
YOURLIBS=

INCDIR =
CFLAGS = -G4 -Wall -O2
CXXFLAGS = $&#40;CFLAGS&#41; -fno-exceptions -fno-rtti
ASFLAGS = $&#40;CFLAGS&#41;

LIBDIR =
LDFLAGS =
STDLIBS= -lpng -lz -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lm-lpng -lz -lpspsdk -lpspctrl -lpspumd -lpspusb
LIBS=$&#40;STDLIBS&#41;$&#40;YOURLIBS&#41;

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Camera
PSPSDK=$&#40;shell psp-config --pspsdk-path&#41;
include $&#40;PSPSDK&#41;/lib/build.mak
As you can see I check in my code if I can init any function needed,but all fail except for sceUsbStart("USBBusDriver", 0, 0) .Could you help me find what's wrong here?I'm running 3.40OE-A.
Guzmanus
Posts: 4
Joined: Fri Jun 01, 2007 2:09 am

Post by Guzmanus »

Do you have Ta-082?
If yes: run Keycleaner of chilliwilly
If no: I don't know
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Post by gambiting »

Guzmanus wrote:Do you have Ta-082?
If yes: run Keycleaner of chilliwilly
If no: I don't know
I have TA-079 so my problem is still unsolved.Please help.
Post Reply