avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] USB


From: Russell Shaw
Subject: Re: [avrdude-dev] USB
Date: Tue, 17 Nov 2009 00:19:20 +1100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701)

Joerg Wunsch wrote:
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.

I did that temporarily while the device was plugged in to see
what effect it had. If that didn't work (which it didn't), then
no amount of udev rules will help either.

Why do you insist on ignoring the udev hints that have been given to
you?

I tried that as well as my own, and various combinations, but it
didn't work.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]