Installation guide
30 DC 900-1325I
Freeway Server-Resident Application (SRA) Programmer Guide
2.3 Creating a New SRA Development Environment
In this section, we will go through the steps of creating a new SRA build environment
using a loopback program as a starting point. Most SRAs developed on the Freeway
server interface with protocol software on the ICP boards. Therefore, the loopback pro-
gram for the protocol you want to use is an ideal starting place for developing your own
SRA, since most of the protocol-specific logic is already set up for you.
In the following example, we will create a new SRA to interface to the Asynchronous
Wire Services (AWS) protocol. Therefore, we will start with the AWS protocol loopback
program (awsalp.c). In this example we assume that the loopback program is already
installed on the Freeway disk drive. If not, you can install the loopback program from
the protocol distribution CDROM.
The UNIX commands listed below (in bold) are commands made from the FreeBSD
shell. To get to the shell, login to the Freeway server as “root” and select menu item 6
“Run FreeBSD shell” from the main menu. From the shell you can get back to the main
menu by typing “exit”.
2.3.1 Create the SRA Development Directory
To create the SRA development directory, follow these steps:
Step 1: Change to the base development directory by entering the following com-
mand:
cd /usr/local/freeway/client/test
Step 2: Mount the /usr partition as read-write by entering the following command:
mount -u -o rw /usr