Hi,
I'm working on a project involving the TE0720-03-1CFA module on TE0703-06 carrier board, for my application I need to work with the USB port on the carrier board.
I started from the related Vivado 2019.2 project 'test_board' (https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board), I generated the .xsa and .bit files and then I created the petalinux image files following this guide https://wiki.trenz-electronic.de/display/PD/PetaLinux+KICKstart#PetaLinuxKICKstart-PetaLinux2019.2
I modified <path-tp-plinux-proj>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi like this:
/include/ "system-conf.dtsi"
/ {
usb_phy0:phy0 {
compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2", "ulpi-phy";
#phy-cells = <0>;
reg = <0xe0002000 0x1000>;
view-port=<0x170>;
drv-vbus;
};
};
&usb0 {
dr_mode = "host";
status = "okay";
usb-reset = <&gpio0 46 1>;
usb-phy = <&usb_phy0>;
};
I left unvaried all the options related with the USB communication in:
petalinux-config -c kernel
and then I enabled the libusb library (to check any usb device connected with "lsusb").
When I boot the petalinux I get random errors:
1) After the boot, i run "lsusb" command and I get nothing (neither the root HUB)
2) If I stop the u-boot and run "usb start" sometimes I get:
Zynq> usb start
starting USB...
USB0: USB EHCI 1.00
USB1: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 1 for devices... 2 USB Device(s) found
scanning usb for storage devices... 2 Storage Device(s) found
but "most" of times I get:
Zynq> usb start
starting USB...
USB0: ULPI request timed out
zynq ULPI viewport init failed
probe failed, error -1
USB1: ULPI request timed out
zynq ULPI viewport init failed
probe failed, error -1
USB error: all controllers failed lowlevel init
3)When I get no error from "usb start" and "lsusb" sees the USB device properly , if I unplug and then plug the same device I get this error:
usb 1-1: new high-speed USB device number 3 using ci_hdrc
usb 1-1: new high-speed USB device number 4 using ci_hdrc
usb usb1-port1: attempt power cycle
usb 1-1: new high-speed USB device number 5 using ci_hdrc
usb 1-1: device not accepting address 5, error -71
usb 1-1: new high-speed USB device number 6 using ci_hdrc
usb 1-1: device not accepting address 6, error -71
usb usb1-port1: unable to enumerate USB device
I red a tons of forum, user guide etc, but I can't figure out this unpredictable behavior.
Anyone had same issue?
Thanks for all the replies!
Hi,
can you try out our prebuilt binaries from our newest reference design (2020.2) --> Boot.bin, boot.scr, image.ub from the prebuilt folder of your variant
Do you have the same problem there? Please try if linx rcognise usb stick correctly. --> We didn't prepared 20.2 uboot fur usb usage, but if i remember correctly it was activated there automatically
br
John