当前位置:   article > 正文

RK3566 ANDROID 11 平台上适配移远EC200A_配置config_usb_serial_option

配置config_usb_serial_option

适配前理清楚一下调试的流程:

1.该模块为LGA封装,需要控制上电时序模块才能正常上电工作:

2.模块供电正常后,读取模组的PID 和VID 并将其ID添加到内核里面,确保USB转Serial端口能够正常生成:

3.生成ttyUSB0~ttyUSB2端口后,确保rild进程正常启动,能够正常加载ril库;

4.查看一下AT命令集,善于捕捉ril log,熟练使用 logcat -b radio,移远方案,可以通过创建文件

/data/quectel_debug_log 来存储RIL 加载信息,同时瑞芯微对应4G模块这方面的资料也是比较完善的,可以阅读一下
RKDocs/common/mobile-net/Rockchip_Introduction_4G_Module_Configuration_CN\&EN.pdf。流程理清楚了,我们就可以在我们的硬件平台上来移植4G模组了。

  1. //偷个懒,将EC200A的module PWR RK0_PB4和reset脚RK0_PB1 控制添加到LED灯的控制驱动里面,
  2. //将 module PWR RK0_PB4 置高,将reset脚RK0_PB1置低
  3. #include "rk3566-box.dtsi"
  4. / {
  5. model = "Rockchip RK3566 BOX DM35 Project";
  6. compatible = "rockchip,rk3568-box-demo-v10", "rockchip,rk3566";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. // ir-led {
  10. // gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
  11. // default-state = "off";
  12. // };
  13. //MODULE_PWR GPIO0_B4
  14. + modem-resetled {
  15. + gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_LOW>;
  16. + default-state = "on";
  17. + };
  18. + modem-led {
  19. + gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
  20. + default-state = "on";
  21. + };
  22. work-led { /*led GPIO0_C3_d*/
  23. gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
  24. //linux,default-trigger = "timer";
  25. default-state = "on";
  26. };
  27. };
  28. -------------------------------------------------------------
  29. wireless_bluetooth: wireless-bluetooth {
  30. compatible = "bluetooth-platdata";
  31. clocks = <&pmucru CLK_RTC_32K>;
  32. clock-names = "ext_clock";
  33. //wifi-bt-power-toggle;
  34. uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
  35. pinctrl-names = "default", "rts_gpio";
  36. pinctrl-0 = <&uart1m0_rtsn>;
  37. pinctrl-1 = <&uart1_gpios>;
  38. BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
  39. BT,wake_gpio = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
  40. BT,wake_host_irq = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
  41. status = "okay";
  42. };
  43. +//添加4G模块的上电初始化时序,以确保模块能够正常上电工作
  44. +rk_modem: rk-modem {
  45. + compatible="4g-modem-platdata";
  46. + pinctrl-names = "default";
  47. + pinctrl-0 = <&lte_vbat &lte_power_en /*&lte_reset*/>;
  48. + 4G,vbat-gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; //VBUS_CTRL
  49. + 4G,power-gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; //MODULE_PWRKEY
  50. + //4G,reset-gpio = <&gpio0 RK_PB1 GPIO_ACTIVE_LOW>; //MODULE_RESET_N
  51. + //MODULE_PWR GPIO0_B4
  52. + status = "okay";
  53. +};
  54. wireless-wlan {
  55. wifi_host_wake_irq: wifi-host-wake-irq {
  56. rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
  57. };
  58. };
  59. wireless-bluetooth {
  60. uart1_gpios: uart1-gpios {
  61. rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
  62. };
  63. };
  64. + rk-modem {
  65. + lte_vbat: lte-vbat {
  66. + rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
  67. + };
  68. + lte_power_en: lte-power-en {
  69. + rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
  70. + };
  71. +// lte_reset: lte-reset {
  72. +// rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
  73. +// };
  74. };
  75. 修改完这些之后,使用lsusb命令查看模块的PID和VID
  76. Bus 005 Device 001: ID 1d6b:0002
  77. Bus 003 Device 001: ID 1d6b:0001
  78. Bus 001 Device 001: ID 1d6b:0002
  79. Bus 008 Device 001: ID 1d6b:0003
  80. Bus 006 Device 001: ID 1d6b:0003
  81. Bus 001 Device 004: ID 2c7c:6005
  82. Bus 004 Device 001: ID 1d6b:0001
  83. Bus 002 Device 001: ID 1d6b:0002
  84. Bus 007 Device 001: ID 1d6b:0002
  85. 上面显示的2c7c:6005就是我们4G模块的VID和PID,这说明我们的上电时序已经修改成了,接下来修改内核,添加模块的VID和PID
  86. git diff arch/arm64/configs/rockchip_defconfig
  87. diff --git a/kernel/arch/arm64/configs/rockchip_defconfig b/kernel/arch/arm64/configs/rockchip_defconfig
  88. index 3c1008aab5..66a6cc02a9 100644
  89. --- a/kernel/arch/arm64/configs/rockchip_defconfig
  90. +++ b/kernel/arch/arm64/configs/rockchip_defconfig
  91. @@ -776,6 +776,7 @@ CONFIG_USB_UAS=y
  92. CONFIG_USB_DWC3=y
  93. CONFIG_USB_DWC2=y
  94. CONFIG_USB_SERIAL=y
  95. +CONFIG_USB_SERIAL_WWAN=y
  96. CONFIG_USB_SERIAL_GENERIC=y
  97. CONFIG_USB_SERIAL_OPTION=y
  98. CONFIG_USB_SERIAL_CH341=y
  99. kernel$ git diff drivers/usb/serial/option.c
  100. diff --git a/kernel/drivers/usb/serial/option.c b/kernel/drivers/usb/serial/option.c
  101. index ff67562572..497ca259de 100644
  102. --- a/kernel/drivers/usb/serial/option.c
  103. +++ b/kernel/drivers/usb/serial/option.c
  104. @@ -2126,6 +2126,23 @@ static const struct usb_device_id option_ids[] = {
  105. { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1404, 0xff) }, /* GosunCn GM500 RNDIS */
  106. { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1405, 0xff) }, /* GosunCn GM500 MBIM */
  107. { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1406, 0xff) }, /* GosunCn GM500 ECM/NCM */
  108. +#if 1 //Added by Quectel
  109. +#if 1 //Added by Quectel
  110. diff --git a/kernel/drivers/usb/serial/option.c b/kernel/drivers/usb/serial/option.c
  111. index ff67562572..497ca259de 100644
  112. --- a/kernel/drivers/usb/serial/option.c
  113. +++ b/kernel/drivers/usb/serial/option.c
  114. @@ -2126,6 +2126,23 @@ static const struct usb_device_id option_ids[] = {
  115. { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1404, 0xff) }, /* GosunCn GM500 RNDIS */
  116. { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1405, 0xff) }, /* GosunCn GM500 MBIM */
  117. { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1406, 0xff) }, /* GosunCn GM500 ECM/NCM */
  118. +#if 1 //Added by Quectel
  119. + { USB_DEVICE(0x05C6, 0x9090) }, /* Quectel UC15 */
  120. + { USB_DEVICE(0x05C6, 0x9003) }, /* Quectel UC20 */
  121. + { USB_DEVICE(0x2C7C, 0x0125) }, /* Quectel EC25 */
  122. + { USB_DEVICE(0x2C7C, 0x0121) }, /* Quectel EC21 */
  123. + { USB_DEVICE(0x05C6, 0x9215) }, /* Quectel EC20 */
  124. + { USB_DEVICE(0x2C7C, 0x0191) }, /* Quectel EG91 */
  125. + { USB_DEVICE(0x2C7C, 0x0195) }, /* Quectel EG95 */
  126. + { USB_DEVICE(0x2C7C, 0x0306) }, /* Quectel EG06/EP06/EM06 */
  127. + { USB_DEVICE(0x2C7C, 0x0296) }, /* Quectel BG96 */
  128. + { USB_DEVICE(0x2C7C, 0x0435) }, /* Quectel AG35 */
  129. + { USB_DEVICE(0x2C7C, 0x0512) }, /* Quectel EG12/EG18 */
  130. + { USB_DEVICE(0x2C7C, 0x6026) }, /* Quectel EC200 */
  131. + { USB_DEVICE(0x2C7C, 0x6120) }, /* Quectel UC200 */
  132. + { USB_DEVICE(0x2C7C, 0x6000) }, /* Quectel EC200/UC200 */
  133. + { USB_DEVICE(0x2C7C, 0x6005) }, /* Quectel EC200A-CN*/
  134. +#endif
  135. { } /* Terminating entry */
  136. };
  137. MODULE_DEVICE_TABLE(usb, option_ids);
  138. @@ -2183,7 +2200,21 @@ static int option_probe(struct usb_serial *serial,
  139. struct usb_interface_descriptor *iface_desc =
  140. &serial->interface->cur_altsetting->desc;
  141. unsigned long device_flags = id->driver_info;
  142. -
  143. +#if 1 //Added by Quectel
  144. + if(serial->dev->descriptor.idVendor == cpu_to_le16(0x2C7C)) {
  145. + __u16 idProduct = le16_to_cpu(serial->dev->descriptor.idProduct);
  146. + struct usb_interface_descriptor *intf = &serial->interface->cur_altsetting->desc;
  147. + if (intf->bInterfaceClass != 0xFF || intf->bInterfaceSubClass == 0x42) {
  148. + //ECM, RNDIS, NCM, MBIM, ACM, UAC, ADB
  149. + return -ENODEV;
  150. + }
  151. + if ((idProduct&0xF000) == 0x0000) {
  152. + //MDM interface 4 is QMI
  153. + if (intf->bInterfaceNumber == 4 && intf->bNumEndpoints == 3 && intf->bInterfaceSubClass == 0xFF &&intf->bInterfaceProtocol == 0xFF)
  154. + return -ENODEV;
  155. + }
  156. + }
  157. +#endif
  158. /* Never bind to the CD-Rom emulation interface */
  159. if (iface_desc->bInterfaceClass == USB_CLASS_MASS_STORAGE)
  160. return -ENODEV;
  161. (END)
  162. kernel$ git diff drivers/usb/serial/usb_wwan.c
  163. diff --git a/kernel/drivers/usb/serial/usb_wwan.c b/kernel/drivers/usb/serial/usb_wwan.c
  164. index c604ff4546..19fe9838de 100644
  165. --- a/kernel/drivers/usb/serial/usb_wwan.c
  166. +++ b/kernel/drivers/usb/serial/usb_wwan.c
  167. @@ -509,11 +509,14 @@ static struct urb *usb_wwan_setup_urb(struct usb_serial_port *port,
  168. if (intfdata->use_zlp && dir == USB_DIR_OUT)
  169. urb->transfer_flags |= URB_ZERO_PACKET;
  170. + #if 1 //Added by Quectel for zero packet
  171. if (dir == USB_DIR_OUT) {
  172. - if ((desc->idVendor == cpu_to_le16(0x1286) &&
  173. - desc->idProduct == cpu_to_le16(0x4e3c)))
  174. - urb->transfer_flags |= URB_ZERO_PACKET;
  175. + struct usb_device_descriptor *desc = &serial->dev->descriptor;
  176. +
  177. + if (desc->idVendor == cpu_to_le16(0x2C7C))
  178. + urb->transfer_flags |= URB_ZERO_PACKET;
  179. }
  180. +#endif
  181. return urb;
  182. }
  183. 修改以上内核配置后,打开内核log,
  184. [ 10.646867] usb 1-1: new high-speed USB device number 4 using ehci-platform
  185. [ 10.794964] usb 1-1: New USB device found, idVendor=2c7c, idProduct=6005, bcdDevice= 3.18
  186. [ 10.794999] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  187. [ 10.795007] usb 1-1: Product: Android
  188. [ 10.795013] usb 1-1: Manufacturer: Android
  189. [ 10.795019] usb 1-1: SerialNumber: 0000
  190. [ 10.797366] cdc_ether 1-1:1.0 usb0: register 'cdc_ether' at usb-fd800000.usb-1, CDC Ethernet Device, 02:0c:29:a3:9b:6d
  191. [ 10.798340] option 1-1:1.2: GSM modem (1-port) converter detected
  192. [ 10.798917] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
  193. [ 10.799720] option 1-1:1.3: GSM modem (1-port) converter detected
  194. [ 10.800241] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
  195. [ 10.800938] option 1-1:1.4: GSM modem (1-port) converter detected
  196. [ 10.801414] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
  197. 这段log说明我们内核部分已经修改OK了。
  198. -------------------------------------------------------
  199. 接下来一直和修改RIL部分:
  200. git diff device/rockchip/common/device.mk
  201. diff --git a/device/rockchip/common/device.mk b/device/rockchip/common/device.mk
  202. index c79fd21d6b..c1741daefe 100644
  203. --- a/device/rockchip/common/device.mk
  204. +++ b/device/rockchip/common/device.mk
  205. @@ -273,17 +273,17 @@ PRODUCT_PROPERTY_OVERRIDES += \
  206. ro.telephony.default_network=9
  207. ifeq ($(strip $(TARGET_ARCH)), arm64)
  208. -PRODUCT_PROPERTY_OVERRIDES += \
  209. +#PRODUCT_PROPERTY_OVERRIDES += \
  210. vendor.rild.libpath=/vendor/lib64/librk-ril.so
  211. PRODUCT_COPY_FILES += \
  212. - $(LOCAL_PATH)/4g_modem/bin64/dhcpcd:$(TARGET_COPY_OUT_VENDOR)/bin/dhcpcd \
  213. - $(LOCAL_PATH)/4g_modem/lib64/librk-ril.so:$(TARGET_COPY_OUT_VENDOR)/lib64/librk-ril.so
  214. + $(LOCAL_PATH)/4g_modem/bin64/dhcpcd:$(TARGET_COPY_OUT_VENDOR)/bin/dhcpcd
  215. +# $(LOCAL_PATH)/4g_modem/lib64/librk-ril.so:$(TARGET_COPY_OUT_VENDOR)/lib64/librk-ril.so
  216. else
  217. -PRODUCT_PROPERTY_OVERRIDES += \
  218. +#PRODUCT_PROPERTY_OVERRIDES += \
  219. vendor.rild.libpath=/vendor/lib/librk-ril.so
  220. -PRODUCT_COPY_FILES += \
  221. +#PRODUCT_COPY_FILES += \
  222. $(LOCAL_PATH)/4g_modem/bin32/dhcpcd:$(TARGET_COPY_OUT_VENDOR)/bin/dhcpcd \
  223. $(LOCAL_PATH)/4g_modem/lib32/librk-ril.so:$(TARGET_COPY_OUT_VENDOR)/lib/librk-ril.so
  224. amediatech@amediatech-Super-Server:~/DISK1/qhq/rk/RK_Android_11.0_sdk$ git diff device/rockchip/rk356x_box/rk356x_box/rk356x_box.mk
  225. diff --git a/device/rockchip/rk356x_box/rk356x_box/rk356x_box.mk b/device/rockchip/rk356x_box/rk356x_box/rk356x_box.mk
  226. index 0866c945a4..74dd85ed4c 100755
  227. --- a/device/rockchip/rk356x_box/rk356x_box/rk356x_box.mk
  228. +++ b/device/rockchip/rk356x_box/rk356x_box/rk356x_box.mk
  229. @@ -110,6 +110,7 @@ PRODUCT_COPY_FILES += \
  230. BOARD_HS_ETHERNET := true
  231. +BOARD_HAS_RK_4G_MODEM := true
  232. #
  233. #add Rockchip properties here
  234. #
  235. git diff device/rockchip/rk356x_box/rk356x_box/system.prop
  236. diff --git a/device/rockchip/rk356x_box/rk356x_box/system.prop b/device/rockchip/rk356x_box/rk356x_box/system.prop
  237. index 5b2b456f50..c3602fef4f 100644
  238. --- a/device/rockchip/rk356x_box/rk356x_box/system.prop
  239. +++ b/device/rockchip/rk356x_box/rk356x_box/system.prop
  240. @@ -2,13 +2,13 @@
  241. # system.prop
  242. #
  243. -#rild.libpath=/system/lib/libreference-ril.so
  244. -#rild.libargs=-d /dev/ttyUSB2
  245. +rild.libpath=/system/lib64/libreference-ril.so
  246. +rild.libargs=-d /dev/ttyUSB2
  247. # Default ecclist
  248. ro.ril.ecclist=112,911
  249. wifi.interface=wlan0
  250. -rild.libpath=/system/lib/libril-rk29-dataonly.so
  251. -rild.libargs=-d /dev/ttyACM0
  252. +#rild.libpath=/system/lib/libril-rk29-dataonly.so
  253. +#rild.libargs=-d /dev/ttyACM0
  254. persist.tegra.nvmmlite = 1
  255. persist.sys.boot.check=false
  256. ro.audio.monitorOrientation=true
  257. git diff hardware/ril/rild/rild.rc
  258. diff --git a/hardware/ril/rild/rild.rc b/hardware/ril/rild/rild.rc
  259. index f6beb5468f..6f48e28323 100644
  260. --- a/hardware/ril/rild/rild.rc
  261. +++ b/hardware/ril/rild/rild.rc
  262. @@ -1,5 +1,6 @@
  263. -service vendor.ril-daemon /vendor/bin/hw/rild
  264. +#service vendor.ril-daemon /vendor/bin/hw/rild
  265. +service ril-daemon /vendor/bin/hw/rild -l /vendor/lib64/libreference-ril.so
  266. class main
  267. - user radio
  268. + user root
  269. group radio cache inet misc audio log readproc wakelock
  270. capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
  271. git diff device/rockchip/rk356x_box/rk356x_box/overlay/frameworks/base/core/res/res/values/config.xml
  272. diff --git a/device/rockchip/rk356x_box/rk356x_box/overlay/frameworks/base/core/res/res/values/config.xml b/device/rockchip/rk356x_box/rk356x_box/overlay/frameworks/base/core/res/res/values/config.xml
  273. index 6021354c69..4150b15aca 100755
  274. --- a/device/rockchip/rk356x_box/rk356x_box/overlay/frameworks/base/core/res/res/values/config.xml
  275. +++ b/device/rockchip/rk356x_box/rk356x_box/overlay/frameworks/base/core/res/res/values/config.xml
  276. @@ -35,6 +35,14 @@
  277. <!-- the 6th element indicates boot-time dependency-met value. -->
  278. <string-array translatable="false" name="networkAttributes">
  279. <item>"wifi,1,1,1,-1,true"</item>
  280. + <item>"mobile,0,0,0,-1,true"</item>
  281. + <item>"mobile_mms,2,0,2,60000,true"</item>
  282. + <item>"mobile_supl,3,0,2,60000,true"</item>
  283. + <item>"mobile_dun,4,0,2,60000,true"</item>
  284. + <item>"mobile_hipri,5,0,3,60000,true"</item>
  285. + <item>"mobile_fota,10,0,2,60000,true"</item>
  286. + <item>"mobile_ims,11,0,2,60000,true"</item>
  287. + <item>"mobile_cbs,12,0,2,60000,true"</item>
  288. <item>"ethernet,9,9,9,-1,true"</item>
  289. </string-array>
  290. @@ -49,7 +57,7 @@
  291. </string-array>
  292. <bool name="config_ui_enableFadingMarquee">true</bool>
  293. -
  294. + <bool name="config_mobile_data_capable">true</bool>
  295. <!-- Device configuration adjusting the minfree tunable in the lowmemorykiller in the
  296. kernel. A high value will cause the lowmemorykiller to fire earlier, keeping more
  297. memory in the file cache and preventing I/O thrashing, but allowing fewer processes
  298. -------------------------------------------------------------
  299. //添加移远4G 模块的
  300. device/rockchip/rk356x_box/rk356x_box/4g_modem.mk
  301. PRODUCT_PACKAGES += \
  302. Dialer \
  303. TeleService \
  304. phone \
  305. TelephonyProvider
  306. #PRODUCT_PROPERTY_OVERRIDES += \
  307. hw.nophone=false \
  308. ro.radio.noril=false
  309. PRODUCT_PROPERTY_OVERRIDES += \
  310. rild.libpath=/vendor/lib64/libreference-ril.so \
  311. rild.libargs=-d /dev/ttyUSB2
  312. #enable vendor ril
  313. #ENABLE_VENDOR_RIL_SERVICE := true
  314. QUECTEL_PATH := device/rockchip/rk356x_box/rk356x_box/quectel_4g
  315. #PRODUCT_COPY_FILES += \
  316. #$(QUECTEL_PATH)/apns-conf.xml:system/etc/apns-conf.xml \
  317. PRODUCT_COPY_FILES += \
  318. $(QUECTEL_PATH)/chat:system/bin/chat \
  319. $(QUECTEL_PATH)/ip-down:system/etc/ppp/ip-down \
  320. $(QUECTEL_PATH)/ip-up:system/etc/ppp/ip-up
  321. PRODUCT_COPY_FILES += \
  322. $(QUECTEL_PATH)/libreference-ril.so:vendor/lib64/libreference-ril.so
  323. #PRODUCT_COPY_FILES += \
  324. $(QUECTEL_PATH)/dhcpcd:$(TARGET_COPY_OUT_VENDOR)/bin/dhcpcd
  325. 4G模块相关的库文件和SHELL执行文件,可以找移远FAE提供:
  326. ------------------------------------------
  327. 接下来查看RIL Log
  328. console:/ # logcat -b radio
  329. --------- beginning of radio
  330. 01-01 01:00:06.689 441 441 D RILD : **RIL Daemon Started**
  331. 01-01 01:00:06.700 441 441 D RILD : **RILd param count=3**
  332. 01-01 01:00:06.738 441 441 D RILD : RIL_Init argc = 3 clientId = 0
  333. 01-01 01:00:06.738 441 441 D RILC : Quectel RIL Version: Quectel_Android_RIL_Driver_V3.6.14_master_Release_20231013_10_54
  334. 01-01 01:00:06.738 441 441 D RILC : Compiled date: Oct 13 2023 time: 05:57:48
  335. 01-01 01:00:06.738 441 441 D RIL_READ_CONF: since '/system/etc/ql-ril.conf' doesn't exsits using '/vendor/etc/ql-ril.conf' but it still doesn't exsits program panic here!
  336. 01-01 01:00:06.738 441 441 D NDK : Default libnetutils.so path:/system/lib64/libnetutils.so
  337. 01-01 01:00:06.739 441 441 D NDK : ql_find_libpath:/apex/com.android.vndk.v30/lib64/libnetutils.so
  338. 01-01 01:00:06.749 441 441 D NDK : Default libcutils.so path:/system/lib64/libcutils.so
  339. 01-01 01:00:06.750 441 441 D NDK : Found libcutils.so path:/apex/com.android.vndk.v30/lib64/libcutils.so
  340. 01 441 D RILC : [ro.build.version.release]: [11]
  341. 01-01 01:00:0RILC : Android Version: 110, RIL_VERSION: 12 / 12
  342. 01-01 01:0 E RILC : '/vendor/manifest.xml' not exist.
  343. 01-01 01:00:06.7 : __getIRadioVersion:663 IRadioVersion:1
  344. 01-01 01:00:06.751 : [ro.build.description]: [rk356x_box-userdebug 11 RD2A.211001.22.142232 release-keys]
  345. 01-01 01:00:06.751 441 441 D RILC k30board]
  346. 01-01 01:00:06.751 441 441 D RILC : selinux mae, use command getenforce to check
  347. 01-01 01:00:06.751 441 4ux maybe set Enforcing mode, use command "setenforce 0" to disab 441 441 I RILC : clientID = 0
  348. 01-01 01:00:06.751 441 _Init rilInit completed
  349. 01-01 01:00:06.751 441 441 I RILC 01:00:06.751 441 441 E RILC : RIL_register: RIL version 51 441 441 I RILC : s_registerCalled flag set, 1
  350. 01-01 0441 D RILC : registerService: starting android::hardware::rad
  351. 01-01 01:00:06.756 441 453 I RILC : mainLoop Start
  352. 01-1 453 D RILU : find_pci_device is 0
  353. 01-01 01:00:06.757 4 : PCI can't find at device
  354. 01-01 01:00:06.761 441 441 I R registerService
  355. 01-01 01:00:06.761 441 441 D RILD : RILpleted
  356. 01-01 01:00:06.761 441 441 D RILD : RIL_register_01 01:00:06.761 441 441 D RIL_UIM_SOCKET: Adding socket with.761 441 441 I RILC : RIL_register_socket: calling regist00:06.761 441 441 D RIL_SAP : registerService: starting ISap00:06.766 441 441 D RIL_SAP : registerService: started ISap 8
  357. 01-01 01:00:06.766 441 441 D RILD : RIL_register_socke1:00:06.774 441 453 D RILC : USB can't find at device
  358. 018 288 D TelephonyManager: No /proc/cmdline exception=java.io.F /proc/cmdline: open failed: EACCES (Permission denied)
  359. 01-01 0288 D TelephonyManager: /proc/cmdline=
  360. 01-01 01:00:09.774 441d_pci_device is 0
  361. 01-01 01:00:09.774 441 453 D RILC : PC
  362. 01-01 01:00:09.776 441 453 D RILC : USB can't find at d777 441 453 D RILU : find_pci_device is 0
  363. 01-01 01:00:12 : PCI can't find at device
  364. 01-01 01:00:12.779 441 453 D l module /sys/bus/usb/devices/1-1 idVendor=2c7c idProduct=6005
  365. 441 453 D RILU : find_usb_device is 1
  366. 01-01 01:00:13.780 find /sys/bus/usb/devices/1-1:1.3/ttyUSB1
  367. 01-01 01:00:13.781 : ttyAT = ttyUSB1
  368. 01-01 01:00:13.781 441 453 D RILU : fices/1-1:1.4/ttyUSB2
  369. 01-01 01:00:13.781 441 453 D RILU : 1-01 01:00:13.781 441 453 D RILU : find /sys/bus/usb/devi
  370. 01-01 01:00:13.781 441 453 D RILU : ttyDM = ttyUSB0
  371. 01- 453 D RILU : find /sys/bus/usb/devices/1-1:1.0/net/usb0
  372. 01-1 453 D RILU : usbnet_adapter = usb0
  373. 01-01 01:00:13.782 : netcard driver: cdc_ether, driver version: 22-Aug-2005
  374. 01-01 53 D RILU : ECM = usb0
  375. 01-01 01:00:13.782 441 453 D RILU: 4.19.232
  376. 01-01 01:00:13.782 441 453 D RILC : quectel aB1
  377. 01-01 01:00:13.782 441 453 D RILU : ql_set_autosuspen00:13.782 441 453 D RILU : ro_hardware:rk30board
  378. 01-01 053 D RILU : ----------------------------------------------2:r:13.782 441 453 D RILU : --------------------------------1-01 01:00:13.782 441 453 D RILU : --------------------------3:2
  379. 01-01 01:00:13.802 441 453 D RILU : echo on > /s-1/power/control
  380. 01-01 01:00:13.802 441 453 D RILU : ql_
  381. 01-01 01:00:13.802 441 453 D RILU : --------------------------3:3
  382. 01-01 01:00:13.802 441 453 D RILU : ------------------------3:1
  383. 01-01 01:00:13.802 441 453 D RILU : --------------------------3:3
  384. 01-01 01:00:13.802 441 453 D RI---------------------------------3:1
  385. 01-01 01:00:13.802 441 ----------------------------------------3:3
  386. 01-01 01:00:13.802 : ----------------------------------------------3:1
  387. 01-01 01:0----------3:3
  388. 01-01 01:00:13.802 441 453 D RILU : -------------------------4
  389. 01-01 01:00:13.803 441 453 D RILC :dev/ttyUSB1
  390. 01-01 01:00:13.803 441 453 D RILC : open devrectly
  391. 01-01 01:00:13.804 441 453 E ATC : at_open s_til4
  392. 01-01 01:00:13.804 441 451 D ATC : AT> ATE0
  393. 01-01 01587 D ATC : AT< ATE0
  394. 01-01 01:00:13.805 441 587 D ATC 01:00:13.805 441 451 D ATC : AT> AT+CMEE=1
  395. 01-01 01:00:ATC : AT< OK
  396. 01-01 01:00:13.807 441 451 D ATC : AT>.807 441 587 D ATC : AT< Quectel
  397. 01-01 01:00:13.807 4: AT< EC200A
  398. 01-01 01:00:13.808 441 587 D ATC : AT< Rev2M08
  399. 01-01 01:00:13.808 441 587 D ATC : AT< OK
  400. 01-01 0 451 D RILC : ql_product_version is EC200ACNLFR01A02M08
  401. 01-0451 D RILC : Quectel Product Revision: EC200ACNLFR01A02M08
  402. 0 441 451 D RILU : ql_set_autosuspend, enter...
  403. 01-01 01:00 D RILU : ro_hardware:rk30board
  404. 01-01 01:00:13.808 441 4---------------------------------------2:rk30board
  405. 01-01 01:00: RILU : ----------------------------------------------3:1
  406. 01441 451 D RILU : ------------------------------------------3.825 441 451 D RILU : echo on > /sys/bus/usb/devices/1-101 01:00:13.825 441 451 D RILU : ql_set_autosuspend off
  407. 441 451 D RILU : ------------------------------------------13.825 441 451 D RILU : ---------------------------------1 01:00:13.825 441 451 D RILU : -------------------------
  408. 01-01 01:00:13.825 441 451 D RILU : ------------------------3:1
  409. 01-01 01:00:13.825 441 451 D RILU : --------------------------3:3
  410. 01-01 01:00:13.825 441 451 D RILU : -------------------------3:1
  411. 01-01 01:00:13.825 441 451 D RIL-------------------------------3:3
  412. 01-01 01:00:13.825 441 4---------------------------------------4
  413. 01-01 01:00:13.826 4 Platform
  414. 01-01 01:00:13.826 441 451 D ATC : AT> AT+CSU:00:13.831 441 587 D ATC : AT< SubEdition: V04
  415. 01-01 0187 D ATC : AT< VERSION: EC200ACNLFR01A02M08
  416. 01-01 01:00:13. : AT< Sep 11 2023 11:11:34
  417. 01-01 01:00:13.832 441 587 Dors: QCT
  418. 01-01 01:00:13.832 441 587 D ATC : AT< OK
  419. 01- D ATC : AT> ATE0
  420. 01-01 01:00:13.832 441 587 D ATC :13.832 441 451 D ATC : AT> at+cmee=1
  421. 01-01 01:00:13.83 : AT< OK
  422. 01-01 01:00:13.833 441 451 D ATC : AT> ATS 441 587 D ATC : AT< OK
  423. 01-01 01:00:13.834 441 451 QURCCFG="URCPORT","usbat"
  424. 01-01 01:00:13.843 441 587 D ATC :00:13.843 441 451 D ATC : AT> AT&D2
  425. 01-01 01:00:13.844 : AT< OK
  426. 01-01 01:00:13.844 441 451 D ATC : AT> AT+CM3.844 441 587 D ATC : AT< OK
  427. 01-01 01:00:13.845 441 > AT+QCFG="ims",1
  428. 01-01 01:00:13.845 441 587 D ATC : AT 01:00:13.845 441 451 D ATC : AT> AT+CREG=2
  429. 01-01 01:00D ATC : AT< OK
  430. 01-01 01:00:13.846 441 451 D ATC : A1:00:13.847 441 587 D ATC : AT< OK
  431. 01-01 01:00:13.847 : AT> AT+CGREG=2
  432. 01-01 01:00:13.848 441 587 D ATC : AT848 441 451 D ATC : AT> AT+CEREG=2
  433. 01-01 01:00:13.848 : AT< OK
  434. 01-01 01:00:13.848 441 451 D ATC : AT> AT+C5GR.849 441 587 D ATC : AT< ERROR
  435. 01-01 01:00:13.849 441T> AT+QENDC=1
  436. 01-01 01:00:13.850 441 587 D ATC : AT< ER50 441 451 D ATC : AT> AT^DSCI=1
  437. 01-01 01:00:13.851 4AT< ERROR
  438. 01-01 01:00:13.851 441 451 D ATC : AT> AT+CFU52 441 587 D ATC : AT< +CFUN: 1
  439. 01-01 01:00:13.852 44< OK
  440. 01-01 01:00:13.853 441 451 D ATC : AT> AT+CPIN?
  441. 0441 587 D ATC : AT< +CPIN: READY
  442. 01-01 01:00:13.853 441OK
  443. 01-01 01:00:13.854 441 451 D ATC : AT> AT+CFUN?
  444. 01-01 01:00:13.854 441 587 D ATC : AT< +CFUN: 1
  445. 01-01 01:00:13.854 441 587 D ATC : AT< OK
  446. 01-01 01:00:13.855 4451 I RILC : [setRadioState]:oldState=1, newState=2
  447. 01-01 01:1 E RILC : radioStateChangedInd: radioService[0]->mRadioIndic:00:13.857 441 451 D ATC : AT> AT+CPIN?
  448. 01-01 01:00:13.C : AT< +CPIN: READY
  449. 01-01 01:00:13.857 441 587 D ATC 1:00:13.857 441 451 I RILC : [setRadioState]:oldState=2, 0:13.858 441 451 E RILC : radioStateChangedInd: radioServion == NULL
  450. 01-01 01:00:13.858 441 451 D ATC : AT> AT+Qodem/mmode/ue_usage_setting"
  451. 01-01 01:00:13.858 441 587 D A1 01:00:13.858 441 451 D RILC : ue_function check failed 01:00:13.858 441 451 D ATC : AT> AT+QINISTAT
  452. 01-01 01:0ATC : AT< +QINISTAT: 1
  453. 01-01 01:00:13.859 441 587 D ATC00:13.859 441 451 D ATC : AT> AT+CSMS=1
  454. 01-01 01:00:13. : AT< +CSMS: 1,1,1
  455. 01-01 01:00:13.860 441 587 D ATC 3.860 441 451 D ATC : AT> AT+CNMI=2,2
  456. 01-01 01:00:13.861-01 01:00:13.861 441 451 D ATC : AT> AT+CMGF=0
  457. 01-01 07 D ATC : AT< OK
  458. 01-01 01:00:13.862 441 451 D ATC :01 01:00:13.862 441 587 D ATC : AT< OK
  459. 01-01 01:00:13.8 : AT> AT+CMOD=0
  460. 01-01 01:00:13.864 441 587 D ATC : 13.864 441 451 D ATC : AT> AT+CMUT=0
  461. 01-01 01:00:13.864 AT< +CME ERROR: 4
  462. 01-01 01:00:13.865 441 451 D ATC : A01 01:00:13.865 441 587 D ATC : AT< OK
  463. 01-01 01:00:13.8C : AT> AT+COLP=0
  464. 01-01 01:00:13.866 441 587 D ATC 13.866 441 451 D ATC : AT> AT+CSCS="UCS2"
  465. 01-01 01:00:1 ATC : AT< OK
  466. 01-01 01:00:13.867 441 451 D ATC : AT1:00:13.867 441 587 D ATC : AT< OK
  467. 01-01 01:00:13.867 : AT> AT+CGEREP=0
  468. 01-01 01:00:13.868 441 587 D ATC : AT.868 441 451 D ATC : AT> AT+CGEREP=0
  469. 01-01 01:00:13.869 : AT< OK
  470. 01-01 01:00:13.869 441 451 D ATC : AT> AT+C.870 441 587 D ATC : AT< OK
  471. 01-01 01:00:13.870 441 +CTZR=2
  472. 01-01 01:00:13.871 441 587 D ATC : AT< OK
  473. 01-0451 E RILC : simStatusChangedInd: radioService[0]->mRadioIndi01 01:00:13.872 441 451 D ATC : AT> at+qcfg=nat
  474. 01-01 0587 D ATC : AT< +QCFG: "nat",1
  475. 01-01 01:00:13.873 441 501-01 01:00:13.873 441 451 D ATC : AT> AT+QCFG="speed"
  476. 441 587 D ATC : AT< +CME ERROR: 4
  477. 01-01 01:00:13.874 44AT> AT+QNWCFG="lte_pco",2
  478. 01-01 01:00:13.875 441 587 D ATC 1 01:00:13.875 441 451 D ATC : AT> AT+QIMSCFG="ims_statu5 441 587 D ATC : AT< ERROR
  479. 01-01 01:00:13.876 441 H: requestSignalStrength:720 iradio_version = 1
  480. 01-01 01:00:13. : AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?
  481. 01-01 01:00:13.8C : AT< +COPS: 0
  482. 01-01 01:00:13.877 441 587 D ATC :01:00:13.877 441 587 D ATC : AT< OK
  483. 01-01 01:00:13.877 : AT> AT+QENG="servingcell"
  484. 01-01 01:00:13.880 441 587 DG: "servingcell","LIMSRV","LTE","FDD",460,00,D6F7750,220,3590,8,,0,0
  485. 01-01 01:00:13.880 441 587 D ATC : AT< OK
  486. 01-01 0 451 D CELL_INFO: parseServingCell_234G:699 Enter...
  487. 01-01 01:01 D ATC : AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?
  488. 01-01 01: D ATC : AT< +COPS: 0
  489. 01-01 01:00:13.882 441 587 D ATC 01-01 01:00:13.882 441 587 D ATC : AT< OK
  490. 01-01 01:00:1INFO: parseServingCell_234G:767 LTE RSRP=-106
  491. 01-01 01:00:13.8L_INFO: parseServingCell_234G:802 *count = 1
  492. 01-01 01:00:13.882 : AT> AT+CSQ
  493. 01-01 01:00:13.883 441 587 D ATC : AT< 0:13.883 441 587 D ATC : AT< OK
  494. 01-01 01:00:13.883 44urrentSignalStrengthInd: radioService[0]->mRadioIndication == NU59 441 587 D ATC : AT< +QIND: SMS DONE
  495. 01-01 01:00:13.9 : AT> AT+CPIN?
  496. 01-01 01:00:13.960 441 587 D ATC : AT< 01:00:13.960 441 587 D ATC : AT< OK
  497. 01-01 01:00:13.960 : [setRadioState]:oldState=4, newState=4
  498. 01-01 01:00:13.960 T> AT+QINISTAT
  499. 01-01 01:00:13.961 441 587 D ATC : AT< +1:00:13.961 441 587 D ATC : AT< OK
  500. 01-01 01:00:13.961 : AT> AT+CSMS=1
  501. 01-01 01:00:13.962 441 587 D ATC : AT< 01:00:13.962 441 587 D ATC : AT< OK
  502. 01-01 01:00:13.962 : AT> AT+CNMI=2,2
  503. 01-01 01:00:13.963 441 587 D ATC ::13.963 441 451 D ATC : AT> AT+CMGF=0
  504. 01-01 01:00:13.96 : AT< OK
  505. 12-22 06:19:28.037 441 587 D ATC : AT< +QI6:19:28.037 441 587 E RILC : RDY !!!
  506. 12-22 06:19:28.037 : AT> AT+CPIN?
  507. 12-22 06:19:28.041 441 587 D ATC : AT< +6:19:28.042 441 587 D ATC : AT< OK
  508. 12-22 06:19:28.042 : [setRadioState]:oldState=4, newState=4
  509. 12-22 06:19:29.343 anager: No /proc/cmdline exception=java.io.FileNotFoundExceptionn failed: EACCES (Permission denied)
  510. ------------------------------
  511. 发现出现权限异常问题,修改权限接口:
  512. git diff device/rockchip/rk356x_box/rk356x_box/manifest.xml
  513. diff --git a/device/rockchip/rk356x_box/rk356x_box/manifest.xml b/device/rockchip/rk356x_box/rk356x_box/manifest.xml
  514. index 6f8b05b446..96fd27d630 100644
  515. --- a/device/rockchip/rk356x_box/rk356x_box/manifest.xml
  516. +++ b/device/rockchip/rk356x_box/rk356x_box/manifest.xml
  517. @@ -26,6 +26,31 @@
  518. <instance>default</instance>
  519. </interface>
  520. </hal>
  521. + <hal format="hidl">
  522. + <name>android.hardware.radio</name>
  523. + <transport>hwbinder</transport>
  524. + <fqname>@1.1::IRadio/slot1</fqname>
  525. + <fqname>@1.1::IRadio/slot2</fqname>
  526. + <fqname>@1.2::ISap/slot1</fqname>
  527. + </hal>
  528. + <hal format="hidl">
  529. + <name>android.hardware.radio.deprecated</name>
  530. + <transport>hwbinder</transport>
  531. + <version>1.0</version>
  532. + <interface>
  533. + <name>IOemHook</name>
  534. + <instance>slot1</instance>
  535. + </interface>
  536. + </hal>
  537. + <hal format="hidl">
  538. + <name>android.hardware.radio.config</name>
  539. + <transport>hwbinder</transport>
  540. + <version>1.0</version>
  541. + <interface>
  542. + <name>IRadioConfig</name>
  543. + <instance>default</instance>
  544. + </interface>
  545. + </hal>
  546. <hal format="hidl">
  547. <name>android.hardware.graphics.composer</name>
  548. <transport>hwbinder</transport>
  549. -----------------------------------------
  550. 到此4G 模块调试完毕,正常实现上网!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/275258
推荐阅读
相关标签
  

闽ICP备14008679号