Package Details: binder_linux-dkms 6.8-1

Git Clone URL: https://aur.archlinux.org/binder_linux-dkms.git (read-only, click to copy)
Package Base: binder_linux-dkms
Description: Android kernel driver fork by @choff in DKMS format, binder only.
Upstream URL: https://github.com/choff/anbox-modules
Keywords: anbox binder binderfs waydroid
Licenses: GPL3
Conflicts: anbox-modules-dkms
Submitter: ZhangHua
Maintainer: ZhangHua
Last Packager: ZhangHua
Votes: 24
Popularity: 1.44
First Submitted: 2022-10-14 05:45 (UTC)
Last Updated: 2024-03-04 13:44 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

austinrojers commented on 2023-07-22 16:44 (UTC) (edited on 2023-07-22 16:46 (UTC) by austinrojers)

This is the solution for my previous comment:

It seems that if you first initialize and run Waydroid with a kernel and then later switch to another kernel, you will have to reinitialize Waydroid to work with the later kernel.

sudo waydroid init -f

The waydroid init -f command initializes Waydroid. ( The -f flag tells Waydroid to force a reset.)

This downloads the latest Android image (if there is an update), sets up the Waydroid configuration file and starts the Waydroid container.

jimnong commented on 2023-07-17 09:33 (UTC) (edited on 2023-07-17 09:37 (UTC) by jimnong)

I installed this to run Waydroid.
Works well with original arch-linux kernel 6.4.3-arch1-1.
Are there anybody who can unflag?

austinrojers commented on 2023-07-02 14:02 (UTC) (edited on 2023-07-02 14:05 (UTC) by austinrojers)

I installed binder_linux-dkms for arch's linux kernel, and I am getting errors. Anything to do with the package compiled with newer python?

> sudo waydroid init 

[11:44:35] Already initialized

> ls /dev/
drwxr-xr-x       - root   16 Apr 17:00  binderfs
lrwxrwxrwx      22 root   16 Apr 17:00  features -> /dev/binderfs/features
lrwxrwxrwx      26 root   16 Apr 17:00  anbox-binder -> /dev/binderfs/anbox-binder
lrwxrwxrwx      28 root   16 Apr 17:00  anbox-hwbinder -> /dev/binderfs/anbox-hwbinder
lrwxrwxrwx      29 root   16 Apr 17:00  anbox-vndbinder -> /dev/binderfs/anbox-vndbinder
lrwxrwxrwx      28 root   16 Apr 17:00  binder-control -> /dev/binderfs/binder-control

> sudo ls -1 /dev/binderfs/
anbox-binder
anbox-hwbinder
anbox-vndbinder
binder-control
features

> sudo ls -1 /dev/binder
ls: cannot access '/dev/binder': No such file or directory

> sudo waydroid status
Session:    RUNNING
Container:  STOPPED
Vendor type:    MAINLINE
Session user:   austin(1000)
Wayland display:    wayland-0

> sudo systemctl enable --now waydroid-container

> waydroid session start

[11:36:52] Session is already running

> sudo waydroid container start
ERROR: WayDroid container service is already running

> waydroid show-full-ui
[gbinder] ERROR: Can't open /dev/binder: No such file or directory
[11:37:15] Waiting for binder Service Manager...
[11:38:15] Service Manager never appeared
[11:38:15] Failed to access IPlatform service

debugit commented on 2023-06-21 07:11 (UTC)

10-6.3.diff patch has wrong signature: in PKGFILE it is 7bfa..ecec and actual is 4b7c..4eac (my guess is that pull request 10 was changed recently)

ThePirate42 commented on 2023-05-07 22:10 (UTC)

I'm having the same problem of gouvinb.

gouvinb commented on 2023-05-04 14:40 (UTC) (edited on 2023-05-04 14:41 (UTC) by gouvinb)

Impossible to install with linux kernel 6.3.1.arch1-1.

(...)
(2/2) Install DKMS modules
==> dkms install --no-depmod binder/1 -k 6.3.1-arch1-1
Error! Bad return status for module build on kernel: 6.3.1-arch1-1 (x86_64)
Consult /var/lib/dkms/binder/1/build/make.log for more information.
==> WARNING: `dkms install --no-depmod binder/1 -k 6.3.1-arch1-1' exited 10

Here are the contents of the make.log file:

DKMS make.log for binder-1 for kernel 6.3.1-arch1-1 (x86_64)
Thu May  4 16:29:57 CEST 2023
make -C /lib/modules/6.3.1-arch1-1/build V=0 M=$PWD
  CC [M]  /var/lib/dkms/binder/1/build/deps.o
  CC [M]  /var/lib/dkms/binder/1/build/binder.o
  CC [M]  /var/lib/dkms/binder/1/build/binder_alloc.o
  CC [M]  /var/lib/dkms/binder/1/build/binderfs.o
/var/lib/dkms/binder/1/build/binderfs.c: In function 'binderfs_rename':
/var/lib/dkms/binder/1/build/binderfs.c:375:30: error: passing argument 1 of 'simple_rename' from incompatible pointer type [-Werror=incompatible-pointer-types]
  375 |         return simple_rename(namespace, old_dir, old_dentry, new_dir, new_dentry, flags);
      |                              ^~~~~~~~~
      |                              |
      |                              struct user_namespace *
In file included from /var/lib/dkms/binder/1/build/binderfs.c:5:
./include/linux/fs.h:2903:26: note: expected 'struct mnt_idmap *' but argument is of type 'struct user_namespace *'
 2903 | extern int simple_rename(struct mnt_idmap *, struct inode *,
      |                          ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/binder/1/build/binderfs.c: At top level:
/var/lib/dkms/binder/1/build/binderfs.c:478:19: error: initialization of 'int (*)(struct mnt_idmap *, struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int)' from incompatible pointer type 'int (*)(struct user_namespace *, struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int)' [-Werror=incompatible-pointer-types]
  478 |         .rename = binderfs_rename,
      |                   ^~~~~~~~~~~~~~~
/var/lib/dkms/binder/1/build/binderfs.c:478:19: note: (near initialization for 'binderfs_dir_inode_operations.rename')
/var/lib/dkms/binder/1/build/binder_alloc.c: In function 'binder_alloc_free_page':
/var/lib/dkms/binder/1/build/binder_alloc.c:1014:17: error: implicit declaration of function 'zap_page_range'; did you mean 'copy_page_range'? [-Werror=implicit-function-declaration]
 1014 |                 zap_page_range(vma, page_addr, PAGE_SIZE);
      |                 ^~~~~~~~~~~~~~
      |                 copy_page_range
/var/lib/dkms/binder/1/build/binder.c: In function 'binder_mmap':
/var/lib/dkms/binder/1/build/binder.c:5237:23: error: assignment of read-only member 'vm_flags'
 5237 |         vma->vm_flags |= VM_DONTCOPY | VM_MIXEDMAP;
      |                       ^~
/var/lib/dkms/binder/1/build/binder.c:5238:23: error: assignment of read-only member 'vm_flags'
 5238 |         vma->vm_flags &= ~VM_MAYWRITE;
      |                       ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/binder/1/build/binderfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/binder/1/build/binder.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/binder/1/build/binder_alloc.o] Error 1
make[1]: *** [Makefile:2025: /var/lib/dkms/binder/1/build] Error 2
make: *** [Makefile:8: all] Error 2

bkb commented on 2023-03-08 14:36 (UTC) (edited on 2023-03-08 14:56 (UTC) by bkb)

binder_linux: loading out-of-tree module taints kernel.
binder_linux: module verification failed: signature and/or required key missing - tainting kernel
ERROR: [Errno 2] No such file or directory: '/dev/binderfs/binder-control'
Error! Could not locate dkms.conf file.
binder/1, 6.2.2-arch1-1, x86_64: installed
kernel: Modules linked in: binder_linux(OE) 
binder_linux          258048  0
/var/lib/dkms/binder/1/6.2.2-arch1-1/x86_64/module/binder_linux.ko.zst: Zstandard compressed data (v0.8+), Dictionary ID: None
  CC [M]  /var/lib/dkms/binder/1/build/deps.o
  CC [M]  /var/lib/dkms/binder/1/build/binder.o
  CC [M]  /var/lib/dkms/binder/1/build/binder_alloc.o
  CC [M]  /var/lib/dkms/binder/1/build/binderfs.o
  LD [M]  /var/lib/dkms/binder/1/build/binder_linux.o
  MODPOST /var/lib/dkms/binder/1/build/Module.symvers
  CC [M]  /var/lib/dkms/binder/1/build/binder_linux.mod.o
  LD [M]  /var/lib/dkms/binder/1/build/binder_linux.ko
  BTF [M] /var/lib/dkms/binder/1/build/binder_linux.ko
[1]    194477 segmentation fault (core dumped)  sudo mount -t binder binder /dev/binderfs
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffd8fcecd90) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
readlink("/dev", 0x7ffd8fceb5a0, 1023)  = -1 EINVAL (Invalid argument)
readlink("/dev/binderfs", 0x7ffd8fceb5a0, 1023) = -1 EINVAL (Invalid argument)
newfstatat(AT_FDCWD, "/usr/bin/mount.binder", 0x7ffd8fceaa00, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/mount.binder", 0x7ffd8fceaa00, 0) = -1 ENOENT (No such file or directory)
+++ killed by SIGSEGV +++
modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/6.2.2-arch1-1
ls: cannot access '/dev/binder': No such file or directory
ls: cannot access '/dev/ashmem': No such file or directory
/etc/modules-load.d/anbox.conf:   cannot open `/etc/modules-load.d/anbox.conf' (No such file or directory)
/lib/udev/rules.d/99-anbox.rules: ASCII text
/usr/src/anbox-ashmem-1:          cannot open `/usr/src/anbox-ashmem-1' (No such file or directory)
/usr/src/anbox-binder-1:          cannot open `/usr/src/anbox-binder-1' (No such file or directory)