[Tinyos-help] [blip-users] How to install tinyos-2.1.1 correctly

bouakkaz issam b_issam4000 at yahoo.com
Sun Apr 18 14:42:31 PDT 2010


Hey Jordi;

My Tinyos-2.1.1 is installed now, and I test it with my iris mote.

After I test, I got, the Blink application work, the UDPEcho work too but the IPBaseStation don't work have some errors.

In the IPBaseStation, I only solve one error is the error of the reset, because I think iris don't support reset function, so I just comment the code lines of reset.
But still have a lot of errors:

so after executing this : make iris blip install mib520,/dev/ttyUSB0
I got this :
----------------------------------------------------------------------------------------------------------------------
mkdir -p build/iris
    compiling BaseStationC to a iris binary
ncc -o build/iris/main.exe  -Os -DPACKET_LINK -DDEF_MEMCPY -DENABLE_SPI0_DMA -DBLIP_MULTICAST -DCC2420_HW_ACKNOWLEDGEMENTS -DTOSH_DATA_LENGTH=102 -I/opt/tinyos-2.1.1/tos/lib/net/ -I/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/ -I/opt/tinyos-2.1.1/support/sdk/c/blip/libtcp/ -I/opt/tinyos-2.1.1/tos/lib/net/blip/ -I/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/  -I/opt/tinyos-2.1.1/tos/lib/net/blip/nwprog/ -I/opt/tinyos-2.1.1/tos/lib/net/blip/shell/ -I/opt/tinyos-2.1.1/tos/lib/net/blip/serial/ -I/opt/tinyos-2.1.1/tos/lib/net/blip/platform/ /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpan.c  /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/in_cksum.c /opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/ip_malloc.c /opt/tinyos-2.1.1/tos/lib/net/blip/table.c -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=iris
 -fnesc-cfile=build/iris/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -DNO_IP_MALLOC  -DIEEE154FRAMES_ENABLED -DIDENT_APPNAME=\"BaseStationC\" -DIDENT_USERNAME=\"issam\" -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USERHASH=0x89a3a792L -DIDENT_TIMESTAMP=0x4bcb76dcL -DIDENT_UIDHASH=0x0061adc0L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xmlBaseStationC.nc -lm
BaseStationP.nc:68:20: error: CC2420.h: No such file or directory
In file included from BaseStationC.nc:100:
In component `BaseStationP':
BaseStationP.nc:98: interface CC2420Config not found
In file included from BaseStationC.nc:100:
BaseStationP.nc: In function `ConfigureReceive.receive':
BaseStationP.nc:413: interface has no command or event named `setChannel'
BaseStationP.nc:416: interface has no command or event named `sync'
BaseStationP.nc: At top level:
BaseStationP.nc:434: `syncDone' is not in interface `CC2420Config'
In file included from /opt/tinyos-2.1.1/tos/lib/serial/Serial802_15_4C.nc:43,
                 from BaseStationC.nc:102:
In component `SerialPacketInfo802_15_4P':
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc: In function `Info.offset':
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:38: `cc2420_header_t' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:38: (Each undeclared identifier is reported only once
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:38: for each function it appears in.)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc: In function `Info.dataLinkLength':
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:41: `cc2420_header_t' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:41: `cc2420_footer_t' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc: In function `Info.upperLength':
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:44: `cc2420_header_t' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:44: `cc2420_footer_t' undeclared (first use in this function)
In component `BaseStationC':
BaseStationC.nc: At top level:
BaseStationC.nc:136: component CC2420ControlC not found
BaseStationC.nc:137: no match
make: *** [exe0] Error 1
-----------------------------------------------------------------------------------------------------------------------------------


Wish that some one have a solution for that.
Thanks in advance

Best Regards

Issam



________________________________
From: Jordi Soucheiron <jsoucheiron at dexmatech.com>
To: bouakkaz issam <b_issam4000 at yahoo.com>
Cc: blip-users at lists.eecs.berkeley.edu; tinyos-help at millennium.berkeley.edu
Sent: Fri, April 16, 2010 7:38:02 AM
Subject: Re: [blip-users] How to install tinyos-2.1.1 correctly

You should be able to use tossim to test it. If you're able to compile (make iris) you shouldn't have problems when programming the device(make iris install).


2010/4/16 bouakkaz issam <b_issam4000 at yahoo.com>

Hey Jordi;
>
>Thanks a lot , it solve that problem, maybe I still have another problem, but I am not sure.
>I will test later with my mote.
>
>But tell me can I test Blink and IPBaseStation without having the mote,? a basic test to see if the application work?, if there is a way to test, without the mote , please tell me.
>
>I think for the Blink is : make iris or make iris install (for make iris install i have an error already, :)).
>
>Best Regards
>
>Issam
>
>
________________________________
From: Jordi Soucheiron <jsoucheiron at dexmatech.com>
>To: bouakkaz issam <b_issam4000 at yahoo.com>
>Cc: blip-users at lists.eecs.berkeley.edu; tinyos-help at millennium.berkeley.edu
>Sent: Fri, April 16, 2010 5:09:51 AM
>
>Subject: Re: [blip-users] How to install tinyos-2.1.1 correctly
>
>
>This errors are different than the first error. This errors are easy to solve :) Just run this:
>sudochown issam:issam -R /opt/tinyos-2.1.1/
>Have a nice weekend!
>
>Jordi Soucheiron
>Software Engineer
>
>DEXMA
>ParcTecnològic la Salle
>Sant Joan de la Salle, 42
>08022 Barcelona
>t/f: [+34] 93 181 01 95
>www.dexmatech.com
>jsoucheiron at dexmatech.com
>
>2010/4/16 bouakkaz issam <b_issam4000 at yahoo.com>
>
>I will test without my mote, because I don't have it with me now, I do the test with Blink and with IPBaseStation. And I have this result.
>>I have a problem with the permission I didn't solve it yet, but even with sudo I have an error.
>>I think I did  what from the same windows I install the tinyos and I received the same messagam.
>>
>>
>>so when I make this :
>>issam at ubuntu:/opt/tinyos-2.1.1/apps/Blink$ make iris install
>>I have this :
>>mkdir -p build/iris
>>mkdir: cannot create directory `build/iris': Permission denied
>>make: *** [builddir] Error 1
>>
>>make :
>>issam at ubuntu:/opt/tinyos-2.1.1/apps/Blink$ sudo  make iris install
>>result :
>>make: Nothing to be done for `iris'.
>>make: Nothing to be done for `install'.
>>
>>make :
>>issam at ubuntu:/opt/tinyos-2.1.1/apps/IPBaseStation$ make iris blip install
>>result :
>>mkdir -p build/iris
>>mkdir: cannot  create directory `build': Permission denied
>>make: *** [builddir] Error 1
>>
>>make :
>>issam at ubuntu:/opt/tinyos-2.1.1/apps/IPBaseStation$ sudo make iris blip install
>>result :
>>
>>make: *** No rule to make target `iris'.  Stop.
>>
>>
>>
>>
>>
>>
________________________________
From: Jordi Soucheiron <jsoucheiron at dexmatech.com>
>>To: bouakkaz issam <b_issam4000 at yahoo.com>
>>Cc: blip-users at lists.eecs.berkeley.edu; tinyos-help at millennium.berkeley.edu
>>Sent: Fri, April 16, 2010 4:47:29 AM
>>
>>Subject: Re: [blip-users] How to install tinyos-2.1.1 correctly
>>
>>
>>Hello,
>>Everything seems to be fine. Did you try the make command from the same window you installed the tinyos package without closing it? Could you try to compile again?
>>Thank you
>>
>>Jordi Soucheiron
>>Software Engineer
>>
>>DEXMA
>>ParcTecnològic la Salle
>>Sant Joan de la Salle, 42
>>08022 Barcelona
>>t/f: [+34] 93 181 01 95
>>www.dexmatech.com
>>jsoucheiron at dexmatech.com
>>
>>2010/4/16 bouakkaz issam <b_issam4000 at yahoo.com>
>>
>>Here we go , here is my output , wish that will help :
>>>
>>>----------------------------------------------------------------------------------------------------------------
>>>declare -x CLASSPATH=":/opt/tinyos-2.1.1/support/sdk/java"
>>>declare -x COLORTERM="gnome-terminal"
>>>declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-LiMPze61ZU,guid=67a9963895c1fc6996cc45464bc73a21"
>>>declare -x DESKTOP_SESSION="gnome"
>>>declare -x DISPLAY=":0.0"
>>>declare -x GDMSESSION="gnome"
>>>declare -x GDM_KEYBOARD_LAYOUT="us"
>>>declare -x GDM_LANG="en_US.UTF-8"
>>>declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
>>>declare -x GNOME_KEYRING_PID="1793"
>>>declare -x GNOME_KEYRING_SOCKET="/tmp/keyring-J4VYCg/socket"
>>>declare -x GTK_MODULES="canberra-gtk-module"
>>>declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/issam/.gtkrc-1.2-gnome2"
>>>declare -x HOME="/home/issam"
>>>declare -x LANG="en_US.UTF-8"
>>>declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
>>>declare -x LESSOPEN="| /usr/bin/lesspipe %s"
>>>declare -x LOGNAME="issam"
>>>declare -x   
 LS_COLORS="rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;3 
  5:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
>>>declare -x MAKERULES="/opt/tinyos-2.1.1/support/make/Makerules"
>>>declare -x OLDPWD
>>>declare -x ORBIT_SOCKETDIR="/tmp/orbit-issam"
>>>declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
>>>declare -x PWD="/home/issam"
>>>declare -x SESSION_MANAGER="local/ubuntu:@/tmp/.ICE-unix/1808,unix/ubuntu:/tmp/.ICE-unix/1808"
>>>declare -x SHELL="/bin/bash"
>>>declare -x SHLVL="1"
>>>declare -x SPEECHD_PORT="7560"
>>>declare -x SSH_AGENT_PID="1850"
>>>declare -x SSH_AUTH_SOCK="/tmp/keyring-J4VYCg/socket.ssh"
>>>declare -x TERM="xterm"
>>>declare -x TOSDIR="/opt/tinyos-2.1.1/tos"
>>>declare -x TOSROOT="/opt/tinyos-2.1.1"
>>>declare -x USER="issam"
>>>declare -x USERNAME="issam"
>>>declare -x WINDOWID="65011715"
>>>declare -x XAUTHORITY="/var/run/gdm/auth-for-issam-VXre1k/database"
>>>declare -x XDG_DATA_DIRS="/usr/share/gnome:/usr/local/share/:/usr/share/"
>>>declare -x XDG_SESSION_COOKIE="b1df380728432089e8ae0e6e4bc713ed-1271347744.106668-924940339"
>>>---------------------------------------------------------------------------------------------------------------------------------------------------------
>>>
>>>
>>>
>>>
________________________________
From: Jordi Soucheiron <jsoucheiron at dexmatech.com>
>>>To: bouakkaz issam <b_issam4000 at yahoo.com>
>>>Cc: blip-users at lists.eecs.berkeley.edu; tinyos-help at millennium.berkeley.edu
>>>Sent: Fri, April 16, 2010 4:24:48 AM
>>>
>>>Subject: Re: [blip-users] How to install tinyos-2.1.1 correctly
>>>
>>>
>>>Type export in the bash shell and press enter. Select the output with your mouse, right click on it and select copy. Paste it  here.
>>>
>>>Jordi Soucheiron
>>>Software Engineer
>>>
>>>DEXMA
>>>ParcTecnològic la Salle
>>>Sant Joan de la Salle, 42
>>>08022 Barcelona
>>>t/f: [+34] 93 181 01 95
>>>www.dexmatech.com
>>>jsoucheiron at dexmatech.com
>>>
>>>2010/4/16  bouakkaz issam <b_issam4000 at yahoo.com>
>>>
>>>Hello Jordi;
>>>> 
>>>>I know maybe it is a stupid question , but I will ask it anyway, please forgive me for that. :)
>>>> 
>>>>What is the export command and how we can print the output?
>>>> 
>>>>Best Regards
>>>> Issam
>>>>
>>>>
>>>>
>>>>
________________________________
 From: Jordi Soucheiron <jsoucheiron at dexmatech.com>
>>>>To: bouakkaz issam <b_issam4000 at yahoo.com>
>>>>Cc: blip-users at lists.eecs.berkeley.edu; tinyos-help at millennium.berkeley.edu
>>>>Sent: Fri, April 16, 2010 12:13:21  PM
>>>>Subject: Re: [blip-users] How to install tinyos-2.1.1 correctly
>>>>
>>>>
>>>>Hello,
>>>>Could you print the output of a export command?
>>>>
>>>>
>>>>Jordi Soucheiron
>>>>Software Engineer
>>>>
>>>>DEXMA
>>>>ParcTecnològic la Salle
>>>>Sant Joan de la Salle, 42
>>>>08022  Barcelona
>>>>t/f:  [+34] 93 181 01 95
>>>>www.dexmatech.com
>>>>jsoucheiron at dexmatech.com
>>>>
>>>>2010/4/16 bouakkaz issam <b_issam4000 at yahoo.com>
>>>>
>>>>Hello all;
>>>>> 
>>>>>I am trying to install tinyos-2.1.1 correctly , so I create a new virtual machine in VMware and I download ubuntu 9.10 I  install and make all  the update, and than I fallow this method from this link to install the tinyos-2.1.1.
>>>>> 
>>>>>When I finish I try to test with my iris mote but don´t work , I have this message :
>>>>> 
>>>>>so when I make this :
>>>>>                                    make iris install mib520,/dev/ttyUSB0
>>>>>I  have this :
>>>>>                        make: *** No rule to make target `iris'.  Stop.
>>>>> 
>>>>>I think this message means that my platform iris is not supported, so I want to ask, is my platform iris is supported in tinyos-2.1.1 or not ?
>>>>> 
>>>>>If there is another method to install tinyos-2.1.1 let me know, so  waiting for your answer as  soon as possible.
>>>>> 
>>>>>Best Regards
>>>>> 
>>>>>Issam
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100418/bc92c538/attachment-0001.htm 


More information about the Tinyos-help mailing list