avrdude-dev
[Top][All Lists]
Advanced

[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 16:52:47 -0500 (EST)


Hello,

Thanks for your response,


I tried using

$ avrdude -p t2313 -c avrisp2 -P usb

and received

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

and my udev rule is:

BUS=="usb", ACTION=="add", SYSFS{product}=="AVRISP mkII", \
MODE="0666", SYMLINK+="avrdev"


Sorry if I am missing something fundamental, I'm just starting out :)




On Wed, 20 Dec 2006, Joerg Wunsch wrote:

As Naveen Goswamy wrote:

$ avrdude -p t2313 -c avrisp2 -P /dev/avrdev

I get

avrdude: ser_open(): can't set attributes for device "/dev/avrdev":
Inappropriate ioctl for device

That attempts to talk to the AVRISP (which is the same as STK500v2)
using an RS-232 connection.  You need to use a USB connection though.
If there's only one AVRISP mkII connected to the system, simply saying
"usb" as the device name is sufficient.

That /dev/avrdev is not needed at all.  However, you still need to
configure udev to assign yourself the correct ownership/permissions on
the respective /proc/bus/usb/ entries when you connect the AVRISP
mkII.

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

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







reply via email to

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