Bug 1973402

Summary: avrdude udev rules do not include many programmers
Product: [Fedora] Fedora Reporter: nilskemail
Component: avrdudeAssignee: Hans Ulrich Niedermann <rhbugs>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: dan, giallu, jaromir.capik, rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-22 11:08:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Observed behaviour without and with sudo none

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.