-
Notifications
You must be signed in to change notification settings - Fork 3
Install on windows
-
Download the following pre-packaged dependencies/tools:
http://www.isis.vanderbilt.edu/sites/default/files/u55/TinyOS_cygwin.zip
-
Download and install Java JDK (32-bit):
http://www.oracle.com/technetwork/java/javase/downloads/index.html
(or use the installer in the package: jdk-7u17-windows-i586.exe) -
Install Cygwin by running
cygwin_setup.bat
-
Install Graphwiz (default settings)
graphviz-2.28.0.msi
-
From the Cygwin shell install the RPMs in this directory
rpm -Uvh <path to this folder>/msp430/*.rpm rpm -Uvh <path to this folder>/*.rpm
-
Create folder for tinyos source tree (this can be in your home too, modify the paths accordingly):
mkdir /opt
-
Add you GitHub private ssh key:
mkdir ~/.ssh <copy your private SSH key to ~/.ssh/id_rsa> chmod -R go-rwx ~/.ssh
-
Get the tinyos repository:
git clone [email protected]:pillforge/tinyos.git /opt/tinyos/
-
Create a new file: /etc/profile.d/tinyos.sh with the following contents:
TOSROOT="/opt/tinyos" TOSDIR="${TOSROOT}/tos" CLASSPATH="{$TOSROOT}/support/sdk/java/tinyos.jar;." MAKERULES="${TOSROOT}/support/make/Makerules" export TOSROOT TOSDIR CLASSPATH MAKERULES LOCATE_JRE=/usr/bin/tos-locate-jre type java >/dev/null 2>/dev/null || PATH=`$LOCATE_JRE --java`:$PATH type javac >/dev/null 2>/dev/null || PATH=`$LOCATE_JRE --javac`:$PATH export PATH
-
Log out and log in (for the profile configuration to take effect) and verify if the toolchain is properly set up:
cd /opt/tinyos/apps/Blink make telosb