Hi

This is due to a lack of permissions on the USB serial device. The quick
hack is to program as root, the correct solution is to set up your udev
rules so that the permissions on the ttyUSB device allow writing by
unprivileged users.

Regards
Michael


On 31 March 2014 09:24, Liao Qingbi <[email protected]> wrote:

> Hi, everybody
>
> I'm new to TinyOS and trying to write the simple Blink application into
> sensor mib510.  But I didn't succeed yet since there is always an error:
> Permission denied.
> I have already tried the command:
> $ sudo chown qingbi:qingbi -R /opt/tinyos-2.1.2/
> And it still doesn't work.
> By the way, the *make micaz sim* part could work well in my PC.
> The running result is attached below, hoping someone could help me out.
> Thank you so much.
>
> qingbi@qingbi-VirtualBox:~$ cd tinyos-2.1.2/apps/Blink/
> qingbi@qingbi-VirtualBox:~/tinyos-2.1.2/apps/Blink$ make micaz install
> mib510,/dev/ttyUSB0
> mkdir -p build/micaz
>     compiling BlinkAppC to a micaz binary
> ncc -o build/micaz/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
> -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"qingbi\"
> -DIDENT_HOSTNAME=\"qingbi-VirtualB\" -DIDENT_USERHASH=0xdca414e2L
> -DIDENT_TIMESTAMP=0x53399425L -DIDENT_UIDHASH=0x1fc3b583L
> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
> -fnesc-dump='referenced(interfacedefs, components)'
> -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm
>     compiled BlinkAppC to build/micaz/main.exe
>             2044 bytes in ROM
>               51 bytes in RAM
> avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
> avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
>     writing TOS image
> cp build/micaz/main.srec build/micaz/main.srec.out
>     installing micaz binary using mib510
> uisp -dprog=mib510 -dserial=/dev/ttyUSB0 --wr_fuse_h=0xd9 -dpart=ATmega128
>  --wr_fuse_e=ff   --erase --upload if=build/micaz/main.srec.out --verify
> Error: Permission denied
>  -> /dev/ttyUSB0
> make: *** [program] Error 1
>
>
> _______________________________________________
> 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

Reply via email to