Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5035

Troubleshooting • raspbian buster - usb device not recognized

$
0
0
Hi,

I have a RPI B connected to a UPS and I am using NUTS. Works fine.
This is a RPI B+ rev1.3 with a Bullseye and kernel 6.1.21

I also have another RPI B (rev.1.2) running a Buster with kernel 5.10.63
It also has a UPS conencted.

Both of the RPIs detect the UPS on USB port as "Fry's Electronics" device but they are 2 different models. (lsusb output)

Now, I have to swap the UPSs. The one on the RPI B with buster is detected well on the RPI B+ with bullseye, but the other one (which is previously on RPI B+ with buster) is not detected by the buster.

On dmesg, I get :
[ 841.494024] usb 1-1.4: new low-speed USB device number 8 using dwc_otg
[ 842.044035] usb 1-1.4: new low-speed USB device number 9 using dwc_otg
[ 842.494267] usb 1-1-port4: attempt power cycle
[ 843.154035] usb 1-1.4: new low-speed USB device number 10 using dwc_otg
[ 843.694036] usb 1-1.4: new low-speed USB device number 11 using dwc_otg
First I thought it might be a hardware issue since the boards are different. But then I tried the buster image on RPI B+. Previously detected UPS is not detected on the same RPI B+ when buster is used.
It seems like a OS , kernel or driver (kernel mod) issue.
Bullseye can detect the UPS but buster can not.

I can't upgrade the OS to Bullseye because this is multi purpose device and I am running some services on it which I could only run on Buster.
But I made a clone of the SD card and tried to upgrade it , just to see.
"apt dist-upgrade" updated many packages along with the kernel.
Kernel is upgraded to 5.10.103 (from 5.10.63) but even that change did not let the RPI detect the UPS.

So, even changing the kernel does not fix the problem. Maybe I need a kernel mod update to be able to detect the UPS.
Any ideas ?

working setup:
r
oot@proxy:~# uname -a
Linux proxy 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

root@proxy:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

root@proxy:~# lsusb
Bus 001 Device 004: ID 0001:0000 Fry's Electronics Mroot@proxy:~# dmesg | grep usbEC0003
Bus 001 Device 005: ID 0424:7800 Microchip Technology, Inc. (formerly SMSC)
Bus 001 Device 003: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubroot@proxy:~# dmesg | grep usb

root@proxy:~# dmesg | grep usb
[ 4.704890] usb 1-1.1.1: new high-speed USB device number 5 using dwc_otg
[ 4.805777] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800, bcdDevice= 3.00
[ 4.805824] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

root@proxy:~# dpkg -l | grep libusb
ii libgusb2:arm64 0.3.5-1 arm64 GLib wrapper around libusb1
ii libusb-1.0-0:arm64 2:1.0.24-3 arm64 userspace USB programming library
ii libusbmuxd6:arm64 2.0.2-3 arm64 USB multiplexor daemon for iPhone and iPod Touch devices - library
not working setup:
root@raspbx:/boot# uname -a
Linux raspbx 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l GNU/Linux

root@raspbx:/boot# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

root@raspbx:/boot# lsusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@raspbx:/boot# dmesg | grep usb
[ 841.494024] usb 1-1.4: new low-speed USB device number 8 using dwc_otg
[ 842.044035] usb 1-1.4: new low-speed USB device number 9 using dwc_otg
[ 842.494267] usb 1-1-port4: attempt power cycle
[ 843.154035] usb 1-1.4: new low-speed USB device number 10 using dwc_otg
[ 843.694036] usb 1-1.4: new low-speed USB device number 11 using dwc_otg

root@raspbx:/boot# dpkg -l | grep libusb
ii libgusb2:armhf 0.3.0-1 armhf GLib wrapper around libusb1
ii libusb-0.1-4:armhf 2:0.1.12-32 armhf userspace USB programming library
ii libusb-1.0-0:armhf 2:1.0.22-2 armhf userspace USB programming library
ii libusb-1.0-0-dev:armhf 2:1.0.22-2 armhf userspace USB programming library development files
ii libusb-1.0-doc 2:1.0.22-2 all documentation for userspace USB programming
ii libusbmuxd4:armhf 1.1.0~git20181007.07a493a-1 armhf

Statistics: Posted by mrmrmrmr — Mon Jul 29, 2024 12:54 pm



Viewing all articles
Browse latest Browse all 5035

Trending Articles