Hi,您好
我最近將USB host(ohci-hcd)與USB serial driver(option,usb_wwan,usbserial)打開,並將USB device插上試試,但結果好像不是很順利,
1.在/proc/tty/usb下並沒有看到那個USB device
2. 在/sys/dev/char下並沒有看到USB註冊的的major與minor number
3.但在/proc/devices裡卻有看到 character device (188 ttyUSB)
4.從kernel log裡,是有說diver有被啟動
———————–
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver cdc_eem
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
SCSI subsystem initialized
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
musb-hdrc: version 6.0, host, debug=0
USBSS revision 4ea2080b
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
musb-hdrc musb-hdrc.0: dma type: dma-cppi41
MUSB controller-0 revision 4ea20800
usb2phy: computed values rxcalib(15)DACs(30 14 14)
usb2phy: override computed values rxcalib(15)DACs(30 14 14)
usb2phy_config: musb(0) rxcalib done, rxcalib read value 6f6f5d76
TxFifo Empty intr enabled
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc.0: USB Host mode controller at ce0a0000 using DMA, IRQ 18
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
MUSB controller-1 revision 4ea20800
usb2phy: computed values rxcalib(15)DACs(35 16 15)
usb2phy: override computed values rxcalib(15)DACs(35 16 15)
usb2phy_config: musb(1) rxcalib done, rxcalib read value 6f71e17e
TxFifo Empty intr enabled
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
musb-hdrc musb-hdrc.1: USB Host mode controller at ce0a4800 using DMA, IRQ 19
usb 1-1: new high speed USB device using musb-hdrc and address 2
———————–
請問是否driver並沒有順利被掛起呢?要怎麼再確定這問題呢??謝謝…
Chris Meng:
你好,
请问你使用的芯片是哪一款?
你的应用是芯片运行usb host模式,外部插入一个usb转串口的device么?如果是,请问在插入/不插入情况下/dev下的设备是否有变化?
Byron Tien:
回复 Chris Meng:
你好,
我是用DM385去當usb host,以外插一個usb device做動,目前在插入/不插入的情況是沒有變化,不過這裡面的ttyUSB device是我事先就開好的.
Chris Meng:
回复 Byron Tien:
你好,
你的usb host功能之前有确认正常么?先用一个u盘插入试试,能正常识别么?
Byron Tien:
回复 Chris Meng:
你好,
之前這usb host(DM385)我是用usb-ethernet的方式去接另一個usb device,
而現在我想直接用usb interace去接一個usb device.(讓usb host去認後端的device),
請問在driver部份需要怎麼更動嗎?
Chris Meng:
回复 Byron Tien:
你好,
你是否有修改相应的驱动配置?
http://processors.wiki.ti.com/index.php/TI81XX_PSP_USB_Driver_User_Guide
http://processors.wiki.ti.com/index.php/Usbgeneralpage#USB-ID_pin_configuration_selection_for_TI81XX
Byron Tien:
回复 Chris Meng:
你好,
謝謝你的文件,usb host已經可以看到後端的usb device了,但另外一個問題是,我有將usbserial driver打開,為什麼系統上沒有看到它的註冊呢?沒有看到major/minor number?