Installing TinyOS

Instructions for setting up TinyOS based off the ones found at TinyOS Getting Started. I've updated them as of 2012/01/26 and verified they work with a clean install of Ubuntu 11.10.

Install TinyOS

Step 0: Enable the Stanford tinyos repository

This allows Ubuntu to find the correct packages from the Stanford servers.

Peplace <distribution> with the distribution of Ubuntu you are using: hardy (8.04), jaunty (9.04), karmic (9.10), lucid (10.04), maverick (10.10), or natty (11.04). If you are using something newer than natty, just use natty.

Step 0.5: Make sure you have necessary tools for this process

There are some various linux tools that you need for all of these steps to work. If you already have them you're all set, but you can check by trying to install them. There may be more than this, please add them if you find them.

sudoapt-get install texinfo patchautomakeg++ python-serial

Step 1: Install the nesc compiler

sudoapt-get install nesc

This doesn't actually install anything I guess. When you install the tinyos tools below you actually install nesc and ncc.

Step 2: Install msp430-gcc

Install msp430-gcc version 4.6.3. You can do it from source, but may the force be with you.