求android12 rockchip平台的EM05-CN和RM520N-GL的相关库、驱动和移植文档

我司是广州中科云图智能科技有限公司,现在在andorid平台移植em05-cn和rm520n-cn模组的时候缺少很多关键的资料,如方便的话请发送一份完整的资料到邮箱wubinghong@geoai.com和18814125494@163.com,谢谢!

已经发送到邮箱。
请查收。如有技术问题欢迎在论坛上提问。

你好,资料收到了,目前在适配em05-cn的时候系统报这个错误 E init : Control message: Could not find ‘android.hardware.radio@1.5::IRadio/slot1’ for ctl.interface_start from pid: 293 (/system/bin/hwservicemanager)
01-20 01:28:12.159 1877 1877 W HidlServiceManagement: Waited one second for android.hardware.radio@1.5::IRadio/slot1
01-20 01:28:12.160 293 293 I hwservicemanager: Since android.hardware.radio@1.5::IRadio/slot1 is not registered, trying to start it as a lazy HAL.
01-20 01:28:12.160 1877 1877 I HidlServiceManagement: getService: Trying again for android.hardware.radio@1.5::IRadio/slot1…
01-20 01:28:12.161 293 2145 W libc : Unable to set property “ctl.interface_start” to “android.hardware.radio@1.5::IRadio/slot1”: error code: 0x20
01-20 01:28:12.161 293 2145 I hwservicemanager: Tried to start android.hardware.radio@1.5::IRadio/slot1 as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.
01-20 01:28:14.911 1 1 E init : Control message: Could not find ‘android.hardware.radio@1.5::IRadio/slot1’ for ctl.interface_start from pid: 293 (/system/bin/hwservicemanager)
01-20 01:28:13.161 1877 1877 W HidlServiceManagement: Waited one second for android.hardware.radio@1.5::IRadio/slot1
01-20 01:28:13.161 293 293 I hwservicemanager: Since android.hardware.radio@1.5::IRadio/slot1 is not registered, trying to start it as a lazy HAL.
01-20 01:28:13.162 1877 1877 I HidlServiceManagement: getService: Trying again for android.hardware.radio@1.5::IRadio/slot1…
01-20 01:28:13.163 293 2146 W libc : Unable to set property “ctl.interface_start” to “android.hardware.radio@1.5::IRadio/slot1”: error code: 0x20
01-20 01:28:13.163 293 2146 I hwservicemanager: Tried to start android.hardware.radio@1.5::IRadio/slot1 as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.
01-20 01:28:15.913 1 1 E init : Control message: Could not find ‘android.hardware.radio@1.5::IRadio/slot1’ for ctl.interface_start from pid: 293 (/system/bin/hwservicemanager),我是新用户,暂时无法上传日志,如需更详细的日志,可以邮箱发送

log 等信息可以私信发送。
执行下

getprop | grep ril
ps -elf | grep ril
ps -elf | grep radio

看看返回结果。

logcat-2025-0120-0938.txt (1.7 MB)
这是系统详细的日志

你好 ,console:/ # getprop |grep ril
[init.svc.ril-daemon]: [running]
[init.svc_debug_pid.ril-daemon]: [7977]
[ril.fibocom.dialmode]: [1]
[ril.fibocom.usbmode]: [34]
[ril.function.dataonly]: [1]
[ril.network.always5G]: [true]
[ro.boot.noril]: [false]
[ro.boottime.ril-daemon]: [4990310061]
[ro.ril.ecclist]: [112,911]
[vendor.rild.libpath]: [/vendor/lib64/librk-ril.so]
console:/ # ps -elf |grep ril
root 7977 1 0 02:36:26 ? 00:00:00 rild -l /vendor/lib64/libreference-ril-em05.so
root 7999 1802 4 02:36:44 ttyFIQ0 00:00:00 grep ril
console:/ # ps -elf |grep radio
system 436 1 0 01:25:51 ? 00:00:00 android.hardware.radio.config@1.0-service
system 437 1 0 01:25:51 ? 00:00:00 android.hardware.radio@1.2-radio-service
radio 1877 419 0 01:26:58 ? 00:00:02 com.android.phone
root 8017 1802 8 02:36:52 ttyFIQ0 00:00:00 grep radio
console:/ #

dlopen failed: dlopen failed: library “android.hardware.secure_element@1.0.so” not found: needed by /vendor/lib64/libreference-ril-em05.so in namespace (default)

将所有的依赖都编译出来。

PRODUCT_PACKAGES += \
      android.hardware.secure_element@1.0  \
      android.hardware.secure_element@1.1  \
      android.hardware.secure_element@1.2

[quote=“BiaoWang-Q, post:7, topic:6786”]

PRODUCT_PACKAGES += \
      android.hardware.secure_element@1.0  \
      android.hardware.secure_element@1.1  \
      android.hardware.secure_element@1.2

[/quote]我用的ril库是这个版本,我的device/rockchip/common/4g_modem/manifest.xml文件里的内容如下


这个有问题吗

请问这个是加到哪个文件,vendor/rockchip/common/phone/phone.mk吗

随便找个只要能调用到就行。

PRODUCT_PACKAGES +=
android.hardware.secure_element@1.0.vendor
android.hardware.secure_element@1.1.vendor
android.hardware.secure_element@1.2.vendor

改成这样。确保能编译出来这些依赖的库。

这是logcat更详细的系统日志
logcat-2025-0120-1236.txt (2.1 MB)

修改编译完还是这个错误


以下是更详细的系统日志
dmesg-2025-0120-1233.txt (122.8 KB)

不用关心这个打印。
看看Android的日志,dmesg 日志咱不用关心。

logcat -b all

你好,能看出来这是什么问题吗,还需要修改哪些配置文件吗?

刚才按照这个修改,并且manifest.xml也改成这样了


还是报上面那个找不到android.hareware.radio@1.5::IRadio/slot1的错误,我用的ril库是
Quectel_Android_RIL_Driver_V3.6.24_master_Release_1.5_20231211_10_47这个版本,以下是更详细的logcat日志
logcat-2025-0120-1423.txt (1.7 MB)

dlopen failed: dlopen failed: library “android.hardware.radio.config@1.1.so” not found: needed by /vendor/lib64/libreference-ril-em05.so in namespace (default)

同理添加对应的依赖

PRODUCT_PACKAGES +=
android.hardware.radio.config@1.0.vendor
android.hardware.radio.config@1.1.vendor
android.hardware.radio.config@1.2.vendor

我估计还会有新的报错。再添加上

PRODUCT_PACKAGES +=
android.hardware.radio@1.0.vendor  \
android.hardware.radio@1.1.vendor  \
android.hardware.radio@1.2.vendor  \
android.hardware.radio@1.3.vendor  \
android.hardware.radio@1.4vendor  \
android.hardware.radio@1.5.vendor

你好,新的配置已经改成这样

还是会报以下的错误


以下是更详细的系统日志
logcat-2025-0120-1556.txt (2.0 MB)

android.hardware.radio.config@1.0-service
android.hardware.radio@1.2-radio-service

这两个服务不需要的,请删掉。