rk3399调试EC20 4G模块

本文介绍RK3399平台下RIL配置流程,包括Kernel配置、库文件复制、服务启动、权限设置及SELinux配置。特别强调了libreference-ril.so的重命名与使用。

Kernel 配置要打开

Ppp

USB_SERIAL

通过查看 .config  最好重新命名。使用编译,直接打开就是

然后就是按照文档拷d贝库及相关文件到相关目录 (我们是64位的)

./rk3399/device.mk:     $(LOCAL_PATH)/libquectel-ril/arm64-v8a/libreference-ril.so:vendor/lib64/libquectel-ril.so \

注意这里重命名了 libreference-ril.so:vendor/lib64/libquectel-ril.so

然后在下面启动的服务名字要正确

之后就是init.rc 启动服务

./rk3399/init.rk3399.rc:service ril-daemon /vendor/bin/hw/rild -l /vendor/lib64/libquectel-ril.so

修改权限

./common/ueventd.rockchip.rc:/dev/ttyUSB0             0777      radio           radio

还有 android 8.1 与5.1区别很大就是 系统权限

Selinux

./device/rockchip/common/sepolicy/rild.te

./system/sepolicy/vendor/rild.te

./system/sepolicy/public/rild.te

./system/sepolicy/prebuilts/api/26.0/public/rild.te

最后确认是否有 hal的so ,平台的 ril 编译产生的名字就是   libreference-ril.so,所以我们重命名  libreference-ril.so:vendor/lib64/libquectel-ril.so

这样就区分两个 so ,ec20 提供的   libreference-ril.so 现在成了 libquectel-ril.so  由 上面的 rc 文件启动服务

而 系统编译产生的   libreference-ril.so 就是系统起来后会加载使用的 ,也就是

./target/product/rk3399/obj/NOTICE_VENDOR.xml:<file-name contentId="9645f39e9db895a4aa6e02cb57294595">/vendor/lib/libreference-ril.so</file-name>

./target/product/rk3399/obj/NOTICE_VENDOR.xml:<file-name contentId="9645f39e9db895a4aa6e02cb57294595">/vendor/lib64/libreference-ril.so</file-name>

./target/product/rk3399/obj/NOTICE_VENDOR.txt:/vendor/lib/libreference-ril.so

./target/product/rk3399/obj/NOTICE_VENDOR.txt:/vendor/lib64/libreference-ril.so

./target/product/rk3399/obj/NOTICE_VENDOR.xml:<file-name contentId="9645f39e9db895a4aa6e02cb57294595">/vendor/lib/libreference-ril.so</file-name>

./target/product/rk3399/obj/NOTICE_VENDOR.xml:<file-name contentId="9645f39e9db895a4aa6e02cb57294595">/vendor/lib64/libreference-ril.so</file-name>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

荣敢飞

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值