I used petalinux 2018.1 for my build
When i plug in my usb device I get the following errors:
usb 1-1: new high-speed USB device number 2 using xhci-hcd
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new high-speed USB device number 3 using xhci-hcd
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new high-speed USB device number 4 using xhci-hcd
usb 1-1: Device not responding to setup address.
usb 1-1: Device not responding to setup address.
usb 1-1: device not accepting address 4, error -71
usb 1-1: new high-speed USB device number 5 using xhci-hcd
usb 1-1: Device not responding to setup address.
usb 1-1: Device not responding to setup address.
usb 1-1: device not accepting address 5, error -71
usb usb1-port1: unable to enumerate USB device
NOTE:
But when I fatload image.ub from U-boot command line using the following commands :
Code:
usb start
fatload usb 0 0x20000000 image.ub
bootm 0x20000000
and don't remove my usb after loading image.ub. It works properly upon boot & i am able to read/write to the device.
But after i disconnect and reconnect the usb device i get the same errors -71 as mentioned above.
From the following behavior, i noticed :
1) That the usb drivers have been loaded, otherwise the fatloading image.ub from u-boot wouldn't have been possible
2) The process of flashing image.ub is an interaction between the board and usb, which might have initialized something before kernel boots up. Hence the usb works after that.
I have configured the system-user.dtsi file with :
Code:
/include/ "system-conf.dtsi"
/ {
};
&dwc3_0 {
dr_mode = "host";
phy-names = "usb3-phy";
};
Also enabled
Code:
xHCI HCD(3.0)
USB Mass storage support
Designware USB3
DWC mode -> Dual Role mode
using petalinux-config -c kernel .