-
Notifications
You must be signed in to change notification settings - Fork 0
tinyos install
This page contains information for conflicting TinyOS installations, both cannot be installed at the same time.
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.
wget -O - http://tinyprod.net/repos/debian/tinyprod.key | sudo apt-key add -
sudo add-apt-repository "deb http://tinyprod.net/repos/debian wheezy main"
sudo apt-get update
sudo apt-get install nesc tinyos-tools-devel
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).
sudo apt-get install avrdude
Version provided by Ubuntu should be better than averdude-tinyos.
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