-
Installing TinyOS on Ubuntu 8.10
Posted on March 13th, 2009 3 commentsSo 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.1The 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 repositoryType: Binary
URL: http://tinyos.stanford.edu/tinyos/dists/ubuntu
Distribution: hardy
Components: mainStep 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/MakerulesAll 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”
-
hades52 printf( __('%1$s at %2$s', 'default'), get_comment_time(__('F jS, Y', 'default')), get_comment_time(__('H:i', 'default')) ); ?>
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.
-
Thanks a lot!!! This guide is been very useful!
-
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
-
©2009 Strotos Communications


