ncproxy is the USB proxy server for diverting USB traffic to different applications on your PC - ncshell and ncprint are two such applications. ncshell is the host application for managing the NC and its file system. It accepts commands from PC and communicates with (sends requests to /receives responses from) NC via USB. For the list of supported commands in ncshell, type "help" once you start ncshell.
ncprint serves printfs for GBA or NC applications through USB. In release 1.1 of the NetCard SDK, ncproxy can handle printfs directly when invoked with the -p option, so ncprint is optional. It may still be desirable to run ncprint is a separate window if the interleaving of printf messages with other messages generated by ncproxy makes the output hard to read.The sample viewer demonstrates how to use ES and ISFS APIs such as title listing, eTicket listing, title launching, as well as meta file accessing calls. Note all the parameters passed to ES and ISFS APIs need to be declared in the GBA .data section. Please refer to ES and ISFS API doc for more details.
Each title can be published with a meta file containing the
description for the title (for example, the title string and the
thumbnail image). Viewer should define what goes into a meta file. Meta
file is stored as /meta/titleId/metaCid.met on Flash. Viewer can use
ISFS APIs to read the meta file. To publish a title using a meta file,
use the "-m" option for "publish.py". By default, "publish.py" uses the
-n option as the title string in the meta file. The sample viewer
demonstrates how to use the ISFS APIs to read the meta file associated
with a title, and renders the title string on screen.
The current SDK supports the ability for an application on the GBA to use printf for debugging. To use this facility, start ncproxy -p to communicate with the NetCard. Then launch the GBA game using the viewer. The printf messages should appear in the ncproxy window.
If the GBA application calls printf, include an additional library on the link command (ld) for the game ELF file: libvio_usb.a (-lvio_usb).
publish.py - publishing tool for NetCard
$ROOT/usr/bin/x86/publish.py -n
<name> [-l <elf1>,<elf2>,...] [-m <metaFile>]
[-s stateMode] [-r] [-v] [-c] [-t] [-p]
input: -n <titleName>: name of the title to be published
-l <elf1,elf2,...>: list of
ELF files for the title
do not use -l if
you only want to generate ticket
-m <metaFile>: meta file for
the title (default to titleName)
-s <stateMode>
1: sram 256K
2: flash 512K
3: flash 1024K
4: eerom 4K
5: eerom 64K
-r: title requires RTC
-v: title is the viewer
-c: issue common ticket
-t: issue ticket with random
ticketId than default
-p: publish title only, do not
ticket
output: <titleName>.wad file for import using ncshell
ticket file
<ticketId>.tik
TMD file <tmdCid>.tmd
meta file <metaCid>.met
encrypted content files
<cids>.app
arm-elf-merge - tool for merging various pieces of ELF file into one launchable ELF file for NetCard
$ROOT/usr/bin/x86/arm-elf-merge
-n, --nc filename - NC executable file.
-g, --gba filename - GBA executable file.
-G, --GBA filename - GBA ROM file.
-l, --viewer filename - Viewer executable file.
-o, --outfile filename - output file.
-h, --help - print this message.
ncshell - tool for managing NetCard from windows command line via USB connection to NetCard
$ROOT/usr/bin/x86/ncshell [-b] [-i
ip_address] [-p port_number] [-s script(batch mode)]
-b enable boot operation
-i ip_address specify ncproxy ip address
-p port_number specify ncproxy port number
-s script run given script file
NC shell command:
h - help
cd [new dir] - change current directory
diag [aud|flash|rtc|gba] - run given diagnostics
format - format file system
import pc_wad_file - import a published app from pc
to nc
ls - list file or directory
pwd - get current directory
mkdir dir - create directory
mv old new - rename file (cp + rm) or dir
cp old new - cp file
ping - handshake
put pc_file nc_file - upload pc file to nc
get nc_file pc_file - download nc_file to pc
rm [file/dir] - remove file or directory
rb which_boot file - download given boot and write
to file
s filename - run given cmd script
ver - display build time
q - quit