You are not logged in.

#1 2022-02-06 01:20:43

FlatEarthGary
Member
Registered: 2021-01-16
Posts: 36

Cannot figure out how to install new kernel

Hello there!

I'm interested in installing Waydroid on my Thinkpad X1 Carbon gen 5 laptop. I'm following the wiki and it says I should run:

 sudo waydroid init 

When I do I get greeted with:

 
[03:10:04] Failed to load binder driver
[03:10:04] modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.16.5-arch1-1
[03:10:04] ERROR: Binder node "binder" for waydroid not found
[03:10:04] See also: <https://github.com/waydroid>
Run 'waydroid log' for details.

I have searched around and come to the conclusion I need another kernel, and I've chosen to use the Zen kernel.

I'm installing the kernel by doing:

 sudo pacman -S linux-zen linux-zen-headers 

Output:

 
warning: linux-zen-5.16.5.zen1-1 is up to date -- reinstalling
warning: linux-zen-headers-5.16.5.zen1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) linux-zen-5.16.5.zen1-1  linux-zen-headers-5.16.5.zen1-1

Total Installed Size:  309.11 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                         [---------------------------------------] 100%
(2/2) checking package integrity                                       [---------------------------------------] 100%
(2/2) loading package files                                            [---------------------------------------] 100%
(2/2) checking for file conflicts                                      [---------------------------------------] 100%
(2/2) checking available disk space                                    [---------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
:: Processing package changes...
(1/2) reinstalling linux-zen                                           [---------------------------------------] 100%
(2/2) reinstalling linux-zen-headers                                   [---------------------------------------] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> dkms install --no-depmod anbox-binder/1 -k 5.16.5-zen1-1-zen
Error! Bad return status for module build on kernel: 5.16.5-zen1-1-zen (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
==> WARNING: `dkms install --no-depmod anbox-binder/1 -k 5.16.5-zen1-1-zen' exited 10
==> dkms install --no-depmod anbox-ashmem/1 -k 5.16.5-zen1-1-zen
Error! Bad return status for module build on kernel: 5.16.5-zen1-1-zen (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.
==> WARNING: `dkms install --no-depmod anbox-ashmem/1 -k 5.16.5-zen1-1-zen' exited 10
(4/4) 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: 5.16.5-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: [filesystems]
  -> Running build hook: [keyboard]
  -> 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: 5.16.5-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: qla2xxx
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful

I've noticed it is DKMS who is probably the one causing trouble.

Output of /var/lib/dkms/anbox-ashmem/1/build/make.log :

 
DKMS make.log for anbox-ashmem-1 for kernel 5.16.5-zen1-1-zen (x86_64)
Sun Feb  6 03:13:48 AM CET 2022
make -C /lib/modules/5.16.5-zen1-1-zen/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.16.5-zen1-1-zen/build'
  CC [M]  /var/lib/dkms/anbox-ashmem/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-ashmem/1/build/ashmem.o
  LD [M]  /var/lib/dkms/anbox-ashmem/1/build/ashmem_linux.o
  MODPOST /var/lib/dkms/anbox-ashmem/1/build/Module.symvers
ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-ashmem/1/build/ashmem_linux.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:134: /var/lib/dkms/anbox-ashmem/1/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/anbox-ashmem/1/build/Module.symvers'
make[1]: *** [Makefile:1756: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.16.5-zen1-1-zen/build'
make: *** [Makefile:12: all] Error 2

I've tried rebooting and choosing another kernel on boot, but there is only the default one to choose from.

How do I install and use the Zen kernel and, subsequently, get Waydroid running?

Thank you and have a great day!

Offline

#2 2022-02-06 01:37:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,491
Website

Re: Cannot figure out how to install new kernel

It looks like you are trying to use linux-zen and the dkms versions of those modules.  You're suppose to pick one or the other of those, not both.  I'm not sure if that's the source of the error output you are getting or not - I'm not sure what would happen if you try to build a dkms module for a module that the kernel already provides.

But in any case, this has nothing to do with linux-zen not being listedin your boot loader: you need to update your bootloader/bootmanager config to include the zen kernel.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-02-06 05:33:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,073

Re: Cannot figure out how to install new kernel

The point of using the zen kernel is to not need the out-of-tree ones which will fail since kernel 5.7 (zen has ashmem/binder in-tree) https://wiki.archlinux.org/title/Anbox#Using_Linux-Zen

Offline

#4 2022-02-06 10:29:12

FlatEarthGary
Member
Registered: 2021-01-16
Posts: 36

Re: Cannot figure out how to install new kernel

Trilby wrote:

It looks like you are trying to use linux-zen and the dkms versions of those modules.  You're suppose to pick one or the other of those, not both.  I'm not sure if that's the source of the error output you are getting or not - I'm not sure what would happen if you try to build a dkms module for a module that the kernel already provides.

But in any case, this has nothing to do with linux-zen not being listedin your boot loader: you need to update your bootloader/bootmanager config to include the zen kernel.

Thank you for your response!

Updating my bootloader fixed the issue. I am now running the zen kernel and have managed to get "waydroid init" to work, however, waydroid does still not seem to work.

I have made sure to start both the "waydroid-container.service" and the "waydroid-container" by doing:

 
sudo systemctl start waydroid-container.service
sudo systemctl start waydroid-container 

When I try to start the session with

 waydroid session start 

I get:

 
XDG Session is not "wayland"
[gbinder] Service manager /dev/anbox-binder has appeared

But it still seems to be running because the output of "waydroid status" is:

 
Session:        RUNNING
Container:      RUNNING
Vendor type:    MAINLINE
Session user:   cheems(1001)
Wayland display:        None

When running "waydroid show-full-ui" I get:

 
Failed to get service waydroidplatform, trying again...

Printed out every second.

The output of "loginctl" is:

 SESSION  UID USER   SEAT  TTY
      1 1001 cheems seat0 tty1 

I've read that I need to change the TTY to be wayland instead of tty1 but have not figured how to do that.

How do I get the UI to work with waydroid?

Thank you!

Last edited by FlatEarthGary (2022-02-06 10:37:10)

Offline

#5 2022-02-06 11:10:15

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Cannot figure out how to install new kernel

Waydroid wiki page wrote:

Waydroid only works in a Wayland session manager, so make sure you are in a Wayland session.

You can't launch it from a TTY, you need to already be in your graphical environment.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2022-02-06 13:35:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,491
Website

Re: Cannot figure out how to install new kernel

And you need to be in a wayland graphical environment.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB