Deploying TinyOS on Ubuntu 10.10

by Agus Kurniawan 29. October 2010 08:35

tos-jwall

TinyOS is an open source, BSD-licensed operating system designed for low-power wireless devices, such as those used in sensor networks, ubiquitious computing, personal area networks, smart buildings, and smart meters.

Now I’m going to share how to deploy TinyOS 2.1.1 @ Ubuntu 10.10 using repository.

Ubuntu Packages

Before installing, you should add TinyOS repository on repository source file. Run this script

$ sudo gedit /etc/apt/sources.list

Then you’re going to get a dialog as below

p1

Put this two lines of script

#tinyOS
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu edgy main
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main

Save and close gedit application

TinyOS Installation

Now we’re going to install TinyOS on Ubuntu. Firstly, we update repository

$ sudo apt-get update

Run the following to install TinyOS 2.1.1

$ sudo apt-get install tinyos-2.1.1

Another option, you can check the latest of TinyOS using this script

$ sudo apt-get install tinyos

Then you’ll get the list of TinyOS version as below

p2

After installation, we should update profile

$ gedit ~/.bashrc

Write this script in ~/.bashrc on the bottom of line script file

export TOSROOT=/opt/tinyos-2.1.1
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
#Sourcing the tinyos environment variable setup script
source /opt/tinyos-2.1.1/tinyos.sh

p3

Installation Verification

After installation, we check that installation was success or not. Run this script on terminal console

$ tos-check-env

What’s Next?

Now, you can write a program for TinyOS using nesC. Next section, I’ll write how to configure development environment and to get started nesC programming.

Please read my article how to deploy Telos-based mote [V]

Tags:

Linux | TinyOS

Comments (1) -

I Gusti Ngurah Agung R
I Gusti Ngurah Agung R Indonesia
1/17/2011 3:25:46 PM #

Halo pak Agus yg terhormat, saya mahasiswa bapak. Artikel ini sungguh membantu saya dalam mengkonfigurasikan dan menginstall tinyOS di Ubuntu 10.10
Kebetulan saya bingung untuk memulai coding nesC pada tinyOS, jika bapak ada waktu boleh di-upload cara menulis nesC pada tinyOS? Kalau bapak ada waktu saja hehe
Terima kasih banyak atas artikel2 yg bermanfaat ini pak Smile

Regards

Pingbacks and trackbacks (1)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading