M301H刷入系统 Ubuntu 20.04.4 LTS | V20220416-4.4.35_hi3798mv2x
使用USB转232时出现问题
使用PL2303 芯片的数据线没有问题
使用FTDI FT232R 芯片数据线无法使用
命令 lsusb
可以识别到数据线
Bus 002 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
root@hi3798mv300:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 008: ID 287f:00d4
Bus 001 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 004: ID 2109:2813 VIA Labs, Inc. USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@hi3798mv300:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/2p, 480M
|__ Port 1: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 12M
|__ Port 3: Dev 7, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
|__ Port 4: Dev 8, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 2: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
root@hi3798mv300:~# ls /dev/ttyUSB*
/dev/ttyUSB0
其中
|__ Port 1: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 12M
|__ Port 3: Dev 7, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
这两行都是USB-232数据线,
其中一个Driver=pl2303, 12M
另一个Driver=, 12M
想请教这个是正常的吗?
如果不正常是什么情况?没有驱动?没有关联端口?
使用 dmesg | grep usb 也看不到FTDI设备
root@hi3798mv300:~# dmesg | grep usb
[ 0.988776] usbcore: registered new interface driver usbfs
[ 0.993003] usbcore: registered new interface driver hub
[ 0.997048] usbcore: registered new device driver usb
[ 1.844908] usbcore: registered new interface driver asix
[ 1.849066] usbcore: registered new interface driver ax88179_178a
[ 1.853898] usbcore: registered new interface driver cdc_ether
[ 1.858467] usbcore: registered new interface driver dm9601
[ 1.862788] usbcore: registered new interface driver net1080
[ 1.867184] usbcore: registered new interface driver cdc_subset
[ 1.871841] usbcore: registered new interface driver zaurus
[ 1.876179] usbcore: registered new interface driver cdc_ncm
[ 2.072587] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.085349] usbcore: registered new interface driver uas
[ 2.089468] usbcore: registered new interface driver usb-storage
[ 2.094222] usbcore: registered new interface driver ums-realtek
[ 2.099010] usbcore: registered new interface driver usbserial
[ 2.103576] usbcore: registered new interface driver usbserial_generic
[ 2.108837] usbserial: USB Serial support registered for generic
[ 2.113581] usbcore: registered new interface driver usb_debug
[ 2.118141] usbserial: USB Serial support registered for debug
[ 2.122709] usbcore: registered new interface driver option
[ 2.127013] usbserial: USB Serial support registered for GSM modem (1-port)
[ 2.132912] usbcore: registered new interface driver pl2303
[ 2.137212] usbserial: USB Serial support registered for pl2303
[ 2.146669] usbcore: registered new interface driver xpad
[ 2.153473] usbcore: registered new interface driver uvcvideo
[ 2.509791] usb 1-2: new high-speed USB device number 3 using ehci-platform
[ 2.519784] usb 2-1: new full-speed USB device number 2 using ohci-platform
[ 2.640246] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 2.645235] scsi host0: usb-storage 1-2:1.0
[ 3.020685] usbcore: registered new interface driver usbhid
[ 3.024962] usbhid: USB HID core driver
[ 3.030089] usbcore: registered new interface driver snd-usb-audio
[ 773.880461] usb 2-1: USB disconnect, device number 2
[ 798.031202] usb 1-2: USB disconnect, device number 3
[ 799.076188] usb 1-1: new high-speed USB device number 4 using ehci-platform
[ 799.427180] usb 1-2: new high-speed USB device number 5 using ehci-platform
[ 799.543805] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 799.550938] scsi host1: usb-storage 1-2:1.0
[ 799.619185] usb 1-1.1: new full-speed USB device number 6 using ehci-platform
[ 799.800186] usb 1-1.3: new full-speed USB device number 7 using ehci-platform
[ 799.901669] usb 1-1.3: pl2303 converter now attached to ttyUSB0
[ 799.983223] usb 1-1.4: new full-speed USB device number 8 using ehci-platform
[ 800.072367] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 800.076555] scsi host2: usb-storage 1-1.4:1.0
到FTDI官方网站寻找驱动,有两种驱动,一个是虚拟VCP驱动,表示所有FTDI设备现在都支持 Ubuntu 11.10,内核版本为 3.0.0-19,已经集成到内核了
另一个是D2XX驱动 DLL直接访问USB,按照官方文档安装了还是没有作用。
想请教各路大神如何解决?