The do's, do not's & maybe's of Computers.
RSS icon Email icon Home icon
  • Installing TinyOS on Ubuntu 8.10

    Posted on March 13th, 2009 david 3 comments

    So installing TinyOS can be a bit of a pain sometimes. There are a number of options available but the easiest have to be the vmware image and the Debian repository install.
    Personally I prefer installing via the Debian Repository provided by Stanford University.

    This is my platform:
    Mac OS X 10
    VirtualBox 2.06
    Ubuntu Hardy 8.10
    TinyOS 2.1

    The motes that I am using are the Micaz

    I chose to install the TinyOS SDK on Ubunutu Hardy in a virtual machine on my Mac. ( I use VirtualBox for the virtual machine stuff)
    The guide that is on the tinyos.net website is correct for the most part but is missing some steps. Below are the steps I preformed to install the TinyOS Platform.
    The installation for TinyOS was preformed on a new install of Ubuntu using the default settings.

    Step 1
    In Synaptic Package Manager add a new repository

    Type: Binary
    URL: http://tinyos.stanford.edu/tinyos/dists/ubuntu
    Distribution: hardy
    Components: main

    Step 2

    Install build-essential sudo apt-get install build-essential

    Step 3

    In .bashrc in your home directory edit it and add the following

    #added line below for tinyos
    export TOSROOT=/opt/tinyos-2.1.0
    export TOSDIR=$TOSROOT/tos
    export CLASSPATH=.:$TOSROOT/support/sdk/java/tinyos.jar
    export MAKERULES=$TOSROOT/support/make/Makerules

    All other tools needed to develop for the TinyOS were installed into my /usr/bin when I installed the TinOS Platfrom in Step1.

    Step 4

    To test that your installation is working correctly connect the motes to your computers USB port and then run the following commmands
    (Because I am using a virtual machine, I had to map the USB port to the virtual machine using virtual box, if you don’t map the usb port. you get an error when you run the “make” command)

    Go to /opt/tinyos-2.1.0/apps/Blink

    make micaz install mib510,/dev/ttyUSB0

    Testing the Serial Port/USB Port

    java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:micaz

    java TestSerial -comm serial@/dev/ttyUSB1:micaz

     

    3 responses to “Installing TinyOS on Ubuntu 8.10”

    1. Great blog I’ve actually bookmarked it for learning ubuntu. Can you recommend any books about ubuntu for me? yep, I am a beginner of ubuntu. :] thanks in advance.

    2. Alex

      Thanks a lot!!! This guide is been very useful!

    3. David McGee

      Hi there,

      Thanks very much. This guide has been very helpful. I’m having a problem, however, running “java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:micaz” – The terminal is stuck at

      serial@/dev/ttyUSB0:57600: resynchronising

      Could you let me know if you know what could be causing this?

      Thanks,

      Regards,
      Dave.

    Leave a reply

Disclaimer: All information published on this website is for knowledge purposes only. This website and the author's of it's content cannot be held responsible for any loss/damage to a user's computer (either software or hardware), which may have occurred as a result of the information posted above. All information published on this website is the expressed opinion of it's authors. This information is provided as is with no acknowledgement of responsibility, liability or guilt for any damage resulting from it's use.
©2009 Strotos Communications