Preparing environment for Contiki¶
The following instructions assume using the same virtual machine as with TinyOS.
Install gcc
and libncurses5-dev
.
Clone Contki 3.0 repo:
git clone --recursive --depth 1 -b release-3-0 git://github.com/contiki-os/contiki.git contiki
Apply (manually) this patch and rebuild that tool:
cd ./tools/sky/
make
Verify that it works by building (as a native application) and running (on the computer) the hello-world example app:
cd ./examples/hello-world
make TARGET=native hello-world
./hello-world.native
Then build and run it on the Sky mote:
make TARGET=sky hello-world
make TARGET=sky PORT=/dev/ttyUSB0 hello-world.upload
make TARGET=sky PORT=/dev/ttyUSB0 login