I am building a custom yocto image for the raspberry pi compute module 4. I am using meta-raspberry scarthgap branch using the raspberrypi4 machine (32-bit version). (U-Boot 2024.01) In the /boot/config.txt I added: # Enable USB peripheral mode dtoverlay=dwc2,dr_mode=peripheral which should be the right mode if I understand correctly.
On startup the following is logged: PCIe BRCM: link up, 5.0 Gbps x1 (SSC) PCI: Failed autoconfig bar 10 starting USB... Bus xhci_pci: dm_pci_bus_to_phys: invalid physical address xhci-pci init cannot map PCI mem bar probe failed, error -5 No working controllers found I have no idea on what could be the problem and how to fix this. Ultimately I want to use the U-Boot ums feature to expose a block device via the usb port to another computer. I have searched the mailing list and other resources online but only found the following unanswered stackoverflow post: https://stackoverflow.com/questions/78843599/usb-not-working-in-u-boot-on-raspberry-pi-4b-with-custom-yocto-image Any help would be really appreciated, Sincerely Moritz Krautwald -- https://www.aicorn.de Östliche Rheinbrückenstr. 50 | BK 148, 76187 Karlsruhe (Postanschrift) aicorn GmbH: Geschäftsführer: Dr.-Ing. Thilo Oliver Richter, Samuel Wenz, Christian Grund; Sitz der Gesellschaft: Siemensallee 75, 76187 Karlsruhe, Deutschland; Registergericht: Mannheim, HRB 74312