gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > devkitARM running under linux

#37684 - larf - Tue Mar 15, 2005 2:02 am

Hi,

I just installed devkitARM with the buildscript linked at http://www.devkit.tk/.
It seems to work fine, I get no error messages.

I downloaded some sources to try to compile a game.
I ran:
arm-elf-gcc -o test.elf test.c
arm-elf-objcopy -O binary test.elf test.bin

When running test.bin with VisualBoyAdvance I only get a white screen.
I tried this with several files - everything I compile just produces a white screen.
VisualBoyAdvance works fine with other files.

I know this is a very short description of the occurring, but maybe someone could help me?

#37697 - tepples - Tue Mar 15, 2005 4:12 am

larf wrote:
arm-elf-gcc -o test.elf test.c

With devkitARM, you have to specify a specs file when you make the .elf file. Try this:

arm-elf-gcc -specs=gba.specs -o test.elf test.c

Quote:
arm-elf-objcopy -O binary test.elf test.bin

It's not nice to name GBA programs *.bin because that collides with the usual extension for Sega Genesis programs. Use *.gba for your GBA ROM programs (linked with -specs=gba.specs) and *.mb for your GBA multiboot programs (linked with -specs=gba_mb.specs).
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#37735 - larf - Tue Mar 15, 2005 3:27 pm

Hi,

That didn't help my problem, but I read a lot in the forum, so I found a hint by someone to try
Code:

 arm-elf-gcc -mthumb -mthumb-interwork -g -specs=gba.specs -o


That works now.
Thanks for your help.