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 

I can't run my eboot.pbp in the psp

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



Joined: 17 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 12:14 am    Post subject: I can't run my eboot.pbp in the psp Reply with quote

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
View user's profile Send private message
Draan



Joined: 17 Oct 2009
Posts: 55

PostPosted: Thu Mar 18, 2010 12:26 am    Post subject: Reply with quote

You can't run anything on orginal, Sony firmware.
Back to top
View user's profile Send private message
eleventh



Joined: 17 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 12:50 am    Post subject: Reply with quote

the firmware is 5.50 GEN-D2. it's also homebrwe. It can't run my eboot.pbp???
Back to top
View user's profile Send private message
yokfran



Joined: 28 Dec 2009
Posts: 16

PostPosted: Thu Mar 18, 2010 1:27 am    Post subject: Reply with quote

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
View user's profile Send private message
eleventh



Joined: 17 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Salvy



Joined: 30 Jun 2009
Posts: 9

PostPosted: Thu Mar 18, 2010 4:09 am    Post subject: Reply with quote

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
View user's profile Send private message
eleventh



Joined: 17 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message
yokfran



Joined: 28 Dec 2009
Posts: 16

PostPosted: Thu Mar 18, 2010 2:50 pm    Post subject: Reply with quote

Can't you see the "hello world" in XMB?

Can you run any other homebrew, like PSPLink, Bookr ?
Back to top
View user's profile Send private message
eleventh



Joined: 17 Mar 2010
Posts: 5

PostPosted: Thu Mar 18, 2010 11:46 pm    Post subject: Reply with quote

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
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