ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2014年11月13日 星期四

FT2323R vid 0403 pid 0000 driver

[14771.500536] usb 3-1.4: new full-speed USB device number 8 using xhci_hcd
[14771.959368] usb 3-1.4: New USB device found, idVendor=0403, idProduct=0000
[14771.959374] usb 3-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14771.959378] usb 3-1.4: Product: FT232R USB UART
[14771.959381] usb 3-1.4: Manufacturer: FTDI
[14771.959384] usb 3-1.4: SerialNumber: A92X933R
這個 usb-serial driver 已經內建在 kernel 理了 /lib/module/`uname -r`/kernel/drivers/usb/serial/ftdi_sio

但是大概因為這個 chip 是新的,所以不會自己 load

ref: https://bbs.archlinux.org/viewtopic.php?id=175499

先 load ftdi_sio ,之後再把 0403 0000 寫入 new_id:
# modprobe ftdi_sio
# echo 0403 0000 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id 

這樣之後...
[16240.939782] usbcore: registered new interface driver usbserial
[16240.939807] usbcore: registered new interface driver usbserial_generic
[16240.939827] usbserial: USB Serial support registered for generic
[16240.950945] usbcore: registered new interface driver ftdi_sio
[16240.950969] usbserial: USB Serial support registered for FTDI USB Serial Device
[16281.458752] usbserial: USB Serial deregistering driver FTDI USB Serial Device
[16281.458807] usbcore: deregistering interface driver ftdi_sio
[16580.239129] usbcore: registered new interface driver ftdi_sio
[16580.239174] usbserial: USB Serial support registered for FTDI USB Serial Device
[16660.940658] ftdi_sio 3-1.4:1.0: FTDI USB Serial Device converter detected
[16660.940749] usb 3-1.4: Detected FT232RL
[16660.940754] usb 3-1.4: Number of endpoints 2
[16660.940758] usb 3-1.4: Endpoint 1 MaxPacketSize 64
[16660.940762] usb 3-1.4: Endpoint 2 MaxPacketSize 64
[16660.940766] usb 3-1.4: Setting MaxPacketSize 64
[16660.941420] usb 3-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
就出現 ttyUSB0 了。

又因為 ftdi_sio 已經load在 kernel,所以拔掉 後再插一樣會動作。

沒有留言:

標籤

網誌存檔