Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: Swiss222 on April 22, 2024, 10:00:51 AM

Title: TE0715 and USB RNDIS on petalinux 2022.2 not working
Post by: Swiss222 on April 22, 2024, 10:00:51 AM
Hello,
I've asked this question on the Xilinx forum (https://support.xilinx.com/s/question/0D54U00008HaZLOSA3/usb-rndis-zynq-7000-doesnt-work?language=en_US) first but got no answer there, hope to get some answer here  :)

I'm trying to implement USB RNDIS interface on Petalinux 2022.2, following this tutorial (https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842272/Zynq+Linux+USB+Device+Driver)
I don't know if tutorial is outdated, but I wasn't copying modules on the SD card, just ran modprobe on them upon linux boot.

Secondly, I was only able to activate the USB if I used compatible = "usb-nop-xceiv"; instead of the suggested "ulpi-phy", this might be suggested with the commented out lines in the device tree of TE0715 Test Board (https://wiki.trenz-electronic.de/display/PD/TE0715+Test+Board) design?

Lastly, the device is recognized and running iperf3 works in one direction (windows 11 to board) but crashes and blocks the whole petalinux when ran in board to windows. It looks very similiar to the known issue AR-76735 (https://support.xilinx.com/s/article/76735), but this issue should be fixed since petalinux 2021 if I'm not mistaken.

If you need any more details I'll be happy to provide them, we bought around 40 of these boards and it would be crucial to get the usb interface running, thanks :)
Title: Re: TE0715 and USB RNDIS on petalinux 2022.2 not working
Post by: Swiss222 on May 06, 2024, 11:40:40 AM
I solved it! As I explained here https://support.xilinx.com/s/question/0D54U00008HaZLOSA3/usb-rndis-zynq-7000-doesnt-work

the device tree was the problem if you follow the xilinx zynq usb tutorial, the usb part should just be:

&usb0 {
     status = "okay";
    dr_mode = "peripheral";
    usb-phy = <&usb_phy0>;
};

Then ulpi-phy works. I saw a lot of people struggle with this so I hope this helps