[Topic DIscussion] binder.ko和ashmem.ko模块编译安装 1.
Tofloor
poster avatar
jiutian123
deepin
2022-06-08 21:23
Author

binder.ko和ashmem.ko模块编译安装

  1. 下载内核源码,供内核模块编译。

    |

    apt search linux-source
    apt install linux-source-4.15.0
    
  2. 拷贝ashmem和binder源码。

    |

    cd /home/robox-master/kernel/robox-modules
    cp anbox.conf /etc/modules-load.d/
    cp 99-anbox.rules /lib/udev/rules.d/
    cp -rT ashmem /usr/src/anbox-ashmem-1
    cp -rT binder /usr/src/anbox-binder-1
    
  3. 使用dkms进行编译和安装。

    |

    dkms install anbox-ashmem/1
    dkms install anbox-binder/1
    
  4. 将ko模块安装到内核,binder_linux模块需要带参数。

    |

    modprobe ashmem_linux
    modprobe binder_linux num_devices=254
    lsmod | grep -e ashmem_linux -e binder_linux
    chmod 777 /dev/ashmem /dev/binder*
    
  5. 若ashmem和binder的属性权限不是下列命令显示的,请用chmod添加权限。

    |

    ls -alh /dev/binder* /dev/ashmem
    crwxrwxrwx 1 root root  10, 55 Oct 22 10:47 /dev/ashmem
    crwxrwxrwx 1 root root 511,  0 Oct 22 10:47 /dev/binder0
    crwxrwxrwx 1 root root 511,  0 Oct 22 10:47 /dev/binder1
    ...
    
Reply Favorite View the author
All Replies
jiutian123
deepin
2022-06-08 21:27
#1

找到一个 @pgxppptail

Reply View the author
pgxppp
deepin
2022-06-08 22:09
#2

现在deepin内核已集成相关功能

Reply View the author
jiutian123
deepin
2022-06-08 22:14
#3
pgxppp

现在deepin内核已集成相关功能

是的 新的自己编的话 不知道能不能用这个 uos不知道用 deepin社区版内核可以么

Reply View the author