|
【技术讨论】
把OTG配上USB网卡功能,PC机重启时USB网卡不能正常使用
发表于 2022-11-22 16:52:27
浏览:6034
|
回复:1
打印
只看该作者
[复制链接]
楼主
-
固件类型:
自行编译的固件
-
SDK包名称:
rk3328_linux_release_v2.5.1_20210301_firefly_split
-
SDK更新到哪个COMMIT:
0000-00-00 00:00:00
-
SDK修改内容:
参考wiki,开启内核USB Gadget相关配置以支持USB网卡功能(https://wiki.t-firefly.com/Core-3328-JD4/ubuntu_manual.html#usb-yi-tai-wang)
-
Log日志:
logs.zip
问题描述及复现步骤:
本帖最后由 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
复制代码
请问一下这是哪儿的问题,是我配错了么?
|
-
-
logs.zip
41.53 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1
|