Hi!
Here is the way I usually do an install:
* remove the previously install packages tinyos packages:
sudo dpkg -P `dpkg -l nesc '*tinyos*' | grep ^ii | awk '{ print $2 }'
| xargs`
* add to /etc/apt/sources:
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu lucid main
or
deb http://tinyprod.net/debian-dev squeeze main
* sudo apt-get update
* sudo apt-get install nesc msp430-tinyos avr-tinyos
* mkdir $HOME/local
* cd $HOME/local
* svn checkout http://tinyos-main.googlecode.com/svn/trunk/ tinyos-2.x
* cd tinyos-2.x/tools
* ./Bootstrap
* ./configure --prefix=$HOME/local/tinyos-2.x/local
* make
* make install
* setup the environment:
export PATH=$HOME/local/tinyos-2.x/local/bin:$PATH
export TOSROOT=$HOME/local/tinyos-2.x
export TOSDIR=$TOSROOT/tos
export MAKERULES=$TOSROOT/support/make/Makerules
export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.
export PYTHONPATH=.:$TOSROOT/support/sdk/python:$PYTHONPATH
export PATH=$TOSROOT/support/sdk/c:$PATH
After this you should be able to properly compile the applications from
apps/:
* cd $TOSROOT/apps/Blink
* make micaz
* make telosb
If you follow this instructions and don't end up in a good state please
let me know. :-)
-- Razvan ME
On Mon, 29 Aug 2011, Xin Dong wrote:
> Hi all,
>
> I tried to install tinyos through the two debian repositories. I'm using
> ubuntu 11.04 (natty). I find out that
>
> 1) in the Stanford repository, the Packages information is not complete,
> especially missing the information for avr-tinyos-base, thus apt-get is
> unable to install.
>
> 2) in the John Hopkins repository, the avr-gcc-tinyos package does not
> include avr-gcc, thus the system cannot build applications for mica2.
>
> Xin
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help