Skip to content
volgy edited this page Mar 22, 2013 · 1 revision
  1. Download the following pre-packaged dependencies/tools:

    http://www.isis.vanderbilt.edu/sites/default/files/u55/TinyOS_cygwin.zip

  2. 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)

  3. Install Cygwin by running

     cygwin_setup.bat
    
  4. Install Graphwiz (default settings)

     graphviz-2.28.0.msi
    
  5. 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
    
  6. Create folder for tinyos source tree (this can be in your home too, modify the paths accordingly):

     mkdir /opt
    
  7. Add you GitHub private ssh key:

     mkdir ~/.ssh
     <copy your private SSH key to ~/.ssh/id_rsa>
     chmod -R go-rwx ~/.ssh
    
  8. Get the tinyos repository:

     git clone [email protected]:pillforge/tinyos.git /opt/tinyos/
    
  9. 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
    
  10. 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
    
Clone this wiki locally