g_ether gadget on more USB

cancel
Showing results for 
Search instead for 
Did you mean: 

g_ether gadget on more USB

810 Views
sergio_dorazio
Contributor IV

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.

0 Kudos
3 Replies

529 Views
sergio_dorazio
Contributor IV

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.

0 Kudos

529 Views
Sasamy
Contributor IV
0 Kudos

529 Views
jimmychan
NXP TechSupport
NXP TechSupport

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

0 Kudos