Summary
redroid doesn't work on Arch Linux zen kernel, which is built with binder in a slightly different way.
Context
I'm using Arch Linux with zen-kernel. The kernel is built with ashmem and binder support. Redroid crash-loops in the container trigger by binder related errors.
After some research, I found a subtle difference in the kernel build config where zen kernel is built with
CONFIG_ANDROID_BINDER_DEVICES=""
while other distros are build with
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
This difference resulted in different devices when binder is mounted. In zen-kernel, after mounting binder device, there is only one item
$ ls /dev/binderfs
binder-control
Otherwise, there should be 4 items in it
$ ls /dev/binderfs
binder binder-control hwbinder vndbinder
I didn't find any docs explaining the difference, although the Arch Linux Anbox wiki does mention the two ways of building binder module.
Since Anbox works with both binder and binderfs, I'm wondering if redroid can support that too, if not too difficult. I feel that binderfs is the new version of binder, if I understand correctly.
I'm happy to contribute code but my knowledge on these specific topics is limited.
Update
I found this article roughly described the difference between binder and binderfs.
Summary
redroid doesn't work on Arch Linux zen kernel, which is built with binder in a slightly different way.
Context
I'm using Arch Linux with zen-kernel. The kernel is built with
ashmemandbindersupport. Redroid crash-loops in the container trigger by binder related errors.After some research, I found a subtle difference in the kernel build config where zen kernel is built with
while other distros are build with
This difference resulted in different devices when binder is mounted. In zen-kernel, after mounting binder device, there is only one item
Otherwise, there should be 4 items in it
I didn't find any docs explaining the difference, although the Arch Linux Anbox wiki does mention the two ways of building binder module.
Since Anbox works with both
binderandbinderfs, I'm wondering if redroid can support that too, if not too difficult. I feel that binderfs is the new version of binder, if I understand correctly.I'm happy to contribute code but my knowledge on these specific topics is limited.
Update
I found this article roughly described the difference between binder and binderfs.