Difference between revisions of "Mansos installation"

From DiLab
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Notes for installation by hand, by Leo ==
== Installing MansOS by hand ==


First, get the MansOS from SVN repository. This will include the source files and the scripts and tools. You may create the svn directory below, or use some other path.
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/
cd ~/svn/
Line 7: Line 7:




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

* One option is [http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Linux_installation installing it by hand]
* One option is [http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Linux_installation installing it by hand]
* Alternative is to use the newer, mspgcc4. [http://gcc.gnu.org/gcc-4.4/ Read here] how to set it up.
* Alternative is to use the newer, [http://mspgcc4.sourceforge.net/ MSPGCC4].
** Or download the mspgcc4.4.2 linux pack [http://sourceforge.net/projects/mspgcc4/files/GCC-4.4.2-GDB-7.0-20091124/20091124-msp430-gcc-4.4.2-gdb-7.0-insight-6.8.7z/download from sourceforge] (not the latest). You may also need to install p7zip to open the 7z package.
* 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.
** I prefer to make links to the current versions for easier upgrades later:
cd /opt
sudo ln -s msp430-gcc-4.4.2 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.
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 PATH="/opt/msp430-gcc/bin:$PATH"
export MOSROOT="/opt/mansos"
export MOSROOT="/opt/mansos"


Line 20: Line 24:


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


Now, test it.
Now, test it.
* Go to /opt/mansos/apps/Blink and try compiling and uploading it to a telosb mote. Also try compiling for PC.
* 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
cd /opt/mansos/apps/demo/Blink
make telosb
make telosb
make telosb up[load
make telosb upload
make pc
make pc

Latest revision as of 20:42, 29 October 2010

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 skip this step and use their version of msp430-gcc.

  • One option is installing it by hand
  • Alternative is to use the newer, MSPGCC4.
    • Or download the mspgcc4.4.2 linux pack from sourceforge (not the latest). You may also need to install p7zip to open the 7z package.
    • I prefer to make links to the current versions for easier upgrades later:
cd /opt
sudo ln -s msp430-gcc-4.4.2 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/msp430-gcc/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/
sudo 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/demo/Blink
make telosb
make telosb upload

make pc
make pc run