Installing Intel Mote 2 Development Environment for TinyOS 1.x:
The Intel Mote 2 development environment requires Cygwin, Wasabi
tool suite, xflash programming tool and TinyOS/Nesc. The Intel Mote 2
platform code is available on sourceforge and can be downloaded from
there.
Please follow the detailed instructions below to install and
configure the development environment. These instructions are a compilation our experience of setting up the tools and the following resources
tinyos.net installation instructions (a bit outdated)
yahoo groups:imote2 (requires subscription)
harward imote2 installation
wsu imote2 installation
Step 1 Installing Cygwin
- Obtain the latest cygwin version from http://sourceware.org/cygwin/
- Install cygwin in C:\cygwin
- Choose "Install for all users" and "use unix file types"
- In the options if you can install "ALL," this is safest option
- After installing (this will take some time), run cygwin once to ensure the setup worked correctly.
Step 2 Installing Tinyos-1.1
cvs -z3 -d:pserver:anonymous@tinyos.cvs.sourceforge.net:/cvsroot/tinyos co -P tinyos-1.x
Go to tinyos-1.x/tos/platform
Type:
ln -s ../../beta/platform/imote2 imote2
ln -s ../../beta/platform/pxa27x pxa27x
In your home directory open your .bash_profile file
Add the follwoing lines to it
export TOSROOT=/cygdrive/c/tinyos-1.x
export TOSDIR=$TOSROOT/tos
export MAKERULES=$TOSROOT/tools/make/Makerules
Step 3 Install NesC
- Download the rpm from the TinyOS website http://www.tinyos.net/dist-1.2.0/tinyos/windows/nesc-1.2.8a-1.cygwin.i386.rpm
*Note: make sure you get this version, otherwise the assignment files we give you WILL NOT work.
- Run
rpm -ivh nesc-1.2.8a-1.cygwin.i386.rpm
Step 4 Install Wasabi
Make sure you can run xscale-elf-gcc
Step 5 Testing the setup
- Compile and build Blink application
- Go to $TOSROOT/apps/Blink
- Type:
make imote2 debug
It should complete but complain about dwarf2bd. If it doesn't complete and gives you an error message about an e drive “cc1: /cygdrive/e/wasabi_drops/…../include: No medium found”, insert a CD in your e drive and try again. This is a known issue that we are trying to debug currently. If it doesn't complete but you don't get the error about the e drive, check your environment variables.
Load iMote2 with Blink
- Put $TOSROOT/contrib/imote2/tools/bin into your PATH
- Go to $TOSROOT/contrib/imote2/tools/bin
chmod a+x *
Connect USB cable to Intel Mote 2
Go to $TOSROOT/apps/Blink and compile it (if you haven't yet)
Run
USBLoaderHost.exe -p ./build/imote2/main.bin.out
After program loads the led should flash red color.
Test mote shell:
iMoteConsole.exe
Click on "View Buffer In Window" option. This will start a new window, push the Connect button. Go to the large box (click anywhere inside the box), and push the enter button, you will see a "BluSH>" prompt. Type ls to see available commands.