Mansos installation

From DiLab
Revision as of 13:45, 29 March 2010 by Leo (talk | contribs)
Jump to: navigation, search

Installing MansOS by hand

First, get MansOS from the SVN repository. This will include the source files and the scripts and some tools. Check out the svn directory as below. You may use some other local path.

cd ~/svn/
svn co http://mansos.net/svn/mansos/ mansos


Then, install msp430-gcc.

  • If you happen to have TinyOS, Contiki or some other software that have msp430-gcc installed, you may save this step and use their version of msp430-gcc.

Then, set up your .bashrc as follows (you may set this up in a separate script). This will find the mspgcc tools and the mansos root directory.

export PATH="/opt/mspgcc/bin:$PATH"
export MOSROOT="/opt/mansos"

For the MOSROOT path to work you may want to add a link to your actual downloaded sources of mansos, e.g.

cd /opt/
ln -s ~/svn/mansos/ mansos/

Now, test it.

  • Go to /opt/mansos/apps/Blink and try compiling and uploading it to a telosb mote. Also try compiling for PC.
cd /opt/mansos/apps/Blink
make telosb
make telosb up[load

make pc
make pc run