Developing Software with the RVL IOP SDK
$Revision: 1.2 $
$Date: 2006/04/21 05:05:36 $
Introduction
iosshell
The iosshell is the main tool used to load and run executables. It can
be used to load and run one or more interacting executables. By using
combinations of the hload and run commands.
The main commands are:
- help - prints out the list of commands
- hload - loads a *.elf file from the host computer
- ls - lists currently loaded files
- run - runs a currently loaded file
- source - executes commands from a source (text) file
- exit - exits from shell, allowing threads with lower priority than shell to run.
(SDK shell priority currently defaults to 10)
Building and running tests
The SDK includes source code for a set of tests and examples. These are
in $ROOT/usr/src/os/tests:
- alloc.c (example of using heaps and IOS_Alloc)
- dd.c (example of the resource manager API)
- iob_tests.c (example of the use of iobufs)
- mq.c (example of message queues, one thread creates, two threads use)
- msg.c (example of message queues, one thread sends, one receives)
- rm_iob.c (example of resource manager with iobufs)
- thrd.c (example of threads )
- tmr1.c (example of interval and one-time timers)
Notes:
- The rm_iob.c example shows how iobuf can be used in resource
managers / processes for their communication, such as between network
stack and network drivers. During the initialization, the program
creates one network interface RM (Resource Manager) and one fake
USB-Ethernet RM. Then, the main thread calls netSendPkt() which simulates
a network stack function to transmit a packet where it will exercise a few
iobuf functions. Finally, the main thread calls usbEthRecvPkt() which
simulates a network driver function receiving an incoming packet.
To build the tests, go to $ROOT/usr/src/os/tests and type Make. If the
tools are setup correctly this should build the set of elf files
that can be loaded and run.
API Reference
The main API's used for initial development of Resource Managers on the
IOP OS are the Kernel Services API. These are
documented in:
Kernel API
Known Issues