[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] USB
From: |
Joerg Wunsch |
Subject: |
Re: [avrdude-dev] USB |
Date: |
Mon, 16 Nov 2009 14:10:45 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
As Russell Shaw wrote:
> Avrdude runs ok as root, but not as a normal user.
Sure, device permission problems.
> This returns -1 and i can't figure out why.
That's the way permission problems manifest under Linux: you can still
open the USB device in libusb (apparently, this is done through
something else than the actual device node), but it fails as soon as
you try sending a message to it (which is needed in order to request a
string descriptor entry from the device).
> Just to make sure of things, i also tried:
>
> # chown -R root:avrdude /dev/usb*
> # chown -R root:avrdude /dev/bus/usb
> # chmod -R 660 /dev/usb*
> # chmod -R 660 /dev/bus/usb
Doesn't help. All these devices are created by your system
dynamically. As soon as you say "Goodbye!" to the AVRISPmkII, it
disconnects from and reconnects to the USB, and voila, you've got a
new /dev/bus/usb/... entry -- again with the wrong permissions.
Why do you insist on ignoring the udev hints that have been given to
you?
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Re: [avrdude-dev] USB, Ormund Williams, 2009/11/16