To enable the USB2.0 OTG (connector J10) for Ethernet Gadget, configure ltib menuconfig (command ltib -c)
and mark “[*]Configure the kernel”. On Kernel configuration, mark the options:
Device Drivers
<*> USB Support
<*> EHCI HCD (USB 2.0) support
[*] Support for Freescale controller
Support for DR host port on Freescale controller
USB Gadget Drivers --->
[*] Support for DR peripheral port on Freescale controller
Select transceiver for DR port (On-chip UTMI) --->
<M> Ethernet Gadget (with CDC Ethernet support)
For tests :
Connect a USB cable to PC and USB Host OTG (J10 connector) on I.MX25 Board.
Load the g_ether module:
$ modprobe fsl_otg_arc
$ modprobe arcotg_udc
$ modprobe g_ether
Configure host ethernet by typing on host:
$ ifconfig usb0 192.168.0.1
Configure target ethernet by typing on target:
$ ifconfig usb0 192.168.0.2