Firefly开源社区
标题:
把OTG配上USB网卡功能,PC机重启时USB网卡不能正常使用
[打印本页]
作者:
hapbir
时间:
2022-11-22 16:52
标题:
把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日志
[ 184.460627] dwc2 ff580000.usb: dwc2_hsotg_ep_stop_xfr: timeout DIEPINT.NAKEFF
[ 184.460805] dwc2 ff580000.usb: dwc2_hsotg_ep_stop_xfr: timeout DOEPCTL.EPDisable
[ 184.480371] dwc2 ff580000.usb: new device is full-speed
[ 184.747486] dwc2 ff580000.usb: new device is high-speed
[ 184.790835] dwc2 ff580000.usb: new address 1
[ 196.063640] dwc2 ff580000.usb: new device is high-speed
[ 196.175640] dwc2 ff580000.usb: new device is high-speed
[ 196.226614] dwc2 ff580000.usb: new address 2
[ 196.239766] g_ether gadget: high-speed config #2: RNDIS
[ 230.339864] invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
[ 230.355841] invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
[ 231.082892] invalid rndis message: 788476723/-722024872/-115591839/6348166, len:86
[ 232.084926] invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
[ 232.694934] invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
[ 233.495949] invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
[ 233.516459] invalid rndis message: -1/-722010113/-115591839/272957448, len:342
[ 234.018035] invalid rndis message: 13107/-722075136/-115591839/6348166, len:62
[ 234.170962] invalid rndis message: 13107/-722070016/-115591839/6348166, len:90
[ 238.018193] invalid rndis message: 13107/-722075136/-115591839/6348166, len:62
复制代码
请问一下这是哪儿的问题,是我配错了么?
tchip_askquestions
logs.zip
2022-11-22 16:47 上传
点击文件名下载附件
下载积分: 灯泡 -1 , 经验 -1
41.53 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1
作者:
hapbir
时间:
2023-1-16 18:11
自己回答一下吧。
找了一些资料说是Linux对TNDIS支持不太好(具体情况不太了解)。把“RNDIS support (NEW)”取消,在Linux系统上试倒是正常了。
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1