Hello :
     I am researching deluge and have some problems when i use the version
of tinyos-2.x.git
<http://hinrg.cs.jhu.edu/git/?p=tinyos-2.x.git;a=summary> from
http://hinrg.cs.jhu.edu/git/ on the day of 2008-5-4.
     1. when i put the tinyos-2.x-git tree in two different computers , i
find the compile choices are different. for exaple , when i compile the
application of Blink in the directory of
/opt/tinyos-2.x/apps/tests/deluge/Blink and the compile choice in one
computer is that "-D*IDENT_PROGRAM_NAME*=\"BlinkAppC\"
-*DIDENT_USER_ID*=\"Administrator\"
-*DIDENT_HOSTNAME*=\"zjw\" -*DIDENT_USER_HASH*=0x2567b0c3L -*
DIDENT_UNIX_TIME*=0x482a65deL -*DIDENT_UID_HASH*=0xad6bbf5dL"  and the other
is "-D*IDENT_APPNAME*=\"BlinkAppC\" -D*IDENT_USERNAME*=\"zhangjiwen\" -D*
IDENT_HOSTNAME*=\"zjw\" -D*IDENT_USERHASH*=0x0eac215cL
-D*IDENT_TIMESTAMP*=0x482a64abL
-D*IDENT_UIDHASH*=0x9bde9ac6L" . i use *the same Tinyos tree* , why are the
compile choices different ? * where* are these macroes such as
IDENT_USERNAME , IDENT_TIMESTAMP defined ?
     2. some files in the directroy of tos/lib/deluge/ contains the macroes
for example , in the file DelugeP.nc , there is a macro named IDENT_UIDHASH,
in the file FlashVolumeManagerP.nc , there are macroes named
IDENT_APPNAME,IDENT_TIMESTAMP,IDENT_UIDHASH and so on . so when i compile
the application of Blink in in the directory of
/opt/tinyos-2.x/apps/tests/deluge/Blink  on one of the two computers, it
will give errors like "IDENT_APPNAME not defined" , the reason is obvious ,
should i modify all the names which the errors tell me not defined ? i think
there should be a easy way , because the deluge should be cross-PC(-:)) .
   3 . If i want to repot deluge to the platform of mica2 , which files
should i modity ?  and how ?

   thank you very much!!

  the compile process on two computers (one own two MCPs):
mkdir -p build/micaz
    compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe  -Os -Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22
-finline-limit=100000 -Ibuild/micaz -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/avr
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/micaz
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/mica2
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"zhangjiwen\"
-DIDENT_HOSTNAME=\"zjw\" -DIDENT_USERHASH=0x0eac215cL
-DIDENT_TIMESTAMP=0x482a64abL -DIDENT_UIDHASH=0x9bde9ac6L -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm
    compiled BlinkAppC to build/micaz/main.exe
           34036 bytes in ROM
            1135 bytes in RAM
avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
    writing TOS image


mkdir -p build/micaz
    compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe  -Os -Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22
-finline-limit=100000 -Ibuild/micaz -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/avr
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/micaz
-I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/mica2
-DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER_ID=\"Administrator\"
-DIDENT_HOSTNAME=\"zjw\" -DIDENT_USER_HASH=0x2567b0c3L
-DIDENT_UNIX_TIME=0x482a65deL -DIDENT_UID_HASH=0xad6bbf5dL
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm
    compiled BlinkAppC to build/micaz/main.exe
           34036 bytes in ROM
            1135 bytes in RAM
avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
    writing TOS image
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to