Hi!

I was able to replicate the problem (subprocess works a little different in Mac) and I committed a fix in the git tree. If you did a clone from the deluge git repository you should be able to get simply doing a "git pull".

Please let me know how it goes. :-)
Razvan ME

On Mon, 10 Mar 2008, unauna abiabi wrote:

Hi!


I get the file from http://hinrg.cs.jhu.edu/git/deluge/tinyos-2.x.git and
replace the old tinyos-2.x
with the one downloaded.

I installed the deluge/Blink application on the node (simple: make telosb
install) and executing
tos-deluge give this result:
*
tiny2 >> /opt/tinyos-2.x/tools/tinyos/misc/tos-deluge
/dev/tty.usbserial-XBQABZ6I telosb -p 1
Pinging node ...
--------------------------------------------------
Currently Executing:
Traceback (most recent call last):
 File "/opt/tinyos-2.x/tools/tinyos/misc/tos-deluge", line 416, in <module>
   ping(imgNum)
 File "/opt/tinyos-2.x/tools/tinyos/misc/tos-deluge", line 326, in ping
   print formatShortIdent(ident())
 File "/opt/tinyos-2.x/tools/tinyos/misc/tos-deluge", line 270, in
formatShortIdent
   r  = "  Prog Name:   %s\n" % (i.appname)
AttributeError: 'int' object has no attribute 'appname'

*When I try to execute *./burn /dev/tty.usbserial-XBQABZ6I telosb *it
continue
to get blocked on the part:
*Create image: /opt/local/bin/tos-build-deluge-image -i 1
build/telosb/tos_image.xml

*Trying to execute:*
/opt/tinyos-2.x/tools/tinyos/misc/tos-build-deluge-image
build/telosb/tos_image.xml >> tos_build_result.txt**

Ihex read complete:
 36626 bytes starting at 0x4A00
    32 bytes starting at 0xFFE0
 36658 bytes in 2 sections
CRCs:
 0xD6DA 0x9C81 0x937B 0x350C 0x5D36 0xB1DA 0x80C1
 0xC13E 0x3C98 0x04E7 0xF663 0x29DF 0x3196 0x3097
 0x3CE4 0xBAA2 0x05FA 0x1E60 0xBCC3 0x5431 0xB973
 0x57C0 0xFFC8 0x719D 0x67C9 0x858C 0xC2D9 0x92AA
 0xE6A0 0x1949 0x5ECE 0x1D06 0xE35F 0x3F7A
*
plus the trash in file *tos_build_result.txt*..
Maybe the script doesn't work on mac, what other can I say??




On Sun, Mar 9, 2008 at 10:37 PM, Razvan Musaloiu-E. <[EMAIL PROTECTED]>
wrote:

Hi!

On Sun, 9 Mar 2008, unauna abiabi wrote:

---------- Forwarded message ----------
From: unauna abiabi <[EMAIL PROTECTED]>
Date: Sun, Mar 9, 2008 at 5:54 PM
Subject: Re: [Tinyos-help] problem with Deluge T2
To: "Razvan Musaloiu-E." <[EMAIL PROTECTED]>





The repository is also accessible using http. Try this:
       git clone http://hinrg.cs.jhu.edu/git/deluge/tinyos-2.x.git


Sorry, have I to execute git in tinyos-2.x directory and it will update
all the necessary file or have I to download all and then replace the
file in tinyos-2.x with those downloaded with git??

The command is similar with "cvs co" so executing it in ~/local/src it
will create ~/local/src/tinyos-2.x.

--
Razvan ME

On Thu, Mar 6, 2008 at 7:05 PM, Razvan Musaloiu-E. <[EMAIL PROTECTED]

wrote:

Hi!

On Thu, 6 Mar 2008, unauna abiabi wrote:

On Thu, Mar 6, 2008 at 12:35 PM, unauna abiabi <[EMAIL PROTECTED]>
wrote:

Hi,

I resolved the problem of sha1sum doing a link to the md5
and retried to do execute the burn script

and the result is this::


eni-enis-computer:/opt/tinyos-2.x/apps/tests/deluge/Blink enieni$
./burn
/dev/tty.usbserial-XBQABZ6I telosb
rm -rf build
rm -rf _TOSSIMmodule.so TOSSIM.pyc TOSSIM.py
============================ Compile and load Blink
============================
mkdir -p build/telosb
tos-storage-stm25p /opt/tinyos-2.x/tos/platforms/telosb <
volumes-stm25p.xml >build/telosb/StorageVolumes.h || rm -f
build/telosb/StorageVolumes.h
    compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -Wall -Wshadow
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb -DDELUGE_BASESTATION
-DDELUGE_BASESTATION -DDELUGE -I/opt/tinyos-2.x/tos/lib/net
-I/opt/tinyos-
2.x/tos/lib/net/drip -I/opt/tinyos-2.x/tos/lib/net/Deluge
-I/opt/tinyos-
2.x/tos/lib/net/Deluge/FlashVolumeManager -I/opt/tinyos-2.x
/tos/lib/net/Deluge/BlockStorageManager
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra -I/opt/tinyos-2.x
/tos/lib/net/Deluge/extra/msp430
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/telos -I/opt/tinyos-2.x
/tos/lib/net/Deluge/extra/telosb
-Wl,--section-start=.text=0x4a00,--defsym=_reset_vector__=0x4000
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"enieni\"
-DIDENT_HOSTNAME=\"eni-enis-comput\" -DIDENT_USERHASH=0x04fea1acL
-DIDENT_TIMESTAMP=0x47cfd48eL -DIDENT_UIDHASH=0x5b86b682L
BlinkAppC.nc-lm
    compiled BlinkAppC to build/telosb/main.exe
           32728 bytes in ROM
            1249 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe
build/telosb/main.ihex
    writing TOS image
cp build/telosb/main.ihex build/telosb/main.ihex.out
    installing telosb bootloader using bsl
tos-bsl --telosb -c /dev/tty.usbserial-XBQABZ6I -r -e -I -p
/opt/tinyos-
2.x/tos/lib/tosboot/build/telosb/main.ihex
MSP430 Bootstrap Loader Version: 1.39-telos-8
Mass Erase...
Transmit default password ...
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 1.61 (Device ID: f16c)
Changing baudrate to 38400 ...
Program ...
2112 bytes programmed.
Reset device ...
    installing telosb binary using bsl (without mass erase)
tos-bsl --telosb -c /dev/tty.usbserial-XBQABZ6I -r -I -p
build/telosb/main.ihex.out
MSP430 Bootstrap Loader Version: 1.39-telos-8
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 1.61 (Device ID: f16c)
Changing baudrate to 38400 ...
Program ...
32760 bytes programmed.
Reset device ...
rm -f build/telosb/main.exe.out build/telosb/main.ihex.out

 +-------------------------------------------------------+
           |
|
           | At this point the first led (red) should be blinking.
|
           |
|
           |               Press ENTER to continue...
 |
           |
|

 +-------------------------------------------------------+

============================= Compile a new Blink
==============================
mkdir -p build/telosb
    compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -Wall -Wshadow
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb -DBLINK_REVERSE
-DDELUGE_BASESTATION -DDELUGE_BASESTATION -DDELUGE -I/opt/tinyos-
2.x
/tos/lib/net
-I/opt/tinyos-2.x/tos/lib/net/drip -I/opt/tinyos-2.x
/tos/lib/net/Deluge
-I/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
-I/opt/tinyos-
2.x/tos/lib/net/Deluge/BlockStorageManager
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra -I/opt/tinyos-2.x
/tos/lib/net/Deluge/extra/msp430
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/telos -I/opt/tinyos-2.x
/tos/lib/net/Deluge/extra/telosb
-Wl,--section-start=.text=0x4a00,--defsym=_reset_vector__=0x4000
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"enieni\"
-DIDENT_HOSTNAME=\"eni-enis-comput\" -DIDENT_USERHASH=0x04fea1acL
-DIDENT_TIMESTAMP=0x47cfd4d0L -DIDENT_UIDHASH=0x36649339L
BlinkAppC.nc-lm
    compiled BlinkAppC to build/telosb/main.exe
           32728 bytes in ROM
            1249 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe
build/telosb/main.ihex
    writing TOS image
=============================== Upload the image
===============================
Pinging node ...
Connected to Deluge nodes.
No valid image was detected.
--------------------------------------------------
Create image: /opt/local/bin/tos-build-deluge-image -i 1
build/telosb/tos_image.xml

-->>>
it just stop here and don't continue... is strange, isn't it?


AND
when I do a Ctrl+C it gives me this error

Create image: /opt/local/bin/tos-build-deluge-image -i 1
build/telosb/tos_image.xml
^CTraceback (most recent call last):
 File "/opt/local/bin/tos-deluge", line 417, in <module>
   inject(imgNum, sys.argv[5])
 File "/opt/local/bin/tos-deluge", line 303, in inject
   print p.stderr.read(),
KeyboardInterrupt

Can you try to run the tos-build-image-image command by hand? You
need
give the following command:
        /opt/local/bin/tos-build-deluge-image -i 1
build/telosb/tos_image.xml

--
Razvan ME


I didn't get the file from
http://hinrg.cs.jhu.edu/git/?p=deluge/tinyos-2.x.git
bc I don't know which one to get and it seems that I can't download
the
file
bc there is just a copy-paste from an editor...
There is just a file in download version, the last one: NetProgM.c
I replace the old file in my filesystem with this one but when I
run
the
burn script some errors get out...

In file included from /opt/tinyos-2.x
/tos/lib/net/Deluge/extra/NetProgC.nc:43,
                 from /opt/tinyos-2.x
/tos/lib/net/Deluge/DelugeC.nc:59,
                 from BlinkAppC.nc:47:
In component `NetProgM':
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:45: interface
ReprogramGuard not found
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc: In function
`NetProg.programImageAndReboot':
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:89: interface
has
no
command or event named `okToProgram'
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc: At top level:
/opt/tinyos-2.x/tos/lib/net/Deluge/extra/NetProgM.nc:93:
`okToProgramDone'
is not in interface `ReprogramGuard'
make: *** [exe0] Error 1


--->> I think that to use this file I have to download other file
but
it
seems that I can't download the
file from that page....



thx again for your help






On Wed, Mar 5, 2008 at 10:53 PM, Razvan Musaloiu-E. <
[EMAIL PROTECTED]

wrote:

Hi!

On Wed, 5 Mar 2008, unauna abiabi wrote:

Hi to all,

I start to "play" with deluge T2 and I'm following
the manual (deluge-t2-manual.html) but I gut problem in the
"Quick
start"
section.
I'm using tinyos2.x on a macbook duo 2 core with Tiger version
10.4.11


-->>The problem is :

tinyos::>> ./burn /dev/tty.usbserial-XBQ6TGNF telosb
sh: line 1: sha1sum: command not found
sh: line 1: sha1sum: command not found
rm -rf build
rm -rf _TOSSIMmodule.so TOSSIM.pyc TOSSIM.py


============================ Compile and load Blink
============================
sh: line 1: sha1sum: command not found
sh: line 1: sha1sum: command not found
mkdir -p build/telosb
tos-storage-stm25p /opt/tinyos-2.x/tos/platforms/telosb <
volumes-stm25p.xml >build/telosb/StorageVolumes.h || rm -f
build/telosb/StorageVolumes.h

...

=============================== Upload the image
===============================
Pinging node ...
Connected to Deluge nodes.
No valid image was detected.
--------------------------------------------------

Create image: /opt/local/bin/tos-build-deluge-image -i 1
build/telosb/tos_image.xml

Traceback (most recent call last):
 File "/opt/local/bin/tos-build-deluge-image", line 117, in
<module>
   ident[p] = int(ident[p][:-1], 16)
KeyError: 'userhash'
--------------------------------------------------

sha1sum program is missing and so some important hashes are not
computed
which makes the tos-build-deluge-image script unhappy. If you
replace
sha1sum with md5sum it should work fine.

Something else: the Deluge T2 from the CVS doesn't yet contains a
bunch
of
changes and fixes I made. They are available in the following git
repository:
       http://hinrg.cs.jhu.edu/git/?p=deluge/tinyos-2.x.git

Have a nice day!
Razvan ME









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

Reply via email to