You are not logged in.
Pages: 1
Topic closed
Hello,
i made a usbasp avr programmer and it worked with avrdude without root.
Today i want to use it, but i got error:
avrdude: Warning: cannot query manufacturer for device: error sending control message: Operation not permitted
avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc
With root it works. Tried in this page: http://blog.vmario.org/2008/10/22/progr … -linuksie/ but nothing happens...
Last edited by ubituks (2010-08-30 05:22:16)
Offline
seems to be a permissions issue.
First do a lsusb as root. Then you should be able to chmod the permissions on the corresponding /proc/bus/usb/<bus#>/<dev#> file to 777.
I believe that this ought to fix your problem.
Hofstadter's Law:
It always takes longer than you expect, even when you take into account Hofstadter's Law.
Offline
Hmm dont works:
ubituks@myhost ~]$ su
Password:
[root@myhost ubituks]# lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 025: ID 16c0:05dc VOTI USBasp AVR Programmer
Bus 001 Device 003: ID 046d:c05a Logitech, Inc. Optical Mouse M90
Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@myhost ubituks]# chmod 777 /proc/bus/usb/001/025
chmod: cannot access `/proc/bus/usb/001/025': No such file or directory
Offline
Okay, I found another fix that's worth trying using UDev rules. create a new whatever.rules file in /etc/udev/rules.d and add this line:
SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", MODE="0660", GROUP="users"
Then restart udev and it should work.
(it's stuff like this that reminds me why I use RS-232 serial ports for everything! much easier to work with.)
Last edited by Cyrusm (2010-08-29 20:25:54)
Hofstadter's Law:
It always takes longer than you expect, even when you take into account Hofstadter's Law.
Offline
Thanks, it works now
Offline
old topic, but I have the same problem and adding line
$ cat /etc/udev/rules.d/USBasp.rules
SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", MODE="0660", GROUP="users"
doesn't work ...
Bus 004 Device 003: ID 16c0:05dc VOTI shared ID for use with libusb
$ ll /dev/bus/usb/004/
crw-rw-r-- 1 root root 189, 384 02-17 13:36 001
crw-rw-r-- 1 root root 189, 386 02-17 22:21 003
--- edit:
Solved by:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", GROUP="users", MODE="0666"
from https://wiki.archlinux.org/index.php/Ud … mm_Devices
Last edited by travnick (2012-02-18 01:25:43)
Offline
Registered just to post this: (captcha!!! : what the output of date -u +%W$(uname)|sha256sum|sed 's/\W//g' :-) )
Kinda obvious, but you need to desconnect/reconnect the usb board after udev restart.
ubuntu 12.10: service udev restart
Thanks you all for helping solve the problem.
Offline
Please don't necrobump https://wiki.archlinux.org/index.php/Fo … Bumping.22
Solution, as pointed out, is in the Wiki
Closing
Offline
Pages: 1
Topic closed