I have found the cause. It is a known bug of ubuntu 11.10 :

brltty daemon prevents creation of ttyUSB0 device link
<https://lists.ubuntu.com/archives/foundations-bugs/2011-October/044866.html>

Regards,
Qian


On Fri, Dec 23, 2011 at 5:48 AM, Qian Li <qian...@uhasselt.be> wrote:

> Hello Eric,
>
> Thanks for your help. I don't get any compiling errors anymore, but I got
> errors while I was trying to upload the program to my z1 mote.
>
> compiling BlinkAppC to a z1 binary
> ...
>     writing TOS image
>
> cp build/z1/main.ihex build/z1/main.ihex.out
> Use of uninitialized value in substitution (s///) at
> /home/qian/local/bin/motelist line 91.
> Use of uninitialized value in pattern match (m//) at
> /home/qian/local/bin/motelist line 92.
>     found no motes (using bsl,auto)
> make: *** [bsltest] Error 1
>
> But motelist could find the z1 mote:
>
> $ motelist
>
> Z1RC1219     (none)         Silicon Labs Zolertia Z1
>
> But dmesg | grep ttyUSB returned
>
> cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
>
> Seems the driver for cp210x is not properly installed? I guess it should
> be in Linux core?
>
> Best regards,
> Qian
>
> On Thu, Dec 22, 2011 at 3:44 PM, Eric Decker <cire...@gmail.com> wrote:
>
>> Ah.  I see the problem.
>>
>> The instructions aren't quite complete....
>>
>>
>> Try adding...
>>
>> sudo apt-get install nesc msp430-tinyos
>>
>>
>> That should also pull in the package: msp430mcu-tinyos
>>
>> If it doesn't then explicitly do:
>>
>> sudo apt-get install msp430mcu-tinyos
>>
>>
>>
>> Alternatively you could go to: http://tinyprod.net/repos/debian-dev/
>> and follow the instructions there.    I know that works and it also has a
>> more up to date complier with some other important bugs fixed in the
>> toolchain.
>>
>>
>> eric
>>
>>
>> On Thu, Dec 22, 2011 at 10:16 AM, Qian Li <qian...@uhasselt.be> wrote:
>>
>>> Hello,
>>>
>>> I installed TinyOS on Ubuntu 11.10. When I tried to compile the Blink
>>> application under apps folder, I got the following errors. Seems a few
>>> header files are missing? Where can I download them? And where should I
>>> save them? I followed exactly the same installation procedure as stated
>>> here <http://docs.tinyos.net/tinywiki/index.php/Installing_from_SVN/GIT>
>>> .
>>>
>>> I issued "make telosb", then I got the following errors:
>>>
>>> mkdir -p build/telosb
>>>     compiling BlinkAppC to a telosb binary
>>> ncc -o build/telosb/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
>>> -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.
>>> c -board= -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\"
>>> -DIDENT_USERNAME=\"qian\" -DIDENT_HOSTNAME=\"ubuntu\"
>>> -DIDENT_USERHASH=0x43d5ecb1L -DIDENT_TIMESTAMP=0x4ef3707fL
>>> -DIDENT_UIDHASH=0xb2e07f9fL  BlinkAppC.nc -lm
>>> In file included from
>>> /home/qian/local/src/tinyos-2.x/tos/platforms/telosb/hardware.h:4,
>>>                  from
>>> /home/qian/local/src/tinyos-2.x/tos/system/SchedulerBasicP.nc:52:
>>> /home/qian/local/src/tinyos-2.x/tos/chips/msp430/msp430hardware.h:42:20:
>>> error: msp430.h: No such file or directory
>>> In file included from
>>> /home/qian/local/src/tinyos-2.x/tos/chips/msp430/msp430hardware.h:43,
>>>                  from
>>> /home/qian/local/src/tinyos-2.x/tos/platforms/telosb/hardware.h:4,
>>>                  from
>>> /home/qian/local/src/tinyos-2.x/tos/system/SchedulerBasicP.nc:52:
>>> /usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/legacymsp430.h:33:22:
>>> error: iomacros.h: No such file or directory
>>> /usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/legacymsp430.h:55:19:
>>> error: in430.h: No such file or directory
>>> In file included from
>>> /home/qian/local/src/tinyos-2.x/tos/platforms/telosb/hardware.h:4,
>>>                  from
>>> /home/qian/local/src/tinyos-2.x/tos/system/SchedulerBasicP.nc:52,
>>>                  from
>>> /home/qian/local/src/tinyos-2.x/tos/system/TinySchedulerC.nc:51:
>>> ...
>>> ...
>>>
>>>
>>> Best regards,
>>> Qian
>>>
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>> --
>> Eric B. Decker
>> Senior (over 50 :-) Researcher
>>
>>
>>
>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to