Advanced Operating Systems
<! img border=0 alt="[UNSW]" src="images/unsw.gif">
Developing your AOS project on Linux
Many CSE students have Linux machines which they would like to be able to use to work away from the CSE labs. The following is a guide as to how to set up the necessary drivers/software. These instructions will be debian specific in some spots (e.g. setting up the tftp server) but they should at least give you an idea of how to set up other distributions.This page might be of use, however out of date.
The components you will need to install are:
Crosstool is a system which will automagically build cross-compilers. Prior to crosstool, building cross-compilers was a fairly horrible process.
Follow these steps:
You need device drivers for the RTL8150 based USB to Ethernet dongle, and
the FT232RL USB-Serial converter. Fortunately, these drivers are in the
linux kernel and are compiled by most modern distributions, so you should
be able to plug them in and see messages from the drivers via
The modules required are:
If you don't have hotplug set up correctly, you may need to use use modprobe to load the modules. e.g.
At this stage, we assume a working serial converter and ethernet port. The serial converter is assumed to use device
Setting up the network
The AOS board expects to find a host at
If your USB to Ethernet dongle is using
Setting up the TFTP server
The bootloader will download your software image from a tftp server running on your host. So you need to set one up:
Edit your /etc/inetd.conf. Change the following line to reflect the location of the directory which you want to use as your tftp root. (In this case it is /tftpboot).
You may need to restart inetd at this point using
You will also need to adjust your handy Makefile if you want it to automatically copy the bootimg.bin file to the tftpboot directory. The variable to look for is:
Setting up the time server
Uncomment the following line in /etc/inetd.conf :
Set up an NFS share
Install the NFS server:
Install the NSLU2 utility program
It is necessary to be able to control the NSLU2 using a utility program. It controls the reset line, allowing the NSLU2 to boot once a serial console has been opened.
Download the source code. Uncompress it,
Install other required software
Install the following packages:
Last modified: 27 Jul 2009.