I'm having some difficulties getting tinyos-1.x to work with imote2.

I exactly followed the instructions at http://www.eecs.harvard.edu/~konrad/projects/imote2Camera/IMote2-Installation-Instructions.html and after some fiddling with source files in beta/platform I got it to compile up to the point in the attached shell output (tos1build.txt). Patch file attached; to be run as `patch -p0 <tinyos-1.x_beta_platform.patch` from /opt/tinyos-1.x/beta/platform.

I have no modifications to $TOSDIR different than the cvs version.

Compiling Blink for another platform such as micaz of course works. Is there something I'm missing to get rid of these nesC errors at the end of the build output?

My environment particulars:
#uname -a
Linux xubuntu-tos 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

#xscale-elf-gcc -v
Reading specs from /usr/local/lib/gcc/xscale-elf/3.4.4/specs
Configured with: ../configure --target=xscale-elf --prefix=/usr/local --with-gnu-as --with-gnu-ld --enable-languages=c
Thread model: single
gcc version 3.4.4

Thank you.
make imote2
mkdir -p build/imote2
xscale-elf-as -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1 /opt/tinyos-1.x/tos/platform/pxa27x/../imote2/flash.s /opt/tinyos-1.x/tos/platform/pxa27x/../imote2/binarymover.s /opt/tinyos-1.x/tos/platform/pxa27x/barecrt.s /opt/tinyos-1.x/tos/platform/pxa27x/mmu_table.s /opt/tinyos-1.x/tos/platform/pxa27x/util.s -o build/imote2/asms.o
cd /opt/tinyos-1.x/tos/platform/pxa27x/lib; make;
make[1]: Entering directory `/opt/tinyos-1.x/beta/platform/pxa27x/lib'
xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/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/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/ -c -o downsample.o downsample.c xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/ -c -o frequency.o frequency.c xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/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/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/ -c -o profile.o profile.c xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/ -c -o queue.o queue.c xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/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/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/ -c -o utils.o utils.c xscale-elf-gcc -g -O2 -Wall -I/opt/tinyos-1.x/tos/platform/pxa27x -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/DSP -I/opt/tinyos-1.x/tos/platform/pxa27x/lib/ -c -o wmmx.o wmmx.c xscale-elf-ar -rvs libimote2.a bufferManagement.o downsample.o frequency.o paramtask.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 `/opt/tinyos-1.x/beta/platform/pxa27x/lib'
   compiling Blink to a imote2 binary
ncc -o build/imote2/main.exe -O1 -g -I/opt/tinyos-1.x/tos/lib/CC2420Radio -I/opt/tinyos-1.x/tos/lib/Flash -DAUTO_BATTERY_MONITORING=1 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=imote2 -fnesc-cfile=build/imote2/app.c -board= -DBOOTLOADER -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"ifreeman\" -DIDENT_HOSTNAME=\"xubuntu-tos\" -DIDENT_USER_HASH=0xb3e68d44L -DIDENT_UNIX_TIME=0x47fb40bdL -DIDENT_UID_HASH=0x8728271aL Blink.nc -lm build/imote2/asms.o /opt/tinyos-1.x/tos/platform/pxa27x/lib/libimote2.a
In file included from /opt/tinyos-1.x/tos/system/Main.nc:49,
                from Blink.nc:42:
In component `PotC':
/opt/tinyos-1.x/tos/system/PotC.nc:90: component HPLPotC not found
/opt/tinyos-1.x/tos/system/PotC.nc:93: no match
In file included from Blink.nc:42:
In component `Main':
/opt/tinyos-1.x/tos/system/Main.nc:49: component HPLInit not found
/opt/tinyos-1.x/tos/system/Main.nc:52: no match
In file included from /opt/tinyos-1.x/tos/system/TimerC.nc:57,
                from SingleTimer.nc:52,
                from Blink.nc:42:
In component `ClockC':
/opt/tinyos-1.x/tos/system/ClockC.nc:51: component HPLClock not found
/opt/tinyos-1.x/tos/system/ClockC.nc:53: no match
/opt/tinyos-1.x/tos/system/ClockC.nc:54: no match
In file included from SingleTimer.nc:52,
                from Blink.nc:42:
In component `TimerC':
/opt/tinyos-1.x/tos/system/TimerC.nc:57: component HPLPowerManagementM not found
/opt/tinyos-1.x/tos/system/TimerC.nc:61: no match
make: *** [exe0] Error 1

Attachment: tinyos-1.x_beta_platform.patch
Description: Binary data

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

Reply via email to