usbutils broken....
Open
Nobody has claimed this yet.
release/21.02
stale
upstream
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
@kuanyili
continued from issue #14488
this seems to be broken in later versions of openwrt??? that it does not even read the usb.ids file
root@APU2:/usr/share/hwdata# opkg files usbutils
Package usbutils (013-2) is installed on root and has the following files:
/usr/bin/lsusb
/usr/bin/usbreset
root@APU2:/usr/share/hwdata# opkg files usbids
Package usbids (0.354-1) is installed on root and has the following files:
/usr/share/hwdata/usb.ids
root@APU2:/usr/share/hwdata# lsusb
Bus 002 Device 002: ID 2357:0120 Realtek 802.11ac WLAN Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux 5.4.179 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 0438:7900
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.179 ehci_hcd EHCI Host Controller
Bus 003 Device 001: ID 1d6b:0003 Linux 5.4.179 xhci-hcd xHCI Host Controller
root@APU2:/usr/share/hwdata# strace lsusb 2>&1 | grep "usb.ids"
root@APU2:/usr/share/hwdata# strace lspci 2>&1 | grep "pci.ids"
open("/usr/share/hwdata/pci.ids", O_RDONLY) = 4
root@APU2:/usr/share/hwdata# opkg files pciutils
Package pciutils (3.7.0-2) is installed on root and has the following files:
/usr/sbin/lspci
/usr/sbin/setpci
/usr/sbin/update-pciids
root@APU2:/usr/share/hwdata# opkg files pciids
Package pciids (0.354-1) is installed on root and has the following files:
/usr/share/hwdata/pci.ids
root@APU2:/usr/share/hwdata#
root@APU2:/usr/share/hwdata# cat /etc/banner
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 21.02.2, r16495-bf0c965af0
-----------------------------------------------------
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with /usr/bin/lsusb and the installed /usr/share/hwdata/usb.ids on OpenWrt 21.02.2, using the reported strace behavior as the reproduction. Compare how pciutils locates /usr/share/hwdata/pci.ids and determine why usbutils does not read its ID file. Done means lsusb resolves the device and vendor names from usb.ids.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- embedded-iot, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100