Software Development Kit for RVL IOP (version
1.2.0)
$Revision: 1.2 $
$Date: 2006/04/21 05:05:36 $
Purpose
The RVL IOP OS DevKit includes all the necessary tools, headers and
libraries necessary to develop software to run as a part of the
Revolution IOP OS. The devkit itself uses the cygwin unixcompatibility
tools, and relies for loading/running and debugging on the Signum
JTAGJet.
Quick Links
ARM cross-compilers for
cygwin
Signum Chameleon debugger (pre-release edition,
version 2.99.08)
SDK tarball
SDK release notes
API documentation
Bugzilla
Installation Instructions
The SDK includes the following items:
- Cross compiler suite for building ARM binaries for the RVL IOP.
- Header files and libraries required to build drivers and
applications to run on the IOP
- Online documentation
- Sample source code for which demonstrates how to use the various
IOP OS primitives and develop a full Resource Manager.
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 Cross Compilation Tools
The ARM cross compiler for cygwin is here.
Download the tarball from the above link. Start a Cygwin shell and
then:
mkdir -p /opt/crosstool
bzcat arm-tools-cygwin-20060318.tar.bz2 | (cd /opt/crosstool; tar xf -)
Installing the SDK Software
The SDK is here.
In order to install the SDK containing the headers, libraries and
source, please use the following procedure:
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/rvl
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/rvl
export RVL_MEM=128 (or 64 if you have a release board; if in doubt, 128)
Installing the Chameleon Debugger
To install the Signum Chameleon debugger follow the directions
supplied. You should install the tools in the default
directory C:\Signum.
Note: The Chameleon debugger (pre-release edition version 2.99.08) contains
a fix to improve the semihosting performance (like printf) when the ARM926 CPU
is running with D-cache and MMU enabled. However, this version has the
following known issues:
- Semihosting configuration is turned off when starting Chameleon. Therefore,
you'll need to enable this semihosting feature each time you launch Chameleon.
Once the tools are installed you should install some defintion files
and macros from the SDK. These contain definitions for the CPU
configuration, the Register definitions and Macros to point to the
iosshell, which are essential to loading and debugging programs.
The install these files:
cd $ROOT/usr/src/signum
make install
Hardware Setup
Power off the NDEV system and open the top cover.
Plug the "JTAGjet 20/14-pin Connector for ARM" (part #
ADA-JDS-ARM20/14) onto the NDEV main board into the socket PT25 at the upper
left corner of the board nearest the video output.
Plug the JTAGjet 20-pin Connector for ARM (part # ADA-JDS-ARM20)
into the above 20/14 connector. Plug the ribbon cable into the 20-pin
connector, and plug that into the JTAGJet debugger.
Plug a USB cable into the PC you are using, and plug the other end
of the USB cable into the JTAGjet debugger.
At this point, the USB New Hardware wizard should pop up, and ask
you for a location for driver software. Direct the wizard to install
from the Signum CD. Click 'Finish' to exit the New Hardware wizard.
Chameleon Debugger Setup
Launch the Chameleon Debugger from the
Start menu. Start->All Programs->Signum Systems
Chameleon->Chameleon It asks you to Configure the system, and it
takes several steps.>
-
In the "Target Selection" panel,
click on "Add Target...", then on "ARM", and "Enter Key...", which pops
up another box, where you should type in your license key from the
Signum package. Then click 'OK.'>>
-
Next, you get a popup which
gives you a radiobutton choice of 'Automatic' vs 'Specify Connection
Port.' Choose 'Automatic' and 'Next.'>
-
Then, you get a popup which gives
you a choice of ARM cores. Click next to 'ARM 9 cores(big-endian)', and
double-click on 'ARM926EJ-S core(big endian).'
-
After that, another popup titled
'ARM:configuration' presents with two panels. On the 'JTAG
configuration' panel, you see a radiobutton choice of 'Only one
processor connected' being the default. The default is OK. Click over
to the other panel, titled 'ARM Emulation Parameters.' On that panel,
in the region titled 'Semihosting', change the 'Top of Memory' value to
0x0dc18000
-
On the region titled 'JTAG',
change the 'Clock' from 'Adaptive' to '10Mhz.' Click 'OK'.
-
Now, up pops a dialog box titled
'Startup configuration options,' where you must select the radiobutton
choice 'Use the following macro file when starting.'
-
Navigate into C:\Signum\rvl_iop,
select the 'rvl_iop.mac' file, click 'OK.'
-
Power the board on.
The SDK also prepares a iosshell.mac in the C:\Signum\rvl_iop directory,
which can be used to quickly reset the board and bring up the shell. To do so,
please do the following:
- Open C:\Signum\rvl_iop\iosshell.mac through any text editor.
- Go to the line which states LOAD ios.elf
- Replace line with LOAD path-to-$ROOT\usr\bin\rvl\ios.elf
- Open Chameleon Debugger, press MACROS button on toolbar
- Press browse, select C:\Signum\rvl_iop\iosshell.mac in the dialog box
- Press OK
IOSSHELL is now a button on the toolbar (you may have to arrange your toolbar to have easy access).
It will stop the ARM, load IOS, and present the IOS prompt in the Virtual IO window.
Running Some Tests
The iosshell runs a shell, and also the IOP OS on the ARM. Using the
iosshell, sets of .elf executables can be loaded and run.
The SDK ships with a set of tests for basic OS functionality. The elf
files for these tests are in $ROOT/usr/bin/rvl/*.elf. The source code
for these tests are in $ROOT/usr/src/os/tests. From the src/os/tests
directory the tests can be built.
To run a test (eg mq.elf). Click on the iosshell button in Chameleon.
Type
>hload \path-to-$ROOT\usr\bin\rvl\mq.elf
>ls
>run bin\rvl\mq.elf
>exit
In this example "hload" loads the elf executable to memory. "ls" will list
the program name (including path) that has been loaded. "run" will
start up a thread with an entry point that is the main of the elf
executable. "exit" will exit the shell (but the IOP OS is still
running).
See the SDK documentation for a description of
the tests included with the SDK.
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 bug database https://www.broadon.com:49049/buzilla
The product category is "RVL" and the relevant components are:
- IOP OS (all bugs related to SDK and IOP OS)
Please file bugs in English and provide a detailed explanation of
the conditions which caused the bug and how it can be reproduced.