Waydroid expects binder_linux

Here’s the starting point:

paru waydroid
sudo systemcl enable --now waydroid-container
Waiting for waydroid container service...
Failed to load binder driver
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.2.2-arch1-1
Binder node "binder" for waydroid not found

https://wiki.archlinux.org/title/Waydroid says install either of anbox-modules-dkms-git or linux-zen. Installation of the first fails, that of the second succeeds, but does not remedy the problem above.

:: Packages to install (eg: 1 2 3, 1-3):
:: 4
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Repo (1)                Old Version  New Version  Make Only
extra/dkms                           3.0.10-1     No

Aur (1)                 Old Version  New Version  Make Only
aur/anbox-modules-dkms               5.19-1       No

:: Proceed to review? [Y/n]: Y

:: Downloading PKGBUILDs...
 (1/1) anbox-modules-dkms-5.19-1                     [--------------------------------------------]
/home/erw1/.cache/paru/clone/anbox-modules-dkms/PKGBUILD
# Maintainer: Sick Codes <info at sick dot codes>
# Maintainer: Christian Hoff <https://github.com/choff>
# Contributor: Tobias Martin <tm-x at gmx dot net>

pkgname=anbox-modules-dkms
_pkgname=anbox-modules
pkgver=5.19
arch="$(uname -r)"
url='https://github.com/choff/anbox-modules'
pkgrel=1
pkgdesc='Android kernel driver fork by @choff (binder/binderfs & ashmem) in DKMS format'
arch=('x86_64' 'aarch64' 'i386')
license=('GPL3')
provides=("${pkgname}")
depends=('dkms')
makedepends=('git')
source=("git+https://github.com/choff/${_pkgname}.git#commit=8148a162755bf5500a07cf41a65a02c8f3eb0a>
  "https://github.com/sickcodes/anbox-modules/commit/7c19d3c66758747d854c63e4c34ef127ce201fa6.patch"
  "https://github.com/choff/anbox-modules/pull/4.patch"
  "linux-6.patch")
sha256sums=('SKIP'
            '7589f311fd9a503c30a214b54f1f687c26a2f160d4339098c65f655e9b1e3556'
            'fced11f849692dd1f0f36b50bb859d85aa244a536c2cef529a14bb73f568bb5e'
:: Proceed with installation? [Y/n]: Y
[sudo] password for erw1: 
resolving dependencies...
looking for conflicting packages...

Package (1)  New Version  Net Change  Download Size

extra/dkms   3.0.10-1       0.11 MiB       0.04 MiB

Total Download Size:   0.04 MiB
Total Installed Size:  0.11 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 dkms-3.0.10-1-any                37.5 KiB  25.9 KiB/s 00:01 [--------------------------------] 100%
(1/1) checking keys in keyring                               [--------------------------------] 100%
(1/1) checking package integrity                             [--------------------------------] 100%
(1/1) loading package files                                  [--------------------------------] 100%
(1/1) checking for file conflicts                            [--------------------------------] 100%
:: Processing package changes...
(1/1) installing dkms                                        [--------------------------------] 100%
Optional dependencies for dkms
    linux-headers: build modules against the Arch kernel [installed]
    linux-lts-headers: build modules against the LTS kernel
    linux-zen-headers: build modules against the ZEN kernel
    linux-hardened-headers: build modules against the HARDENED kernel
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
fetching devel info...
==> Making package: anbox-modules-dkms 5.19-1 (Fri 03 Mar 2023 10:08:38 PM EST)
==> Retrieving sources...
  -> Cloning anbox-modules git repo...
Cloning into bare repository '/home/erw1/.cache/paru/clone/anbox-modules-dkms/anbox-modules'...
remote: Enumerating objects: 231, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 231 (delta 32), reused 20 (delta 11), pack-reused 176
Receiving objects: 100% (231/231), 199.88 KiB | 2.10 MiB/s, done.
Resolving deltas: 100% (104/104), done.
  -> Downloading 7c19d3c66758747d854c63e4c34ef127ce201fa6.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3188  100  3188    0     0  11962      0 --:--:-- --:--:-- --:--:-- 12075
  -> Downloading 4.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  3648    0  3648    0     0   2001      0 --:--:--  0:00:01 --:--:-- 11580
  -> Found linux-6.patch
==> Validating source files with sha256sums...
    anbox-modules ... Skipped
    7c19d3c66758747d854c63e4c34ef127ce201fa6.patch ... Passed
    4.patch ... Passed
    linux-6.patch ... Skipped
==> Making package: anbox-modules-dkms 5.19-1 (Fri 03 Mar 2023 10:08:45 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating anbox-modules git repo...
  -> Found 7c19d3c66758747d854c63e4c34ef127ce201fa6.patch
  -> Found 4.patch
  -> Found linux-6.patch
==> Validating source files with sha256sums...
    anbox-modules ... Skipped
    7c19d3c66758747d854c63e4c34ef127ce201fa6.patch ... Passed
    4.patch ... Passed
    linux-6.patch ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of anbox-modules git repo...
Cloning into 'anbox-modules'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file binder/binder.c
patching file binder/binder.c
patching file binder/deps.c
Hunk #2 succeeded at 69 (offset -1 lines).
Hunk #3 succeeded at 89 (offset -1 lines).
patching file binder/binder.c
patching file binder/deps.c
Hunk #1 succeeded at 69 (offset -1 lines).
patching file ashmem/ashmem.c
patching file binder/binder_alloc.c
==> Sources are ready.
anbox-modules-dkms-5.19-1: parsing pkg list...
==> Making package: anbox-modules-dkms 5.19-1 (Fri 03 Mar 2023 10:08:54 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package()...
make -C /lib/modules/6.2.2-arch1-1/build V=0 M=$PWD
  CC [M]  /home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/deps.o
  CC [M]  /home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/binder.o
/home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_wait_for_work’:
/home/erw1/.cache/paru/clone/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/erw1/.cache/paru/clone/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
make[2]: *** [scripts/Makefile.build:252: /home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/binder.o] Error 1
make[1]: *** [Makefile:2021: /home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder] Error 2
make: *** [Makefile:8: all] Error 2
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'anbox-modules-dkms-5.19-1': 
error: packages failed to build: anbox-modules-dkms-5.19-1
Package (1)      New Version   Net Change  Download Size

extra/linux-zen  6.2.2.zen1-1  180.88 MiB     180.48 MiB

Total Download Size:   180.48 MiB
Total Installed Size:  180.88 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 linux-zen-6.2.2.zen1-1-x86_64   180.5 MiB  25.9 MiB/s 00:07 [--------------------------------] 100%
(1/1) checking keys in keyring                               [--------------------------------] 100%
(1/1) checking package integrity                             [--------------------------------] 100%
(1/1) loading package files                                  [--------------------------------] 100%
(1/1) checking for file conflicts                            [--------------------------------] 100%
:: Processing package changes...
(1/1) installing linux-zen                                   [--------------------------------] 100%
Optional dependencies for linux-zen
    wireless-regdb: to set the correct wireless channels of your country [installed]
    linux-firmware: firmware images needed for some devices [installed]
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: 6.2.2-zen1-1-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: 6.2.2-zen1-1-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful

What can I do?

Did you reboot onto the zen kernel?

Just installing it probably won’t do anything.

Rebooting does not change the outcome.

Did you reboot or did you reboot selecting the zen kernel from the boot menu?

If the zen kernel isn’t showing up on the boot menu, run sudo grub-mkconfig -o /boot/grub/grub.cfg

$ sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] password for erwann: 
Generating grub configuration file ...
Found background: /usr/share/endeavouros/splash.png
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

Did you remove linux-zen?

What does pacman -Q | grep "^linux show?

Yes, it’s possible I removed it or thought I had installed it, but didn’t.

$ pacman -Q | grep '^linux'
linux 6.1.12.arch1-1
linux-api-headers 6.1.9-1
linux-firmware 20230210.bf4115c-1
linux-firmware-whence 20230210.bf4115c-1
linux-headers 6.1.12.arch1-1

But now I am unable to install it. That’s after updating Arch and EnOS mirrors from the Welcome menu:

$ sudo pacman -S linux-zen
resolving dependencies...
looking for conflicting packages...

Package (1)      New Version    Net Change  Download Size

extra/linux-zen  6.1.12.zen1-1  169.42 MiB     169.11 MiB

Total Download Size:   169.11 MiB
Total Installed Size:  169.42 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst failed to download
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from iad.mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from arch.mirror.constant.com : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from arch.mirror.ivo.st : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from repo.ialab.dsu.edu : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from irltoolkit.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from ord.mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from dfw.mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from mirrors.ocf.berkeley.edu : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from arlm.tyzoid.com : The requested URL returned error: 404
error: failed retrieving file 'linux-zen-6.1.12.zen1-1-x86_64.pkg.tar.zst' from mirror.arizona.edu : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

Try this:

sudo pacman -Syu linux-zen linux-zen-headers
$ sudo pacman -Syu linux-zen linuz-zen-headers
[sudo] password for erwann: 
:: Synchronizing package databases...
 endeavouros                      30.7 KiB  80.1 KiB/s 00:00 [--------------------------------] 100%
 core                            156.0 KiB   166 KiB/s 00:01 [--------------------------------] 100%
 extra                          1746.7 KiB   644 KiB/s 00:03 [--------------------------------] 100%
 community                         7.3 MiB  1268 KiB/s 00:06 [--------------------------------] 100%
 multilib                        163.2 KiB   218 KiB/s 00:01 [--------------------------------] 100%
 DEB_Arch_Extra                    6.7 KiB  11.1 KiB/s 00:01 [--------------------------------] 100%
error: target not found: linuz-zen-headers

There was a typo in the package name. Can you try again. I fixed the about 20 seconds after posting it but you must have copied it faster than that.

It worked, and waydroid initialization is able to go forward (in progress as I type this). Whilst worthwhile as an experiment, I’d rather keep linux-zen as an option. How do I set the default kernel to the standard kernel?

 sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] password for user: 
Generating grub configuration file ...
Found background: /usr/share/endeavouros/splash.png
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.