|
Linux Download and Installation
TinyOS Release 1.0.0 RPM TinyOS-1.0.0-1 October 14, 2002
The Linux version of TinyOS is installed using an RPM. Following are the steps to take to download and install the RPM. Here’s a description of what the Linux RPM does.
- 1.3 JDK
TinyOS recommends the 1.3 Java JDK from IBM. If you already have a 1.3 JDK installed, please modify the rest of the instructions,
most notably the environment variable section, accordingly. If you don’t already have a 1.3 JDK, you can download an RPM for the recommended version here. Install the RPM like this
% su root # rpm -i IBMJava2-SDK-1.3.1-2.0.i386.rpm
- java.comm
TinyOS requires the java.comm libraries for Linux. You can download the RPM at here. Install the RPM like this:
% su root # rpm -i IBMJava2-JAVACOMM-1.3.1-2.0.i386.rpm
- AVR Development tools
Download the AVR tools’ RPM here. Install the RPM like this:
- TinyOS
Download the TinyOS RPM here. Install the RPM like this:
% su root # rpm -i TinyOS-1.0.0-1.i386.rpm
- Graphviz
The AT&T freeware package ‘graphviz’ is necessary to generate TinyOS documentation. You can download the graphviz RPM here. Install the RPM like this:
- Environment
To complete the installation, ensure that your PATH and CLASSPATH environment variables include the following. If your JDK is in
a different location, modify the classpath accordingly.
a. CLASSPATH Add the following to your CLASSPATH environment variable:
/opt/IBMJava2-13/lib:/opt/IBMJava2-13/jre/lib:/usr/local/src/tinyos-1.x/tools/java:.
b. PATH Add the following to your PATH environment variable: /opt/IBMJava2-13/bin:/opt/avrgcc/bin
At this point, you’re ready to compile your first TinyOS program. We recommend starting at Lesson 1 of the tutorial to confirm that
your setup is correct, and proceeding from there. Please see the support page for more information.
Note that the RPM places the tinyos-1.x development tree under /usr/local/src and sets the owner to be root. You can modify the tree’s
permissions post-installation to be owned by another user or be writeable by everyone. You can even move the entire tinyos-1.x tree to another location. If you choose to move the entire tree, be sure to do the
following:
- update the CLASSPATH environment variable to include the correct path to tinyos-1.x/tools/java (see above).
- define an environment variable TOSDIR to point to the new equivalent of /usr/local/src/tinyos-1.x/tos. For example, if I move my tree to
/home/kwright/src/uc/tinyos-1.x, I would define the environment variable in csh like so: ‘% setenv TOSDIR /home/kwright/src/uc/tinyos-1.x/tos’.
Installation instructions for older versions:
|