Advanced Operating Systems
COMP9242 2013/S2 |
UNSW
CRICOS Provider Number: 00098G |
Printer-Friendly
Version
|
Developing your AOS project on LinuxMany 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 if you wish to work locally. These instructions will be distribution specific (for Ubuntu) but they should at least give you an idea of how to set up other distributions. The components you will need to install are:
Updated based on Ubuntu 12.04, tested on 13.04. Cross compilersThe Ubuntu default version of gcc-arm seems to work fine.
NOTE: After checking out the AOS codebase, you will need to change the cross compiler prefix to If you have problems with this compiler, a precompiled 32bit cross compiler has been provided for you: Linux 32bit cross compilerOnce the file has downloaded, install it by using the following commands sudo mkdir -p /opt sudo tar -xf arm-2013.05-24-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 -C /opt export PATH=/opt/arm-2013.05/bin:$PATH In this case, your cross compiler prefix should be set to Installing driversThe Ubuntu USB serial and USB ethernet drivers seem to work by default. You may need to install some of the following packages:
Setting up the networkUnfortunately, newer Ubuntu distributions include the 'easy to use'
NetworkManager, which destroys everything. You could use the NetworkManager GUI to set
a static ip of Setting up the TFTP serverAfter installing the You may need to adjust ownership and/or permissions to allow
you access to the directory (e.g. Our source expects the tftp directory to be /var/tftpboot/$USER. Setting up the time serverConfigure Apparently, for some versions of ubuntu there was no obvious ways to coerce xinetd into serving TIME. On the other hand, it's a 5-line Java program, so writing a server for it is left as an exercise to the reader. Have a read of this. Set up an NFS shareMake sure NFS server is installed:
Then set up the exports by editing /etc/exports and adding the following lines (adjusted for the location of your tftp root directory and your username):
Substitute /var/tftpbootUSERNAME to whatever is set TFTP_DIRECTORY
to in your tftpd configuration.
Serial Line Access Add your account to group dmesg to work out which port the USB to serial converter has been attached to
(its usually /dev/ttyUSB0 ). Then set minicom to use that serial port, 115200 baud rate, 8N1, and no hardware flow
control, using sudo minicom -s /dev/ttyUSB0 .
Last modified: 28 Jul 2014. |