Package Details: anbox-modules-dkms 5.19-1

Git Clone URL: (read-only, click to copy)
Package Base: anbox-modules-dkms
Description: Android kernel driver fork by @choff (binder/binderfs & ashmem) in DKMS format
Upstream URL:
Keywords: anbox ashmem binder binderfs waydroid
Licenses: GPL3
Conflicts: anbox-modules-dkms-git
Provides: anbox-modules-dkms
Submitter: sickcodes
Maintainer: sickcodes
Last Packager: sickcodes
Votes: 8
Popularity: 0.051487
First Submitted: 2021-12-17 05:28 (UTC)
Last Updated: 2022-12-09 07:16 (UTC)

Pinned Comments

sickcodes commented on 2022-01-15 11:43 (UTC)

This has been adjusted to build on 5.10-5.15 thank you to legend Christian Hoff!

Working DKMS fork by Christian Hoff:

DKMS add modules, without reboot:

sudo modprobe binder_linux devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder

sudo modprobe ashmem_linux

Pull Requests:

Contact (Discord/Telegram/Git/Element):

Latest Comments

1 2 3 4 Next › Last »

dcryptr commented on 2023-02-26 01:55 (UTC) (edited on 2023-02-26 01:56 (UTC) by dcryptr)

hello, i am getting error while building on latest linux 6.1.2 kernel :

/home/hasan/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder/binder.c:4112:9: error: implicit declaration of function ‘freezer_do_not_count’ [-Werror=implicit-function-declaration]
4112 |         freezer_do_not_count();
|         ^~~~~~~~~~~~~~~~~~~~
/home/hasan/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder/binder.c:4132:9: error: implicit declaration of function ‘freezer_count’; did you mean ‘preempt_count’? [-Werror=implicit-function-declaration]
4132 |         freezer_count();
|         ^~~~~~~~~~~~~
|         preempt_count
cc1: some warnings being treated as errors

any help?

13905069 commented on 2023-01-15 20:17 (UTC) (edited on 2023-01-15 20:18 (UTC) by 13905069)

Kernel 6.1 patch: ,please update

facet commented on 2022-11-21 08:43 (UTC)

Segmentation fault after "mount -t binder binder /dev/binderfs"

Here is the coredump info

           PID: 80230 (sudo)
           UID: 1000 (rok)
           GID: 0 (root)
        Signal: 11 (SEGV)
     Timestamp: Mon 2022-11-21 16:22:54 CST (18min ago)
  Command Line: sudo mount -t binder binder /dev/binderfs
    Executable: /usr/bin/sudo
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (rok)
       Boot ID: 41720a23bd2a44e8bad339e31fea43f7
    Machine ID: 8397a88136de41f98f34daeaa0250759
      Hostname: X1Nano
       Storage: /var/lib/systemd/coredump/core.sudo.1000.41720a23bd2a44e8bad339e31fea43f7.80230.>
  Size on Disk: 186.7K
       Message: Process 80230 (sudo) of user 1000 dumped core.

                Stack trace of thread 80230:
                #0  0x00007fc67cdd1c3b kill ( + 0x38c3b)
                #1  0x000055e96f9738ad n/a (sudo + 0x88ad)
                #2  0x00007fc67cdbc290 n/a ( + 0x23290)
                #3  0x00007fc67cdbc34a __libc_start_main ( + 0x2334a)
                #4  0x000055e96f973dd5 n/a (sudo + 0x8dd5)
                ELF object binary architecture: AMD x86-64

dont know why there is a AMD appear here, I'm working on i71160G7 if relevant

ZhangHua commented on 2022-10-21 07:23 (UTC) (edited on 2022-10-21 07:24 (UTC) by ZhangHua)

If you are using waydroid and having initialized it with ashmem, you can see this about how to migrate to memfd. However,binder is still needed, you can use binder_linux-dkms to provide it.

Auerhuhn commented on 2022-10-21 07:05 (UTC)

PSA: There seems to be a new AUR package binder_linux-dkms. It does away with ashmem and includes the pending Linux 6.0 upstream PR as a patch. Thanks @ZhangHua!

ZhangHua commented on 2022-10-15 05:30 (UTC)

@eNV25 I am using linux kernel, memfd is included by it, but Waydroid still needs binder_linux kernel module which can be provided by this package.

eNV25 commented on 2022-10-14 06:05 (UTC)

ZhangHua, please submit patches upstream.

Also, about waydroid. If you have memfd, shouldn't already have binder as well? linux-zen should have both. I don't think you need this package at all.

ZhangHua commented on 2022-10-14 05:30 (UTC)

For build on 6.0 Kernel, I have a patch to fix binder:

diff --git a/binder/binder_alloc.c b/binder/binder_alloc.c
index 61dd545..7fe818d 100644
--- a/binder/binder_alloc.c
+++ b/binder/binder_alloc.c
@@ -23,6 +23,7 @@
 #include <linux/uaccess.h>
 #include <linux/highmem.h>
 #include <linux/sizes.h>
+#include <linux/version.h>
 #include "binder_alloc.h"
 #include "binder_trace.h"

@@ -1079,7 +1080,11 @@ int binder_alloc_shrinker_init(void)
    int ret = list_lru_init(&binder_alloc_lru);

    if (ret == 0) {
+       ret = register_shrinker(&binder_shrinker, "binder");
        ret = register_shrinker(&binder_shrinker);
        if (ret)

However, I have not worked on ashmem because waydroid can use memfd instead...

nroth commented on 2022-09-16 01:19 (UTC) (edited on 2022-09-16 01:19 (UTC) by nroth)

Additional heads up: Building with the latest kernel and headers for aarch64 (5.19.8-1-MANJARO-ARM) does not work!

[ 219.334574] binder_linux: loading out-of-tree module taints kernel.

[ 219.334952] binder_linux: Unknown symbol __check_object_size (err -2)

[ 219.335146] binder_linux: Unknown symbol fortify_panic (err -2)

[ 219.335241] binder_linux: Unknown symbol __list_add_valid (err -2)

[ 219.335310] binder_linux: Unknown symbol __audit_inode_child (err -2)

[ 219.335337] binder_linux: Unknown symbol __list_del_entry_valid (err -2)

[ 219.335545] binder_linux: Unknown symbol register_kprobe (err -2)

[ 219.335605] binder_linux: Unknown symbol unregister_kprobe (err -2)

nroth commented on 2022-09-16 01:10 (UTC)

Heads up: it seems like aarch64 folks have to clone the package repo and build that way -- no prebuilt aarch64 package is currently available according to pacman.