Hi,
I'm using the petalinux project that we can find in the Starterkit/os/petalinux folder and I want to use the USB port to connect some peripherals, but first I have tried to check the USB using a memory stick (USB2.0 and USB3.0), but it doesn't work. I have checked the USB drivers in the kernel configuration and I think it's ok (because I'm using your petalinux base project):
Support for Host-side USB [yes]
USB announce new devices [yes]
xHCI HCD (USB 3.0) support [yes]
Generic xHCI driver for a platform device [yes]
EHCI HCD (USB 2.0) support [yes]
Root Hub Transaction Translators [yes]
Improved Transaction Translator scheduling [yes]
USB Mass Storage support [yes]
USB Attached SCSI [yes]
USB Serial Converter support [yes]
USB Winchiphead CH341 Single Port Serial Driver [yes]
Then I have checked the system-user.dtsi and under the /*USB*/ comment there is the following configuration:
/* USB */
&dwc3_0 {
status = "okay";
dr_mode = "host";
};
Even I have checked the PS IP block configuration in the Vivado project and the USB0 is enable. I created the Vivado project using the scrip that you provide in the Starterkit folder. You can see the screenshot attached.
When I boot the system I can see the following messages, but I think all of them are related with the USB-HUB and other devices that are in the TEBF0808-04A board.
...
[ 1.326436] usbcore: registered new interface driver usbfs
[ 1.326479] usbcore: registered new interface driver hub
[ 1.326518] usbcore: registered new device driver usb
...
[ 2.485243] usbcore: registered new interface driver asix
[ 2.485298] usbcore: registered new interface driver ax88179_178a
[ 2.485332] usbcore: registered new interface driver cdc_ether
[ 2.485366] usbcore: registered new interface driver net1080
[ 2.485400] usbcore: registered new interface driver cdc_subset
[ 2.485433] usbcore: registered new interface driver zaurus
[ 2.485480] usbcore: registered new interface driver cdc_ncm
[ 2.485780] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[ 2.486152] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.486164] ehci-pci: EHCI PCI platform driver
[ 2.486445] usbcore: registered new interface driver uas
[ 2.486488] usbcore: registered new interface driver usb-storage
[ 2.486553] usbcore: registered new interface driver usbserial
[ 2.486587] usbcore: registered new interface driver ch341
[ 2.486616] usbserial: USB Serial support registered for ch341-uart
...
[ 2.507131] usbcore: registered new interface driver uvcvideo
[ 2.507141] USB Video Class driver (1.1.1)
...
[ 2.508039] usbcore: registered new interface driver bcm203x
[ 2.508080] usbcore: registered new interface driver bpa10x
[ 2.508118] usbcore: registered new interface driver bfusb
[ 2.508155] usbcore: registered new interface driver btusb
...
[ 2.508224] usbcore: registered new interface driver ath3k
...
[ 2.606465] usbcore: registered new interface driver usbhid
[ 2.606475] usbhid: USB HID core driver
...
[ 4.401185] dwc3-of-simple ff9d0000.usb0: dwc3_simple_set_phydata: Can't find usb3-phy
[ 4.409724] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 4.415146] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 4.423000] xhci-hcd xhci-hcd.0.auto: hcc params 0x0238f625 hci version 0x100 quirks 0x22010010
[ 4.431655] xhci-hcd xhci-hcd.0.auto: irq 44, io mem 0xfe200000
[ 4.437644] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 4.444363] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.451561] usb usb1: Product: xHCI Host Controller
[ 4.456418] usb usb1: Manufacturer: Linux 4.14.0-xilinx-v2018.2 xhci-hcd
[ 4.463102] usb usb1: SerialNumber: xhci-hcd.0.auto
[ 4.468254] hub 1-0:1.0: USB hub found
[ 4.471946] hub 1-0:1.0: 1 port detected
[ 4.476026] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 4.481447] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 4.489123] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.497230] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 4.503946] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.511149] usb usb2: Product: xHCI Host Controller
[ 4.516007] usb usb2: Manufacturer: Linux 4.14.0-xilinx-v2018.2 xhci-hcd
[ 4.522691] usb usb2: SerialNumber: xhci-hcd.0.auto
[ 4.527811] hub 2-0:1.0: USB hub found
[ 4.531505] hub 2-0:1.0: 1 port detected
...
Starting Dropbear SSH server: Generating key, this may take a while...
[ 13.856915] usb usb1-port1: connect-debounce failed
When I login to the system and I connect the memory stick, there is no message that shows a new USB device connected. I should see something like:
USB 3.0 : HP USB 3.0 16 GB pendrive (idVendor=03f0, idProduct=4840)
USB 3.0 - UASP capable drive - Transcend Storjet 128GB
USB 2.0 : Sandisk Cruzer Blade USB 2.0 8 GB Pendrive (idVendor=0781, idProduct=5567)
When I run lsusb command I only see:
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
I don't know what I are missing. Attached you can find the whole booting log.
Thanks in advance,
Antonio