Hi, Janos, Thanks for your kind reply. Your suggestions are extremely helpful! I'm a newbie to both Linux and tinyos so I'm not sure what "do a CVS checkout from scratch" means. I simply deleted tinyos-2.x direcory and ran cvs command again. My local tinyos-2.x derectory was constructed by new files from the cvs sever. Then I tested other programs and they worked!
Regarding step1, actually at the beginning I also tried to use your method. However, when I installed the generated deb files, they always complained "trying to overwrite '/usr/bin/avr-as', which is also in package avr-binutils-tinyos". I had no choice but to use my method. Whatever, as you said, what I did also seems to a way of getting things working. Now I compiled an iris mote as a base station. when I ran *java net.tinyos.tools.Listen*, iris as a speed parameter was not accepted. What baud rate do I have to use? I tried 9600, 19200, 57600, and 115200 but none of them worked. Thanks again. ~Dan On 5/4/08, Janos Sallai <[EMAIL PROTECTED]> wrote: > Dan, > > The problem is with step 2, the CVS update. My guess is that your > tinyos-2.x tree didn't have the CVS metadata (the CVS directories), > that's why the update command did weird things. I suggest that you do a > CVS checkout from scratch. (You might want to back up the current tree, > though.) > > Regarding step 1: When I install .rpm packages in debian or ubuntu, I > always convert them to .deb with alien, then install the .deb packages > with dpkg -install. This way debian's package manager can handle the > dependencies. Other than that, what you did also seems to be a good way > of getting things working. > > Janos > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dan > Sent: Sunday, May 04, 2008 2:38 AM > To: [email protected] > Subject: [Tinyos-help] problems when updating tinyos2.0.2 to support > iris > > 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/in > stall-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 > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
