选了freescale的一块板子,结果发现要用yocto开发,网上一搜攻略,汗~,少的可怜!
7年前开发android系统做了先驱,现在看来又要做先烈了,开了一个交流群,欢迎爱好者和开发者一起交流,转载请注明出处。
QQ群:519230208,为避免广告骚扰,申请时请注明 “开发者” 字样
========================================================
一 上网模块需要内核编译配置 《Guide to Kernel Driver Integration ......》
相关模块:
1. Modem port: used for interaction between Linux and a Huawei module for PPP-Modem dial-up connections and data services.
2. PCUI port: used for interaction between Linux and a Huawei module for AT command execution.
3. Diag port: used to capture logs on a Huawei module.
4. GPS and GPS Control ports: used to send GPS commands and obtain GPS
需要修改的文件:
linux_src/drivers/usb/serial/option.c
linux_src/drivers/usb/serial/usb_wwan.c
linux_src/include/linux/usb.h
ppp编译:
官网:https://ppp.samba.org/
教程:http://blog.csdn.net/lanyou1900/article/details/40185259
---------------------------------------
二 测试模块状态
# lsusb // 查看usb连接状态
Bus 001 Device 005: ID 12d1:1c25 Huawei Technologies Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# dmesg
cdc_ether 1-1:2.0 eth2: register ‘cdc_ether‘ at usb-ci_hdrc.1-1, CDC Ethernet Device, 00:1e:10:1f:00:00
usbcore: registered new interface driver option
usbcore: registered new interface driver cdc_ether
usbserial: USB Serial support registered for GSM modem (1-port)
option 1-1:2.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:2.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:2.4: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
usb 1-1: USB disconnect, device number 3
cdc_ether 1-1:2.0 eth2: unregister ‘cdc_ether‘ usb-ci_hdrc.1-1, CDC Ethernet Device
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 1-1:2.2: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 1-1:2.3: device disconnected
option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
option 1-1:2.4: device disconnected
usb 1-1: new full-speed USB device number 4 using ci_hdrc
usb 1-1: new high-speed USB device number 5 using ci_hdrc
cdc_ether 1-1:2.0 eth2: register ‘cdc_ether‘ at usb-ci_hdrc.1-1, CDC Ethernet Device, 00:1e:10:1f:00:00
option 1-1:2.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:2.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:2.4: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
# dmesg | grep -in ppp // 查看ppp连接状态
#cat /dev/ttyUSB0 &
# echo AT+CGMI > /dev/ttyUSB0 // 查询厂商相关信息
# echo AT+CSQ > /dev/ttyUSB0 // 查询信号,顺带还可以让你知道SIM卡相关的是否正常
Yocto开发笔记之《驱动调试-华为3G模块》(QQ交流群:519230208)
原文:http://www.cnblogs.com/alanfang/p/5052006.html