AnsweredAssumed Answered

how to configure the usb from host to device

Question asked by Wenyang.Xiao@verisilicon.com on Mar 23, 2015
Latest reply on Mar 23, 2015 by rgetz


Hi all,

     The zynq706's usb is a host port, and it can configure it to a device port, I have configured the slave driver and usb core, but it still can't work, the printk informations are as follows:

    

root@linaro-ubuntu-desktop:/tmp# insmod configfs.ko

root@linaro-ubuntu-desktop:/tmp# insmod libcomposite.ko

root@linaro-ubuntu-desktop:/tmp# insmod u_ether.ko

root@linaro-ubuntu-desktop:/tmp# insmod usb_f_rndis.ko

root@linaro-ubuntu-desktop:/tmp# insmod g_ether.ko

g_ether zynq-udc.0: failed to start g_ether: -2

insmod: error inserting 'g_ether.ko': -1 Unknown symbol in module

root@linaro-ubuntu-desktop:/tmp#

 

     I want to use the usb as a eth port, I have modified the devicetree as follows:

 

usb: usb@e0002000 {

   compatible = "xlnx,ps7-usb-1.00.a", "xlnx,zynq-usb-1.00.a";

   reg = <0xe0002000 0x1000>;

   interrupts = <0 21 4>;

   interrupt-parent = <&gic>;

   clocks = <&clkc 28>;

   dr_mode = "peripheral";  //when usb as a host, the dr_mode is host

   phy_type = "ulpi";

  };

 

     Could somebody can tell me why? and need I modify the devicetree something else? Thank you!

Outcomes