首先,要先获得技术支持
步骤一,先在USB模块上完成4G
步骤二,移植到PCIE座子上
磨刀不费砍材功,请先拿到技术文档支持,我的参考是:Quectel_Android_RIL_Driver_V3.3.62_master_beta(支持EC200A).tgz
主要文件:Quectel_Android_RIL_Driver_V3.3.62_master_beta(支持EC200A)\libquectel-ril\arm64-v8a\libreference-ril.so
主要文档:Quectel_Android_RIL_Driver_User_Guide_V2.0.pdf
//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##
PCIE原理图部分
调通USB转接小板之后,直接接在PCIE座子上就有信号出现了
//设备打印信息
[ 7.643000] usb 1-1.7: new high-speed USB device number 3 using ehci-platform
[ 7.749890] usb 1-1.7: New USB device found, idVendor=2c7c, idProduct=0125, bcdDevice= 3.18
[ 7.749955] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7.749981] usb 1-1.7: Product: Android
[ 7.750003] usb 1-1.7: Manufacturer: Android
[ 7.752548] option 1-1.7:1.0: GSM modem (1-port) converter detected
[ 7.753213] usb 1-1.7: GSM modem (1-port) converter now attached to ttyUSB0
[ 7.753814] option 1-1.7:1.1: GSM modem (1-port) converter detected
[ 7.754974] usb 1-1.7: GSM modem (1-port) converter now attached to ttyUSB1
[ 7.755636] option 1-1.7:1.2: GSM modem (1-port) converter detected
[ 7.756855] usb 1-1.7: GSM modem (1-port) converter now attached to ttyUSB2
[ 7.757686] option 1-1.7:1.3: GSM modem (1-port) converter detected
[ 7.758823] usb 1-1.7: GSM modem (1-port) converter now attached to ttyUSB3
[ 7.761038] qmi_wwan_q 1-1.7:1.4: cdc-wdm0: USB WDM device
[ 7.761079] qmi_wwan_q 1-1.7:1.4: Quectel EC25&EC21&EG91&EG95&EG06&EP06&EM06&EG12&EP12&EM12&EG16&EG18&BG96&AG35 work on RawIP mode
[ 7.761710] qmi_wwan_q 1-1.7:1.4: rx_urb_size = 1520
[ 7.762558] qmi_wwan_q 1-1.7:1.4 wwan0: register 'qmi_wwan_q' at usb-fd800000.usb-1.7, WWAN/QMI device, da:6a:4f:b4:a4:63
//DTS配置
kernel\arch\arm64\boot\dts\rockchip\rk3568-evb1-ddr4-v10.dtsi
+ rk_modem: rk-modem {
+ compatible="4g-modem-platdata";
+ 4G,power-gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_LOW>; //4G/5G_EN-MODEM_ON-GPIO4_D2
+ 4G,reset-gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;//4G/5G_RST-MODEM_RST-GPIO0_D5
+ status = "okay";
+ };
//用的驱动是kernel\drivers\net\lte\lte_rm310.c;
\kernel\arch\arm64\configs\rockchip_defconfig;
CONFIG_LTE=y
CONFIG_LTE_RM310=y
//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##
调试部分:
1.使用lsusb
console:/ # su
console:/ #
console:/ # lsusb
Bus 005 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 2c7c:0125
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 002: ID 0bda:c820
Bus 001 Device 001: ID 1d6b:0002
Bus 006 Device 001: ID 1d6b:0003
Bus 001 Device 002: ID 1a40:0201
Bus 004 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 25a7:fa61
其中,ID 2c7c:0125就是我们的无线网卡EC20,如果没有,请检查硬件电路。
2.使用 ls -l dev/ttyUSB* 查看是否有节点和是否有权限(没有节点查驱动添加)
2|console:/ # ls -l dev/ttyUSB*
crw-rw-rw- 1 radio radio 188, 0 2022-01-25 15:43 dev/ttyUSB0
crw-rw-rw- 1 radio radio 188, 1 2022-01-25 15:43 dev/ttyUSB1
crw-rw-rw- 1 radio radio 188, 2 2022-01-25 17:26 dev/ttyUSB2
crw-rw-rw- 1 radio radio 188, 3 2022-01-25 15:43 dev/ttyUSB3
3.使用ls -l dev/cdc-wdm0 检查节点是否注册(查系统有无添加这一段节点代码)
130|console:/ # ls -l dev/cdc-wdm0
crw-rw---- 1 radio radio 180, 176 2022-01-25 15:43 dev/cdc-wdm0
4.getprop | grep ril 查看加载库是否正确
130|console:/ # getprop | grep ril
[gsm.version.ril-impl]: [Quectel_Android_RIL_Driver_V3.3.62_dirty]
[init.svc.vendor.ril-daemon]: [running]
[init.svc_debug_pid.vendor.ril-daemon]: [391]
[ril.function.dataonly]: [1]
[ro.boot.noril]: [false]
[ro.boottime.vendor.ril-daemon]: [7157814141]
[ro.ril.ecclist]: [112,911]
[vendor.rild.libpath]: [/vendor/lib64/librk-ril.so]
130|console:/ # getprop | grep rild
[vendor.rild.libpath]: [/vendor/lib64/librk-ril.so]
5.logcat -b radio 打印log信息
130|console:/ # logcat -b radio
--------- beginning of radio
01-25 15:43:17.805 248 248 D TelephonyManager: No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)
01-25 15:43:17.805 248 248 D TelephonyManager: /proc/cmdline=
01-25 15:43:22.633 249 249 D TelephonyManager: No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)
01-25 15:43:22.633 249 249 D TelephonyManager: /proc/cmdline=
01-25 15:43:24.111 447 447 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:24.232 447 528 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:24.321 447 461 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:24.543 447 447 D TelephonyRegistry: systemRunning register for intents
01-25 15:43:24.828 447 472 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:25.768 828 828 I chatty : uid=1001(radio) com.android.phone expire 110 lines
01-25 15:43:25.829 391 391 I chatty : uid=1001(radio) /vendor/bin/hw/rild expire 6 lines
01-25 15:43:25.832 828 1002 I chatty : uid=1001(radio) HwBinder:828_1 expire 16 lines
01-25 15:43:25.890 447 447 D TelephonyRegistry: notifyCellLocationForSubscriber: subId=0 cellLocation=null
01-25 15:43:25.895 828 851 I chatty : uid=1001(radio) Binder:828_3 expire 1 line
01-25 15:43:25.973 828 1021 I chatty : uid=1001(radio) GsmInboundSmsHa expire 5 lines
01-25 15:43:25.985 828 1023 I chatty : uid=1001(radio) CdmaInboundSmsH expire 5 lines
01-25 15:43:26.023 447 504 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.044 447 504 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.049 596 596 W CarrierConfigManager: Error getting config for subId 1 ICarrierConfigLoader is null
01-25 15:43:26.074 447 772 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.082 447 825 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.143 828 1030 I chatty : uid=1001(radio) DcHandlerThread expire 1 line
01-25 15:43:26.202 447 825 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.217 447 825 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.243 447 504 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.260 447 504 D TelephonyRegistry: listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.429 828 828 I chatty : uid=1001(radio) com.android.phone expire 129 lines
01-25 15:43:26.434 828 1002 I chatty : uid=1001(radio) HwBinder:828_1 expire 25 lines
01-25 15:43:26.449 447 772 D TelephonyRegistry: notifySubscriptionInfoChanged: first invocation mRecords.size=22
01-25 15:43:26.509 391 391 I chatty : uid=1001(radio) /vendor/bin/hw/rild expire 3 lines
01-25 15:43:26.653 828 828 I chatty : uid=1001(radio) com.android.phone expire 135 lines
01-25 15:43:26.715 828 1002 I chatty : uid=1001(radio) HwBinder:828_1 expire 4 lines
01-25 15:43:26.830 447 461 D TelephonyRegistry: notifyServiceStateForSubscriber: INVALID phoneId=0 or subId=-1
01-25 15:43:26.848 447 461 E PHONE : ServiceState.getRadioTechnology() DEPRECATED will be removed *******
01-25 15:43:26.891 828 828 D PhoneSwitcher: Added DcRequest, size: 4
01-25 15:43:26.893 828 828 D DcRequest: Cellular request confirmed: NetworkRequest [ TRACK_DEFAULT id=13, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10114 AdministratorUids: [] RequestorUid: 10114 RequestorPackageName: com.android.systemui] ]
01-25 15:43:26.893 828 828 D PhoneSwitcher: evaluating due to netRequest
01-25 15:43:26.894 828 828 D PhoneSwitcher: notifyPreferredDataSubIdChanged to -1
01-25 15:43:26.895 828 828 D PhoneSwitcher: Added DcRequest, size: 5
01-25 15:43:26.896 828 828 D DcRequest: Cellular request confirmed: NetworkRequest [ BACKGROUND_REQUEST id=2, [ Transports: CELLULAR Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN AdministratorUids: [] RequestorUid: 1000 RequestorPackageName: android] ]
01-25 15:43:26.897 828 828 D PhoneSwitcher: evaluating due to netRequest
01-25 15:43:26.897 828 828 D PhoneSwitcher: notifyPreferredDataSubIdChanged to -1
01-25 15:43:26.898 828 828 D PhoneSwitcher: Added DcRequest, size: 6
01-25 15:43:26.900 828 828 D DcRequest: Cellular request confirmed: NetworkRequest [ TRACK_DEFAULT id=8, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 1000 AdministratorUids: [] RequestorUid: 1000 RequestorPackageName: android] ]
01-25 15:43:26.900 828 828 D PhoneSwitcher: evaluating due to netRequest
01-25 15:43:26.901 828 828 D PhoneSwitcher: notifyPreferredDataSubIdChanged to -1
6.logcat -b radio -v time 打印log信息
127|console:/ # logcat -b radio -v time
--------- beginning of radio
01-25 15:43:17.805 D/TelephonyManager( 248): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)
01-25 15:43:17.805 D/TelephonyManager( 248): /proc/cmdline=
01-25 15:43:22.633 D/TelephonyManager( 249): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)
01-25 15:43:22.633 D/TelephonyManager( 249): /proc/cmdline=
01-25 15:43:24.111 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:24.232 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:24.321 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:24.543 D/TelephonyRegistry( 447): systemRunning register for intents
01-25 15:43:24.828 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:25.768 I/chatty ( 828): uid=1001(radio) com.android.phone expire 110 lines
01-25 15:43:25.829 I/chatty ( 391): uid=1001(radio) /vendor/bin/hw/rild expire 6 lines
01-25 15:43:25.832 I/chatty ( 828): uid=1001(radio) HwBinder:828_1 expire 16 lines
01-25 15:43:25.890 D/TelephonyRegistry( 447): notifyCellLocationForSubscriber: subId=0 cellLocation=null
01-25 15:43:25.895 I/chatty ( 828): uid=1001(radio) Binder:828_3 expire 1 line
01-25 15:43:25.973 I/chatty ( 828): uid=1001(radio) GsmInboundSmsHa expire 5 lines
01-25 15:43:25.985 I/chatty ( 828): uid=1001(radio) CdmaInboundSmsH expire 5 lines
01-25 15:43:26.023 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.044 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.049 W/CarrierConfigManager( 596): Error getting config for subId 1 ICarrierConfigLoader is null
01-25 15:43:26.074 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.082 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.143 I/chatty ( 828): uid=1001(radio) DcHandlerThread expire 1 line
01-25 15:43:26.202 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.217 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.243 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.260 D/TelephonyRegistry( 447): listen oscl: mHasNotifySubscriptionInfoChangedOccurred==false no callback
01-25 15:43:26.429 I/chatty ( 828): uid=1001(radio) com.android.phone expire 129 lines
01-25 15:43:26.434 I/chatty ( 828): uid=1001(radio) HwBinder:828_1 expire 25 lines
01-25 15:43:26.449 D/TelephonyRegistry( 447): notifySubscriptionInfoChanged: first invocation mRecords.size=22
01-25 15:43:26.509 I/chatty ( 391): uid=1001(radio) /vendor/bin/hw/rild expire 3 lines
01-25 15:43:26.653 I/chatty ( 828): uid=1001(radio) com.android.phone expire 135 lines
01-25 15:43:26.715 I/chatty ( 828): uid=1001(radio) HwBinder:828_1 expire 4 lines
01-25 15:43:26.830 D/TelephonyRegistry( 447): notifyServiceStateForSubscriber: INVALID phoneId=0 or subId=-1
01-25 15:43:26.848 E/PHONE ( 447): ServiceState.getRadioTechnology() DEPRECATED will be removed *******
01-25 15:43:26.891 D/PhoneSwitcher( 828): Added DcRequest, size: 4
01-25 15:43:26.893 D/DcRequest( 828): Cellular request confirmed: NetworkRequest [ TRACK_DEFAULT id=13, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10114 AdministratorUids: [] RequestorUid: 10114 RequestorPackageName: com.android.systemui] ]
01-25 15:43:26.893 D/PhoneSwitcher( 828): evaluating due to netRequest
01-25 15:43:26.894 D/PhoneSwitcher( 828): notifyPreferredDataSubIdChanged to -1
01-25 15:43:26.895 D/PhoneSwitcher( 828): Added DcRequest, size: 5
7.添加quectel_debug_log
C:\Users\XXX>adb root
restarting adbd as root
C:\Users\XXX>adb shell mkdir /data/quectel_debug_log
C:\Users\XXX>adb shell chmod 777 /data/quectel_debug_log
C:\Users\XXX>adb reboot
C:\Users\XXX>adb root
restarting adbd as root
C:\Users\XXX>adb remount
remount succeeded
C:\Users\XXX>adb pull /data/quectel_debug_log C:\Users\XXX\Desktop
pull: building file list...
pull: /data/quectel_debug_log/0125_141525_radio.txt -> C:\Users\XXX\Desktop/0125_141525_radio.txt
pull: /data/quectel_debug_log/0125_141525_logcat.txt -> C:\Users\XXX\Desktop/0125_141525_logcat.txt
2 files pulled. 0 files skipped.
7929 KB/s (1497541 bytes in 0.184s)
桌面上找到就是打印LOG了
8.ifconfig 查看网口IP
130|console:/ # ifconfig
eth1 Link encap:Ethernet HWaddr 82:4e:8f:f2:e9:d9 Driver rk_gmac-dwmac
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
Interrupt:42
eth0 Link encap:Ethernet HWaddr 86:4e:8f:f2:e9:d9 Driver rk_gmac-dwmac
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
Interrupt:37
wwan0 Link encap:Ethernet HWaddr 06:c5:32:08:f9:76 Driver qmi_wwan_q
inet addr:10.216.51.125 Bcast:10.216.51.127 Mask:255.255.255.252
inet6 addr: fe80::4c5:32ff:fe08:f976/64 Scope: Link
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope: Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1800 TX bytes:1800
dummy0 Link encap:Ethernet HWaddr 66:f0:fc:7f:c6:61
inet6 addr: fe80::64f0:fcff:fe7f:c661/64 Scope: Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:770
console:/ # ifconfig -a
ip_vti0 Link encap:UNSPEC
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
eth1 Link encap:Ethernet HWaddr 82:4e:8f:f2:e9:d9 Driver rk_gmac-dwmac
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
Interrupt:42
ip6_vti0 Link encap:UNSPEC
NOARP MTU:1364 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
p2p0 Link encap:Ethernet HWaddr 32:7b:c9:24:a1:7e Driver rtl8821cu
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
eth0 Link encap:Ethernet HWaddr 86:4e:8f:f2:e9:d9 Driver rk_gmac-dwmac
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
Interrupt:37
wwan0 Link encap:Ethernet HWaddr 06:c5:32:08:f9:76 Driver qmi_wwan_q
inet addr:10.216.51.125 Bcast:10.216.51.127 Mask:255.255.255.252
inet6 addr: fe80::4c5:32ff:fe08:f976/64 Scope: Link
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
wlan0 Link encap:Ethernet HWaddr 30:7b:c9:24:a1:7e Driver rtl8821cu
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
ip6tnl0 Link encap:UNSPEC
NOARP MTU:1452 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope: Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1800 TX bytes:1800
dummy0 Link encap:Ethernet HWaddr 66:f0:fc:7f:c6:61
inet6 addr: fe80::64f0:fcff:fe7f:c661/64 Scope: Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:770
console:/ #
9.adb push C:\Users\XXX\Desktop\librk-ril.so /vendor/lib64/
C:\Users\XXX>adb root
adb server is out of date. killing...
* daemon started successfully *
restarting adbd as root
C:\Users\XXX>adb remount
Using overlayfs for /system
Using overlayfs for /vendor
Using overlayfs for /odm
Using overlayfs for /product
Using overlayfs for /system_ext
Now reboot your device for settings to take effect
remount succeeded
C:\Users\XXX>adb push C:\Users\XXX\Desktop\librk-ril.so /vendor/lib64/
6499 KB/s (388568 bytes in 0.058s)
push 库进去测试
//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##
然后看到图标就可以上网了,
一般分为驱动问题(查节点生成)
二般就是库(查看是否更新到,查看logcat和push,检查加载的路径的库是否是这个库)
//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##
问题处理:没接4G模块直接打印到卡死
重复打印'android.hardware.radio@1.1::IRadio/slot1'
[ 44.972959] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)
[ 45.975241] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)
[ 46.977512] init: Control message: Processed ctl.interface_start for 'android.hardware.radio@1.1::IRadio/slot1' from pid: 149 (/system/bin/hwservicemanager)
RK3568\system\core\init\init.cpp
+ if(strcmp(name.c_str(),"android.hardware.radio@1.1::IRadio/slot1") != 0) {
LOG(INFO) << "Control message: Processed ctl." << message << " for '" << name
<< "' from pid: " << from_pid << " (" << process_cmdline << ")";
+ }
RK3568\system\libhidl\transport\ServiceManagement.cpp
+ if(strcmp(descriptor.c_str(),"android.hardware.radio@1.1::IRadio") != 0) {
ALOGI("getService: Trying again for %s/%s...",
descriptor.c_str(),instance.c_str());
+ }
+ if(strcmp(mInterfaceName.c_str(),"android.hardware.radio@1.1::IRadio") != 0) {
LOG(WARNING) << "Waited one second for " << mInterfaceName << "/" <<
mInstanceName;
+ }
//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##//##
祝生活愉快!!!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)