[Top][All Lists]

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

Re: [avrdude-dev] avrisp mk II in linux

From: Naveen Goswamy
Subject: Re: [avrdude-dev] avrisp mk II in linux
Date: Wed, 20 Dec 2006 17:17:11 -0500 (EST)


it works a better as root, yes:

# avrdude -p t2313 -c avrisp2 -P usb

avrdude: stk500v2_command(): command failed
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude done.  Thank you.

The device flashes an LED so it looks successful.

I'm assuming this error is mine, when trying to connect the chip to the device via breadboard.

Thanks Joerg.


On Wed, 20 Dec 2006, Joerg Wunsch wrote:

As Naveen Goswamy wrote:

avrdude: usb_open(): cannot read serial number "error sending control
message: Operation not permitted"
avrdude: usb_open(): cannot read product name "error sending control
message: Operation not permitted"
avrdude: usbdev_open(): error setting configuration 1: could not set
config 1: Operation not permitted
avrdude: usbdev_open(): did not find any USB device "usb"

I have set udev to enable permissions 0666 as in:

$ ls -al /dev/bus/usb/002/006
crw-rw-rw- 1 root root 189, 133 2006-12-20 16:12 /dev/bus/usb/002/006

Try to strace this, and see whether it's the correct device.  If the
problem persists, sorry, I have to refer you to the libusb people for
help.  If libusb cannot access the device, there's nothing AVRDUDE
could do for you.

Curious, does it work correctly when you're running it as root?

Perhaps there's any other security measure activated that checks more
than just the device's permission bits?  (I'm a bit clueless on Linux
here, I could tell you more about FreeBSD...)

cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


Naveen Goswamy

pub  1024D/6C240D73 2004/10/21 navz at dreaming.org <address@hidden>
     Key fingerprint = CAE2 7531 7226 727E 1716  CFE1 9152 6A45 6C24 0D73

keyserver.net, pgpkeys.mit.edu

reply via email to

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