Package Details: anbox-modules-dkms 5.19-1

Git Clone URL: https://aur.archlinux.org/anbox-modules-dkms.git (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: https://github.com/choff/anbox-modules
Keywords: anbox ashmem binder binderfs waydroid
Licenses: GPL3
Conflicts: anbox-modules-dkms-git
Provides: anbox-modules-dkms
Submitter: sickcodes
Maintainer: None
Last Packager: sickcodes
Votes: 9
Popularity: 0.98
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: https://github.com/choff/anbox-modules

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: https://github.com/sickcodes/aur

Contact (Discord/Telegram/Git/Element): https://sick.codes

Latest Comments

1 2 3 4 Next › Last »

PiterDeVries commented on 2023-07-13 19:30 (UTC) (edited on 2023-07-13 19:31 (UTC) by PiterDeVries)

Doesn't work for current (6.4) kernels (see sfranchi's post). But you can make it work on current Linux-LTS kerenel (6.1) with just a couple of changes in the PKGBUILD:

1) Change to the most recent commit: abead1debfae56e8d0307c642865ec23aaa854d3

2) get rid of the patches: delete them from the sources, sha256sum and prepare() sections

That should cover all kernel versions from 6.0+ to 6.3+ (no idea if realtime or hardened kernels work, but the plain LTS definitely does)

sfranchi commented on 2023-07-10 08:18 (UTC) (edited on 2023-07-10 08:20 (UTC) by sfranchi)

Modules do not build on kernel 6.4.2:

make -C /lib/modules/6.4.2-arch1-1/build V=0 M=$PWD
  CC [M]  /home/stefano/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder/deps.o
  CC [M]  /home/stefano/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder   /binder.o
/home/stefano/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_wait_for_work’:
/home/stefano/.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/stefano/.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
/home/stefano/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_mmap’:
/home/stefano/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder/binder.c:5229:23:    error: assignment of read-only member ‘vm_flags’
 5229 |         vma->vm_flags |= VM_DONTCOPY | VM_MIXEDMAP;
      |                       ^~
/home/stefano/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder/binder.c:5230:23: error: assignment of read-only member ‘vm_flags’
 5230 |         vma->vm_flags &= ~VM_MAYWRITE;
      |                       ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:252: /home/stefano/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder/binder.o] Error 1
make[1]: *** [Makefile:2026: /home/stefano/.cache/yay/anbox-modules-dkms/src/anbox-modules/binder] Error 2
make: *** [Makefile:8: all] Error 2
==> ERROR: A failure occurred in package().
    Aborting...
-> error making: anbox-modules-dkms-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
anbox-modules-dkms - exit status 4

m4ksim commented on 2023-04-07 10:02 (UTC)

@dcryptr Having the same problem on kernel 6.2.9. Anyone found a fix yet?

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:https://github.com/choff/anbox-modules/pull/7 ,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 (libc.so.6 + 0x38c3b)
                #1  0x000055e96f9738ad n/a (sudo + 0x88ad)
                #2  0x00007fc67cdbc290 n/a (libc.so.6 + 0x23290)
                #3  0x00007fc67cdbc34a __libc_start_main (libc.so.6 + 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.