You are not logged in.

#1 2010-08-29 06:50:34

ubituks
Member
Registered: 2010-08-03
Posts: 17

avrdude not working[SOLVED]

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

#2 2010-08-29 12:34:48

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,052

Re: avrdude not working[SOLVED]

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

#3 2010-08-29 14:57:32

ubituks
Member
Registered: 2010-08-03
Posts: 17

Re: avrdude not working[SOLVED]

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

#4 2010-08-29 20:17:55

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,052

Re: avrdude not working[SOLVED]

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

#5 2010-08-30 05:21:25

ubituks
Member
Registered: 2010-08-03
Posts: 17

Re: avrdude not working[SOLVED]

Thanks, it works now smile

Offline

#6 2012-02-18 01:21:11

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 60

Re: avrdude not working[SOLVED]

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

#7 2012-12-29 04:00:28

marcolinux
Member
Registered: 2012-12-29
Posts: 1

Re: avrdude not working[SOLVED]

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

#8 2012-12-29 06:15:31

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,322
Website

Re: avrdude not working[SOLVED]

Please don't necrobump https://wiki.archlinux.org/index.php/Fo … Bumping.22

Solution, as pointed out, is in the Wiki


Closing


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

Board footer

Powered by FluxBB