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
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论