The core problem is that there is no USB Device Controller.
returns empty
the dwc2 driver is available and loaded, and it reports no error that I can find.and OTG is disabled in /boot/firmware/config.txt as needed to use the dwc2 module
however the USBC connector, which is the only one that could use the dwc2 driver on a pi 5 (I have tried this on pi 4 and even pi zero and can't make it work), the USBC connector is not listed here:
which I guess would explain why the dwc2 driver can't find any hw to setup the UDC.
no signs of dwc2 here either:
that connector is not used to power the pi and should be available (I'm powering the pi 5 using the 40 pin connector), but perhaps there is something I need to to in order to let the pi 5 that the USBC is available?
any ideas?
Code:
ls /sys/class/udc/the dwc2 driver is available and loaded, and it reports no error that I can find.
Code:
lsmod | grep dwc2dwc2 212992 0Code:
[cm4][cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.# otg_mode=1[cm5]dtoverlay=dwc2,dr_mode=peripheralCode:
lsusb -t/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480Mno signs of dwc2 here either:
Code:
dmesg | grep -i usb[ 1.126886] usbcore: registered new interface driver usbfs[ 1.132398] usbcore: registered new interface driver hub[ 1.137738] usbcore: registered new device driver usb[ 1.669195] usbcore: registered new device driver r8152-cfgselector[ 1.675492] usbcore: registered new interface driver r8152[ 1.681000] usbcore: registered new interface driver lan78xx[ 1.686681] usbcore: registered new interface driver smsc95xx[ 1.698352] usbcore: registered new interface driver uas[ 1.703687] usbcore: registered new interface driver usb-storage[ 1.787117] usbcore: registered new interface driver usbhid[ 1.792711] usbhid: USB HID core driver[ 2.274886] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 1[ 2.302515] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 2[ 2.309769] xhci-hcd xhci-hcd.0: Host supports USB 3.0 SuperSpeed[ 2.315914] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06[ 2.324215] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 2.331465] usb usb1: Product: xHCI Host Controller[ 2.336359] usb usb1: Manufacturer: Linux 6.6.74-v8-16k+ xhci-hcd[ 2.342474] usb usb1: SerialNumber: xhci-hcd.0[ 2.347018] hub 1-0:1.0: USB hub found[ 2.354895] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06[ 2.363197] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 2.370448] usb usb2: Product: xHCI Host Controller[ 2.375342] usb usb2: Manufacturer: Linux 6.6.74-v8-16k+ xhci-hcd[ 2.381524] usb usb2: SerialNumber: xhci-hcd.0[ 2.386050] hub 2-0:1.0: USB hub found[ 2.399143] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 3[ 2.426819] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 4[ 2.434169] xhci-hcd xhci-hcd.1: Host supports USB 3.0 SuperSpeed[ 2.440309] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06[ 2.448707] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 2.455960] usb usb3: Product: xHCI Host Controller[ 2.460852] usb usb3: Manufacturer: Linux 6.6.74-v8-16k+ xhci-hcd[ 2.467064] usb usb3: SerialNumber: xhci-hcd.1[ 2.471585] hub 3-0:1.0: USB hub found[ 2.479462] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06[ 2.487859] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1[ 2.495111] usb usb4: Product: xHCI Host Controller[ 2.500130] usb usb4: Manufacturer: Linux 6.6.74-v8-16k+ xhci-hcd[ 2.506299] usb usb4: SerialNumber: xhci-hcd.1[ 2.510823] hub 4-0:1.0: USB hub found[ 4.881149] usbcore: registered new interface driver brcmfmacany ideas?
Statistics: Posted by ultramarineblue — Sun Feb 09, 2025 12:40 am