tag:blogger.com,1999:blog-2381761802615660705.post6591034577467241471..comments2024-03-22T13:05:38.836+05:30Comments on fetch( ); decode( ); execute( );: Installing TinyOS in Ubuntu 10.10Asanka P. Sayakkarahttp://www.blogger.com/profile/15397677684978919716noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2381761802615660705.post-16870962198970537072012-09-01T18:12:16.678+05:302012-09-01T18:12:16.678+05:30Thanks Prashant, your additional details will be r...Thanks Prashant, your additional details will be really useful for anyone wishing to work in TinyOS. Great!Asanka P. Sayakkarahttps://www.blogger.com/profile/15397677684978919716noreply@blogger.comtag:blogger.com,1999:blog-2381761802615660705.post-77359093931498466322012-08-29T14:18:06.968+05:302012-08-29T14:18:06.968+05:30Just one or two more things which I felt are equal...Just one or two more things which I felt are equally important... How to compile and check if tinyOS is installed... <br /><br />Once the last step of changing the the PYTHON VERSION is done, one should know how to compile an application. It is better to restart the system once for all the script files to run once.<br /><br />Once booted, go to /opt/tinyos-2.1.1/ folder and issue the command: sudo chmod -R 777 . so that you set all the permissions for the subfolders also. <br /><br />Once the permissions are set, then go to /opt/tinyos-2.1.1/apps/Blink/ folder and type make iris.<br /><br />The output of the command looks like this indicating the compilation of the BlinkC application:<br /><br />mkdir -p build/iris<br /> compiling BlinkAppC to a iris binary<br />ncc -o build/iris/main.exe -Os -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 -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"ims-lab\" -DIDENT_HOSTNAME=\"imslab-ThinkPad\" -DIDENT_USERHASH=0x37c6d44eL -DIDENT_TIMESTAMP=0x503e06b6L -DIDENT_UIDHASH=0xf9760d4eL -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkAppC.nc -lm <br /> compiled BlinkAppC to build/iris/main.exe<br /> 2270 bytes in ROM<br /> 51 bytes in RAM<br />avr-objcopy --output-target=srec build/iris/main.exe build/iris/main.srec<br />avr-objcopy --output-target=ihex build/iris/main.exe build/iris/main.ihex<br /> writing TOS image<br /><br /><br />And you are game... <br />Prashant Walihttps://www.blogger.com/profile/05900169015374752631noreply@blogger.comtag:blogger.com,1999:blog-2381761802615660705.post-55399282055712736122012-08-27T15:47:35.726+05:302012-08-27T15:47:35.726+05:30Thanks a ton Asanka.... Even I was struggling to i...Thanks a ton Asanka.... Even I was struggling to install tinyOS before I found your article ... You made the installation look so simple... Thanks again... Prashant Walihttps://www.blogger.com/profile/05900169015374752631noreply@blogger.comtag:blogger.com,1999:blog-2381761802615660705.post-11943270374494556192012-06-07T10:07:30.855+05:302012-06-07T10:07:30.855+05:30It's nice to hear that my article was useful t...It's nice to hear that my article was useful to you. :)<br />And thank you very much for your additional information regarding this!!!!!Asanka P. Sayakkarahttps://www.blogger.com/profile/15397677684978919716noreply@blogger.comtag:blogger.com,1999:blog-2381761802615660705.post-42413206078515997352012-06-07T03:14:32.479+05:302012-06-07T03:14:32.479+05:30This truly is a great article. After several faile...This truly is a great article. After several failed attempts from other tinyos installation guides, i finally found this page which did the trick for me. However, i had to perform a few additional tasks to make it work:<br /><br />1)- change the above-mentioned PYTHON-VERSION as follows:<br /><br />PYTHON_VERSION ?= $(shell python --version 2>&1 | sed 's/Python 2\.\([0-9]\)\.\([0-9]\)+\{0,1\}/2.\1/')<br /><br /><br />2)- Add the following line to the end of the file \opt\tinyos-2.1.1\tinyos.sh:<br /><br />export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.<br /><br /><br />3)- Execute the following command (required for SerialForwarder):<br /><br />sudo tos-install-jni <br /><br /><br />Cheers,Muhammad Aftabhttp://www.masdar.ac.aenoreply@blogger.com