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 

KXploit on Linux

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



Joined: 29 Jan 2006
Posts: 5

PostPosted: Wed Feb 08, 2006 1:56 am    Post subject: KXploit on Linux Reply with quote

Hi all,
First off, thanks a million to ps2dev.org for the awesome sdk for the PSP.
I've got the toolchain and got it compiled in Linux and am able to generate EBOOT's which work the PSP(v1.5).

However I have a small problem, each time I create a EBOOT I have to reboot to windows and use KXploit to generate the folders and the dummy EBOOT and put it on PSP.

Is there a script/program which do this this for me in Linux ?
Basically I need something similar to KXploit for Linux.If the alternate is a compination of programs and scripts I'm fine with it.

Thanks.
Back to top
View user's profile Send private message Send e-mail
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Wed Feb 08, 2006 2:24 am    Post subject: Reply with quote

This is already supported.

Code:

gmake kxploit


That'll do the trick :)
_________________
Br, Sandberg
Back to top
View user's profile Send private message
topa



Joined: 29 Jan 2006
Posts: 5

PostPosted: Wed Feb 08, 2006 3:12 am    Post subject: Reply with quote

[quote="sandberg"]This is already supported.

Code:

gmake kxploit


Pardon me, but I didn't quite get that.
Is kxploit source available for it to be compiled in linux ?
Back to top
View user's profile Send private message Send e-mail
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Wed Feb 08, 2006 3:18 am    Post subject: Reply with quote

When you build your homebrew, there is a target named kxploit, which creates the directories for you (and it also support adding custom icons etc.).

So if you e.g. make the samples/gu/cube sample you just use

gmake -f Makefile.sample kxploit

instead of

gmake -f Makefile.sample
_________________
Br, Sandberg
Back to top
View user's profile Send private message
topa



Joined: 29 Jan 2006
Posts: 5

PostPosted: Wed Feb 08, 2006 3:24 am    Post subject: Reply with quote

sandberg wrote:
When you build your homebrew, there is a target named kxploit, which creates the directories for you (and it also support adding custom icons etc.).

So if you e.g. make the samples/gu/cube sample you just use

gmake -f Makefile.sample kxploit

instead of

gmake -f Makefile.sample


OK. Got it.
Now I'm faced with a new problem:

[code]
sekrity:/opt/mips_psp/progs# make -f Makefile kxploit
mkdir -p ""
mkdir: cannot create directory `': No such file or directory
make: *** [kxploit] Error 1
[/code

It attempts to create a "NULL" directory.Are there any additional parameters which I'm missing ?
Back to top
View user's profile Send private message Send e-mail
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Wed Feb 08, 2006 3:38 am    Post subject: Reply with quote

Could you post your makefile, I can take a look. Otherwise compare it to one of the sample makefiles. I've added one below

Code:

TARGET = cube
OBJS = cube.o logo.o ../common/callbacks.o ../common/vram.o

INCDIR =
CFLAGS = -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =
LIBS= -lpspgum -lpspgu -lm

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Cube Sample

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

logo.o: logo.raw
   bin2o -i logo.raw logo.o logo

_________________
Br, Sandberg
Back to top
View user's profile Send private message
topa



Joined: 29 Jan 2006
Posts: 5

PostPosted: Wed Feb 08, 2006 3:45 am    Post subject: Reply with quote

This is my Makefile

Code:

TARGET = test
OBJS = test.o

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Prog Test

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Back to top
View user's profile Send private message Send e-mail
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Wed Feb 08, 2006 3:53 am    Post subject: Reply with quote

The TARGET directive is used when creating the directories. So It is strange that it doesn't work.
_________________
Br, Sandberg
Back to top
View user's profile Send private message
Dr. Vegetable



Joined: 14 Nov 2005
Posts: 171
Location: Boston, Massachusetts

PostPosted: Wed Feb 08, 2006 4:44 am    Post subject: Reply with quote

Make sure there is no whitespace at the end of any of the lines in your makefile. I've seen some buggy behavior from make when trailing whitespace is present. This could be your problem here.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
topa



Joined: 29 Jan 2006
Posts: 5

PostPosted: Wed Feb 08, 2006 11:07 pm    Post subject: Reply with quote

Dr. Vegetable wrote:
Make sure there is no whitespace at the end of any of the lines in your makefile. I've seen some buggy behavior from make when trailing whitespace is present. This could be your problem here.


re-checked the makefile, no trailing whitespace.
Still having to boot into Linux for Kxploit(sucks)
Back to top
View user's profile Send private message Send e-mail
ReKleSS



Joined: 18 Jun 2005
Posts: 73
Location: Melbourne, Australia

PostPosted: Thu Feb 09, 2006 5:01 pm    Post subject: Reply with quote

This is kind of a hack, but if you really can't get it working, do
Code:
psp-strip test.elf -o EBOOT.PBP

The resulting EBOOT goes in the TEST directory (as opposed to TEST%) on the psp... it's doing the same thing as make kxploit, just without the directories. Still weird that it doesn't work properly, though... is your build.mak messed up somehow?

By the way, the '-f Makefile' part of the command is implied, you don't need to type it. make searches for Makefile, makefile and GNUmakefile automatically.
-ReK
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