This is my admittedly minor but I hope useful contribution to the TinyOS development community. TinyOS is an Operating System and development framework for Wireless Sensor Networks and other platforms which has a small footprint and is very energy conscious.
The TinyOS source code is available for free online for many operating systems, however it takes a long time to get the environment set up and it is not portable at all. I came across XubunTOS but it did not seem to be in active development anymore, so I endeavored to install TinyOS 2.1 and 2.x from source into a regular Ubuntu image. The most help came from Matt Keally’s Blog. While doing this, I thought it might be useful to many others who wish to develop in the TinyOS framework but might not have the skills necessary to install it. Therefore, I developed this VirtualBox image so that you can install it on any system for which VirtualBox is available and supports USB passthrough for the programming of the motes. I’ve tested on Windows 7, Windows XP and it should work on any other host OS, but I would love to hear your feedback. All funny business aside, I present to the world UbunTOS:
- Ubuntu 9.10 OS (patched through 2/5/2010)
- Complete TinyOS development environment
- TinyOS 2.1 Installed
- TinyOS 2.x CVS Installed (default environment)
- Portable for development in a variety of host environments
- Patched motelist for MIB520 programming board
- Unzip the file and import into VirtualBox. I recommend at least 768M RAM
- Boot system
- Enable USB passthrough for the programming board. Check off the USB device in the menu as shown:
- Check ‘motelist’ to see which port it has been assigned to (motelist has been patched to see MIB520 programming board)
- Program away! TinyOS resides in /opt/
MD5 sum: 9a27ba7902337139c2eae0121ec6ca4e
If you happen to have spare bandwidth, please send me a note and I will link to the file via http or ftp.
- The default username is wcu and password is nosecurity
- The hostname is wcu-desktop, in honor of West Chester University which is sponsoring my research into Wireless Sensor Networks.
- To switch between the TinyOS 2.x and 2.1 environment, run the shell script /opt/tinyos-2.1.0/tinyos.sh or /opt/tinyos-2.x/tinyos-2.x.sh. By default the 2.x environment is loaded via ~/.bashrc/.
- To update TinyOS 2.x with latest CVS Code:
cd /opt; cvs -z3 -d:pserver:firstname.lastname@example.org:/cvsroot/tinyos co -P tinyos-2.x
- I’ve testing this using Mica2 and Micaz. Let me know if you have success with other combinations as I just do not have the hardware to test.
- Usually the programming port and the data port are on consecutive ports. In the example above, the programming device is /dev/ttyUSB0 and the data port, for serialforwarder, is /dev/ttyUSB1
If you have issues while enabling USB Passthrough, such as an error like:
Version:1.0 StartHTML:0000000105 EndHTML:0000001970 StartFragment:0000000127 EndFragment:0000001952
|Result Code:||E_INVALIDARG (0x80070057)|
Reboot your host system. I believe this happens while reinstalling the passthrough driver for the USB device for the first time. Rebooting seems to fix this problem, and after the initial setup this problem seems to disappear.
If you have any other problems (or compliments!) please leave a message via the form below.