You are not logged in.

#1 2021-03-01 11:03:12

dlk
Member
Registered: 2021-02-26
Posts: 25

Error Installing kernel modules on 5.11.2-zen1-1-zen kernel

I am trying to install the ashmem and binder modules in order to run anbox, i am running the last zen kernel (cause i read that these modules were preinstalled in the zen kernel) but these modules are nowhere to be seen and if i try to install them with dkms (after downloading the github repo) i get errors

output of sudo dkms install anbox ashmem/1:

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.11.2-zen1-1-zen all KERNEL_SRC=/lib/modules/5.11.2-zen1-1-zen/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.11.2-zen1-1-zen (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.

content of the /var/lib/dkms/anbox-ashmem/1/build/make.log file:

DKMS make.log for anbox-ashmem-1 for kernel 5.11.2-zen1-1-zen (x86_64)
Mon Mar  1 12:00:55 PM CET 2021
make -C /lib/modules/5.11.2-zen1-1-zen/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.11.2-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:111: /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:1704: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.11.2-zen1-1-zen/build'
make: *** [Makefile:12: all] Error 2

the output is identical for the binder module
Thanks in Advance

Last edited by dlk (2021-03-01 11:04:01)

Offline

#2 2021-03-02 18:10:21

mozlima
Member
Registered: 2019-09-22
Posts: 8

Re: Error Installing kernel modules on 5.11.2-zen1-1-zen kernel

The modules are built in and do not need to load.
You check if the kernel was compiled with the modules with:

zgrep -E 'ANDROID|ASHMEM' /proc/config.gz

Output:

 
CONFIG_ASHMEM=y
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES=""

And check if was loaded with:

ls -1 /dev/{ashmem,binder}

If /dev/binder is missing, try to mount it first

mkdir /dev/binderfs
mount -t binder binder /dev/binderfs

#if still having issues try this too (https://github.com/anbox/anbox/issues/1 … -630119683)

ln -s /dev/binderfs/binder /dev/

Offline

#3 2021-03-02 21:05:38

dlk
Member
Registered: 2021-02-26
Posts: 25

Re: Error Installing kernel modules on 5.11.2-zen1-1-zen kernel

Ty so much, that solved my problem.
I installed the zen kernel cause these modules were preinstalled and when i got these errors i was quite angry.
Now i have 2 questions.
Now that i mounted the binder module will it be autoloaded or I need change some config?
The fact that the binder directory is symlinked is a problem or is actually fine?
Thanks again.

Offline

#4 2021-03-02 21:22:11

mozlima
Member
Registered: 2019-09-22
Posts: 8

Re: Error Installing kernel modules on 5.11.2-zen1-1-zen kernel

If you update to latest zen (5.11.2.zen1-1) + latest lxc (1:4.0.6-1) (remove any other ex: lxc-git) you can run Anbox with:

mkdir /dev/binderfs
mount -t binder none /dev/binderfs

systemctl start systemd-networkd.service
systemctl start anbox-container-manager.service
systemctl --user start anbox-session-manager.service

You should take the wiki steps to make this persistent

Offline

Board footer

Powered by FluxBB