Here's an example of the tinyos.sh script:

---!

#! /usr/bin/env bash

echo "Setting up for TinyOS 2.x"
export TOSROOT=
export TOSDIR=
export MAKERULES=

TOSROOT=/opt/tinyos-2.1.2
TOSDIR="$TOSROOT/tos"
CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar
PYTHONPATH=.:$TOSROOT/support/sdk/python:$PYTHONPATH
MAKERULES="$TOSROOT/support/make/Makerules"

export TOSROOT
export TOSDIR
export CLASSPATH
export PYTHONPATH
export MAKERULES


---!

Remember to make the script executable:

$ sudo chmod +x tinyos.sh

And do:

$ source tinyos.sh

You could add the above in your ~/.bashrc file (at the bottom)

Then check if everything is ok:

$ whereis tos-bsl
$ echo $PATH

Regards,

--Antonio




On Mon, Apr 15, 2013 at 8:39 PM, si1versurfer2010-tin...@yahoo.com <
si1versurfer2010-tin...@yahoo.com> wrote:

> Hi,
>
> I installed tinyos 2.1.2 on ubuntu 11.10 according to this tutorial:
>
> http://docs.tinyos.net/tinywiki/index.php/Installing_TinyOS_2.1.1#Two-step_install_on_your_host_OS_with_Debian_packages
>
> I manually added
>
> export TOSROOT=/opt/tinyos-2.1.2
> export TOSDIR=$TOSROOT/tos
> export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar
> export MAKERULES=$TOSROOT/support/make/Makerules
>
> to my .profile as I couldn't find the mentioned tinyos.sh script in the
> folder.
>
> I then startet with this tutorial
> http://docs.tinyos.net/tinywiki/index.php/Getting_Started_with_TinyOS
>
> And get the following error when trying to install the Blink app
>
> $ make telosb reinstall
> cp build/telosb/main.ihex build/telosb/main.ihex.out
>     found mote on /dev/ttyUSB0 (using bsl,auto)
>     installing telosb binary using bsl
> tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/telosb/main.ihex.out
> make: tos-bsl: Command not found
> make: *** [program] Error 127
>
> Any ideas how to fix this? Thanks in advance...
>
> Best regards
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
--
Antonio Liñan Colina
R+D+I Engineer
@: ali...@advancare.com
@: ali...@zolertia.com
------------------------------
Advancare
T: +34 93 582 02 70
http://www.advancare.com
http://www.zolertia.com
http://zolertia.sourceforge.net
http://webshop.zolertia.com
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to