完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
按照模块厂家提供的资料添加相关驱动以及配置不再赘述,主要是调试过程中系统层面有一个问题,首先看log:
D use-Rlog/RLOG-RIL RILU: find quectel module /sys/bus/u***/devices/8-1 idVendor=2c7c idProduct=0800 D SubscriptionController: [getPhoneId]- no sims, returning default phoneId=0 D use-Rlog/RLOG-RIL RILU: find /sys/bus/u***/devices/8-1:1.2/ttyUSB2 D use-Rlog/RLOG-RIL RILU: ttyAT = ttyUSB2 D use-Rlog/RLOG-RIL RILU: find /sys/bus/u***/devices/8-1:1.3/ttyUSB3 D use-Rlog/RLOG-RIL RILU: ttyPPP = ttyUSB3 D use-Rlog/RLOG-RIL RILU: find /sys/bus/u***/devices/8-1:1.0/ttyUSB0 D use-Rlog/RLOG-RIL RILU: ttyDM = ttyUSB0 D use-Rlog/RLOG-RIL RILU: find /sys/bus/u***/devices/8-1:1.1/ttyUSB1 D use-Rlog/RLOG-RIL RILU: ttyGPS = ttyUSB1 D use-Rlog/RLOG-RIL RILU: find /sys/bus/u***/devices/8-1:1.4/net/wwan0 D use-Rlog/RLOG-RIL RILU: u***net_adapter = wwan0 D use-Rlog/RLOG-RIL RILU: find /sys/bus/u***/devices/8-1:1.4/u***misc/cdc-wdm0 D use-Rlog/RLOG-RIL RILU: qmichannel = cdc-wdm0 E use-Rlog/RLOG-RIL RILU: Cannot access file:/dev/cdc-wdm0, errno = 2(No such file or directory) E use-Rlog/RLOG-RIL RILU: patch for 'system/core/init/devices.cpp' is required! ...... D use-Rlog/RLOG-RIL MBIM: fail to open (/dev/cdc-wdm0), errno: 2 (No such file or directory) D use-Rlog/RLOG-RIL SETUP_DATA_CA: ql_set_data_call_info pdp=1, ifname=wwan0, iptype=4, ipaddr=(null) D use-Rlog/RLOG-RIL SETUP_DATA_CA: wwan0 IP Address: 0.0.0.0/0 D use-Rlog/RLOG-RIL SETUP_DATA_CA: get_local_ip: 0.0.0.0/0, cost 0 sec E use-Rlog/RLOG-RIL SETUP_DATA_CA: Unable to setup PDP in requestSetupDataCall 很明显,找不到/dev/cdc-wdm0,确实没有注册,原因就在devices.cpp中注册/dev/cdc-wdm0的逻辑了,系统将cdc-wdm0注册成了u***misc设备,而该文件中缺少处理u***misc的逻辑,只需要稍作修改即可: --- a/system/core/init/devices.cpp +++ b/system/core/init/devices.cpp @@ -679,7 +679,7 @@ static void handle_generic_device_event(struct uevent *uevent) return; mkdir_recursive_for_devpath(devpath); } else if (!strncmp(uevent->subsystem, "u***", 3)) { - if (!strcmp(uevent->subsystem, "u***")) { + if (!strcmp(uevent->subsystem, "u***")||!strcmp(uevent->subsystem, "u***misc")) { if (uevent->device_name) { if (!assemble_devpath(devpath, "/dev", uevent->device_name)) return; 这样模块即可正常拨号上网。 原作者:空~。 |
|
相关推荐
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1443 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
1570 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
3581 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
浏览过的版块 |
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-6 02:29 , Processed in 0.393039 second(s), Total 39, Slave 32 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号