Binder机制情景分析之linux环境适配

binder安装
一. 环境
– 运行环境:linux4.1.15
– 开发板为天嵌imx6ul

二. 内核修改
2.1 打开内核配置菜单
make menuconfig
2.2 修改配置
配置驱动
转到Device Drivers->Android,选中Andoid Drivers和Android Binder IPC Driver
示例如下:

配置binder驱动中使用到接口
转到Device Drivers->Staging drivers->Android,选中: Enable the Anonymous Shared Memory Subsystem, Synchronization framework, Software synchronization objects, Userspace API for SW_SYNC
示例如下:

2.3 重新编译
make zImage -j4
三. 查看
将重新编译好的内核更新到开发板中; 用ls命令查看/dev下是否有个设备为binder

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理