| View previous topic :: View next topic |
| Author |
Message |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Tue Jun 10, 2008 5:20 am Post subject: Module will not load! |
|
|
Hello guys. I'm trying to call IRDA.PRX in this EBOOT, but it just freezes. Not even an error message shows.
Any ideas?
Code:
| Code: | #include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <stdlib.h>
#include <string.h>
#include <pspsircs.h>
#include <kubridge.h>
#include "pikeylibshim.h"
#include "../sdk/pikeytypes.h"
/* Define the module info section */
PSP_MODULE_INFO("PIKEYTEST", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER);
/* Define printf, just to make typing easier */
#define printf pspDebugScreenPrintf
/* Exit callback */
int exit_callback(int arg1, int arg2, void *common)
{
sceKernelExitGame();
return 0;
}
/* Callback thread */
int CallbackThread(SceSize args, void *argp)
{
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCallback(cbid);
sceKernelSleepThreadCB();
return 0;
}
/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void)
{
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0)
{
sceKernelStartThread(thid, 0, 0);
}
return thid;
}
int done = 0;
int main(void)
{
pspDebugScreenInit();
SetupCallbacks();
int ii;
SceUID mod = kuKernelLoadModule("flash0:/kd/irda.prx", 0, 0);
if (mod < 0) { printf(" ! Error 0x%08X loading/starting prx.\n", mod);
sceKernelDelayThread(5*1000*1000);
sceKernelExitGame();
}
pspSdkLoadStartModule("pikeylibshim.prx", PSP_MEMORY_PARTITION_KERNEL);
printf("piKey Sample.\n");
sceKernelDelayThread(3*1000*1000);
initPikey_3xx();
sceKernelDelayThread(1000000);
printf("piKey is detected as : %s\n", isPikeyLoaded_3xx() ? "Running" : "Not Running");
requestExclusive_3xx();
setMode_3xx(PIKEY_KEYMODE_KEYPRESS);
sceKernelDelayThread(1000000);
printf("Waiting for keys to be pressed...\n\n");
while(!done)
{
requestExclusive_3xx();
pspDebugScreenPrintf("\n\n");
printf("Waiting for keys to be pressed...\n\n");
requestExclusive_3xx();
sceKernelDelayThread(100000);
pspDebugScreenClear();
#if 0
for (ii = 7; ii < 20; ii++)
{
printf(" \n");
}
#endif
// nothing to do if no keys pressed.
if (numKeysPressed_3xx() == 0)
{
continue;
}
pspDebugScreenPrintf("\n");
for (ii = 0; ii < KEY_MAX; ii++)
{
if (isKeyPressed_3xx(ii))
{
printf("Pressed Scancode: %d\n", ii);
}
}
int ctrl, alt, shift;
pspDebugScreenPrintf("\n");
getMetaKeys_3xx(&alt, &ctrl, &shift);
printf(" %s %s %s\n",
ctrl? "CTRL" : " ",
alt? "ALT" : " ",
shift? "Shift" : " ");
}
return 0;
}
|
Makefile
| Code: | TARGET = sample
OBJS = Main.o PikeyLibShim.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS =
BUILD_PRX = 1
PSP_FW_VERSION = 380
PSP_LARGE_MEMORY = 1
PSP_EBOOT_ICON = ICON0.png
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = piKey IR Sample
LIBS += -lpspkubridge -lpspsystemctrl_kernel
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
|
|
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Jun 19, 2008 6:01 pm Post subject: |
|
|
| This doesn't really solve your programming problem, but someone got IRDA.PRX to work by loading it via recovery plugins. I presume you can also load it by adding it to pspbt*nf.bin in all modes. |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Fri Jun 20, 2008 2:07 am Post subject: Yeah... |
|
|
| Torch wrote: | | This doesn't really solve your programming problem, but someone got IRDA.PRX to work by loading it via recovery plugins. I presume you can also load it by adding it to pspbt*nf.bin in all modes. |
Yeah... that person was ME! lol
The trouble is that when enabled in the recovery menu, it can conflict with other programs. NervOS is one of them.
Hopefully if I can get it working in the sample program the plugin will not have to load in recovery!
What am I doing wrong in my application?!?
It works fine with everybody else!
Even when I copy is to the memory stick and load it up with "pspSdkLoadStartModule" it fails!
Does anyboy know the answser?
Thanks
Angelo |
|
| Back to top |
|
 |
darkness
Joined: 15 Jun 2008 Posts: 121
|
Posted: Fri Jun 20, 2008 2:15 am Post subject: |
|
|
| Try to load it in user memory partition! |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Fri Jun 20, 2008 6:17 am Post subject: Partition |
|
|
I tried this:
| Code: | | SceUID mod = kuKernelLoadModule("flash0:/kd/irda.prx", 0, PSP_MEMORY_PARTITION_KERNEL); |
...nothing... now it just freezes. Nothing shows on screen. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Fri Jun 20, 2008 6:41 am Post subject: |
|
|
he said try USER instead of KERNEL, lol _________________
Upgrade your PSP |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Jun 20, 2008 6:58 am Post subject: |
|
|
Yeah, since the irda is a user level library, it probably needs to be loaded to user memory. The shim had to be loaded to kernel memory because it has kernel functions in it.
Try:
| Code: | SceUID mod = pspSdkLoadStartModule("flash0:/kd/irda.prx", PSP_MEMORY_PARTITION_USER);
if (mod < 0)
{
printf(" ! Error 0x%08X loading/starting prx.\n", mod);
sceKernelDelayThread(5*1000*1000);
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Fri Jun 20, 2008 7:20 am Post subject: |
|
|
I don't know if you will be able to load it to user mode since you are in user mode.
you may get a "partition mismatch" error. _________________
Upgrade your PSP |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Jun 20, 2008 8:00 am Post subject: |
|
|
| Pirata Nervo wrote: | I don't know if you will be able to load it to user mode since you are in user mode.
you may get a "partition mismatch" error. |
So maybe load it from the shim, which is in kernel mode. Guess we'll have to wait until he tries it. :) |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Fri Jun 20, 2008 8:28 pm Post subject: |
|
|
what's the shim? :P
does it mean anything or is it a technical word? _________________
Upgrade your PSP |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Fri Jun 20, 2008 9:20 pm Post subject: Busy |
|
|
Been VERY busy lately with school stuff. (Explains your empty inbox J.F!)
I'll try it when I get a chance.
Hopefully once this is fixed in the sample, I can fix it in the piKey plugin!
=)
Thanks guys!
Angelo |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Jun 21, 2008 1:56 am Post subject: |
|
|
| Pirata Nervo wrote: | what's the shim? :P
does it mean anything or is it a technical word? |
Oh, angelo knows as he's the one working on the project... the pikey library used for accessing pikey inside homebrew doesn't work in w user-mode 3.xx app as it (and pikey) use kernel functions. So I made a kernel-mode shim that just uses the pikey lib from within a kernel-mode prx you load in your 3.xx homebrew to use pikey. The problem is you still need to currently edit a file in the flash to load the irda.prx before any of the pikey stuff will work on firmwares newer than 3.70. Angelo's been trying to load the irda inside the homebrew to avoid needing to mess with the flash. That's what this thread is on. Now since the shim is a kernel-mode prx, if you need to load irda.prx from kernel mode, he should be able to add that to the shim code. |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Sat Jun 21, 2008 2:40 am Post subject: And it's hard! |
|
|
| J.F. wrote: | | Pirata Nervo wrote: | what's the shim? :P
does it mean anything or is it a technical word? |
Oh, angelo knows as he's the one working on the project... the pikey library used for accessing pikey inside homebrew doesn't work in w user-mode 3.xx app as it (and pikey) use kernel functions. So I made a kernel-mode shim that just uses the pikey lib from within a kernel-mode prx you load in your 3.xx homebrew to use pikey. The problem is you still need to currently edit a file in the flash to load the irda.prx before any of the pikey stuff will work on firmwares newer than 3.70. Angelo's been trying to load the irda inside the homebrew to avoid needing to mess with the flash. That's what this thread is on. Now since the shim is a kernel-mode prx, if you need to load irda.prx from kernel mode, he should be able to add that to the shim code. |
And it hard!
I've tried so many solutions to this problem, but hopefully I'll get it to work.
I'll try it in a few days. I have a grade 6 guitar exam to revise for! =D
Thanks guys!
Angelo |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Sat Jun 21, 2008 6:26 am Post subject: Error |
|
|
OK as predicted by Pirata Nervo I get a "partition mismatch" when loading it with:
| Code: | SceUID mod = pspSdkLoadStartModule("flash0:/kd/irda.prx", PSP_MEMORY_PARTITION_USER);
if (mod < 0) { printf(" ! Error 0x%08X loading/starting prx.\n", mod);
sceKernelDelayThread(5*1000*1000);
sceKernelExitGame();
} |
Looks like I have to add it to the shim J.F. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sat Jun 21, 2008 7:51 am Post subject: |
|
|
or do this:
load a kernel mode prx from your application.
from the kernel mode prx load the irda to user mode partition.
may not work xD _________________
Upgrade your PSP |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Jun 21, 2008 10:57 am Post subject: |
|
|
| Pirata Nervo wrote: | or do this:
load a kernel mode prx from your application.
from the kernel mode prx load the irda to user mode partition.
may not work xD |
That's what the shim is - it's a kernel-mode prx.
:) |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sat Jun 21, 2008 9:20 pm Post subject: |
|
|
oh LOL XD _________________
Upgrade your PSP |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Thu Jul 03, 2008 5:42 am Post subject: Still acting strange... |
|
|
Hmm...
Now when I try and add it to the shim it fails to compile.
| Code: | #include <pspsdk.h>
#include <pspkernel.h>
#include <string.h>
#include <pspuser.h>
#include <pikeylib.h>
#define VERS 1
#define REVS 0
#define MAX_ARGS 2048
PSP_MODULE_INFO("PikeyLibShim", 0x1006, VERS, REVS);
PSP_MAIN_THREAD_ATTR(0);
void putNextCharW_3xx(int ch)
{
unsigned int k1 = pspSdkSetK1(0);
putNextCharW(ch);
pspSdkSetK1(k1);
}
void putNextChar_3xx(char ch)
{
unsigned int k1 = pspSdkSetK1(0);
putNextChar(ch);
pspSdkSetK1(k1);
}
int numCharsAvailable_3xx(void)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = numCharsAvailable();
pspSdkSetK1(k1);
return retv;
}
void flushBuffer_3xx(void)
{
unsigned int k1 = pspSdkSetK1(0);
flushBuffer();
pspSdkSetK1(k1);
}
int getNextCharW_3xx(void)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = getNextCharW();
pspSdkSetK1(k1);
return retv;
}
char getNextChar_3xx(void)
{
unsigned int k1 = pspSdkSetK1(0);
char retv = getNextChar();
pspSdkSetK1(k1);
return retv;
}
int peekNChars_3xx(int n, int *buffer)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = peekNChars(n, buffer);
pspSdkSetK1(k1);
return retv;
}
void throwAwayInput_3xx(int numchars)
{
unsigned int k1 = pspSdkSetK1(0);
throwAwayInput(numchars);
pspSdkSetK1(k1);
}
void sioPrint_3xx(const char * str)
{
unsigned int k1 = pspSdkSetK1(0);
sioPrint(str);
pspSdkSetK1(k1);
}
void sioPrintHex_3xx(char ch)
{
unsigned int k1 = pspSdkSetK1(0);
sioPrintHex(ch);
pspSdkSetK1(k1);
}
void sioPrintWord_3xx(int word)
{
unsigned int k1 = pspSdkSetK1(0);
sioPrintWord(word);
pspSdkSetK1(k1);
}
int waitForModule_3xx(const char *name)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = waitForModule(name);
pspSdkSetK1(k1);
return retv;
}
int requestExclusive_3xx(void)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = requestExclusive();
pspSdkSetK1(k1);
return retv;
}
void releaseExclusive_3xx(void)
{
unsigned int k1 = pspSdkSetK1(0);
releaseExclusive();
pspSdkSetK1(k1);
}
u32 apiHookByNid_3xx(const char *modname, const char *libname, u32 nid, void *func)
{
unsigned int k1 = pspSdkSetK1(0);
u32 retv = apiHookByNid(modname, libname, nid, func);
pspSdkSetK1(k1);
return retv;
}
u32 callApiHook_3xx(u32 hookid, ...)
{
unsigned int k1 = pspSdkSetK1(0);
u32 retv = callApiHook(hookid);
pspSdkSetK1(k1);
return retv;
}
void unHookApi_3xx(u32 hookid)
{
unsigned int k1 = pspSdkSetK1(0);
unHookApi(hookid);
pspSdkSetK1(k1);
}
int registerDisplayCallback_3xx(SceUID callback)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = registerDisplayCallback(callback);
pspSdkSetK1(k1);
return retv;
}
void drawKeyboardInfo_3xx(DRAWINFO *drawinfo)
{
unsigned int k1 = pspSdkSetK1(0);
drawKeyboardInfo(drawinfo);
pspSdkSetK1(k1);
}
void displayStatusText_3xx(const char *text)
{
unsigned int k1 = pspSdkSetK1(0);
displayStatusText(text);
pspSdkSetK1(k1);
}
int isVshMode_3xx()
{
unsigned int k1 = pspSdkSetK1(0);
int retv = isVshMode();
pspSdkSetK1(k1);
return retv;
}
void sendKeyPress_3xx(int a,int b,int c,int d,int e)
{
unsigned int k1 = pspSdkSetK1(0);
sendKeyPress(a,b,c,d,e);
pspSdkSetK1(k1);
}
void flushKeyPresses_3xx(void )
{
unsigned int k1 = pspSdkSetK1(0);
flushKeyPresses();
pspSdkSetK1(k1);
}
int setMode_3xx(int a)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = setMode(a);
pspSdkSetK1(k1);
return retv;
}
int getMode_3xx(void)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = getMode();
pspSdkSetK1(k1);
return retv;
}
int isKeyPressed_3xx(int a)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = isKeyPressed(a);
pspSdkSetK1(k1);
return retv;
}
void getMetaKeys_3xx(int *alt, int *ctrl, int *shift)
{
unsigned int k1 = pspSdkSetK1(0);
getMetaKeys(alt, ctrl, shift);
pspSdkSetK1(k1);
}
int numKeysPressed_3xx(void)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = numKeysPressed();
pspSdkSetK1(k1);
return retv;
}
int configOpen_3xx(const char *filename)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = configOpen(filename);
pspSdkSetK1(k1);
return retv;
}
int configRead_3xx(int cfgHandle, char *token, char *value)
{
unsigned int k1 = pspSdkSetK1(0);
int retv = configRead(cfgHandle, token, value);
pspSdkSetK1(k1);
return retv;
}
void configClose_3xx(int cfgHandle)
{
unsigned int k1 = pspSdkSetK1(0);
configClose(cfgHandle);
pspSdkSetK1(k1);
}
int isPikeyLoaded_3xx()
{
unsigned int k1 = pspSdkSetK1(0);
int retv = isPikeyLoaded();
pspSdkSetK1(k1);
return retv;
}
SceUID myLoadStartModuleWithArgs(const char *filename, int mpid, int argc, char * const argv[])
{
SceKernelLMOption option;
SceUID modid = 0;
int retVal = 0, mresult;
char args[MAX_ARGS];
int argpos = 0;
memset(args, 0, MAX_ARGS);
strcpy(args, filename);
argpos += strlen(args) + 1;
// for(i = 0; (i < argc) && (argpos < MAX_ARGS); i++)
// {
// int len;
//
// snprintf(&args[argpos], MAX_ARGS-argpos, "%s", argv[i]);
// len = strlen(&args[argpos]);
// argpos += len + 1;
// }
memset(&option, 0, sizeof(option));
option.size = sizeof(option);
option.mpidtext = mpid;
option.mpiddata = mpid;
option.position = 0;
option.access = 1;
retVal = sceKernelLoadModule(filename, 0, &option);
if(retVal < 0){
return retVal;
}
modid = retVal;
retVal = sceKernelStartModule(modid, argpos, args, &mresult, NULL);
if(retVal < 0){
return retVal;
}
return modid;
}
int initPikey_3xx()
{
int retv;
unsigned int k1 = pspSdkSetK1(0);
SceUID mod = myLoadStartModuleWithArgs("flash0:/kd/irda.prx", PSP_MEMORY_PARTITION_USER, 0, NULL);
if (mod < 0)
retv = mod;
else
retv = initPikey();
pspSdkSetK1(k1);
return retv;
}
int module_start(SceSize args, void *argp)
{
return 0;
}
int module_stop()
{
return 0;
}
|
The error:
| Code: | > "make"
psp-gcc -I/c/devkitPro/devkitPSP/psp/sdk/include/libc -I. -I/c/devkitPro/devkitPSP/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -c -o main.o main.c
main.c: In function 'sioPrintWord_3xx':
main.c:116: warning: implicit declaration of function 'sioPrintWord'
psp-build-exports -b pikeylibshim.exp > pikeylibshim.c
psp-gcc -I/c/devkitPro/devkitPSP/psp/sdk/include/libc -I. -I/c/devkitPro/devkitPSP/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -c -o pikeylibshim.o pikeylibshim.c
psp-gcc -I/c/devkitPro/devkitPSP/psp/sdk/include/libc -I. -I/c/devkitPro/devkitPSP/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -L. -L/c/devkitPro/devkitPSP/psp/sdk/lib -specs=/c/devkitPro/devkitPSP/psp/sdk/lib/prxspecs -Wl,-q,-T/c/devkitPro/devkitPSP/psp/sdk/lib/linkfile.prx -mno-crt0 -nostartfiles main.o pikeylibshim.o -lpspkernel -lpikey -lpspdebug -lpspdisplay_driver -lpspctrl_driver -lpspsdk -lpspkernel -o pikeylibshim.elf
psp-fixup-imports pikeylibshim.elf
Error, could not fixup imports, stubs out of order.
Ensure the SDK libraries are linked in last to correct this error
"make": *** [pikeylibshim.elf] Error 1
rm pikeylibshim.c
> Process Exit Code: 2
> Time Taken: 00:03
|
But then when I make again, it compiles the ELF into a PRX:
| Code: | > "make"
psp-prxgen pikeylibshim.elf pikeylibshim.prx
> Process Exit Code: 0
> Time Taken: 00:00
|
I test the PRX and as suspected it fails!
Any ideas?
If you want more code, let me know!
Angelo |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Thu Jul 03, 2008 7:04 am Post subject: |
|
|
Is that makefile part of the main code?
because the library/driver should be prx and exporting functions to user mode pbp (usually) and in your makefile you say:
| Code: | EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = piKey IR Sample
PSP_EBOOT_ICON = ICON0.Png |
_________________
Upgrade your PSP |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Thu Jul 03, 2008 7:53 am Post subject: To clear up |
|
|
Let me just clear up...
The shim in a kernel mode PRX.
The sample is a user mode EBOOT that loads the shim fine.
The trouble is making the shim load IRDA.PRX as it cannot be loaded in user mode.
Here's the shim makefile:
| Code: | TARGET = pikeylibshim
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
BUILD_PRX = 1
PRX_EXPORTS = pikeylibshim.exp
USE_KERNEL_LIBC=1
USE_KERNEL_LIBS=1
LIBDIR =
LDFLAGS = -mno-crt0 -nostartfiles
LIBS = -lpspkernel -lpikey
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
|
Here's the sample makefile:
| Code: | TARGET = sample
OBJS = Main.o PikeyLibShim.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS =
BUILD_PRX = 1
PSP_FW_VERSION = 380
PSP_LARGE_MEMORY = 1
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = piKey IR Sample
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
|
With that said, I was looking on how ZX81 loads IRDA in his applications.
| Code: | /* Load irda PRX for CFW >= 3.80 */
u32 mod_id = sceKernelLoadModule("flash0:/kd/irda.prx", 0, NULL);
sceKernelStartModule(mod_id, 0, NULL, NULL, NULL); |
I'll try adding that to the sample and see what happeneds. As always, finding time is hard. I HATE schoolwork sometimes!
Angelo |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Thu Jul 03, 2008 8:26 am Post subject: |
|
|
but you still get the error, right?
and you are getting the error compiling the prx? _________________
Upgrade your PSP |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Thu Jul 03, 2008 8:39 am Post subject: Yes |
|
|
I still gt an error when compiling the PRX, howeverever an ELF file is made!
If I re make the semi compiled source, it converts the ELF to a PRX.
Ahh this is driving me crazy! |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Thu Jul 03, 2008 9:00 am Post subject: |
|
|
remove -lpspkernel from your makefile and try again _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Rangu2057
Joined: 23 Jul 2007 Posts: 87 Location: wilmington, NC
|
Posted: Thu Jul 03, 2008 10:45 am Post subject: Re: Yes |
|
|
| angelo wrote: | I still gt an error when compiling the PRX, howeverever an ELF file is made!
If I re make the semi compiled source, it converts the ELF to a PRX.
Ahh this is driving me crazy! |
i know what u mean man, but dont go crazy now :P
hopefully removing -lpspkernel like Pirata said will fix the problem, but im not sure
btw, whats with the K1 shit checks? its everywhere, and thats enough to drive me crazy right there, lol _________________ the questions of today are awnswered by the blood and bullets of tomorrow! ---EagleEye--- (Socom FTB2) |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Thu Jul 03, 2008 12:57 pm Post subject: |
|
|
| You posted a clip from zx81 that you say he uses in his apps (from the user level)... try putting that in the sample instead of the shim. |
|
| Back to top |
|
 |
angelo
Joined: 29 Aug 2007 Posts: 168
|
Posted: Sat Jul 05, 2008 8:26 pm Post subject: Damn! |
|
|
Damn nothing!
Grrr!
I'm going to restore the shim and the application back to normal J.F and I'll get into contact with ZX81. We talk sometimes on MSN.
Anywho, I'll be working on the generic stuff in piKey, adding some new features and fixing some bugs.
Thanks guys for all yoru help!
Angelo |
|
| Back to top |
|
 |
|