Hi,
We have installed tinyos 2.x in ubuntu jaunty . We are not working with
motes but trying to simulate it using TOSSIM. We had tried to simulate a few
of the sample applications like Blink, RadiotoLeds, though we were able to
compile the codes succesfully ,its execution had ended up with error. The
main.exe file cannot be executed because of the following error.- CANNOT
EXECUTE BINARY FILE
ki...@kiran-laptop:/opt/tinyos-1.x/apps/Blink/build/micaz$ ./main.exe
bash: ./main.exe: cannot execute binary file
So we installed wine application which is used to run exe files and tried
to execute it through wine commands , but it shows an error- BAD EXE FORMAT
ki...@kiran-laptop:/opt/tinyos-1.x/apps/Blink/build/micaz$ wine main.exe
wine: could not load
L"Z:\\opt\\tinyos-1.x\\apps\\Blink\\build\\micaz\\main.exe": Bad EXE format
So, we tried working on Tinyos1.x through Xubuntos Virtual Image. But the
command Make pc gives the following error
ki...@kiran-laptop:/opt/tinyos-1.x/apps/Blink$ make pc
mkdir -p build/pc
compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000
-fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc
-fnesc-cfile=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"Blink\"
-DIDENT_USER_ID=\"kiran\" -DIDENT_HOSTNAME=\"kiran-laptop\"
-DIDENT_USER_HASH=0xf062a24fL -DIDENT_UNIX_TIME=0x4b9c8ee9L
-DIDENT_UID_HASH=0x96ff53f9L Blink.nc -lm
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/pc/nido.h:63: `TOSH_NUM_NODES' undeclared here
(not in a function)
/opt/tinyos-1.x/tos/platform/pc/nido.h:63: enumerator value for `TOSNODES'
not integer constant
make: *** [exe0] Error 1
Can you please help us find a solution to this problem.
Also, we tried to work with TinyViz but it shows the same error as
mentioned above.
Please help us find a solution to these problems....
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help