Notes and tips on installing and using TinyOS 2.1.2

Cristian Duran-Faundez

Versión del Documento: 1.0.0

1  Previous notes

This document summarizes some notes and tips on the installation of TinyOS. The versions of the involved software are:

2  Basic installation

TinyOS’s original website is at www.tinyos.net. As reported in latest news (January, 2013), TinyOS has been migrated to GitHub (Link https://github.com/tinyos/tinyos-main).

The installation instructions are at http://tinyos.stanford.edu/tinyos-wiki/index.php/Installing_TinyOS.

At the date of the writing of this document it is reported that the latest version of TinyOS is 2.1.2.

We followed the “Automatic installation - for Debian based systems”link (http://tinyos.stanford.edu/tinyos-wiki/index.php/Automatic_installation). From such link we executed the following instructions:

1 $ wget http://github.com/tinyos/tinyos-release/archive/tinyos-2_1_2.tar.gz

for downloading TinyOS’s sources from GitHub. This could take some minutes depending on the Internet connection1.

1 $ tar xf tinyos-2_1_2.tar.gz

for decompressing the file.

We created the tinyos.env file with the code:

1 # Here we setup the environment 2 # variables needed by the tinyos 3 # make system 4 5 export TOSROOT="/home/username/tinyos-release-tinyos-2_1_2" 6 export TOSDIR="$TOSROOT/tos" 7 export CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java 8 export MAKERULES="$TOSROOT/support/make/Makerules" 9 export PYTHONPATH=$PYTHONPATH:$TOSROOT/support/sdk/python 10 11 echo "setting up TinyOS on source path $TOSROOT"

and we copied it to directories /etc/profile.d and tinyos-release-tinyos-2_1_2/ (we did not change the name of TinyOS’s directory). Then, we added the line source /home/username/tinyos-release-tinyos-2_1_2/tinyos.env to the .bashrc file.

Finally, we added the current user to the dialout group.



//This is what I have written until now... I will update soon the document with the following.. (NesC installation, Tools, Compilation of sample applications, etc.)

1
At the date we downloaded this file it has 200MB.

This document was translated from LATEX by HEVEA.