Ubuntu 14.04 with avrdude and Atmel AVRISPmkII : UDEV tweak

If you want to use avrdude with an AVRISPmkII from Atmel on your Ubuntu 14.04 box, you need to use sudo. If you don’t, you will receive an “Operation not permitted” message.

Unless you tweak UDEV.

You need to create a file in /etc/udev/rules.d named 60-avrisp.rules containing the following :

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"

# Atmel Corp.JTAG ICE mkII
ATTR{idVendor}==”03eb”, ATTR{idProduct}==”2103″, MODE=”660″, GROUP=”dialout”

# Atmel Corp. AVRISP mkII
ATTR{idVendor}==”03eb”, ATTR{idProduct}==”2104″, MODE=”660″, GROUP=”dialout”

# Atmel Corp. Dragon
ATTR{idVendor}==”03eb”, ATTR{idProduct}==”2107″, MODE=”660″, GROUP=”dialout”

LABEL=”avrisp_end”

Add yourself to dialout group.

Restart udev :
sudo restart udev

Plug/unplug your AVRISPmkII from USB port, and then you may now use avrdude whithout root permissions.
$ avrdude -p m168 -c avrisp2

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9406

avrdude: safemode: Fuses OK (H:01, E:DF, L:FF)

avrdude done. Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *