Hi, guys, I've used XubunTOS 2.0 on a VM for a couple of months and now I'm going to program iris motes. Following the instructions on http://www.isis.vanderbilt.edu/projects/NEST/tinyos-2.x-iris/doc/html/install-tinyos-iris.html, I encountered several problems but may have solved them. However, the only app that can be compiled is Blink.
1. the command "rpm -Uvh --ignoreos --force name_of_the_package.rpm" didn't work due to failed dependencies (/bin/sh is needed). I didn't know why but an additional option --nodeps seemed helpful. By this way, avr-binutils-2.17-1.i386.rpm, avr-gcc-3.4.6-1.i386.rpm, avr-libc-1.4.6-1.i386.rpm, and avrdude-5.4-1.i386.rpm were installed. 2. After running the command "cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P tinyos-2.x", I found lots of stuff in tinyos-2.x/support/make hadn't been updated by cvs and I manually replaced them by new files downloaded from http://tinyos.cvs.sourceforge.net (otherwise if I compile any app, avrisp will be called rather than avrdude). 3. Also, I placed the updated tos-set-symbols in /usr/bin to solve the problem in Blink. Now I can compile and flash Blink for iris but other apps still don't work. Many thanks for your suggestions. ~~~~~~~~~~~~~~~~~~~~~~~~ [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tutorials/BlinkToRadio$ make iris install mib520,/dev/ttyUSB0 make: Warning: File `/opt/tinyos-2.x/support/make/avr/mib520.extra' has modification time 3.1e+05 s in the future mkdir -p build/iris compiling BlinkToRadioAppC to a iris binary ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"BlinkToRadioApp\" -DIDENT_USER_ID=\"xubuntos\" -DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L -DIDENT_UNIX_TIME=0x480ad11bL -DIDENT_UID_HASH=0xa9ad56b4L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkToRadioAppC.nc -lm In file included from /opt/tinyos-2.x/tos/chips/rf230/DefaultPacketC.nc:46, from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:50, from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:46, from BlinkToRadioAppC.nc:49: In component `DefaultPacketP': /opt/tinyos-2.x/tos/chips/rf230/DefaultPacketP.nc:93: conflicting types for `Packet.getPayload' /opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of `Packet.getPayload' In file included from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:70, from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:46, from BlinkToRadioAppC.nc:49: In component `ActiveMessageLayerC': /opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:81: conflicting types for `AMSend.getPayload' /opt/tinyos-2.x/tos/interfaces/AMSend.nc:125: previous declaration of `AMSend.getPayload' /opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc: In function `AMSend.getPayload': /opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:82: too many arguments to function `SubSend.getPayload' /opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc: At top level: /opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41: `Snoop.payloadLength' not implemented /opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41: `Snoop.getPayload' not implemented /opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41: `Receive.payloadLength' not implemented /opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41: `Receive.getPayload' not implemented In file included from /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerC.nc:44, from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:76, from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:46, from BlinkToRadioAppC.nc:49: In component `MessageBufferLayerP': /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:230: conflicting types for `Send.getPayload' /opt/tinyos-2.x/tos/interfaces/Send.nc:114: previous declaration of `Send.getPayload' /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: In function `Send.getPayload': /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:231: warning: passing argument 2 of `Packet.getPayload' makes pointer from integer without a cast /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: In function `deliverTask.runTask': /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:283: warning: passing argument 2 of `Packet.getPayload' makes pointer from integer without a cast /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: At top level: /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:48: `Receive.payloadLength' not implemented /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:48: `Receive.getPayload' not implemented In file included from /opt/tinyos-2.x/tos/chips/rf230/UniqueLayerC.nc:43, from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:77, from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:46, from BlinkToRadioAppC.nc:49: In component `UniqueLayerP': /opt/tinyos-2.x/tos/chips/rf230/UniqueLayerP.nc:80: conflicting types for `Send.getPayload' /opt/tinyos-2.x/tos/interfaces/Send.nc:114: previous declaration of `Send.getPayload' /opt/tinyos-2.x/tos/chips/rf230/UniqueLayerP.nc: In function `Send.getPayload': /opt/tinyos-2.x/tos/chips/rf230/UniqueLayerP.nc:81: too many arguments to function `SubSend.getPayload' make: *** [exe0] Error 1 _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
