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

binder安装

一. 环境

- 运行环境:linux4.1.15
- 开发板为天嵌imx6ul

二. 内核修改

2.1 打开内核配置菜单

make menuconfig

2.2 修改配置

    1. 配置驱动

转到Device Drivers->Android,选中Andoid DriversAndroid Binder IPC Driver linux

示例以下: spa

clipboard.png

    1. 配置binder驱动中使用到接口

转到Device Drivers->Staging drivers->Android,选中:
Enable the Anonymous Shared Memory Subsystem,
Synchronization framework,
Software synchronization objects,
Userspace API for SW_SYNC code

示例以下: blog

clipboard.png

2.3 从新编译

make zImage -j4

三. 查看

将从新编译好的内核更新到开发板中;
ls命令查看/dev下是否有个设备为binder接口

相关文章
相关标签/搜索