Getting TinyOS to work on Linux using TelosB
Introduction
This guide is mainly written for myself to remember it and as a help for CpE 664 students at WVU. This guide is based on TinyOS - Automatic Installation and Eric Decker’s installation guide.
Installation
First download Virtual Box (Mac/Win), Parallels (Mac) or VMware Fusion (Mac) and install Ubuntu or any other Debian based Linux distro. Parallels has an automatic download of Ubuntu, so I chose that.
After the installation is finished open the Terminal and download tinyos. This is done by writing:
|
|
It can take some time to download, but when it is done extract it:
|
|
Now we just have a folder called `tinyos-release-tinyos-2_1_2`, let’s rename it to something more useful.
|
|
We don’t really need the tar file anymore, so let’s remove it.
|
|
When using sudo, you have to write your password. Nothing will show up, but when you press enter the command will run.
Let’s setup the make environment.
|
|
This opens a text editor in the terminal. Replace with your username on the machine.
|
|
To save the file press `ctrl+x` and then `y` and `enter`. We need to make sure we can use the USB out for the TelosB to run on, this can be done using:
|
|
Now let’s change the `.bashrc` file so we can setup the .env we made before.
|
|
Move all the way to the buttom (using arrow keys) and write:
|
|
Save the file using the same method as before, `ctrl+x`, `y` and `enter`.
Let’s reboot quickly.
|
|
We now have most of TinyOS setup, but we need a few libraries before we can compile. We need two new repositories, but before adding them, we should get their keys, so we don’t run in to any problems.
|
|
Go to the source list and add the two tinyprod repositories.
|
|
With the two new repositories added, let’s update and install the needed tools. (You should still be root, else run `sudo su`).
|
|
To accept press `y` and `enter`.
Let it download and install, it can take some time. Now the last thing to do it to reboot: `sudo reboot`
This is just an installation guide. I’ll also add a guide on how to actually use and make programs for the TelosB.