Janos, thank you!

It was my lack of knowledge. I've renamed volumes-stm25p.xml to 
volumes-at45db.xml that seems to be used by IRIS and MicaZ.
It is successfully compiled (with some warnings).

Andrey



Janos Sallai wrote:
> Andrey,
> 
> The error message says that you're missing the StorageVolumes.h file.
> This file is typically generated automatically with the
> tos-storage-at45db chip. Do you have a corresponding target in the
> makefile?
> 
> Janos
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andrey
> Gursky
> Sent: Wednesday, June 25, 2008 2:22 PM
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Subject: Re: [Tinyos-help] Help with Tymo and IRIS Motes
> 
> Hi!
> 
> I have the same IRIS platform (and also MicaZ). On Linux I have the 
> latest nesC from Ubuntu repository and the latest CVS tinyos-2.x.
> There are only few minor errors when I compile TestTymo either for IRIS 
> or for MicaZ. It is still possible to compile and use TestTymo for 
> TOSSIM. I can assume there were some changes in storage handling that 
> Tymo don't know yet about.
> Maybe someone knows more?
> 
> Andrey
> 
> -------------------------------------
> 
> [EMAIL PROTECTED]:~/tinyos-2.x/apps/tests/TestTymo$ LANG=C make iris
> mkdir -p build/iris
>      compiling TestC to a iris binary
> ncc -o build/iris/main.exe  -Os -I../../../tos/lib/net/tymo 
> -I../../../tos/lib/net/tymo/dymo -I../../../tos/lib/net/tymo/mh -Wall 
> -Wshadow -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c 
> -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param 
> max-inline-insns-single=100000 -DIDENT_APPNAME=\"TestC\" 
> -DIDENT_USERNAME=\"andrey\" -DIDENT_HOSTNAME=\"andreypc\" 
> -DIDENT_USERHASH=0xc41c3936L -DIDENT_TIMESTAMP=0x486285f5L 
> -DIDENT_UIDHASH=0x87bb2cabL -fnesc-dump=wiring 
> -fnesc-dump='interfaces(!abstract())' 
> -fnesc-dump='referenced(interfacedefs, components)' 
> -fnesc-dumpfile=build/iris/wiring-check.xml TestC.nc -lm
> ../../../tos/lib/net/tymo/dymo/DymoServiceC.nc:6:28: error: 
> StorageVolumes.h: No such file or directory
> In file included from ../../../tos/lib/net/tymo/dymo/DymoServiceC.nc:34,
>                   from
> ../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
>                   from TestC.nc:11:
> In component `DymoEngineM':
> ../../../tos/lib/net/tymo/dymo/DymoEngineM.nc: In function
> `incr_seqnum':
> ../../../tos/lib/net/tymo/dymo/DymoEngineM.nc:83: warning: decimal 
> constant is so large that it is unsigned
> In file included from ../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
>                   from TestC.nc:11:
> In component `DymoServiceC':
> ../../../tos/lib/net/tymo/dymo/DymoServiceC.nc: At top level:
> ../../../tos/lib/net/tymo/dymo/DymoServiceC.nc:35: `VOLUME_DYMODATA' 
> undeclared here (not in a function)
> /home/andrey/tinyos-2.x/tos/chips/at45db/At45dbStorageManagerC.nc:25:28:
> 
> error: StorageVolumes.h: No such file or directory
> make: *** [exe0] Error 1
> [EMAIL PROTECTED]:~/tinyos-2.x/apps/tests/TestTymo$
> 
> ---------------------------------
> 
> 
> 
> [EMAIL PROTECTED] wrote:
>> Hello everyone,
>>
>> I am using MIB520 with IRIS Motes and everything is working fine for
> now.
>> But I wanted to implement a multi-hop routing protocol in my network,
>> and Tymo seemed to be the easiest one to use.
>>
>> After downloading the rep with SVN, I copied the content of tymo/src
> folder
>> (apps, tos, Makefile) to my TinyOS folder (c:/cygwin/opt/tinyos-2.x).
>>
>> When I try to compile something (MHBaseStation for example), it prints
> lots of
>> errors :
>>
>> --------------------------------------------------------------
>> [EMAIL PROTECTED] /opt/tinyos-2.x/apps/MHBaseStation
>> $ make iris
>> mkdir -p build/iris
>>     compiling TymaBaseAppC to a iris binary
>> ncc -o build/iris/main.exe  -Os -I../../tos/lib/net/dymo
> -I../../tos/lib/net/mul
>> tihop -I../tymaluate/monitor/ -I../tymaluate/sense/ -Wall -Wshadow
> -Wnesc-all -t
>> arget=iris -fnesc-cfile=build/iris/app.c -board=micasb
> -DDEFINED_TOS_AM_GROUP=0x
>> 22 -finline-limit=100000 -DIDENT_PROGRAM_NAME=\"TymaBaseAppC\"
> -DIDENT_USER_ID=\
>> "raphael\" -DIDENT_HOSTNAME=\"salina\" -DIDENT_USER_HASH=0x0b0e3da7L
> -DIDENT_UNI
>> X_TIME=0x485f5808L -DIDENT_UID_HASH=0xbacafa79L -fnesc-dump=wiring
> -fnesc-dump='
>> interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
> components)' -fn
>> esc-dumpfile=build/iris/wiring-check.xml TymaBaseAppC.nc -lm
>> In file included from MonitorC.nc:1,
>>                  from TymaBaseAppC.nc:11:
>> ../tymaluate/monitor/monitoring.h:5: syntax error before `<'
>> ../tymaluate/monitor/monitoring.h:279: malformed floating constant
>> In file included from TymaBaseAppC.nc:11:
>> MonitorC.nc:8: syntax error before `->'
>> MonitorC.nc:9: syntax error before `->'
>> MonitorC.nc:10: syntax error before `->'
>> MonitorC.nc:11: syntax error before `->'
>> MonitorC.nc:12: syntax error before `->'
>> MonitorC.nc:18: syntax error before `->'
>> MonitorC.nc:19: syntax error before `->'
>> MonitorC.nc:20: syntax error before `->'
>> MonitorC.nc:22: syntax error before `->'
>> In file included from ../../tos/lib/net/multihop/MHServiceC.nc:33,
>>                  from ../../tos/lib/net/dymo/DymoNetworkC.nc:38,
>>                  from BaseStationC.nc:72,
>>                  from TymaBaseAppC.nc:13:
>> In component `MHPacketM':
>> ../../tos/lib/net/multihop/MHPacketM.nc:38: conflicting types for
> `Packet.getPay
>> load'
>> /opt/tinyos-2.x/tos/interfaces/Packet.nc:115: previous declaration of
> `Packet.ge
>> tPayload'
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `Packet.getPayload':
>> ../../tos/lib/net/multihop/MHPacketM.nc:39: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `Packet.payloadLength':
>> ../../tos/lib/net/multihop/MHPacketM.nc:50: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `Packet.setPayloadLength':
>> ../../tos/lib/net/multihop/MHPacketM.nc:54: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `MHPacket.destination':
>> ../../tos/lib/net/multihop/MHPacketM.nc:68: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `MHPacket.isForMe':
>> ../../tos/lib/net/multihop/MHPacketM.nc:72: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc:72: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `MHPacket.setDestination':
>> ../../tos/lib/net/multihop/MHPacketM.nc:76: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `MHPacket.setSource':
>> ../../tos/lib/net/multihop/MHPacketM.nc:80: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `MHPacket.setType':
>> ../../tos/lib/net/multihop/MHPacketM.nc:84: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function
> `MHPacket.source':
>> ../../tos/lib/net/multihop/MHPacketM.nc:89: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: In function `MHPacket.type':
>> ../../tos/lib/net/multihop/MHPacketM.nc:93: warning: passing argument
> 2 of `SubP
>> acket.getPayload' makes integer from pointer without a cast
>> ../../tos/lib/net/multihop/MHPacketM.nc: At top level:
>> ../../tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.group' not
> implemented
>> ../../tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.setGroup' not
> implemented
>> ../../tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.localGroup' not
> implemente
>> d
>> In file included from ../../tos/lib/net/multihop/MHServiceC.nc:34,
>>                  from ../../tos/lib/net/dymo/DymoNetworkC.nc:38,
>>                  from BaseStationC.nc:72,
>>                  from TymaBaseAppC.nc:13:
>> In component `ForwardingEngineM':
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function
> `AMSend.send':
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:62: interface has no
> command or
>> event named `payloadLength'
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:73: interface has no
> command or
>> event named `payloadLength'
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function
> `SubReceive.receive
>> ':
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:96: warning: passing
> argument 2
>> of `PPacket.getPayload' makes integer from pointer without a cast
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:102: warning: passing
> argument 2
>>  of `PPacket.getPayload' makes integer from pointer without a cast
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function
> `Timer.fired':
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:157: warning: passing
> argument 2
>>  of `PPacket.getPayload' makes integer from pointer without a cast
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: At top level:
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:200: conflicting types
> for `AMSe
>> nd.getPayload'
>> /opt/tinyos-2.x/tos/interfaces/AMSend.nc:124: previous declaration of
> `AMSend.ge
>> tPayload'
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function
> `AMSend.getPayload'
>> :
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:201: warning: passing
> argument 2
>>  of `PPacket.getPayload' makes integer from pointer without a cast
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: At top level:
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:208: `getPayload' is
> not in inte
>> rface `Receive'
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function
> `Receive.getPayload
>> ':
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:209: warning: passing
> argument 2
>>  of `PPacket.getPayload' makes integer from pointer without a cast
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: At top level:
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:212: `payloadLength'
> is not in i
>> nterface `Receive'
>> /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:225: conflicting types
> for `Inte
>> rcept.forward'
>> /opt/tinyos-2.x/tos/interfaces/Intercept.nc:31: previous declaration
> of `Interce
>> pt.forward'
>> ../../tos/lib/net/dymo/DymoServiceC.nc:6:28: StorageVolumes.h: No such
> file or d
>> irectory
>> In file included from BaseStationC.nc:72,
>>                  from TymaBaseAppC.nc:13:
>> In component `DymoNetworkC':
>> ../../tos/lib/net/dymo/DymoNetworkC.nc:38: failed to preprocess
> ../../tos/lib/ne
>> t/dymo/DymoServiceC.nc
>> In file included from ../../tos/lib/net/dymo/DymoNetworkC.nc:40,
>>                  from BaseStationC.nc:72,
>>                  from TymaBaseAppC.nc:13:
>> In component `LoopBackM':
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc: In function `AMSend.send':
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:38: warning: passing argument
> 2 of `Pack
>> et.getPayload' makes integer from pointer without a cast
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc: At top level:
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:54: conflicting types for
> `AMSend.getPay
>> load'
>> /opt/tinyos-2.x/tos/interfaces/AMSend.nc:124: previous declaration of
> `AMSend.ge
>> tPayload'
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc: In function
> `AMSend.getPayload':
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:55: too few arguments to
> function
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc: At top level:
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:67: `getPayload' is not in
> interface `Re
>> ceive'
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc: In function
> `Receive.getPayload':
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:68: interface has no command
> or event na
>> med `getPayload'
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:68: subscripted value is
> neither array n
>> or pointer
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc: At top level:
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:71: `payloadLength' is not in
> interface
>> `Receive'
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc: In function
> `Receive.payloadLength':
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:72: interface has no command
> or event na
>> med `payloadLength'
>> /opt/tinyos-2.x/tos/system/LoopBackM.nc:72: subscripted value is
> neither array n
>> or pointer
>> In component `DymoNetworkC':
>> ../../tos/lib/net/dymo/DymoNetworkC.nc: At top level:
>> ../../tos/lib/net/dymo/DymoNetworkC.nc:69: cannot find `AMPacket'
>> ../../tos/lib/net/dymo/DymoNetworkC.nc:70: cannot find `Packet'
>> ../../tos/lib/net/dymo/DymoNetworkC.nc:71: cannot find `AMSend'
>> ../../tos/lib/net/dymo/DymoNetworkC.nc:72: cannot find `Receive'
>> ../../tos/lib/net/dymo/DymoNetworkC.nc:79: cannot find `SplitControl'
>> ../../tos/lib/net/dymo/DymoNetworkC.nc:83: cannot find `DymoMonitor'
>> In file included from ConverterM.nc:1,
>>                  from BaseStationC.nc:73,
>>                  from TymaBaseAppC.nc:13:
>> In C file:
>> ../tymaluate/monitor/monitoring.h:5: syntax error before `<'
>> ../tymaluate/monitor/monitoring.h:279: malformed floating constant
>> In file included from ConverterM.nc:2,
>>                  from BaseStationC.nc:73,
>>                  from TymaBaseAppC.nc:13:
>> ../tymaluate/sense/sensing.h:134: numeric constant contains digits
> beyond the ra
>> dix
>> ../tymaluate/sense/sensing.h:279: malformed floating constant
>> In file included from BaseStationC.nc:73,
>>                  from TymaBaseAppC.nc:13:
>> In interface `Receive':
>> ConverterM.nc:7: syntax error before `['
>> In file included from TymaBaseAppC.nc:13:
>> In component `BaseStationC':
>> BaseStationC.nc:88: `AM_MONITOR_MSG' undeclared here (not in a
> function)
>> BaseStationC.nc:89: `AM_SENSING_MSG' undeclared here (not in a
> function)
>> BaseStationC.nc:85: cannot find `AMSend'
>> BaseStationC.nc:86: cannot find `Receive'
>> BaseStationC.nc:87: cannot find `SubSend'
>> BaseStationC.nc:88: cannot find `MonitorReceive'
>> BaseStationC.nc:89: cannot find `SensorReceive'
>> BaseStationC.nc:90: cannot find `AMPacket'
>> make: *** [exe0] Error 1
>> -----------------------------------------------------------------
>>
>> Did I do something wrong concerning the install of Tymo ? Or is there
>> incompatibility with IRIS ? Or something else ?
>>
>> Any help would be greatly appreciated.
>> Thanks,
>>
>> Raphael
>>
>>
>> _______________________________________________
>> 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
> 
> 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to