The USB3 through Petalinux 2018.2 in UltraZed-3EG-IO in peripheral mode is not recognized
====================================================================
The parameter is # CONFIG_USB_DWC3_GADGET is not set in the TeraTerm after running the zcat /proc/config.gz
Although this parameter was saved in .config file after setting it in kernel by using the command petalinux-config -c kernel and save
I have followed the rules in the wiki, and saw that.
I have verified in kernel that all was set ( before was config get hw after config kernel and after petalinux build)
USB support-----> <*> USB Gadget Support <M> USB Gadget Drivers <M> Gadget Filesystem <M> Ethernet Gadget (with CDC Ethernet support) [*] RNDIS support File systems ---> Pseudo filesystems ---> {M} Userspace-driven configuration filesystem |
I have added to sysytem-user.dtsi at the end of the file this part:
Devicetree
usb0: usb@fe200000 { #address-cells = <2>; #size-cells = <2>; status = "disabled"; compatible = "xlnx,zynqmp-dwc3"; clock-names = "bus_clk", "ref_clk"; clocks = <&clk125>, <&clk125>;
dwc3_0: dwc3@fe200000 { compatible = "snps,dwc3"; status = "disabled"; reg = <0x0 0xfe200000 0x0 0x40000>; interrupt-parent = <&gic>; interrupts = <0 65 4>; }; };
&usb0 { status = "okay"; };
&dwc3_0 { status = "okay"; dr_mode = "peripheral"; }; |
I verified all parameters are set through teraterm
CONFIG_USB_DWC3 = y
CONFIG_USB_DWC3_DUAL_ROLE = y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_PLATFORM=y
CONFIG_CONFIGFS_FS=m
CONFIG_USB_GADGET=y
CONFIG_USB_LIBCOMPOSITE=m
CONFIG_USB_ETH=m
CONFIG_USB_ETH_RNDIS=y
Although We didn't see the system.dts s changing to peripheral after running the command (I think it is mistake)
dtc -I dtb -O dts -o system.dts system.dtb
In any way it seems that the parameter was not changed in image.ub or system.dtb afyer converting it to files and text.
I will try to run the third stage:
insmod configfs.ko
insmod libcomposite.ko
insmod u_ether.ko
insmod usb_f_rndis.ko
mount -t configfs none /sys/kernel/config
cd /sys/kernel/config/usb_gadget
mkdir g1
cd g1
echo "64" > bMaxPacketSize0
echo "0x200" > bcdUSB
echo "0x100" > bcdDevice
echo "0x03FD" > idVendor
echo "0x0502" > idProduct
mkdir configs/c1.1
mkdir functions/rndis.rn0
ln -s functions/rndis.rn0/ configs/c1.1/
echo "fe200000.dwc3" > UDC
ifconfig usb0 10.10.70.1
ifconfig usb0 up
I will attach the series of commands that were used.
BR,
Shiri