Hi ,
I have a custom IMX6ULL board with 2 USB OTG and Yocto LINUX operative system,
I have connected the USB0 to PC1 and work with g_ether gadget, it work well.
I want connect the USB1 to PC2 and work with g_ether gadget, how can I select the USB device ?
I know only the command " modprobe g_ether " without parameters !!!
Have someone expert on this argument ?
Must I duplicate g_ether.ko module ?
Have someone any suggestion ?
Sergio D'Orazio.
Hello,
I add a news about this problem:
if I do this command " modprobe g_ether " , the system load the ethernet gadget on physical USB1, and it works.
if I do these command " modprobe g_serial " and then " modprobe g_ether " , the system load the serial gadget on physical USB1 and ethernet gadget on physical USB2, and they work.
Do someone know how load 2 ethernet gadget , one on USB1 and one on USB2 ?
Is it possible or not ?
Have someone any suggestion ?
Sergio D'Orazio.
Hello,
You can use a dynamic configuration instead of a static one
https://www.kernel.org/doc/html/latest/usb/gadget_configfs.html?highlight=configfs
I am thinking you may modify the driver g_ether that can add an input parameter for selecting the physical usb. e.g. insmod g_ether.ko usb1