Linux

如何在核心中包含 qcserial 模組?

  • December 31, 2013

我需要一個編譯的核心,具有 qcserial 模組以支持華為 EM 680 型號(Gobi 3000)。我得到了核心 3.11.6 並且可以在其中找到適當的源文件,./drivers/usb/serial/qcserial.c但我如何確保它被靜態編譯和載入?我在核心配置對話框中找不到它……有什麼想法嗎?

我正在為 arm AT91 CPU 交叉編譯這個核心,我需要對上述單元調製解調器的支持……

從 linux-3.1.1-1 開始,設備被 qcserial 模組檢測到”——我在https://wiki.archlinux.org/index.php/Gobi_Broadband_Modems上找到了

編輯調製解調器管理器

安裝調製解調器管理器後,我嘗試啟動它,但我並沒有真正得到任何東西,請參閱下面的螢幕輸出:

# modem-manager  
modem-manager[2417]: <info>  ModemManager (version 0.5.2.0) starting...
modem-manager[2417]: <info>  Loaded plugin Novatel
modem-manager[2417]: <info>  Loaded plugin ZTE
modem-manager[2417]: <info>  Loaded plugin Option High-Speed
modem-manager[2417]: <info>  Loaded plugin Longcheer
modem-manager[2417]: <info>  Loaded plugin Ericsson MBM
modem-manager[2417]: <info>  Loaded plugin Samsung
modem-manager[2417]: <info>  Loaded plugin Nokia
modem-manager[2417]: <info>  Loaded plugin SimTech
modem-manager[2417]: <info>  Loaded plugin Huawei
modem-manager[2417]: <info>  Loaded plugin MotoC
modem-manager[2417]: <info>  Loaded plugin X22X
modem-manager[2417]: <info>  Loaded plugin Generic
modem-manager[2417]: <info>  Loaded plugin Sierra
modem-manager[2417]: <info>  Loaded plugin Option
modem-manager[2417]: <info>  Loaded plugin Wavecom
modem-manager[2417]: <info>  Loaded plugin Linktop
modem-manager[2417]: <info>  Loaded plugin Gobi
modem-manager[2417]: <info>  Loaded plugin AnyData
modem-manager[2417]: <info>  (ttyUSB0) opening serial port...
modem-manager[2417]: <info>  (ttyUSB1) opening serial port...
modem-manager[2417]: <info>  (ttyUSB2) opening serial port...
modem-manager[2417]: <info>  (ttyS1) opening serial port...
modem-manager[2417]: <info>  (ttyS2) opening serial port...
modem-manager[2417]: <info>  (ttyS3) opening serial port...
modem-manager[2417]: <info>  (ttyS4) opening serial port...
modem-manager[2417]: <info>  (ttyS0) opening serial port...
modem-manager[2417]: <info>  (ttyUSB0) closing serial port...
modem-manager[2417]: <info>  (ttyUSB0) serial port closed
modem-manager[2417]: <info>  (ttyUSB0) opening serial port...
modem-manager[2417]: <info>  (ttyUSB1) closing serial port...
modem-manager[2417]: <info>  (ttyUSB1) serial port closed
modem-manager[2417]: <info>  (ttyUSB1) opening serial port...
modem-manager[2417]: <info>  (ttyUSB2) closing serial port...
modem-manager[2417]: <info>  (ttyUSB2) serial port closed
modem-manager[2417]: <info>  (ttyUSB2) opening serial port...
modem-manager[2417]: <info>  (ttyS1) closing serial port...
modem-manager[2417]: <info>  (ttyS1) serial port closed
modem-manager[2417]: <info>  (ttyS1) opening serial port...
modem-manager[2417]: <info>  (ttyS2) closing serial port...
modem-manager[2417]: <info>  (ttyS2) serial port closed
modem-manager[2417]: <info>  (ttyS2) opening serial port...
modem-manager[2417]: <info>  (ttyS3) closing serial port...
modem-manager[2417]: <info>  (ttyS3) serial port closed
modem-manager[2417]: <info>  (ttyS3) opening serial port...
modem-manager[2417]: <info>  (ttyS4) closing serial port...
modem-manager[2417]: <info>  (ttyS4) serial port closed
modem-manager[2417]: <info>  (ttyS4) opening serial port...
modem-manager[2417]: <info>  (ttyS0) closing serial port...
modem-manager[2417]: <info>  (ttyS0) serial port closed
modem-manager[2417]: <info>  (ttyS0) opening serial port...
modem-manager[2417]: <info>  (ttyUSB0) closing serial port...
modem-manager[2417]: <info>  (ttyUSB0) serial port closed
modem-manager[2417]: <info>  (ttyUSB1) closing serial port...
modem-manager[2417]: <info>  (ttyUSB1) serial port closed
modem-manager[2417]: <info>  (ttyUSB2) closing serial port...
modem-manager[2417]: <info>  (ttyUSB2) serial port closed
modem-manager[2417]: <info>  (ttyS1) closing serial port...
modem-manager[2417]: <info>  (ttyS1) serial port closed
modem-manager[2417]: <info>  (ttyS2) closing serial port...
modem-manager[2417]: <info>  (ttyS2) serial port closed
modem-manager[2417]: <info>  (ttyS3) closing serial port...
modem-manager[2417]: <info>  (ttyS3) serial port closed
modem-manager[2417]: <info>  (ttyS4) closing serial port...
modem-manager[2417]: <info>  (ttyS4) serial port closed
modem-manager[2417]: <info>  (ttyS0) closing serial port...
modem-manager[2417]: <info>  (ttyS0) serial port closed

當我插入調製解調器時,這有點奇怪,在 dmesg 我現在得到:

usb 1-1: New USB device found, idVendor=12d1, idProduct=14f1
usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
usb 1-1: Product: Huawei EM680 w/Gobi Technology
usb 1-1: Manufacturer: HUAWEI Incorporated
qcserial 1-1:1.1: Qualcomm USB modem converter detected
usb 1-1: Qualcomm USB modem converter now attached to ttyUSB0
qcserial 1-1:1.2: Qualcomm USB modem converter detected
usb 1-1: Qualcomm USB modem converter now attached to ttyUSB1
qcserial 1-1:1.3: Qualcomm USB modem converter detected
usb 1-1: Qualcomm USB modem converter now attached to ttyUSB2

如果您查看drivers/usb/serial/Makefile,您會發現CONFIG_USB_SERIAL_QUALCOMM該驅動程序負責。

執行make menuconfig並轉到“設備驅動程序”->“USB 支持”->“USB 串列轉換器支持”->“USB Qualcomm 串列調製解調器”

引用自:https://unix.stackexchange.com/questions/106910