请问为什么AIR720 4G模块插入到V3s linux4.13系统,
只有一个 RNDIS 设备,
确没有像 Windows再多四个串口.
这是为什么呢?
离线
[ 595.249458] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 595.446965] rndis_host 1-1:1.0 eth1: register 'rndis_host' at usb-1c1a000.usb-1, RNDIS device, ac:a9:de:f8:f1:75
这是驱动输出的记录.
离线
插入 ubuntu 18.04 也是这样:
[699934.369537] usb 3-2.1: USB disconnect, device number 19
[699934.369614] rndis_host 3-2.1:1.0 enxaca9def8f175: unregister 'rndis_host' usb-0000:03:00.0-2.1, RNDIS device
[699936.475885] usb 3-2.1: new high-speed USB device number 20 using xhci_hcd
[699936.689810] usb 3-2.1: New USB device found, idVendor=1286, idProduct=4e3d, bcdDevice= 1.00
[699936.689812] usb 3-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[699936.689813] usb 3-2.1: Product: Mobile Composite Device Bus
[699936.689814] usb 3-2.1: Manufacturer: Marvell
[699936.689815] usb 3-2.1: SerialNumber: 200806006809080000
[699936.702012] rndis_host 3-2.1:1.0 eth0: register 'rndis_host' at usb-0000:03:00.0-2.1, RNDIS device, ac:a9:de:f8:f1:75
[699936.749105] rndis_host 3-2.1:1.0 enxaca9def8f175: renamed from eth0
离线
终于找到官方的文档了,
原来要打开 /dev/ttyUSB* 需要修改内核配置和源码:
https://ask.openluat.com/article/79
上面链接的云备份: air720_linux_rndis_ttyUSB.pdf
离线
费了九牛二虎之力终于搞定.
[ 44.119061] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 44.317009] rndis_host 1-1:1.0 eth1: register 'rndis_host' at usb-1c1a000.usb-1, RNDIS device, ac:92:48:f9:ea:08
[ 44.380705] option 1-1:1.2: GSM modem (1-port) converter detected
[ 44.411618] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 44.445448] option 1-1:1.3: GSM modem (1-port) converter detected
[ 44.474551] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 44.491664] option 1-1:1.4: GSM modem (1-port) converter detected
[ 44.524489] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
先按这个改: https://ask.openluat.com/article/37
再按这个改: https://ask.openluat.com/article/79
离线
感觉步骤有点复杂,不过还好参考楼主终于改好了,只是还有一个问题,为什么要这样改呢?
离线
昨天刷抖音,刷到一个视频,说是这个4G模块,在遇到物联网卡的时候,会有点乱.具体不详.
离线
AIR724插到我的A64板子也是只能显示RNDIS设备, 那几个虚拟串口没有哦,可以用这个方法改出来吗?
离线
正好需要这些的资料,找了好久终于找到了
离线
modprobe usbserial
echo 1782 4e00 > /sys/bus/usb-serial/drivers/generic/new_id
查看设备:
# ls /dev/ttyUSB* -l
crw-rw---- 1 root dialout 188, 0 Jan 1 00:01 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Jan 1 00:01 /dev/ttyUSB1
crw--w---- 1 root root 188, 2 Jan 1 00:01 /dev/ttyUSB2
crw--w---- 1 root root 188, 3 Jan 1 00:01 /dev/ttyUSB3
离线
modprobe usbserial echo 1782 4e00 > /sys/bus/usb-serial/drivers/generic/new_id
查看设备:
# ls /dev/ttyUSB* -l crw-rw---- 1 root dialout 188, 0 Jan 1 00:01 /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 1 Jan 1 00:01 /dev/ttyUSB1 crw--w---- 1 root root 188, 2 Jan 1 00:01 /dev/ttyUSB2 crw--w---- 1 root root 188, 3 Jan 1 00:01 /dev/ttyUSB3
这个好,不用改内核代码。
离线