You have to install,the following packages from raspbian's repositories
first (if they exist).
|sudo apt-get install build-essential openjdk-6-jdk openjdk-6-jre
python2.7 python2.7-dev automake avarice avr-libc msp430-libc avrdude
binutils-avr binutils-msp430 gcc-avr gcc-msp430 gdb-avr gdb-msp430
subversion graphviz python-docutils git checkinstall
For every needed package than does not exist in raspbian's repositories,
you have to build and install it from source code!!!!
|After that, you have to download/clone tinyos source code repository
from github
git clone https://github.com/tinyos/tinyos-main.git
Before the complilation of any example, you also need to install from
source nesc compiler.
git clone https://github.com/tinyos/nesc.git
cd to nesc source code directory
./configure [--prefix=YOURPREFIXPATH]
make
make install ( or sudo checkinstall if YOURPREFIXPATH is in system
directory)
example:
|mkdir -p $HOME/local/compilers
|
|./configure --prefix=$HOME/local/compilers
|
|make
|
|make install|
|export PATH=$HOME/local/compilers/bin:$PATH|
Then you have to build tinyos tools from source code:
|cd tinyos-main/tools
./Bootstrap
./configure --prefix=$HOME/local/tosTools
make all
make install (or sudo checkinstall if prefix dir is in system directory)|
After that, you need to set some enviroment variables, so that you can
build any application
Create the file $HOME/local/tinyos-env.sh
|#!/bin/bash
echo "Setting TinyOs 2 enviroment variables!"
export PATH=$HOME/local/tosTools/bin:$PATH|
||export PATH=$HOME/local/compilers/bin:$PATH|
export TOSROOT=$HOME/local/src/tinyos-2x
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|
Then make it executable:
|chmod +x $HOME/local/tinyos-env.sh|
and make it to be loaded on every terminal start, for your user. Just
add the following lines to the $????/.bashrc file.
|# TinyOS enviroment variables
|
|source $HOME/local/tinyos-env.sh|
Raspberry Pi is an ARM based platform, so every precompiled package for
i386 or amd64 architecture fails to be installed.
Have a nice day!
Inglezakis Antonios
On 19/02/2013 11:52 ??, antonio rosa wrote:
Hi,
I tried it two months ago, First, I used the automatic installation
via TinyOS Debian Repository but the results were similar to yours
ando more . Also, I tried to make a manual installation of every .deb
packet listed in TinyOS but the this form failed as well. I have motes
connected to Raspberry via UART Pins without using USB wires and it
works well. The Raspberry runs a Java applications that process all
messages sends by the sensor nodes, In stead of using an Arduino,I
have used a WSN mote. It will be very useful for running Deluge in
Raspberry and other TinyOS tools.
Regards, Antonio Rosa.
2013/2/15 Dane Hamilton <greatda...@gmail.com
<mailto:greatda...@gmail.com>>
I apologize if I posted this twice.
We are trying to install TinyOS onto a raspberry pi running
Raspbian Wheezy for interfacing with TelosB motes. While trying
to use the automatic installation of the TinyOS Debian Repository,
we are experiencing connection errors.
We've updated /etc/apt/sources.list to include only "deb
http://tinyos.stanford.edu/tinyos/dists/ubuntulucid main".
Then after running, "sudo apt-get update" we get the following
results.
Hit http://archive.raspberrypi.org
<http://archive.raspberrypi.org/> wheezy InRelease
Hit http://archive.raspberrypi.org
<http://archive.raspberrypi.org/> wheezy/main armhf Packages
Ign http://tinyos.stanford.edu <http://tinyos.stanford.edu/> lucid
InRelease
Ign http://tinyos.stanford.edu <http://tinyos.stanford.edu/> lucid
Release.gpg
Hit http://tinyos.stanford.edu <http://tinyos.stanford.edu/> lucid
Release
Ign http://archive.raspberrypi.org
<http://archive.raspberrypi.org/> wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org
<http://archive.raspberrypi.org/> wheezy/main Translation-en
Err http://tinyos.stanford.edu
<http://tinyos.stanford.edu/> lucid/main armhf Packages
404 Not Found
Ign http://tinyos.stanford.edu
<http://tinyos.stanford.edu/> lucid/main Translation-en_GB
Ign http://tinyos.stanford.edu
<http://tinyos.stanford.edu/> lucid/main Translation-en
W: Failed to fetch
http://tinyos.stanford.edu/tinyos/dists/ubuntu/dists/lucid/main/binary-armhf/Packages
404
Not Found
E: Some index files failed to download. They have been ignored, or
old ones used instead.
We understand that Raspbian is not exactly the same as Ubuntu.
What do we need to do to get around this error?
Thanks in advance,
- Dane Hamilton
dhami...@gmail.com <mailto:dhami...@gmail.com>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
<mailto:Tinyos-help@millennium.berkeley.edu>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help