Fwd: [Tinyos Core WG] 2.0.2 release plans

Philip Levis pal at cs.stanford.edu
Wed Jul 18 17:03:55 PDT 2007


On Sat, 2007-07-14 at 01:08 -0400, Razvan Musaloiu-E. wrote:
> Hi!
> 
> On Fri, 13 Jul 2007, Jonathan Hui wrote:
> 
> >
> > Attached is a micaz image that works for me and a telosb image that does not 
> > work for me.
> 
> Both images are wrong because the <image>...</image> doesn't contain an 
> ihex but and exe. Are you using a different tos-write-image? The one from 
> CVS [1] is generating only ihex and not exe.
> 
> [1] http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x/tools/tinyos/misc/tos-write-image.in?revision=1.5&view=markup

Testing deluge on the micaz:

I had to install the pyserial package. It would be good if the tests
checked if you have it. The instructions should tell you to build
tosboot first:

***********************

Fuse Extended Byte set to 0xff
rm -f build/micaz/main.exe.out build/micaz/main.srec.out
    installing micaz bootloader using mib510
uisp -dprog=mib510 -dserial=/dev/ttyS0 --wr_fuse_h=0xda -dpart=ATmega128
--wr_fuse_e=ff  --upload
if=/home/pal/src/tinyos-2.x/tos/lib/tosboot/build/micaz/main.ihex
Firmware Version: 2.1
Atmel AVR ATmega128 is found.
Error: No such file or directory
 -> /home/pal/src/tinyos-2.x/tos/lib/tosboot/build/micaz/main.ihex
make: *** [program_bl] Error 1

***********************

If you don't have it, it stops mysteriously at the second step:

***********************

Pinging node ...
Connected to Deluge nodes.
WARNING: Invalid image format detected
--------------------------------------------------
Ihex read complete:
  Total bytes = 30510
  Sections = 1
Traceback (most recent call last):
  File "../../../../tools/tinyos/misc/tos-build-deluge-image", line 193,
in ?
    all_data = deluge_ident() + all_data
  File "../../../../tools/tinyos/misc/tos-build-deluge-image", line 98,
in deluge_ident
    tmp = sencode(ident['program_name'], 16) + \
KeyError: 'platform'


********************

So I built tosboot and got past this. The "invalid image format" warning
continued, however. The first time I ran the script, it stopped after
downloading about 80% of the image. The second time, it worked.

Running burn-net, the output messages could be a little clearer.
Specifically, the one that says to proceed when the green light stops
blinking. It turns out my radio was broken, so I never saw it start
blinking! A message in the "Hit ENTER to start dissemination" saying
that the green LED will blink would be helpful.

Other than that, looks great!

Phil









More information about the Tinyos-2.0wg mailing list