Tiny OS 2.1.1 installation on Ubuntu 12.04


Hello everyone!

I am planning to use Tiny OS 2.1.1 on my Ubuntu laptop.

I followed Feng Li‘s blog to install TinyOS-2.1.1. It made it easier!

However here is the code:


sudo gedit /etc/apt/source.list

Now add this at the end of the file : deb http://hinrg.cs.jhu.edu/tinyos hardy main


 sudo apt-get update

sudo apt-get install aptitude

sudo aptitude install tinyos-2.1.1

Now make changes in the ~/.bashrc file.


sudo gedit ~/.bashrc

Add the following lines in the end.


export TOSDIR=$TOSROOT/tos

export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.$CLASSPATH

export MAKERULES=$TOSROOT/support/make/Makerules

export PATH=/opt/msp430/bin:$PATH
source /opt/tinyos-2.1.1/tinyos.sh

This will always setup TinyOS. Now change the permissions of the $TOSROOT. Best but not the safest thing to do is:


sudo chmod 777 $TOSROOT

Now add the java tools by :


tos-jni-install

cd ./support/sdk/java

make

make install

make javadoc

make javadoc generates docs for the same.

P.S. : The earlier repo had some errors. This repo works fine even for Precise Pangolin. 🙂

P.P.S. : It works only well for TelosB. Micaz and TOSSIM are giving some errors, I hope to find a possible solution for them soon.

Advertisements

10 comments

  1. ryzahlic · · Reply

    OK I’ve tried all of your instruction, now what do I have to do to know that it’s working ?
    thanx

    1. Try uploading a sample code to your sensor mote! Hope that should work.

      1. Ryzahlic · ·

        dont have a mote, tryin to do just a simple simulation that will be shown in a graphviz, I’m totally amateur in this Tinyos, could you help me with the command in Terminal, I’m using Ubuntu 12.04

      2. Hey! You could give TOSSIM a try. People on the IRC channel will be the best ones to guide you.

  2. Hi,
    I want to install TinyOS in Windows 8, but am not able to install the source tree. Please help

    1. Hi,

      I haven’t used TinyOS on Win8, so have no idea about the same.

  3. akshayababu · · Reply

    Feng Li’s blog is unavailable now. Can you suggest an alternate and reliable way to install TinyOS in Ubuntu?

    Thanks

    1. Hi,
      It has been a while since I did this. Ubuntu has undergone significant changes and so has TinyOS imo. I suggest you take a fresh look at new blogs which discuss these.

      1. akshayababu · ·

        Ok. Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: