Installing Blink on the Imote2 (TinyOS 2.x)

From Cyber-Physical Systems Laboratory
Revision as of 03:36, 25 August 2009 by Liangfok (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The following is the output of a successful installation of Blink using TinyOS 2.x on an IntelMote2. Note that when the USBLoaderHost is executed, you need to reset the mote to get it to be detected. Sometimes, you need to reset it twice before the program will be downloaded into the mote.

$ make intelmote2 debug install bootloader
/opt/tinyos-2.x-contrib/intelmote2/support/make/bootloader.extra:14: warning: ov
erriding commands for target `program'
/opt/tinyos-2.x/support/make/pxa27x/jflashmm.extra:13: warning: ignoring old com
mands for target `program'
/opt/tinyos-2.x-contrib/intelmote2/support/make/bootloader.extra:18: warning: ov
erriding commands for target `program_input'
/opt/tinyos-2.x/support/make/pxa27x/jflashmm.extra:18: warning: ignoring old com
mands for target `program_input'
/opt/tinyos-2.x-contrib/intelmote2/support/make/intelmote2.extra:41: warning: ov
erriding commands for target `bytes'
/opt/tinyos-2.x/support/make/pxa27x/pxa27x.rules:102: warning: ignoring old comm
ands for target `bytes'
mkdir -p build/intelmote2
echo  -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1  /opt/tinyos-2.x-contrib/i
ntelmote2/tos/platforms/intelmote2/toscrt0.s /opt/tinyos-2.x-contrib/intelmote2/
tos/chips/pxa27x/pxa27x_util.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa2
7x/mmu_table.s -o build/intelmote2/asms.o
-mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1 /opt/tinyos-2.x-contrib/intelmot
e2/tos/platforms/intelmote2/toscrt0.s /opt/tinyos-2.x-contrib/intelmote2/tos/chi
ps/pxa27x/pxa27x_util.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/mmu_
table.s -o build/intelmote2/asms.o
    compiling BlinkAppC to a intelmote2 binary
ncc -o build/intelmote2/main.exe -g -fnesc-no-inline -I/opt/tinyos-2.x-contrib/i
ntelmote2/tos/platforms/intelmote2/chips/da9030 -I/opt/tinyos-2.x-contrib/intelm
ote2/tos/platforms/intelmote2 -I/opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa
27x -I/opt/tinyos-2.x-contrib/intelmote2/tos/sensorboards/im2cb -I/opt/tinyos-2.
x-contrib/intelmote2/tos/sensorboards/xbow_cb -I/opt/tinyos-2.x-contrib/intelmot
e2/tos/platforms/intelmote2/chips/da9030 -I/opt/tinyos-2.x-contrib/intelmote2/to
s/platforms/intelmote2 -I/opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x -I/
opt/tinyos-2.x-contrib/intelmote2/tos/chips/ov7649 -I/opt/tinyos-2.x-contrib/int
elmote2/tos/chips/ov7670 -Wall -Wshadow -Wnesc-all -target=intelmote2 -fnesc-cfi
le=build/intelmote2/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 -DBOOTLOADER -T/op
t/tinyos-2.x-contrib/intelmote2/tos/platforms/intelmote2/tos.x -DSYSTEM_CORE_FRE
QUENCY=13 -DSYSTEM_BUS_FREQUENCY=13  BlinkAppC.nc -lm  /opt/tinyos-2.x-contrib/i
ntelmote2/tos/platforms/intelmote2/toscrt0.s /opt/tinyos-2.x-contrib/intelmote2/
tos/chips/pxa27x/pxa27x_util.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa2
7x/mmu_table.s
    compiled BlinkAppC to build/intelmote2/main.exe
           49756 bytes in ROM
             230 bytes in RAM
            9216 bytes in STACK
          252698 bytes available in HEAP
xscale-elf-objcopy --output-target=binary build/intelmote2/main.exe build/intelm
ote2/main.bin.out
    installing intelmote2 binary using the USB boot loader
/opt/tinyos-2.x-contrib/intelmote2/tools/platforms/intelmote2/bootloader//USBLoa
derHost.exe -p build/intelmote2/main.bin.out
Program Mode, File name = build/intelmote2/main.bin.out
File Size 49756
Device detected
Device detected
GET_IMAGE_DETAILS Received.
ImgSize=49756, Num Packets= 816
Total Packets Uploaded = 0, 0.00% completed
Sending CRC Check command 46326
Total Packets Uploaded = 546, 66.00% completed
Sending CRC Check command 58917
Image Download Completed
CRC of the Image = 57561, Total Size = 49756
Time taken for Upload 3674 Milli Seconds
Image Verification Completed.
Loading Image to boot location and marking it as golden.
Time Elapsed till IMG_VERIFY 6252 Milli Seconds
Time Elapsed 8815 Milli Seconds
Successfully copied image to boot location.

Mapped Boot Image to golden. Booting New Image.

Overall Time Elapsed 11299 Milli Seconds