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

Bug#1007019: dmrconfig does not detect radio



Package: dmrconfig
Version: 1.1+git20190919.e47491e-6
Severity: important

Dear Maintainer,

it looks like dmrconfig does not detect all radios, here a GD-77. The output of 
dmrconfig -r -t says:

dmrconfig -r -t
Cannot find USB device 0483:df11
Cannot find USB device 15a2:0073
Cannot find USB device 28e9:018a
No radio detected.
Check your USB cable!

You see 3 different addresses for usb, and these are exactly those in /lib/udev/rules.d/60-dmrconfig.rules.

lsusb is telling me this:

lsusb 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 5986:0102 Acer, Inc Crystal Eye Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 1fc9:0094 NXP Semiconductors OpenGD77 Transceiver
Bus 003 Device 002: ID 24ae:2010 Shenzhen Rapoo Technology Co., Ltd. Rapoo 2.4G Wireless Device
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

So you see, my device is 1fc9:0094

Knowing this, I added this line in /lib/udev/rules.d/60-dmrconfig.rules:

# Radiodditty GD-77
SUBSYSTEM=="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0049", MODE="666"

but got the same result.

Then I checked with strace, and discovered this interesting line:

openat(4, "tty", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
close(4)                                = 0
close(3)                                = 0
access("/sys/devices/virtual/tty/uevent", F_OK) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC|O_PATH|O_DIRECTORY) = 3
openat(3, "sys", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 4
fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
close(3)                                = 0
openat(4, "devices", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
close(4)                                = 0
openat(3, "virtual", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
close(3)                                = 0
close(4)                                = 0
access("/sys/devices/virtual/uevent", F_OK) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC|O_PATH|O_DIRECTORY) = 3
openat(3, "sys", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 4
fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
close(3)                                = 0
openat(4, "devices", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
close(4)                                = 0
close(3)                                = 0
access("/sys/devices/uevent", F_OK)     = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
write(2, "Cannot find USB device 28e9:018a"..., 33Cannot find USB device 28e9:018a
) = 33
write(2, "No radio detected.\n", 19No radio detected.
)    = 19
write(2, "Check your USB cable!\n", 22Check your USB cable!
) = 22
exit_group(-1)                          = ?
+++ exited with 255 +++


As you see, it is looking for /sys/devices/virtual/tty/uevent, /sys/devices/virtual/uevent and /sys/devices/uevent, but does not find any, and of course it stops then.

I checked, but on debian none of these files exist. 

Maybe youu might want to take a look at this?

Tnak you vvery much for any help.

Best regards

Hans




-- System Information:
Debian Release: 11.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dmrconfig depends on:
ii  libc6     2.32-4
ii  libudev1  247.3-6

dmrconfig recommends no packages.

dmrconfig suggests no packages.

-- debconf-show failed

-- debsums errors found:
debsums: changed file /lib/udev/rules.d/60-dmrconfig.rules (from dmrconfig package)


Reply to: