From: beutel Date: Wed, 15 Aug 2007 18:11:06 +0000 (+0000) Subject: corrected html X-Git-Tag: release_tinyos_2_1_0_0~810 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=ec56cfb3fa32ecc472d3e35ff5396f9fcda62d99 corrected html --- diff --git a/doc/html/install-tinyos.html b/doc/html/install-tinyos.html index 78b5895d..7fbf4573 100644 --- a/doc/html/install-tinyos.html +++ b/doc/html/install-tinyos.html @@ -1,9 +1,9 @@ - - - + + + Installing TinyOS 2.0.2 - + @@ -23,9 +23,8 @@ following the upgrade instructions at

One-step Install with a Live CD

-

Download a - Linux live CD that has a TinyOS installation on it. +

Download a + Linux live CD that has a TinyOS installation on it. All you need to do is download the CD image, burn it onto a CD, and install from there. This saves you all of the complexities of @@ -37,7 +36,7 @@ following the upgrade instructions at

Two-step install on your host OS with Debian packages

If you are running a version of Linux that supports Debian packages, then - you may want to use the TinyOS package repository. There is a story on www.tinyos.net + you may want to use the TinyOS package repository. There is a story on www.tinyos.net that describes how to use it. If you do this, then you do not have to install the instructions here, except that you will need to check that your environment is set up correctly (the end of step 5 in @@ -45,7 +44,7 @@ following the upgrade instructions at

Manual installation on your host OS with RPMs

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 +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.

@@ -55,7 +54,7 @@ installing Cygwin, which is a UNIX-like environment. The steps are:

  1. Installing a Java 1.5 (Java 5) JDK. Java is the most common way of interacting with mote base stations or gateways that are plugged into a PC or laptop.
  2. -
  3. Windows only. Install Cygwin. This gives you a shell +
  4. Windows only. Install Cygwin. This gives you a shell and many UNIX tools which the TinyOS environment uses, such as perl and shell scripts.
  5. Installing native compilers. As you're compiling code for low-power @@ -73,23 +72,24 @@ installing Cygwin, which is a UNIX-like environment. The steps are:

    environment includes nesdoc, a tool that automatically generates HTML documentation from source code. Part of this process involves drawing diagrams that show the relationships between - different TinyOS components. Graphviz + different TinyOS components. Graphviz is an open source tool that nesdoc uses to draw the diagrams.

Step 1: Install Java 1.5 JDK

-Windows
+Windows Download and install Sun's 1.5 JDK from http://java.sun.com.

-Linux
+Linux Download and install IBM's 1.5 JDK from http://www-128.ibm.com/developerworks/java/jdk/. +

Step 2: Install Cygwin

- This step is required for Windows installations only. If you are installing + This step is required for Windows installations only. If you are installing on Linux, skip to step 3.

We have put online the cygwin packages that we've confirmed to be @@ -100,51 +100,66 @@ 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. +

-

    -
  1. Download and install Cygwin from www.cygwin.com.
  2. -

    -

  3. Download the confirmed-compatible cygwin packages from the tinyos web site here. -

    -

  4. In a cygwin shell, unzip the above package into some directory. In these instructions the directory is /cygdrive/c/newcygpkgs. +
  5. Download and install Cygwin from www.cygwin.com.

  6. + +
  7. Download the confirmed-compatible cygwin packages from the tinyos web site + here + .

  8. + +
  9. In a cygwin shell, unzip the above package into some directory. In these + instructions the directory is /cygdrive/c/newcygpkgs.
          $ cd /cygdrive/c/newcygpkgs
          $ tar zxvf cygwin-1.2a.tgz 
     
    -This unzips the packages. -

    -

  10. In Windows Explorer, navigate to /cygdrive/c/newcygpkgs and click on the file setup.exe. Setup.exe is the setup program distributed by Cygnus Solutions. -

    -

  11. Follow these steps when the Cygwin Setup windows appears: -
      +This unzips the packages.

      + +
    1. In Windows Explorer, navigate to /cygdrive/c/newcygpkgs and click on the + file setup.exe. Setup.exe is the setup program distributed by Cygnus Solutions.

    2. + +
    3. Follow these steps when the Cygwin Setup windows appears:

    4. + +
    5. Opt to disable the virus scanner (it will be enabled when you're finished).

    6. + +
    7. Opt to Install from Local Directory.

    8. + +
    9. Specify the Root directory to be where your current cygwin installation + is. This would be the directory that directories like 'opt' and 'usr' are in. + For example, mine is rooted at c:\tinyos\cygwin, so I enter that.

    10. + +
    11. Select to Install for All Users

    12. + +
    13. Select the Unix file type (very important!)

    14. + +
    15. For the Local Packages Directory, specify where you unzipped the cygwin + packages tarfile. For example, I would specify c:\newcygpkgs. (The setup.exe + program will probably select the right default directory.)

    16. + +
    17. The next window will allow you to select packages to install. You should + see that most of the packages have an X-ed box next to them; these are the + packages that are to be installed.

    18. + +
    19. Click install.

    -
  12. Opt to disable the virus scanner (it will be enabled when you're finished). -

    -

  13. Opt to Install from Local Directory. -

    -

  14. Specify the Root directory to be where your current cygwin installation is. This would be the directory that directories like 'opt' and 'usr' are in. For example, mine is rooted at c:\tinyos\cygwin, so I enter that. -

    -

  15. Select to Install for All Users -

    -

  16. Select the Unix file type (very important!) -

    -

  17. For the Local Packages Directory, specify where you unzipped the cygwin packages tarfile. For example, I would specify c:\newcygpkgs. (The setup.exe program will probably select the right default directory.) -

    -

  18. The next window will allow you to select packages to install. You should see that most of the packages have an X-ed box next to them; these are the packages that are to be installed. -

    -

  19. Click install. Some notes: + +Some notes:
      -
    • You might see a message explaining that you need to reboot because some files are in use. This most likely means that your cygwin DLL is loaded and in-use and, therefore, cannot be replaced. When you reboot, the new DLL will be loaded. -
    • Related to the above warnings, if you see warnings about the cygwin1.dll not being found, don't worry. All will be well once you reboot and the right DLL is loaded. +
    • You might see a message explaining that you need to reboot because some + files are in use. This most likely means that your cygwin DLL is loaded + and in-use and, therefore, cannot be replaced. When you reboot, the new DLL + will be loaded.

    • + +
    • Related to the above warnings, if you see warnings about the cygwin1.dll not + being found, don't worry. All will be well once you reboot and the right DLL is loaded.

    -
-

Step 3: Install native compilers

-Install the appropriate version of the following (Windows or Linux, -avr or msp430 or both) with the rpm command 'rpm -ivh '. +

Install the appropriate version of the following (Windows or Linux, +avr or msp430 or both) with the rpm command 'rpm -ivh rpm>'. On windows, if you get an error claiming that the rpm was build for an NT computer and you're on a windows NT computer, bypass the erroneous @@ -152,10 +167,9 @@ error by using 'rpm -ivh --ignoreos rpmname'. (We have xscale compiler tools online at http://www.tinyos.net/dist-1.2.0/tools/ -but they have not yet been extensively tested by a large community.) +but they have not yet been extensively tested by a large community.)

- -

Atmel AVR Tools +Atmel AVR Tools @@ -196,8 +210,7 @@ but they have not yet been extensively tested by a large community.)
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 @@ -275,8 +288,8 @@ i386 RPM and the second is the i686 RPM. If you have a 64-bit Java VM, it is important that you install the i686 RPM or otherwise the Java support may not work properly. - -

TinyOS-specific Tools +

+TinyOS-specific Tools
Tool
@@ -291,10 +304,10 @@ the Java support may not work properly. - - + @@ -302,34 +315,34 @@ the Java support may not work properly. + - +
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
rpm -Uvh --ignoreos (if Cygwin complains)
Tool Windows/Cygwin64-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.rpmrpm -ivh --force (1.x tree)
rpm -Uvh (no 1.x tree)
rpm -ivh --force (1.x tree)
rpm -Uvh (no 1.x tree)

Step 5: Install the TinyOS 2.x source tree

-Now that the tools are installed, you need only install the tinyos 2.x +

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 '. +with the rpm command 'rpm -ivh rpm'. As with the previous rpms, if you get an error claiming that the rpm was build for an NT computer and you're on a windows NT computer, bypass the erroneous error by using 'rpm -ivh --ignoreos rpmname'. -

+

+
  • Install tinyos-2.x -

    - - -

    TinyOS 2.x +

    +TinyOS 2.x @@ -343,22 +356,27 @@ bypass the erroneous error by using 'rpm -ivh --ignoreos -
    tinyos-2.0.2-2.noarch.rpm
    -

  • Configure your environment +
  • + +
  • Configure your environment +

    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=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
     export CLASSPATH="$CLASSPATH;."
     
    -

    TinyOS 2.x +TinyOS 2.x @@ -400,44 +418,43 @@ export CLASSPATH="$CLASSPATH;." Only necessary if you're using the MSP430 platform/tools. -

    +

    In addition to the above environment variables, do the following on Linux machines: -

      +

      + +
      1. Change the ownership on your /opt/tinyos-2.x files: chown -R <your uid> /opt/tinyos-2.x -
      2. Change the permissions on any serial (/dev/ttyS<N>), usb +
      3. +
      4. Change the permissions on any serial (/dev/ttyS<N>), usb (/dev/tts/usb<N>, /dev/ttyUSB<N>), or parallel (/dev/parport) devices you -are going to use: chmod 666 /dev/<devicename> - -
      - +are going to use: chmod 666 /dev/<devicename> +
    +
  • Finally, if you have installed TinyOS 2.0.1, there is a bug in TOSSIM (which will be fixed in 2.0.2). -The bug is in file tos/chips/atm128/sim/atm128_sim.h. Change these lines 22 and 23 from: +The bug is in file tos/chips/atm128/sim/atm128_sim.h. Change these lines 22 and 23 from:

     #define _SFR_IO8(io_addr) _MMIO_BYTE((io_addr) + 0x20)
     #define _SFR_IO16(io_addr) _MMIO_WORD((io_addr) + 0x20)
     
    -to +

    to

     #define _SFR_IO8(io_addr) _MMIO_BYTE((io_addr))
     #define _SFR_IO16(io_addr) _MMIO_WORD((io_addr))
     
    -If you do not do this, then timers will not work correctly. +

    If you do not do this, then timers will not work correctly.

  • Step 6: Installing Graphviz

    -

    Go to download page of the Graphviz project +

    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,

    Environment Variable