把OTG配上USB网卡功能,PC机重启时USB网卡不能正常使用
本帖最后由 hapbir 于 2022-11-22 16:55 编辑我参考wiki教程[https://wiki.t-firefly.com/Core-3328-JD4/ubuntu_manual.html#usb-yi-tai-wang],在OTG口开启USB网卡功能。
1> PC(CentO S7.9、Ubuntu18.04)已开机,初次连接USB线到OTG口;
或
2> 接着USB线重启PC;
在PC上枚举的网卡名不太一样,如enp0s29f7u6c2i1,这样的网卡名即使配置IP也不能用。
重新插拔USB线或在板子上重新加载那些驱动文件后正常,PC上的网卡名变为enp0s29f7u6c2,配置IP后可用。
PC(CentOS7.9)上一段dmesg日志
[ 16.889479] ppdev: user-space parallel port driver
[ 16.968701] cdc_subset: probe of 1-6:2.0 failed with error -22
[ 16.969442] cdc_subset 1-6:2.1 usb0: register 'cdc_subset' at usb-0000:00:1d.7-6, Linux Device, f6:d4:61:35:1c:f9
[ 16.969520] usbcore: registered new interface driver cdc_subset
[ 16.970130] usbcore: registered new interface driver cdc_ether
[ 16.971952] rndis_host: probe of 1-6:2.0 failed with error -16
[ 16.972032] usbcore: registered new interface driver rndis_host
[ 17.072845] intel_powerclamp: No package C-state available
[ 17.075637] intel_powerclamp: No package C-state available
[ 17.181806] gpio_ich: GPIO from 462 to 511 on gpio_ich
rk33328板子上的一段dmesg日志
dwc2 ff580000.usb: dwc2_hsotg_ep_stop_xfr: timeout DIEPINT.NAKEFF
dwc2 ff580000.usb: dwc2_hsotg_ep_stop_xfr: timeout DOEPCTL.EPDisable
dwc2 ff580000.usb: new device is full-speed
dwc2 ff580000.usb: new device is high-speed
dwc2 ff580000.usb: new address 1
dwc2 ff580000.usb: new device is high-speed
dwc2 ff580000.usb: new device is high-speed
dwc2 ff580000.usb: new address 2
g_ether gadget: high-speed config #2: RNDIS
invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
invalid rndis message: 788476723/-722024872/-115591839/6348166, len:86
invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
invalid rndis message: -1/-722010113/-115591839/272957448, len:342
invalid rndis message: 13107/-722075136/-115591839/6348166, len:62
invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
invalid rndis message: 13107/-722075136/-115591839/6348166, len:62
请问一下这是哪儿的问题,是我配错了么?
自己回答一下吧。
找了一些资料说是Linux对TNDIS支持不太好(具体情况不太了解)。把“RNDIS support (NEW)”取消,在Linux系统上试倒是正常了。
页:
[1]