luvings 发表于 2018-8-28 09:56:45

RK3399 Ubuntu EC20 调试流程

本帖最后由 luvings 于 2018-9-7 10:35 编辑

调试准备工作:
1. Firefly-RK3399 Ubuntu 16.04
2. EC20 4g组件   --->https://store.t-firefly.com/goods.php?id=49
3. 移动卡/联通卡,不知道 物联网卡
官方 Ubuntu ec20 固件,已做处理,如果检测到 ec20 模组,并 sim卡 正常识别,则自动启动quectel-CM 获取 IP,不必做其他处理RK3288 调试流程同样试用

流程:
1. 确定打上附件驱动补丁   ----> ec20-support.tar.gz
代码仓库:https://github.com/FireflyTeam/kerne
对应log 提示
[ 1110.823457] usb 1-1.4: New USB device found, idVendor=2c7c, idProduct=0125
[ 1110.824191] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1110.824987] usb 1-1.4: Product: Android
[ 1110.825345] usb 1-1.4: Manufacturer: Android
[ 1110.827980] option 1-1.4:1.0: GSM modem (1-port) converter detected
[ 1110.829302] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[ 1110.831007] option 1-1.4:1.1: GSM modem (1-port) converter detected
[ 1110.832390] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[ 1110.834983] option 1-1.4:1.2: GSM modem (1-port) converter detected
[ 1110.836853] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[ 1110.839196] option 1-1.4:1.3: GSM modem (1-port) converter detected
[ 1110.841708] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
[ 1110.844161] idVendor 11388 idP 293 bnum 5 ec20 det false
[ 1110.845863] qmi_wwan 1-1.4:1.4: cdc-wdm0: USB WDM device
[ 1110.846381] qmi_wwan 1-1.4:1.4: Quectel EC25&EC21&EC20R2.0&EG91&EG95&EG06&EP06&EM06&BG96 work on RawIP mode
[ 1110.853010] qmi_wwan 1-1.4:1.4 wwan0: register 'qmi_wwan' at usb-fe3c0000.usb-1.4, WWAN/QMI device, f6:29:fe:a2:e1:32</font>

2. 内核 qmi 驱动配置打开
CONFIG_USB_NET_QMI_WWAN=y    重新编译,更新板子内核

3. 板子安装 deb包,拨号程序获取 IP 所需要的依赖包
$ sudo apt-get install busybox udhcpc
4.附件--->default.script.tar.gz,Quectel_Linux_ConnectManager_SR01A01V21.zip 拷贝到 Firefly-RK3399 上

   ---default.script 拷贝到 开发板 /usr/share/udhcpc/default.script, 缺少文件夹,自行创建
   --- Quectel_Linux_ConnectManager_SR01A01V21.zip           
             |-----   EC20 获取上网 IP 所需要的拨号程
             |------   开发板上解包后,执行make               得到 quectel-CM二进制程


FAQs
1.
$ mmcli -m 0
查看模组状态,如 sim卡是否正常识别等...2. $ systemctl status ec20.service
查看 quectel-CM 拨号程序 服务是否正常运行






dreamer 发表于 2018-12-28 10:38:33

刚好有需要,非常感谢

linux_ssc 发表于 2019-1-12 09:01:45

没有权限下载附件 怎么办

asngage 发表于 2019-1-15 13:55:54

现在可以生成wwan0。键入systemctl status ec20.service查看状态,发现反复重连,报错如下:
ec20.service - Quectel networking service
   Loaded: loaded (/lib/systemd/system/ec20.service; disabled; vendor preset: en
abled)
   Active: active (running) since Tue 2019-01-15 05:44:52 UTC; 4min 1
s ago
Main PID: 1512 (quectel-CM)
   CGroup: /system.slice/ec20.service
         鈹斺攢1512 /usr/local/bin/quectel-CM

Jan 15 05:47:24 firefly quectel-CM: requestQueryDataC
all ConnectionStatus: DISCONNECTED
Jan 15 05:47:24 firefly quectel-CM: requestRegistrati
onState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
Jan 15 05:47:24 firefly quectel-CM: requestSetupDataC
all WdsConnectionIPv4Handle: 0x86ad7c40
Jan 15 05:47:24 firefly quectel-CM: requestQueryDataC
all ConnectionStatus: CONNECTED
Jan 15 05:47:24 firefly quectel-CM: requestQueryDataC
all ConnectionStatus: DISCONNECTED
Jan 15 05:47:24 firefly quectel-CM: requestRegistrati
onState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
Jan 15 05:47:24 firefly quectel-CM: requestSetupDataC
all WdsConnectionIPv4Handle: 0x86ad7c40
Jan 15 05:47:24 firefly quectel-CM: requestQueryDataC
all ConnectionStatus: CONNECTED
Jan 15 05:47:24 firefly quectel-CM: requestQueryDataC
all ConnectionStatus: DISCONNECTED
Jan 15 05:47:24 firefly quectel-CM: requestRegistrati
onState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
有调通的同学可以指导一下吗?

loading 发表于 2019-1-19 13:58:48

请问,这个用ipv6 能上网吗?

liujunyhc 发表于 2019-4-28 13:39:48

我想下载一个

zhzv77 发表于 2019-5-9 00:18:20

好想下啊,但是下不了

771961621 发表于 2019-6-18 15:51:36

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

breezee.cn 发表于 2019-6-20 11:37:53

非常感谢,正好需要试试4G模块

tanggang2019 发表于 2019-6-25 17:00:35

没有权限下载附件 怎么办
页: [1] 2 3 4 5 6 7 8 9
查看完整版本: RK3399 Ubuntu EC20 调试流程