TinyOS

I found following Links useful for Installing TinyOS

All Platforms:

Installing TinyOS 2.0.2Ubuntu:

5 Second Fuse – TinyOS Installation

Install TinyOS-2.x On Ubuntu << Udin Harun

However Following can also be followed

1. Add the following line to /etc/apt/source.list:

deb http://tinyos.stanford.edu/tinyos/dists/ubuntu <distribution> main

deb http://hinrg.cs.jhu.edu/tinyos oneiric main

2. Update the repository cache from a terminal window:

$sudo apt-get update

3. Install TinyOS packages:

AVR toolchain(iris, micaz, mica2)

sudo apt-get install tinyos-base tinyos-tools avr-binutils-tinyos avr-tinyos-base avr-tinyos avr-optional-tinyos avr-gcc-tinyos avr-libc-tinyos avrdude-tinyos nesc

M32C toolchain

sudo apt-get install tinyos-base tinyos-tools m32c-binutils-tinyos m32c-tinyos m32c-optional-tinyos m32c-gcc+newlib-tinyos nesc

MSP430 toolchain(telosb)

sudo apt-get install tinyos-base tinyos-tools msp430-binutils-tinyos msp430-gcc-tinyos msp430-libc-tinyos msp430mcu-tinyos nesc

I also wished to have the latest TinyOS version from CVS. To install from CVS, open a terminal window to the installation directory of your choice and run the following:

$cvs -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos login

$cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co tinyos-2.x

$cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co tinyos-2.x-contrib

tinyos-2.x-contrib is a library of user-contributed code that can help in designing your own applications. If you installed as superuser, you may want to change the permissions of your tinyos-2.x directory if you wish to compile anything in the apps directory or modify any TinyOS code:

$chmod 777 tinyos-2.x

4. Add the following environment variables to ~/.bashrc:

export TOSROOT=/path_to_tinyos_directory/tinyos-2.x

export TOSDIR=$TOSROOT/tos

export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.

export MAKERULES=$TOSROOT/support/make/Makerules

export PATH=/opt/msp430/bin:$PATH

Depending on the directory and version you have installed, you may need to change TOSROOT to reflect the correct directory.

$echo $TOSROOT

5. Install TinyOS Java Toolset:

First, from the terminal, run:

$sudo tos-install-jni

You can then compile the TinyOS Java libraries by running the following in the terminal:

$cd $TOSROOT/support/sdk/java

$make

6. Install Graphviz

$sudo apt-get install graphviz

7. Check your TinyOS Installation:

From a terminal, run:

$tos-check-env

Try the Blink code

$cd $TOSROOT/apps/Blink

compile as

$make iris

transfer binary to iris mote

$make iris install.0 mib520,/dev/ttyUSB0