View previous topic :: View next topic |
Author |
Message |
eleventh
Joined: 17 Mar 2010 Posts: 5
|
Posted: Thu Mar 18, 2010 12:14 am Post subject: I can't run my eboot.pbp in the psp |
|
|
Hi, I compile the psp sdk in ubuntu. And also compile the samples successfully. but can't run in my psp. My psp is 5.50 fireware.
I hope somebody can help me. Thanks |
|
Back to top |
|
|
Draan
Joined: 17 Oct 2009 Posts: 55
|
Posted: Thu Mar 18, 2010 12:26 am Post subject: |
|
|
You can't run anything on orginal, Sony firmware. |
|
Back to top |
|
|
eleventh
Joined: 17 Mar 2010 Posts: 5
|
Posted: Thu Mar 18, 2010 12:50 am Post subject: |
|
|
the firmware is 5.50 GEN-D2. it's also homebrwe. It can't run my eboot.pbp??? |
|
Back to top |
|
|
yokfran
Joined: 28 Dec 2009 Posts: 16
|
Posted: Thu Mar 18, 2010 1:27 am Post subject: |
|
|
Which sample you compiled?
Some of the sample can only work under 1.50 fw. Because it is a kernel appalication.
So...
1st, make sure the sample you compiled is a user mode app.
2nd, add "BUILD_PRX = 1", "PSP_FW_VERSION = 550" in "Makefile" |
|
Back to top |
|
|
eleventh
Joined: 17 Mar 2010 Posts: 5
|
Posted: Thu Mar 18, 2010 1:35 am Post subject: |
|
|
a very simple program. helloworld.
I try to do with your saying. Then I put the eboot.pbp in that path "/psp/game/helloworld". but psp can't find that program. |
|
Back to top |
|
|
Salvy
Joined: 30 Jun 2009 Posts: 9
|
Posted: Thu Mar 18, 2010 4:09 am Post subject: |
|
|
Mmm sure you modified the makefile as stated above?
ALso make sure you are placing the Eboot like this /PSP/GAME/HELLOWORLD/Eboot.PBP |
|
Back to top |
|
|
eleventh
Joined: 17 Mar 2010 Posts: 5
|
Posted: Thu Mar 18, 2010 10:01 am Post subject: |
|
|
1. makefile:
BUILD_PRX = 1
PSP_FW_VERSION = 550
TARGET = hello
OBJS = main.o
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
2. main.c:
#include <pspkernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("Hello World", 0, 1, 1);
PSP_HEAP_SIZE_KB(20480);
#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 main() {
pspDebugScreenInit();
SetupCallbacks();
printf("Hello World");
sceKernelSleepThread();
return 0;
}
3. compile successfully
wahaha@wahaha-pc:~/workspace/helloworld$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=550 -c -o main.o main.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=550 -L. -L/usr/local/pspdev/psp/sdk/lib -specs=/usr/local/pspdev/psp/sdk/lib/prxspecs -Wl,-q,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx main.o /usr/local/pspdev/psp/sdk/lib/prxexports.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o hello.elf
psp-fixup-imports hello.elf
psp-prxgen hello.elf hello.prx
mksfo 'Hello World' PARAM.SFO
pack-pbp EBOOT.PBP PARAM.SFO NULL \
NULL NULL NULL \
NULL hello.prx NULL
[0] 408 bytes | PARAM.SFO
[1] 0 bytes | NULL
[2] 0 bytes | NULL
[3] 0 bytes | NULL
[4] 0 bytes | NULL
[5] 0 bytes | NULL
[6] 91054 bytes | hello.prx
[7] 0 bytes | NULL
4. put the eboot.pbp in that path
something is wrong. psp can't find the program. |
|
Back to top |
|
|
yokfran
Joined: 28 Dec 2009 Posts: 16
|
Posted: Thu Mar 18, 2010 2:50 pm Post subject: |
|
|
Can't you see the "hello world" in XMB?
Can you run any other homebrew, like PSPLink, Bookr ? |
|
Back to top |
|
|
eleventh
Joined: 17 Mar 2010 Posts: 5
|
Posted: Thu Mar 18, 2010 11:46 pm Post subject: |
|
|
the problem has solved. the folder name is wrong. Put the eboot.pbp in that folder whick is makefile‘s target file “TARGET = hello”. |
|
Back to top |
|
|
|