Hi all I have the latest version of tinyos (from tinyos trunk) with telosb working together. I found the solution after several instalations and looking into the following threads: http://www.mail-archive.com/[email protected]/msg41701.html http://www.mail-archive.com/[email protected]/msg00411.html What I've done is the following (using a Ubuntu 10.04 LTS) - Please read them carefully before doing anything -: $ sudo dpkg -P `dpkg -l nesc '*tinyos*' | grep ^ii | awk '{ print $2 }' | xargs`$ sudo apt-get clean$ sudo gedit /etc/apt/sources.list<add>deb http://tinyprod.net/repos/debian squeeze maindeb http://tinyprod.net/repos/debian msp430-46 main</add>$ sudo apt-get update$ gpg --keyserver keyserver.ubuntu.com --recv-keys 34EC655A$ gpg -a --export 34EC655A | sudo apt-key add -$ apt-get install tinyos-2.1.1 nesc tinyos-tools msp430-tinyos-legacy avr-tinyos$ sudo gedit $HOME/.bashrc<add>source /opt/tinyos-2.1.1/tinyos.sh</add> $ sudo chown -R <id> /opt/tinyos-2.1.1 Now, if you go to $TOSROOT/apps/Blink, and do make telosb, it should work. However, I recommend you have the latest instalation of tinyos, so (first steps retrieved from http://docs.tinyos.net/tinywiki/index.php/Installing_from_SVN/GIT): $ cd $HOME$ mkdir -p local/src$ cd local/src$ svn checkout http://tinyos-main.googlecode.com/svn/trunk/ tinyos-2.x (now, I made a backup of everything within the tinyos-2.1.1 directory, and after that, I deleted everything except the tinyos.sh file) $ cd local/src/tinyos-2.x$ cp -r * /opt/tinyos-2.1.1/$ cd /opt/tinyos-2.1.1/tools$ ./Bootstrap$ ./configure --prefix=$HOME/local$ make all$ make install At this point, you have the latest version of tinyos, but now, "make telosb" does not work. The reason is that you need the msp430-46 toolchain: $ sudo apt-get install msp430-46$ cd /usr (where the directory msp430 is, maybe /usr/local)$ mv msp430 msp430-gcc-3.2.3$ ln -s /opt/msp430-46 msp430$ cd /usr/bin$ rm msp430-*$ ln -s ../msp430/bin/* . And that's all. This finally worked for me. I wish you luck. David Date: Thu, 26 Jul 2012 23:00:15 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [Tinyos-help] Does TinyOS dist from http://tinyos.stanford.edu/tinyos/dists/ubuntu support TelosB motes? On Thu, Jul 26, 2012 at 8:56 PM, Gary Lee <[email protected]> wrote: Thanks for your reply. Could you let me know how to install *-legacy packages, where the 3.2.3 compiler lives now from stanford. Read the rest of the email. I already told you. Follow the links. Go read the README at tinyprod.net/repos/debian On Thu, Jul 26, 2012 at 12:17 AM, Eric Decker <[email protected]> wrote: On Wed, Jul 25, 2012 at 8:49 PM, Gary Lee <[email protected]> wrote: "make telosb" works before. when I run "ncc --version -target=telosb", I got ncc: 1.2.4 nescc: 1.3.4 msp430-gcc: msp430-gcc (GCC) 4.5.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Prior to updating the tools from dists/ubuntu, I strongly suspect you had the 3.2.3 compiler. Because it worked. When you updated the tools again you got the 4.5.3 compiler which is incompatible with the T2.1.1 release code you have in /opt/tinyos-2.1.1. Try installing the *-legacy packages, it is where the 3.2.3 compiler lives now. I beleive they are in the dists/ubuntu repository at stanford. They also exist in the tinyprod repository at http://tinyprod.net/repos/debian/ On Wed, Jul 25, 2012 at 10:41 PM, Eric Decker <[email protected]> wrote: On Wed, Jul 25, 2012 at 8:26 PM, Gary Lee <[email protected]> wrote: Hi, I have installed TinyOS 2.1.1 from http://tinyos.stanford.edu/tinyos/dists/ubuntu many times. Did "make telosb" work before? recently, when I installed from http://tinyos.stanford.edu/tinyos/dists/ubuntu again, when I run "make micaz", it works fine. However, when I run "make telosb", lots of errors. what does the output of ncc --version -target=telosb say? Any help? Thanks a lot, Gary _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Eric B. Decker Senior (over 50 :-) Researcher -- Eric B. Decker Senior (over 50 :-) Researcher -- Eric B. Decker Senior (over 50 :-) Researcher _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
