X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2Fhtml%2Finstall-tinyos.html;fp=doc%2Fhtml%2Finstall-tinyos.html;h=c8f05f8368ad698deba1ee60ddfe1fa1ff4e3867;hb=1ba974b83d19fc41bf80acd52726f36f7f1df297;hp=0000000000000000000000000000000000000000;hpb=4db69a460ad5d18d33cbf5c3ef74ad584d9e2886;p=tinyos-2.x.git diff --git a/doc/html/install-tinyos.html b/doc/html/install-tinyos.html new file mode 100644 index 00000000..c8f05f83 --- /dev/null +++ b/doc/html/install-tinyos.html @@ -0,0 +1,367 @@ + + + +
+If you already have a 1.x tree, you are better off following the upgrade +instructions at upgrade-tinyos.html. + +
Currently, the TinyOS Core Working Group supports TinyOS on two platforms: Cygwin (Windows) +and Linux. There have been some successful efforts to getting TinyOS environments working +on Mac OSX, but OSX is not supported by the Core WG.
+ +Installing a TinyOS enviromnent has four basic steps; Windows requires an extra step, +installing Cygwin, which is a UNIX-like environment. The steps are:
+ +
+Linux
+Download and install IBM's 1.5 JDK from http://www-128.ibm.com/developerworks/java/jdk/.
+
+
We have put online the cygwin packages that we've confirmed to be +compatible with TinyOS. The instructions below use those packages. You +can also upgrade your cygwin environment according to the instructions +at www.cygwin.com and your environment will most likely work. A large +number of TinyOS users, upgrade their cygwin packages at least monthly +from cygnus. However, since we can't test what packages are compatible +as they become available daily, we can't confirm that today's set will +work. + +
+
+
+ $ cd /cygdrive/c/newcygpkgs + $ tar zxvf cygwin-1.2a.tgz ++This unzips the packages. +
+
+
+
+
+
+
+
+
+
Atmel AVR Tools +
Tool | +Windows/Cygwin | +Linux | +
avr-binutils† | +avr-binutils-2.15tinyos-3.cygwin.i386.rpm | +avr-binutils-2.15tinyos-3.i386.rpm | +
avr-gcc | +avr-gcc-3.4.3-1.cygwin.i386.rpm | +avr-gcc-3.4.3-1.i386.rpm | +
avr-libc | +avr-libc-1.2.3-1.cygwin.i386.rpm | +avr-libc-1.2.3-1.i386.rpm | +
avarice | +avarice-2.4-1.cygwin.i386.rpm | +avarice-2.4-1.i386.rpm | +
insight (avr-gdb) | +avr-insight-6.3-1.cygwin.i386.rpm | +avr-insight-6.3-1.i386.rpm | +
rpm -Uvh --force
+
+
+TI MSP430 Tools +
Tool | +Windows/Cygwin | +Linux | +
base | +msp430tools-base-0.1-20050607.cygwin.i386.rpm | +msp430tools-base-0.1-20050607.i386.rpm | +
python tools | +msp430tools-python-tools-1.0-1.cygwin.noarch.rpm | +msp430tools-python-tools-1.0-1.noarch.rpm | +
binutils | +msp430tools-binutils-2.16-20050607.cygwin.i386.rpm | +msp430tools-binutils-2.16-20050607.i386.rpm | +
gcc | +msp430tools-gcc-3.2.3-20050607.cygwin.i386.rpm | +msp430tools-gcc-3.2.3-20050607.i386.rpm | +
libc | +msp430tools-libc-20050308cvs-20050608.cygwin.i386.rpm | +msp430tools-libc-20050308cvs-20050608.i386.rpm | +
jtag | +Not yet available | +msp430tools-jtag-lib-20031101cvs-20050610.i386.rpm | +
gdb | + +Not yet available | +msp430tools-gdb-6.0-20050609.i386.rpm | +
TinyOS-specific Tools +
Tool | +Windows/Cygwin | +Linux | +Command | +
NesC | +nesc-1.2.7a-1.cygwin.i386.rpm | +nesc-1.2.7a-1.i386.rpm | +rpm -Uvh |
+
tinyos-tools | +tinyos-tools-1.2.2-1.cygwin.i386.rpm | +tinyos-tools-1.2.2-1.i386.rpm | +rpm -ivh --force (1.x tree)rpm -Uvh (no 1.x tree) |
+
+ + + +
TinyOS 2.x +
+ | Windows/Cygwin | +Linux | +
TinyOS | +tinyos-2.0.0beta2-3.cygwin.noarch.rpm | +tinyos-2.0.0beta2-3.noarch.rpm | +
+Ideally, you'll put these environment variables in a shell script that will run when your shell starts, but you needn't +put such a script under /etc/profile.d. +
+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="$CLASSPATH;." ++ +
TinyOS 2.x +
Environment Variable | +Windows | +Linux | +|
TOSROOT | +/opt/tinyos-2.x | +same as in Cygwin | ++ + |
TOSDIR | +$TOSROOT/tos | +same as in Cygwin | ++ + |
CLASSPATH | +C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;. | +$TOSROOT/support/sdk/java/tinyos.jar:. | ++ + |
MAKERULES | +$TOSROOT/support/make/Makerules | +same as in Cygwin | ++ + |
PATH† | +/opt/msp430/bin:$PATH | +same as in Cygwin | ++ + |
+In addition to the above environment variables, do the following on Linux machines: +
chown -R <your uid> /opt/tinyos-2.x
+
chmod 666 /dev/<devicename>
+
+
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+ +
might give you some useful information. Install the rpm with rpm -i rpm-name. +In the case of Windows, there is a simple install program, so you don't need to deal with RPMs.
+ + +