[Tinyos-help] Installing TinyDBApp on intelmote2 (imote2)
Rahul Iyer
rahulaiyer at gmail.com
Thu Dec 11 21:45:20 PST 2008
Ok!
It appears that the makefile has a setting SENSORBOARD which is set to
micasb. On changing it to imote2, it no longer uses the mica tools.
Progress!
But I still get plenty of warnings.
I am attaching the output of compilation, the makefile and the makerules
that I think it uses below. Any idea what to do?
COMPILATION OUTPUT:
________________________________________________________________________________
$ make imote2 debug
mkdir -p build/imote2
xscale-elf-as -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1
/cygdrive/c/tinyos
-1.x/tos/platform/pxa27x/../imote2/flash.s
/cygdrive/c/tinyos-1.x/tos/platform/p
xa27x/../imote2/binarymover.s
/cygdrive/c/tinyos-1.x/tos/platform/pxa27x/barecrt
.s /cygdrive/c/tinyos-1.x/tos/platform/pxa27x/mmu_table.s
/cygdrive/c/tinyos-1.x
/tos/platform/pxa27x/util.s -o build/imote2/asms.o
cd /cygdrive/c/tinyos-1.x/tos/platform/pxa27x/lib; make;
make[1]: Entering directory
`/cygdrive/c/tinyos-1.x/beta/platform/pxa27x/lib'
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o bufferManagement.o bufferManagement.c
In file included from bufferManagement.c:2:
assert.h:8: warning: `C' attribute directive ignored
In file included from bufferManagement.c:4:
systemUtil.h:28: warning: `C' attribute directive ignored
systemUtil.h:28: warning: `spontaneous' attribute directive ignored
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o downsample.o downsample.c
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o frequency.o frequency.c
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o paramtask.o paramtask.c
In file included from paramtask.c:4:
systemUtil.h:28: warning: `C' attribute directive ignored
systemUtil.h:28: warning: `spontaneous' attribute directive ignored
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o profile.o profile.c
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o queue.o queue.c
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o systemUtil.o systemUtil.c
In file included from systemUtil.c:2:
systemUtil.h:28: warning: `C' attribute directive ignored
systemUtil.h:28: warning: `spontaneous' attribute directive ignored
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o utils.o utils.c
xscale-elf-gcc -g -O2 -Wall -I/cygdrive/c/tinyos-1.x/tos/platform/pxa27x
-I/cygd
rive/c/tinyos-1.x/tos/platform/pxa27x/lib/DSP
-I/cygdrive/c/tinyos-1.x/tos/platf
orm/pxa27x/lib/ -c -o wmmx.o wmmx.c
xscale-elf-ar -rvs libimote2.a bufferManagement.o downsample.o frequency.o
para
mtask.o profile.o queue.o systemUtil.o utils.o wmmx.o
r - bufferManagement.o
r - downsample.o
r - frequency.o
r - paramtask.o
r - profile.o
r - queue.o
r - systemUtil.o
r - utils.o
r - wmmx.o
make[1]: Leaving directory `/cygdrive/c/tinyos-1.x/beta/platform/pxa27x/lib'
compiling TinyDBApp to a imote2 binary
ncc -o build/imote2/main.exe -g -fnesc-no-inline -I %T/lib/Util
-I%T/lib/Attribu
tes -I%T/lib/Commands -I%T/lib/TinyDB -I%T/lib/MintRoute -I%T/lib/Queue
-I%T/li
b/FS -I%T/lib/TinyDB/Aggregates -fno-strict-aliasing
-I/cygdrive/c/tinyos-1.x/to
s/lib/CC2420Radio -I/cygdrive/c/tinyos-1.x/tos/lib/Flash
-DAUTO_BATTERY_MONITORI
NG=1 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=imote2
-fnesc-cfi
le=build/imote2/app.c -board=imote2 -DTOSH_DATA_LENGTH=49 -DBOOTLOADER
-DIDENT_P
ROGRAM_NAME=\"TinyDBApp\" -DIDENT_USER_ID=\"windows\"
-DIDENT_HOSTNAME=\"acomput
ername\" -DIDENT_USER_HASH=0x0ed9aaeaL -DIDENT_UNIX_TIME=0x4941f869L
-DIDENT_UID
_HASH=0x85f1c7deL TinyDBApp.nc -lm build/imote2/asms.o
/cygdrive/c/tinyos-1.x/t
os/platform/pxa27x/lib/libimote2.a
c:/tinyos-1.x/beta/platform/imote2/BufferedSTUARTM.nc:21:1: warning:
"NUMBUFFERS
" redefined
In file included from <command line>:22:
C:/cygwin/tmp/nesccppm2qeRLNX:2482:1: warning: this is the location of the
previ
ous definition
c:/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc: In function
`RadioQueue.enqueue':
c:/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3747: implicit declaration of
funct
ion `wdt_enable'
c:/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3747: `WDTO_15MS' undeclared
(first
use in this function)
c:/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3747: (Each undeclared
identifier i
s reported only once
c:/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3747: for each function it
appears
in.)
c:/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc: In function `signalError':
c:/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3788: implicit declaration of
funct
ion `itoa'
c:/tinyos-1.x/tos/system/VoltageC.nc: At top level:
c:/tinyos-1.x/tos/system/VoltageC.nc:34: C file Voltage not found
c:/tinyos-1.x/tos/system/VoltageC.nc:51: `TOS_ADC_VOLTAGE_PORT' undeclared
here
(not in a function)
c:/tinyos-1.x/tos/system/ADCM.nc: In function `HPLADC.dataReady':
c:/tinyos-1.x/tos/system/ADCM.nc:112: `TOSH_ADC_PORTMAPSIZE' undeclared
(first u
se in this function)
c:/tinyos-1.x/tos/system/ADCM.nc: In function `startGet':
c:/tinyos-1.x/tos/system/ADCM.nc:136: `TOSH_ADC_PORTMAPSIZE' undeclared
(first u
se in this function)
c:/tinyos-1.x/tos/system/ADCC.nc: At top level:
c:/tinyos-1.x/tos/system/ADCC.nc:54: component HPLADCC not found
c:/tinyos-1.x/tos/system/ADCC.nc:58: no match
c:/tinyos-1.x/tos/system/VoltageC.nc:45: component VoltageM not found
c:/tinyos-1.x/tos/system/VoltageC.nc:47: no match
c:/tinyos-1.x/tos/system/VoltageC.nc:49: no match
c:/tinyos-1.x/tos/system/VoltageC.nc:51: constant expression expected
c:/tinyos-1.x/tos/system/VoltageC.nc:51: cannot find `ADC'
c:/tinyos-1.x/tos/system/VoltageC.nc:52: cannot find `ADCControl'
make: *** [exe0] Error 1
________________________________________________________________________________
Makefile:
COMPONENT=TinyDBApp
SENSORBOARD=imote2
PFLAGS=-I %T/lib/Util -I%T/lib/Attributes -I%T/lib/Commands -I%T/lib/TinyDB
-I%T
/lib/MintRoute -I%T/lib/Queue -I%T/lib/FS -I%T/lib/TinyDB/Aggregates
-fno-stric
t-aliasing
MSG_SIZE=49
include ../Makerules
_________________________________________________________________________________
Makerules
(I have attached it as a file)
_________________________________________________________________________________
Message: 7
Date: Thu, 11 Dec 2008 22:20:55 -0500
From: Rahul Iyer <rahulaiyer at gmail.com>
Subject: [Tinyos-help] TinyDB setup trouble on IntelMote2
To: tinyos-help at millennium.berkeley.edu
Message-ID: <EBBA54A0-B845-4095-BD51-116111E66253 at gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Hi,
I've got the TinyOS Blink App to compile on Intel Imote2 - so I know
TinyOS has been setup properly. But I can't get TinyDBApp to compile.
Furthermore, there isn't much documentation about this - most
documentation deals with Mica motes. When compiling the TinyDB app for
the intelmote, the included make file appears to use the Mica
compilers for some reason. I haven't had much experience with nesC or
TinyOS, so I'm not sure what's going on in the background, or how to
port it to the intelmotes. Any suggestions? Thanks.
Sincerely,
Rahul
------------------------------
_______________________________________________
Tinyos-help mailing list
Tinyos-help at millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
End of Tinyos-help Digest, Vol 68, Issue 28
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081212/d9c1e6f1/attachment-0001.htm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makerules
Url: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081212/d9c1e6f1/attachment-0001.txt
More information about the Tinyos-help
mailing list