linux 新增huwei3g驅動的除錯流程
阿新 • • 發佈:2018-12-30
我想將一個3G手機模組接到板子上,看看能不能上網。根據網上的資料,添加了USB GenericSerialDriver 和USB driver for GSM and CDMA modems。當我將手機模組插到板子上時,提示如下資訊:
# insmod usbserial.ko vendor=0x12D1 product=0x1001
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
# insmod option.ko
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
# usb 2-1: new full speed USB device using musb_hdrc and address 2
usb 2-1: device v12d1 p1001 is not supported
usb 2-1: rejected 1 configuration due to insufficient available bus power
usb 2-1: no configuration chosen from 1 choice
在dev下也沒有看見虛擬出來的串列埠。
緊接著,我接了一個有外部供電的usb hub,將手機模組接到hub上,系統提示的資訊如下:
# insmod usbserial.ko vendor=0x12D1 product=0x1001
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
# insmod option.ko
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
# usb 2-1: new high speed USB device using musb_hdrc and address 2
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
usb 2-1.2: new full speed USB device using musb_hdrc and address 3
usb 2-1.2: device v12d1 p1001 is not supported
option 2-1.2:1.0: GSM modem (1-port) converter detected
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
option 2-1.2:1.1: GSM modem (1-port) converter detected
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
option 2-1.2:1.2: GSM modem (1-port) converter detected
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB2
我不大明白,為什麼一直會提示device v12d1 p1001 is not supported,這個手機模組是華為的,vid,pid在option.c檔案裡也都有,後來我自己又在陣列前添加了一次USB_DEVICE但是提示還是一樣,有人知道是什麼問題嗎?
另外,我現在想測試一下ttyUSB0這些虛擬串列埠,不知道誰有沒有這類的測試程式或者比較好的測試方法指點下,謝謝。
# insmod usbserial.ko vendor=0x12D1 product=0x1001
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
# insmod option.ko
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
# usb 2-1: new full speed USB device using musb_hdrc and address 2
usb 2-1: device v12d1 p1001 is not supported
usb 2-1: rejected 1 configuration due to insufficient available bus power
usb 2-1: no configuration chosen from 1 choice
在dev下也沒有看見虛擬出來的串列埠。
緊接著,我接了一個有外部供電的usb hub,將手機模組接到hub上,系統提示的資訊如下:
# insmod usbserial.ko vendor=0x12D1 product=0x1001
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
# insmod option.ko
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
# usb 2-1: new high speed USB device using musb_hdrc and address 2
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
usb 2-1.2: new full speed USB device using musb_hdrc and address 3
usb 2-1.2: device v12d1 p1001 is not supported
option 2-1.2:1.0: GSM modem (1-port) converter detected
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
option 2-1.2:1.1: GSM modem (1-port) converter detected
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
option 2-1.2:1.2: GSM modem (1-port) converter detected
usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB2
我不大明白,為什麼一直會提示device v12d1 p1001 is not supported,這個手機模組是華為的,vid,pid在option.c檔案裡也都有,後來我自己又在陣列前添加了一次USB_DEVICE但是提示還是一樣,有人知道是什麼問題嗎?
另外,我現在想測試一下ttyUSB0這些虛擬串列埠,不知道誰有沒有這類的測試程式或者比較好的測試方法指點下,謝謝。