Skip to content

SNEE: Installing_TinyOS_1_x_on_Mac_OS_X

Alan Stokes edited this page Mar 13, 2015 · 1 revision

#summary Instructions for installing TinyOS 1.x on Mac OS X.

=Installing TinyOS 1.x on Mac OS X.=

== Introduction ==

This page provides instructions for installing TinyOS on Mac OS X.

== Details ==

Adapting instructions from

There is no need for the MSP430 or BSN

===Environment Setup===

Edit .bashrc with the following: {{{ #== Added while installing TinyOS:======================= export WORKSPACEDIR=$HOME/Documents/Manchester/Workspace export TOSROOT=$WORKSPACEDIR/tinyos-1.x export TOSDIR=$TOSROOT/tos export CLASSPATH="$TOSROOT/tools/java/javapath" export MAKERULES=$TOSROOT/tools/make/Makerules #============================================= }}}

===Get TinyOS Code===

{{{

cd $WORKSPACEDIR cvs -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos login (just press enter when prompted for a password) cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co -P tinyos-1.x }}}

Replace $TOSROOT/tools/java/net/tinyos/packet/SerialByteSource.java with http://www.eecs.harvard.edu/~mdw/proj/tinyos-macos/SerialByteSource.java

===Install avr-gcc===

Download and install from http://www.eecs.berkeley.edu/~mseeman/resources/macmicro.html

===Install nesC===

Download platform install package or {{{

cd $WORKSPACEDIR cvs -d:pserver:anonymous@nescc.cvs.sourceforge.net:/cvsroot/nescc login (press Enter when asked for a password) cvs -z3 -d:pserver:anonymous@nescc.cvs.sourceforge.net:/cvsroot/nescc co nesc }}}

===Install and configure===

{{{

cd nesc ./Bootstrap ./configure && make && sudo make install cd $TOSROOT/tools/src/ncc ./Bootstrap ./configure && make && sudo make install }}}

===Install TinyOS Toolset===

{{{

cd $TOSROOT/tools make sudo make install }}}

===Checking TinyOS Setup===

{{{

toscheck }}}

Contains a lot of warnings but nothing seems to fail

Clone this wiki locally