Skip to content

tinyos install

Raido Pahtma edited this page Mar 29, 2016 · 3 revisions

TinyOS installation

This page contains information for conflicting TinyOS installations, both cannot be installed at the same time.

TinyOS installation for tinyos-main development tree

For debian/ubuntu. Tested on Ubuntu 14.04 and 15.04. Tested for compiling Atmel AVR platforms. No experience with MSP or ARM.

TinyOS source code should be obtained from the tinyos-main repository.

Add tinyprod signing key:

wget -O - http://tinyprod.net/repos/debian/tinyprod.key | sudo apt-key add -

Add tinyprod repo to apt:

sudo add-apt-repository "deb http://tinyprod.net/repos/debian wheezy main"
sudo apt-get update

Install nesC and tinyos-tools:

sudo apt-get install nesc tinyos-tools-devel

Install gcc for AVR:

sudo add-apt-repository "deb http://tinyos.stanford.edu/tinyos/dists/ubuntu/ natty main"
sudo apt-get update

# Install GCC for avr, but tell apt to keep current avrdude(or install mainline avrdude instead of avrdude-tinyos)
sudo apt-get install avr-libc-tinyos-beta avrdude

The TinyProd repository also has avr-gcc-tinyos, but it seems to be a rather old version, so this guide installs the beta version from tinyos.standford.edu. GCC releases from Atmel might also be worth a shot, because the standford version misses some definitions in headers for some platforms(like the 256RFR2).

Install avrdude:

sudo apt-get install avrdude

Version provided by Ubuntu should be better than averdude-tinyos.

TinyOS installation for pre-makev3 installations:

The following will install TinyOS from https://github.com/tinyos/tinyos-main/issues/293. A newer avrdude is recommended, so don't install avrdude-tinyos and compile it yourself from https://github.com/marjakm/avrdude or use the one that comes with your os if it works for all your MCUs and programmers.

sudo add-apt-repository "deb http://tinyos.stanford.edu/tinyos/dists/ubuntu/ natty main"
sudo apt-get update

# Install tinyos, but tell apt to keep current avrdude(or install mainline avrdude instead of avrdude-tinyos)
sudo apt-get install avr-libc-tinyos-beta avrdude

# Optionally, if you did install avrdude-tinyos, then get rid of it with:
# sudo apt-get remove --purge avrdude-tinyos
# sudo apt-get install avrdude # if asked about conf hit 'Y'

sudo apt-get install tinyos-tools nesc

Clone this wiki locally