Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Failed to build anbox-modules on Fedora 35 linux kernel 5.15.7 #88

Open
bickkysahani opened this issue Dec 16, 2021 · 1 comment
Open

Comments

@bickkysahani
Copy link

$ sudo dkms install anbox-ashmem/1

Creating symlink /var/lib/dkms/anbox-ashmem/1/source -> /usr/src/anbox-ashmem-1

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

@SoulInfernoDE
Copy link

SoulInfernoDE commented Dec 17, 2021

In newer kernel versions the anbox modules are migrated into the kernel. You need to build the kernel with the modules enabled and uninstall the modules first.
As a base reading you can follow my writeup (you need to copy the writeup for fedora of course):
#75 (comment)

https://fedoraproject.org/wiki/Building_a_custom_kernel

How to enable the android modules in the kernel configuration before building from source:
https://fedoraproject.org/wiki/Building_a_custom_kernel#Configuring_the_kernel

Short steps overview:

  • Boot into your linux
  • Download the kernel source either from your distribution target or in most cases from www.kernel.org
  • unpack the kernel.tar.xz
  • open terminal/shell and navigate to the extracted kernel.tar.xz -folder
  • copy the kernel configuration you are actually have in use with: cp /boot/config-uname -r* .config
  • edit the copied configuration file: .config with the command: make olddefconfig and make menuconfig or make gconfig
    You are getting a graphical interface to edit the lines in the .config textfile. Navigate to the android sections and enable all. Save and build your kernel.
    Ubuntu:
    build your kernel with the command: time nice make -j4 bindeb-pkg LOCALVERSION=-android
    Fedora:
    https://fedoraproject.org/wiki/Building_a_custom_kernel#Building_the_kernel
    Manjaro:
    https://leduccc.medium.com/compiling-a-custom-linux-kernel-on-manjaro-f09aa103713f
    Other distros:
    look for similiar writeups on the net for your distribution or try to copy the procedure for your distro

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants