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 > sources of ndstool

#152788 - Phantaseur - Thu Mar 20, 2008 8:58 pm

I'm using OS FreeBSD 6.3-64bit and devkitARM for Linux 32, there is almost everething works required for compilation...
arm-eabi-g++ compiles and links, arm-eabi-objcopy makes bin from elf file, but ndstool doesn't works... It writes:
Code:

ELF binary type "0" not known.
./ndstool: Exec format error. Incorrect architecture.

I decided find this file in sources and recompile it for FreeBSD, but I didn't find sources of devkitARM on sourceforge (http://sourceforge.net/project/showfiles.php?group_id=114505), there is sources of gcc, g++, binutils etc, I downloaded it, but found nothing similar to ndstool.
So where can I find sources of ndstool or how can I run it on FreeBSD?

#152790 - tepples - Thu Mar 20, 2008 10:13 pm

Have you tried checking it out of CVS?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#152823 - Phantaseur - Fri Mar 21, 2008 7:18 am

It is empty for devkitarm...

Ah, found something in tools, thanks, I'll try it.

#152899 - Phantaseur - Sat Mar 22, 2008 11:14 am

I recompiled ndstool for FreeBSD, it takes 120 kilo instead of original 611 kilo, and it doesn't work correctly:
Code:
/home/me/ndsdev/devkitARM/bin/ndstool -c mines.nds -9 mines.bin -7 mines7.bin
Nintendo DS rom tool 1.37 - Mar 22 2008
by Rafael Vuijk, Dave Murphy, Alexei Karpenko
gmake: *** [mines.nds] Bus error: 10 (Memory dumped)
gmake: *** Deleting file `mines.nds'


What it means and why it happened?

I can try to correct sources but I need to know what's the problem.