Installing BlinkTask on the Imote2

From Cyber-Physical Systems Laboratory
Revision as of 20:47, 24 January 2008 by Liangfok (talk | contribs) (New page: This page displays the output of a successful compilation and installation of BlinkTask, an application that periodically blinks the red LED. It is here to serve as a reference for what c...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page displays the output of a successful compilation and installation of BlinkTask, an application that periodically blinks the red LED. It is here to serve as a reference for what correct output should look like.

Administrator@washu-89a47446e /opt/tinyos-1.x/apps/BlinkTask
$ make imote2 debug
mkdir -p build/imote2
xscale-elf-as -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1 /opt/tinyos-1.x/to
s/platform/pxa27x/../imote2/flash.s /opt/tinyos-1.x/tos/platform/pxa27x/../imote
2/binarymover.s /opt/tinyos-1.x/tos/platform/pxa27x/barecrt.s /opt/tinyos-1.x/to
s/platform/pxa27x/mmu_table.s /opt/tinyos-1.x/tos/platform/pxa27x/util.s  -o bui
ld/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 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 `/opt/tinyos-1.x/beta/platform/pxa27x/lib'
    compiling BlinkTask to a imote2 binary
ncc -o build/imote2/main.exe -g -fnesc-no-inline -DCC2420_DEF_CHANNEL=22 -I/opt/
tinyos-1.x/tos/lib/CC2420Radio -I/opt/tinyos-1.x/tos/lib/Flash -DAUTO_BATTERY_MO
NITORING=1 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0xfd -Wnesc-all -target=imote2 -fne
sc-cfile=build/imote2/app.c -board= -DBOOTLOADER -DIDENT_PROGRAM_NAME=\"BlinkTas
k\" -DIDENT_USER_ID=\"Administrator\" -DIDENT_HOSTNAME=\"washu-89a47446e\" -DIDE
NT_USER_HASH=0x0aa55a4eL -DIDENT_UNIX_TIME=0x4798f8eaL -DIDENT_UID_HASH=0x9ca34f
73L BlinkTask.nc -lm  build/imote2/asms.o /opt/tinyos-1.x/tos/platform/pxa27x/li
b/libimote2.a
/opt/tinyos-1.x/tos/platform/pxa27x/PXA27XUSBClientM.nc:326: warning: `SendVarLe
nPacket.sendDone' called asynchronously from `USBInterrupt.fired'
/opt/tinyos-1.x/tos/platform/pxa27x/PXA27XUSBClientM.nc:328: warning: `SendJTPac
ket.sendDone' called asynchronously from `USBInterrupt.fired'
/opt/tinyos-1.x/tos/platform/pxa27x/PXA27XUSBClientM.nc:331: warning: `BareSendM
sg.sendDone' called asynchronously from `USBInterrupt.fired'
    compiled BlinkTask to build/imote2/main.exe
          161076 bytes in ROM
            7748 bytes in RAM
            9216 bytes in STACK
          245180 bytes available in HEAP
xscale-elf-objcopy --output-target=binary build/imote2/main.exe build/imote2/mai
n.bin.out
dwarf2bd -nc build/imote2/main.exe
make: dwarf2bd: Command not found
make: *** [bin] Error 127

Administrator@washu-89a47446e /opt/tinyos-1.x/apps/BlinkTask
$ !U
USBLoaderHost -p build/imote2/main.bin.out
Program Mode, File name = build/imote2/main.bin.out
File Size 161076
Device detected
Device detected
GET_IMAGE_DETAILS Received.
ImgSize=161076, Num Packets= 2641
Total Packets Uploaded = 0, 0.00% completed
Sending CRC Check command 23542
Total Packets Uploaded = 546, 20.00% completed
Sending CRC Check command 52936
Total Packets Uploaded = 1092, 41.00% completed
Sending CRC Check command 14447
Total Packets Uploaded = 1638, 62.00% completed
Sending CRC Check command 13902
Total Packets Uploaded = 2184, 82.00% completed
Sending CRC Check command 46460
Image Download Completed
CRC of the Image = 1309, Total Size = 161076
Time taken for Upload 8042 Milli Seconds
Image Verification Completed.
Loading Image to boot location and marking it as golden.
Time Elapsed till IMG_VERIFY 10884 Milli Seconds
Time Elapsed 16890 Milli Seconds
Successfully copied image to boot location.

Mapped Boot Image to golden. Booting New Image.

Overall Time Elapsed 19480 Milli Seconds