When trying to view/unpack/etc. an NDS file with ndstool on Linux, it doesn't seem to be able to access the full file, complaining about an encryption error:
$ ndstool -i FF4.nds
Nintendo DS rom tool 1.49 - Sep 13 2010
by Rafael Vuijk, Dave Murphy, Alexei Karpenko
Header information:
0x00 Game title FF4
0x0C Game code YF4E (NTR-YF4E-USA)
<snip>
0x68 Icon/title offset 0x161200
Encryption failed!</snip>
However, using the Windows version of ndstool (through wine) on the same file successfully parses the entire header:
$ wine ndstool.exe -i FF4.nds
Nintendo DS rom tool 1.49 - Oct 12 2010
by Rafael Vuijk, Dave Murphy, Alexei Karpenko
Header information:
0x00 Game title FF4
0x0C Game code YF4E (NTR-YF4E-USA)
<snip>
0x68 Icon/title offset 0x161200
0x6C Secure area CRC 0x691D (OK, decrypted)
0x6E ROM control info 3 0x0D7E
0x70 ARM9 ? 0x2000A74
<snip></snip></snip>
Both versions of ndstool are from r32. Any idea why the Linux version fails to decrypt the header?
This is the x86_64 version, in case that matters.
This has been fixed in SVN, will be released with the next devkitARM iteration.