RSS

Introduction to TinyOS on cygwin with Windows 7 ends in error. Given here are the errors but no solutions

13 Jun

In cygwin add the options as follows to install
rpm -Uvh –force –nodeps –ignoreos

Links that may help :

http://archive.cone.informatik.uni-freiburg.de/teaching/praktikum/Adhocnetworks-w07/installingCygwin.html

http://tinyos.stanford.edu/tinyos-wiki/index.php/Installing_TinyOS_2.1.1#Step_3:_

Install_native_compilers

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2010-January/044421.html

http://webs.cs.berkeley.edu/tos/faq.html

http://tinyos.stanford.edu/tinyos-wiki/index.php/Boomerang_Fixes#Compile_fails_with_.22Unknown_target_MCD.22

http://comments.gmane.org/gmane.os.tinyos.users/39229

https://github.com/csiro-wsn/tinyos-csiro-opal/issues/1

The Simple Program given as example in Tiny OS wiki.

Error on make
—————-

$ make micaz
mkdir -p build/micaz
compiling SimpleAppC 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 -DIDENT_APPNAME=\”SimpleAppC\” –

DIDENT_USERNAME=\”ajaya\” -DIDENT_HOSTNAME=

\”ajaya-PC\” -DIDENT_USERHASH=0x8a243f35L –

DIDENT_TIMESTAMP=0x539add88L –

DIDENT_UIDHASH=0x7144cba9L -fnesc-dump=wiring

-fnesc-dump=’interfaces(!abstract())’ -fnesc-

dump=’referenced(interfacedefs, components)’ –

fnesc-dumpfile=build/micaz/wiring-check.xml

SimpleAppC.nc -lm
/usr/bin/avr-gcc: /usr/bin/avr-gcc: cannot

execute binary file
/opt/tinyos-2.x/support/make/avr/avr.rules:140:

recipe for target ‘exe0’ failed
make: *** [exe0] Error 126

$unset PLATFORM

$make micaz

same error

ajaya@ajaya-PC /opt/tinyos-2.x/apps/Blink
$ make telosb
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 -DIDENT_APPNAME=\”BlinkAppC\” -DIDENT_USERNAME=\”ajaya\” -DIDENT_HOSTNAME=\”ajaya-PC\” -DIDENT_USERHASH=0x8a243f35L -DIDENT_TIMESTAMP=0x539ade1bL -DIDENT_UIDHASH=0xecd2214dL BlinkAppC.nc -lm
Couldn’t execute msp430-gcc
/opt/tinyos-2.x/support/make/msp/msp.rules:104: recipe for target ‘exe0’ failed
make: *** [exe0] Error 2

$ printenv
HOMEPATH=\Users\ajaya
APPDATA=C:\Users\ajaya\AppData\Roaming
HOSTNAME=ajaya-PC
SHELL=/bin/bash
TERM=xterm
PROCESSOR_IDENTIFIER=x86 Family 6 Model 58 Stepping 9, GenuineIntel
PROFILEREAD=true
WINDIR=C:\Windows
OPENMODELICAHOME=C:\OpenModelica1.9\
PUBLIC=C:\Users\Public
OLDPWD=/opt/tinyos-2.x/apps
ORIGINAL_PATH=/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files/MiKTeX 2.9/miktex/bin:/cygdrive/c/Program Files/Windows Live/Shared:/cygdrive/c/Program Files/MATLAB/R2012b/runtime/win32:/cygdrive/c/Program Files/MATLAB/R2012b/bin:/cygdrive/c/Program Files/Flash Magic:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin/tools
USERDOMAIN=ajaya-PC
OS=Windows_NT
ALLUSERSPROFILE=C:\ProgramData
USER=ajaya
TEMP=/tmp
COMMONPROGRAMFILES=C:\Program Files\Common Files
USERNAME=ajaya
PROCESSOR_LEVEL=6
PATH=/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Intel/OpenCL SDK/2.0/bin/x86:/cygdrive/c/Program Files/MiKTeX 2.9/miktex/bin:/cygdrive/c/Program Files/Windows Live/Shared:/cygdrive/c/Program Files/MATLAB/R2012b/runtime/win32:/cygdrive/c/Program Files/MATLAB/R2012b/bin:/cygdrive/c/Program Files/Flash Magic:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin:/cygdrive/c/PROGRA~1/ATT/Graphviz/bin/tools
OPENMODELICALIBRARY=C:\OpenModelica1.9\lib\omlibrary
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
FP_NO_HOST_CHECK=NO
PWD=/opt/tinyos-2.x/apps/Blink
SYSTEMDRIVE=C:
LANG=en_US.UTF-8
USERPROFILE=C:\Users\ajaya
TZ=Asia/Calcutta
TOSDIR=/opt/tinyos-2.x/tos
SAL_ACCESSIBILITY_ENABLED=1
PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
LOGONSERVER=\\AJAYA-PC
PROCESSOR_ARCHITECTURE=x86
LOCALAPPDATA=C:\Users\ajaya\AppData\Local
ProgramData=C:\ProgramData
EXECIGNORE=*.dll
SHLVL=1
HOME=/home/ajaya
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
MAKERULES=/opt/tinyos-2.x/support/make/Makerules
HOMEDRIVE=C:
COMSPEC=C:\Windows\system32\cmd.exe
TMP=/tmp
SYSTEMROOT=C:\Windows
PRINTER=HP Universal Printing PCL 6
PROCESSOR_REVISION=3a09
CLASSPATH=cygpath -w $TOSROOT/support/sdk/java/tinyos.jar;.
INFOPATH=/usr/local/info:/usr/share/info:/usr/info
PROGRAMFILES=C:\Program Files
NUMBER_OF_PROCESSORS=8
COMPUTERNAME=AJAYA-PC
_=/usr/bin/printenv

Update: There is some clash between the versions of the TinyOS that cause the problem. It is better to use older versions to get stable results and installation.

Advertisements
 
Leave a comment

Posted by on June 13, 2014 in Uncategorized

 

Tags: , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: