g_ether gadget on more USB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

g_ether gadget on more USB

3,972 次查看
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 项奖励
3 回复数

3,691 次查看
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 项奖励

3,690 次查看
Sasamy
Contributor IV
0 项奖励

3,691 次查看
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 项奖励