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.

DS development > Example build help please

#39873 - ghod - Wed Apr 13, 2005 2:38 am

Please excuse my newb-ness if I am missing something obvious, but I am having problems setting up my NDS development environment in linux.

I generally followed this tutorial: http://www.dspassme.com/programmers_guide/Tutorial/configuration.html and did the following:
1. installed devkitARM_r11
2. checked ndslib out from sourceforge
3. built ndslib and used the Install.bat as a template of where the .o, .ld, and .specs files should be copied in the devkitARM/arm-elf/lib/ directories
4. built the examples that come with ndslib(makefile output below)

When I try running the resulting template.nds in dualis, it crashes. ( I have verified dualis works with demos people have posted in this forum ).

Any help would be greatly appreciated!

make output (/ndslib/examples/2D/2D_Example/)
------------------------------------------------------------------------------
rm -rf arm9/arm9.bin
rm -rf arm7/arm7.bin
make -C arm7 -I /home/ryan/src/nds/ndslib/examples/2D/2D_Example
make[1]: Entering directory `/home/ryan/src/nds/ndslib/examples/2D/2D_Example/arm7'
mv: missing file argument
Try `mv --help' for more information.
make[2]: [all] Error 1 (ignored)
main.cpp
built ... arm7.bin
make[1]: Leaving directory `/home/ryan/src/nds/ndslib/examples/2D/2D_Example/arm7'
make -C arm9 -I /home/ryan/src/nds/ndslib/examples/2D/2D_Example
make[1]: Entering directory `/home/ryan/src/nds/ndslib/examples/2D/2D_Example/arm9'
processing resources/balldata.bin
processing resources/ballpalette.bin
main.cpp
/home/ryan/src/nds/ndslib/examples/2D/2D_Example/arm9/./main.cpp: In function `void updateOAM()':
/home/ryan/src/nds/ndslib/examples/2D/2D_Example/arm9/./main.cpp:57: warning: comparison between signed and unsigned integer expressions
built ... arm9.bin
make[1]: Leaving directory `/home/ryan/src/nds/ndslib/examples/2D/2D_Example/arm9'
cp arm9/arm9.bin boot/resources/arm9.bin
cp arm7/arm7.bin boot/resources/arm7.bin
make -C boot -I /home/ryan/src/nds/ndslib/examples/2D/2D_Example
make[1]: Entering directory `/home/ryan/src/nds/ndslib/examples/2D/2D_Example/boot'
files: resources/arm7.bin resources/arm9.bin
objects: arm7.bin.o arm9.bin.o
processing resources/arm7.bin
processing resources/arm9.bin
main.cpp
captureARM9.s
built ... boot.gba
ROM fixed!
make[1]: Leaving directory `/home/ryan/src/nds/ndslib/examples/2D/2D_Example/boot'
mv boot/boot.gba template.nds

#39874 - maniacdevnull - Wed Apr 13, 2005 3:01 am

Try running the arm9.bin file in dualis... I think the .nds file it builds is for hardware with PassMe, the emulator should run the arm9 binary just fine.

#39885 - ghod - Wed Apr 13, 2005 5:27 am

That seems to work. Thanks for the help :)

#39980 - dovoto - Thu Apr 14, 2005 5:19 am

The "nds" files produced by the examples were not real nds files. This has been fixed in current update. (as of today)

The new example template is much nicer (at least I think so).
_________________
www.drunkencoders.com

#39982 - tepples - Thu Apr 14, 2005 5:24 am

dovoto wrote:
The "nds" files produced by the examples were not real nds files. This has been fixed in current update. (as of today)

So have the toolchain distributors standardized on a filename suffix for ROMs intended to be used with a passthrough for Nintendo DS?

.bin : non-interleaved Sega Genesis ROM
.gba : GBA ROM
.mb : GBA multiboot
.pme : DS ROM for GBA cart + passthrough
.ds.gba : DS ROM for GBA cart + passthrough
.nds : ?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#39983 - dagamer34 - Thu Apr 14, 2005 5:37 am

tepples wrote:
dovoto wrote:
The "nds" files produced by the examples were not real nds files. This has been fixed in current update. (as of today)

So have the toolchain distributors standardized on a filename suffix for ROMs intended to be used with a passthrough for Nintendo DS?

.bin : non-interleaved Sega Genesis ROM
.gba : GBA ROM
.mb : GBA multiboot
.pme : DS ROM for GBA cart + passthrough
.ds.gba : DS ROM for GBA cart + passthrough
.nds : ?


I think it should be fore raw Nintendo DS ROM such as future commercial game rips and such. A ROM designed to independently run from the DS slot.
_________________
Little kids and Playstation 2's don't mix. :(

#39986 - dovoto - Thu Apr 14, 2005 6:06 am

right now i have:

.nds
as the nds rom format with real rom header, filesystem loader icon ect..

.nds.gba
as the nds rom with a small loader attached to the front which loads the nds from the cart and works on a passme.

Dualis will accept arm9 binaries or nds files.
_________________
www.drunkencoders.com