Вы находитесь на странице: 1из 2

Tiny OS and Installing Tiny OS on Ubuntu/CentOS/Fedora/Red hat

file:///C:/Users/gags/Desktop/tos.html

Tiny-OS
TinyOS is an open source, BSD-licensed operating system ,designed for low-power wireless devices such as sensors.These sensors can be deploed in various feilds depending upon the application.Tiny Os provides support for various platforms such as epic, mulle, and shimmer2 ,CC2420 radio platforms, Official it is said to be suppoorted on Debain based linux distribution(ubuntu) and on windows (using cygwin).However I have successfully installed it on RPM based linux(Centos).Here i would be discussing the steps to install TinyOS on Centos.They would be similar for Fedora and Redhat.

Installing Tiny OS on CentOS/Fedora/Red hat


Below are the various steps needed to install Tiny OS.After these steps help is provided for the various issue that can happen during installation. STEP 1: Intall an RPM based linux distrubution(Centos,Fedora or Redhat) :First of all one need to have a rpm based linux distribution with software development support packages installed.Better install a fresh CentOS from iso and select Software development mode during installation. STEP 2: Install the compilers :We need compilers that can generate the proper assembly code. For mica-family motes, we need the AVR toolchain; For telos-family motes, we need the MSP430 toolchain.All these compilers can be downloaded by clicking on them. Atmel AVR Tools Tool Centos avr-binutils avr-binutils-2.17tinyos-3.i386.rpm avr-gcc avr-gcc-4.1.2-1.i386.rpm avr-libc avr-libc-1.4.7-1.i386.rpm avarice avarice-2.4-1.i386.rpm insight (avr-gdb) avr-insight-6.3-1.i386.rpm avrdude avrdude-tinyos-5.6cvs-1.i386.rpm If you receive an rpm error that indicates that you have a newer version already installed, try rpm -Uvh --force If you receive an rpm error that indicates that you are missing /bin/sh, try rpm -Uvh --force --nodeps TI MSP430 Tools Tool Linux msp430tools-base-0.1-20050607.i386.rpm base python tools msp430tools-python-tools-1.0-1.noarch.rpm binutils msp430tools-binutils-2.16-20050607.i386.rpm gcc msp430tools-gcc-3.2.3-20050607.i386.rpm libc msp430tools-libc-20080808-1.i386.rpm jtag msp430tools-jtag-lib-20031101cvs-20050610.i386.rpm gdb msp430tools-gdb-6.0-20050609.i386.rpm

STEP 3: Install TinyOS toolchain :-

The TinyOS-specific tools are the NesC compiler and a set of tools developed in the tinyos-2.x/tools source code repository. There are two Linux versions of tinyos-tools, depending on whether you have a 32-bit or 64-bit machine. The first is the i386 RPM and the second is the i686 RPM. TinyOS-specific Tools Tool NesC Tool Deputy Tool Linux nesc-1.3.1-1.fc9.i386.rpm Linux tinyos-deputy-1.1-1.fc9.i386.rpm Linux Command
rpm -Uvh rpm -Uvh --ignoreos

(if Cygwin complains)

Command
rpm -i rpm -i --ignoreos (if

Cygwin complains) tree)

Command
rpm -ivh --force (1.x rpm -Uvh (no 1.x tree)

tinyos-tools tinyos-tools-1.4.0-3.ubuntu.i386.rpm

STEP 4: Install the TinyOS 2.x source tree :-

Now that the tools are installed, you need only install the tinyos 2.x source tree and then set your environment variables. Install the appropriate version of the following (Window or Linux) with the rpm command 'rpm -ivh rpm'. Install tinyos-2.x TinyOS 2.x TinyOS Linux TinyOS tinyos-2.1.1-3.ubuntu.noarch.rpm

STEP 5: Set the environment variables :-

TinyOS 2.x Environment Variable Linux TOSROOT /opt/tinyos-2.x TOSDIR $TOSROOT/tos CLASSPATH $TOSROOT/support/sdk/java/tinyos.jar:.

1 of 2

6/11/2012 10:36 AM

Tiny OS and Installing Tiny OS on Ubuntu/CentOS/Fedora/Red hat

file:///C:/Users/gags/Desktop/tos.html

MAKERULES PATH

$TOSROOT/support/make/Makerules /opt/msp430/bin:/opt/jflashmm:$PATH

Only necessary if you're using MSP430 or iMote2 platform/tools. In addition to the above environment variables, do the following on Linux machines: Change the ownership on your /opt/tinyos-2.x files: chown -R <your uid> /opt/tinyos-2.x

STEP 6: Installing Graphviz :-

Go to download page of the Graphviz project and download the appropriate RPM. You only need the basic graphviz RPM (graphviz-); you don't need all of the add-ons, such as -devel, -doc, -perl, etc. If you're not sure what version of Linux you're running,
uname -a

Solving various Issue encountered during TinyOs Installation. Please click here for viewing the issue and their solutions

2 of 2

6/11/2012 10:36 AM

Вам также может понравиться