Bug 1973402 - avrdude udev rules do not include many programmers
Summary: avrdude udev rules do not include many programmers
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: avrdude
Version: 34
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Hans Ulrich Niedermann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-17 18:34 UTC by nilskemail
Modified: 2022-02-22 11:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-22 11:08:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Observed behaviour without and with sudo (112.67 KB, image/png)
2021-06-17 18:34 UTC, nilskemail
no flags Details

Description nilskemail 2021-06-17 18:34:46 UTC
Created attachment 1791884 [details]
Observed behaviour without and with sudo

Description of problem:
The udev rules included in the avrdude package include only a handful of programmers where e.g. `03eb:2140 Atmel Corp. AVR JTAGICE3 (v3.x) Debugger and Programmer` is missing. Consequently you can only use them as root (or with sudo etc).


Version-Release number of selected component (if applicable):
6.3-20.fc34

How reproducible:
Always

Steps to Reproduce:
1. Connect a JTAGICE v3.x to the PC
2. Run `avrdude -c jtag3 -p atmega644`

Actual results:
avrdude fails with `avrdude: usbdev_open(): cannot open device: Permission denied`

Expected results:
avrdude should succeed (i.e. output starts like `avrdude: AVR device initialized and ready to accept instructions [...]`


Additional info:
Based on the source there are only 6 usb devices listed in the udev rules (https://src.fedoraproject.org/rpms/avrdude/blob/f34/f/avrdude-udev-rules or `cat /usr/lib/udev/rules.d/70-avrdude_usbprog.rules`)
Debian on the other hand has 57 devices listed (https://salsa.debian.org/debian/avrdude/-/blob/master/debian/avrdude.udev)

Comment 1 Hans Ulrich Niedermann 2021-07-12 12:36:48 UTC
At this time, the avrdude Fedora package is built on the latest upstream release 6.3.

Switching to SVN snapshots will probably update the device lists as well (both programmers and chips to program).

Comment 2 nilskemail 2021-07-12 23:32:00 UTC
Based on the fact that I was unable to find any device list (/udev rules) in the SVN and that there is a separate udev-rules file in the file listing for the Fedora sources I assume that updating to a newer version will not help very much

Comment 3 Dan Horák 2022-02-22 11:08:32 UTC
With the update to avrdude-6.4-1.fc36 I have switched the udev rules file to the Debian one. I can't see a better option now.


Note You need to log in before you can comment on or make changes to this bug.