X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2Fhtml%2Fupgrade-tinyos.html;h=a6738b1aa83a24e6b1a68c1d6a9702c6944cdf4d;hb=2209f8d2cb9ae1b6c268532e99a374533eb8fa78;hp=df4fcb77413b8c4cf0ee03e9bb7ac2b549666260;hpb=031c4e61e3bc3ec1386f37c061da4403856c3cac;p=tinyos-2.x.git diff --git a/doc/html/upgrade-tinyos.html b/doc/html/upgrade-tinyos.html index df4fcb77..a6738b1a 100644 --- a/doc/html/upgrade-tinyos.html +++ b/doc/html/upgrade-tinyos.html @@ -1,14 +1,15 @@ - - + + + - Installing TinyOS 2.0 - + Installing TinyOS 2.0.2 + -
Upgrading from TinyOS 1.x to TinyOS 2.x
-
Last updated 1 May 2007
+
Upgrading from TinyOS 1.x to TinyOS 2.0.2
+
Last updated 30 July 2007

This document describes how to upgrade your TinyOS 1.x environment to a TinyOS 2.x environment. This requires that you not only install the @@ -24,29 +25,33 @@ need to be reconfigured if you switch from TinyOS 2.x to TinyOS 1.x. The 1.2 toolset is backwards compatible with the 1.x TinyOS tree, so switching back and forth requires only a few variable changes. You can find those directions at the bottom of the page. -

+

+

There are 3 steps to upgrading from 1.x to 2.x: -

    -
  1. Upgrade your external tools (compilers). -
  2. Upgrade your Tinyos-specific tools. -
  3. Install the Tinyos 2.x source tree. -
+

+
    +
  1. Upgrade your external tools (compilers).
  2. +
  3. Upgrade your Tinyos-specific tools.
  4. +
  5. Install the Tinyos 2.x source tree.
  6. +
+ -

Step 1: Upgrade your external tools.

+

Step 1: Upgrade your external tools.

The 1.2 toolset uses the same Java JDK and ATT Graphviz versions, so those do not need to be upgraded. What does need to be upgraded are your compiler tools. Install the appropriate version of the following -(Windows or Linux) with the rpm command 'rpm -Uvh '. -

+(Windows or Linux) with the rpm command 'rpm -Uvh rpm'. +

At this time, we have available compiler toolsets for Atmel AVR and TI MSP430 platforms. -

+

+

All of the tools are in the http://www.tinyos.net/dist-1.2.0/ and the http://www.tinyos.net/dist-2.0.0 distribution trees, but are linked below for convenience. +

- -

Atmel AVR Tools +Atmel AVR Tools @@ -87,8 +92,8 @@ distribution trees, but are linked below for convenience.
Tool
If you receive an rpm error that indicates that you have a newer version already installed, try rpm -Uvh --force - -

TI MSP430 Tools +

+TI MSP430 Tools @@ -135,16 +140,15 @@ distribution trees, but are linked below for convenience. -
Tool
gdb Not yet available msp430tools-gdb-6.0-20050609.i386.rpm
-

-

Step 2: Upgrade your TinyOS-specific tools.

+

Step 2: Upgrade your TinyOS-specific tools.

+

The TinyOS-specific tools are the NesC compiler and a set of tools developed in the tinyos-2.x/tools source code repository. They are also installed using rpms. Due to file conflicts between the new version @@ -163,12 +167,12 @@ get strange errors when you try to compile TinyOS programs, such as the error message "the procedure entry point basename could not be located in the dynamic link library cygwin1.dll", this is likely due to a Cygwin version incompatibility: try the "Other" Windows/Cygwin -RPM (1.2.7a). - -

+RPM. If you are using Cygwin and installing the nesC RPM +causes an error that the RPM was built for Cygwin, add the --ignoreos +option. +

- -

TinyOS-specific Tools +TinyOS-specific Tools @@ -183,29 +187,34 @@ RPM (1.2.7a). - + + + + + + + + + - - - - - + + + + +
Toolnesc-1.2.8a-1.cygwin.i386.rpm nesc-1.2.8b-1.cygwin.i386.rpm nesc-1.2.8a-1.i386.rpm rpm -Uvh
rpm -Uvh --ignoreos (if Cygwin complains)
rpm -Uvh
rpm -Uvh --ignoreos (if Cygwin complains)
ToolWindows/Cygwin32-bit Linux64-bit LinuxCommand
tinyos-toolstinyos-tools-1.2.2-1.cygwin.i386.rpmtinyos-tools-1.2.2-1.cygwin.i386.rpmtinyos-tools-1.2.2-1.i386.rpmrpm -ivh --force (1.x tree)
rpm -Uvh (no 1.x tree)
tinyos-toolstinyos-tools-1.2.4-2.cygwin.i386.rpmtinyos-tools-1.2.4-3.i386.rpmtinyos-tools-1.2.4-3.i686.rpmrpm -ivh --force (1.x tree)
rpm -Uvh (no 1.x tree)
-

-

Step 3: Install the TinyOS 2.x source tree.

+

Step 3: 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.