GP32 Using Linux for developing GP32 apps


eha

Still Fresh
Joined
Jun 7, 2003
Messages
1
Hi all.

I just got myself a GP32 and would like to try som development for it.
I am using Linux and don't have any experience developing for any other platforms.
What I'm looking for is a simple howto for setting up gcc(?) for gp32-development.
I have found some (fragmented) information about a gba devkit, but not really a
good howto for the entire procedure.

Thanks in advance.
 
I'm not really sure there are any actually.
What you should do is to get your toolchain running,
GCC etc.
there are several howtos on the net how to compile a xgcc, it's not hard really if you are familiar with linux.

The next thing is to get some libs for the GP32, i suggest you get chn's devkitadv patch and extract the libs from that.

You would probably need some kind of linker app aswell, and there is a gplink for linux. (i don't have any URL's though)

You could also use devkitadv for linux, but afaik it's gcc3.0.4 or smth so a gcc 3.2.x would be better.
gcc 3.3 however does not support multi line literals so inline assembly could be tough.

If you need any help just mail me or smth.

---
mithris
 
The only problem with using chn's patch is that the permisions for the files can be wrong, so i can only compile as root.
 
Then change the permissions?..:D
chmod 755 <file>
(as root ofcourse)

---
mithris
 
I saw around here or on yahoo gp32 dev's mailing list some other guys who want to code under linux.
I dunno if they succeed. But it would be great, if you succeed or someone else to have GCC compiling for GP32 running under linux to put a package online or a tuto.
It would be easier for newbee :)

good luck !
 
Well, i use linux for devving, always..

and jlebrech, a "chmod -R" is recursive..
the friendly manpages can get you far..:D

---
mithris
 
I think we should try for a debian package.

But really all you need is a gcc targeted at ARM, CHN's patches, and the gplink.
Mithris put it best, but here are some links:

http://chn.roarvgm.com/#gp32 - chn's page
http://chn.roarvgm.com/gp32/devkitadv-gp32-v002b.rar - the devkit includes, etc.

http://prdownloads.sourceforge.net/devkita...ar.bz2?download - Devkitadv for Linux, add CHN patch
http://prdownloads.sourceforge.net/devkita...ar.bz2?download - same but source

http://gp32.emu.pl/gp32download.php?do_wha...fileinfo&id=186 - b2fxec for Linux (converts gxb to fxe)

Can't seem to find the pclink tool except for a dos command line pclink by DarkFader.

- Rico
 
There already is a rather excellent set of debian packages at http://didaho1.free.fr/cross/

Taken from the readme -

You can obtain an environment :
1 by appending "deb http://didaho1.free.fr/cross unstable devel" line to your /etc/apt/sources.list file.
2 then type "apt-get update" to get package names.
3 type "apt-get install task-cross-*TARGET*" to obtain *TARGET* devkit (*TARGET*=gba,gp32,...)

This should install everything needed, including b2fxec and gplink.
 
Perhaps one should slap together a nice ebuild for gentoo, including all stuff, gcc etc..
just
emerge gp32devkit
would be sweet..:D

---
mithris
 
Back
Top