From: beutel
+
+There are 3 steps to upgrading from 1.x to 2.x: -
+(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
Tool | @@ -87,8 +92,8 @@ distribution trees, but are linked below for convenience.
rpm -Uvh --force
-
-TI MSP430 Tools +
+TI MSP430 ToolsTool | @@ -135,16 +140,15 @@ distribution trees, but are linked below for convenience.||
gdb | -Not yet available | msp430tools-gdb-6.0-20050609.i386.rpm |
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 @@ -166,13 +170,9 @@ to a Cygwin version incompatibility: try the "Other" Windows/Cygwin 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
Tool | @@ -187,9 +187,9 @@ option.nesc-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) |
Tool | Windows/Cygwin | @@ -197,26 +197,24 @@ option.64-bit Linux | Command | ||
tinyos-tools | tinyos-tools-1.2.4-2.cygwin.i386.rpm | tinyos-tools-1.2.4-2.i386.rpm | tinyos-tools-1.2.4-2.i686.rpm | -rpm -ivh --force (1.x tree)rpm -Uvh (no 1.x tree) |
+ rpm -ivh --force (1.x tree)rpm -Uvh (no 1.x tree) |
-
If you have an existing 1.x tree, we strongly recommend that you use
the install (-i
) rpm argument when installing the tinyos-2.x rpm rather
@@ -233,7 +231,7 @@ performing a forced installation of the 2.0 tree.
If you have an existing 2.x tree which you do not care about, then we recommend removing it before installing the new one with a forced install.
-TinyOS 2.x +TinyOS 2.x
@@ -246,14 +244,15 @@ recommend removing it before installing the new one with a forced install. | TinyOS | tinyos-2.0.2-2.cygwin.noarch.rpm | tinyos-2.0.2-2.noarch.rpm | -rpm -Uvh (to upgrade) - rpm -ivh (to install) - rpm -ivh --force (to force install) + | rpm -Uvh (to upgrade) + rpm -ivh (to install) + rpm -ivh --force (to force install) |
In TinyOS 1.x, much of your environment was set by the rpm installation process by copying a tinyos.sh file into /etc/profile.d which was subsequently run anytime @@ -261,20 +260,23 @@ a shell was started. Because this was deemed unnecessarily invasive, the 2.x rpm does not do this. Rather, you need to set these variables yourself. Ideally, you'll put them in a shell script that will run when your shell starts, but you needn't put such a script under /etc/profile.d. -
+
+Please take note of the current settings since you'll need those if you want to work in your current 1.x tree sometime in the future. -
+
+The example settings below assume that the tinyos-2.x installation is in /opt/tinyos-2.x. Change the settings to be correct for where you've put your tinyos-2.x tree. Note that the windows CLASSPATH must be a windows-style path, not a cygwin path. You can generate a windows style path from a cygwin-style path using 'cygpath -w'. For example: -
export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar` + +export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar` export CLASSPATH="$CLASSPATH;."-TinyOS 2.x +
TinyOS 2.x
Environment Variable | @@ -316,42 +318,47 @@ export CLASSPATH="$CLASSPATH;." †Only necessary if you're using the MSP430 platform/tools. -
Environment Variable | @@ -384,7 +391,6 @@ values:
Switching between the two should require switching only these environment variables.