Software Development Kit for iQue NetCard (version 1.11)

$Revision: 1.45 $
$Date: 2006/07/25 01:00:14 $

Purpose

The iQue NetCard Software Development Kit provides all the tools and libraries necessary to develop applications that will run on the Nintendo GBA family of platforms using the iQue NetCard.

Development System Requirements

Installation Instructions

The SDK includes the following items:

Cygwin

The SDK uses the CYGWIN unix compatibility environment on windows. If you do not have cygwin on your PC you should go to the CYGWIN site (www.cygwin.com) and install it. Other than the default packages, you should also select the following:
It is also a good idea to choose one of the available text editors to use for software development on CYGWIN (for example: VIM or EMACS). The SDK has been tested against the latest CYGWIN release (as of 2/20/06).

Installing the SDK Software

In order to install the SDK, please use the following procedures:

Installing the Compilers

For NetCard SDK release 1.1 and later, the compilation toolchain is packaged separately from the rest of the SDK. The toolchain image can be downloaded from the following URL:

http://172.16.10.99/nc_sdk1.11/arm-tools-cygwin-20060318.tar.bz2

Save the toolchain file to disk and download the corresponding installation script into the same directory:

http://172.16.10.99/nc_sdk1.11/install_tools.sh

Run the installation script from a CYGWIN shell window to install the toolchain. The binaries will be installed in the directory /opt/crosstool/bin.

Installing the USB Driver

The SDK provides a set of tools which allow you to download applications onto the NetCard over USB. Before using these tools you must install the USB driver onto the PC. For the early SDK releases, we have not included an install script for this driver, so some manual setup is necessary. Note that USB Vendor ID of the NetCard has changed in release 1.2 and later to use the official iQue USB Vendor ID. This means that a new USB driver is required even on a PC that already has been used with SDK release 1.0 or 1.1. If your system is currently running SDK 1.2 or later, then the reinstallation of USB drivers is not necessary. If your system is running an earlier release of the SDK or has not yet had the SDK installed, please install the new USB driver by following these steps before proceeding:

Setting your PATH

Tools necessary to use the SDK are installed in two places, which should be added to your PATH:

If you are using Bash, type:
export PATH=$PATH:$ROOT/usr/bin/x86:$ROOT/usr/bin/win32
To make development easy, it is best to add the following lines to your shell init file (.bash_profile if you are using bash):
export ROOT=~/SDK_ROOT (or wherever you put the SDK)
export PATH=$PATH:$ROOT/usr/bin/x86:$ROOT/usr/bin/win32

Upgrading the SDK Image on a NetCard from v1.10 to v1.11

By default, NetCards come with test software installed and they need to be upgraded with the SDK image. If the card has been installed with SDK version 1.3 or later, then this procedure should be used to upgrade to SDK version 1.11. If your card has the original test software or SDK 1.0 or 1.1 or 1.2, then please update to 1.3 first before doing this upgrade procedure.

Fetch the starting cert.sys file from the NC SDK website:


http://172.16.10.99/nc_sdk1.11/cert.sys

To upgrade your NetCard image you should start a cygwin shell and start ncproxy by typing:

  ncproxy -p

NOTE: you must have $ROOT/usr/bin/win32 in your $PATH.

Start an ncshell process with the -b option:
  cd $ROOT/usr/bin/sc
  ncshell -b
  wb 1 boot1.aes
  wb 2 devmon.wad
  ls
  format
  quit

Do not interrupt this sequence of commands by powercycling the NetCard. Please note that after the "wb 2" command, you must wait for the "ls" command to finish to make sure that the write is complete. The prompt in ncshell comes back before the "wb 2" command is actually completed. Please do not proceed with the next step until the output of "ls" has appeared in the ncshell window or until you see the message "import boot2 successful" appear in the ncproxy window. For the 1.11 upgrade, it is advisable to reformat the file system twice: once on the old IOS and again after the upgrade. This is to prevent compatibility problems with the old version of the viewer when you reboot on the 1.11 OS for the first time.

Powercycle the GBA after the successful completion of the previous step.

The 1.11 upgrade requires that the flash file system (SFFS) be reformatted. Note this second format command is necessary since it happens after the reboot on the 1.11 OS. The layout of the redundant copy of devmon.wad is different after the upgrade to 1.11, so it is recommended to reinstall devmon.wad after the reboot. As with the previous upgrade of devmon.wad, don't proceed to powercycle until the "ls" command completes successfully.

  ncshell -b
  format
  wb 2 devmon.wad
  ls
  quit

  ... powercycle the GBA ...

After the format, the /sys/cert.sys file must be initialized with the version downloaded previously.

  cd to location of downloaded cert.sys
  ncshell
  put cert.sys /sys/cert.sys
  mkdir /media
  mkdir /media/music
  quit

Now the viewer can be imported:

  cd $ROOT/usr/bin/gba
  ncshell
  import viewer.wad
  quit

The installation should now be complete. Use ncshell to import any additional games and data files onto the NetCard. Note that if your NetCard has a personalized ID, you will need to publish games specifically for the device ID. The viewer is published with a non-personalized ticket, so one version of the wad file will run on any NetCard. In order to publish games for a personalized card, retrieve the device certificate by booting the Netcard and doing the following commands:

  ncshell
  get /tmp/devcert.sys devcert.sys
  quit

Then specify the device certificate file using the -D option to the publishing script:

  publish.py -n dolphin -S -l dolphin.mrg -D devcert.sys

Documentation

Basic documentation on how to use the SDK and tools, with pointers to the main API documents is here.

Filing Bugs

Bugs can be filed using the existing iQue bug database http://172.16.10.99/bugzilla

A new product category "NetCard" has been created with 2 new components:
Please file bugs in English and provide a detailed explanation of the conditions which caused the bug and how it can be reproduced.

Changes and Bug Fixes in SDK version 1.1

Here is a list of the differences between SDK 1.0 and SDK 1.1:

Changes and Bug Fixes in SDK version 1.2

Here is a list of the differences between SDK 1.1 and SDK 1.2:

Changes and Bug Fixes in SDK version 1.3

Here is a list of the differences between SDK 1.2 and SDK 1.3:

Changes and Bug Fixes in SDK version 1.4

Here is a list of the differences between SDK 1.3 and SDK 1.4:

Changes and Bug Fixes in SDK version 1.5

Here is a list of the differences between SDK 1.4 and SDK 1.5:

Changes and Bug Fixes in SDK version 1.6

Here is a list of the differences between SDK 1.5 and SDK 1.6:

Changes and Bug Fixes in SDK version 1.7

Here is a list of the differences between SDK 1.6 and SDK 1.7:

Changes and Bug Fixes in SDK version 1.8

Here is a list of the differences between SDK 1.7 and SDK 1.8:

Changes and Bug Fixes in SDK version 1.9

Here is a list of the differences between SDK 1.8 and SDK 1.9:

Changes and Bug Fixes in SDK version 1.10

Here is a list of the differences between SDK 1.9 and SDK 1.10:

Changes and Bug Fixes in SDK version 1.11

Here is a list of the differences between SDK 1.10 and SDK 1.11: