Open mikhailnov opened 3 years ago
This patch is incorrect, the kernel modules builds but does not work correctly:
[Сб янв 2 16:39:05 2021] binder_linux: 6162: binder_alloc_buf failed to map page at 0000000035375c15 in kernel
[Сб янв 2 16:39:05 2021] binder_linux: binder_mmap: 6162 f6e82000-f6f80000 alloc small buf failed -12
It is easier to build ashmem and binder from the upstream Linux kernel by porting the following commits from Ubuntu kernel:
$ cat 0/@/boot/config-5.4.0-59-generic | grep -iE 'ashmem|bind'
<...>
CONFIG_ASHMEM=m
CONFIG_ANDROID_BINDER_IPC=m
CONFIG_ANDROID_BINDERFS=m
CONFIG_ANDROID_BINDER_DEVICES=""
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
so did you manage to get them working?
is this superceded by #76 ?
Both kernel modules from the tree of this commit are compilable on kernel 5.10 The kernel has to be build with commit 0bd476e6c6 ("kallsyms: unexport kallsyms_lookup_name() and kallsyms_on_each_symbol()") reverted, because both Anbox modules require kallsyms_lookup_name.
This kernel commit changed API: https://github.com/torvalds/linux/commit/9740ca4e95b43