Jump to content

Recommended Posts

Posted

Hi,

i would like to try running some Android app on Armbian. I see that Anbox is available on the repository, but i cannot get running. When starting i got

 

Failed to start as either binder or ashmem kernel drivers are not loaded

 

Obviously i'm not asking support for Anbox, i would like to know how to enable binder and ashmem kernel modules. When i try to modprobe them i got:

 

modprobe: FATAL: Module binder not found in directory /lib/modules/5.6.15-meson64

modprobe: FATAL: Module ashmem not found in directory /lib/modules/5.6.15-meson64

 

On the git there is a guide on how compile and install them, but since they are kernel modules they are probably used for some other programs and maybe they could be installed in some easy way, maybe using apt. So before trying to compile and install them by myself, i would like to know if is possible to install them more easily.

 

I'm using a AML-S905X-CC board and i'm on Debian Buster image upgraded to Sid.

 

Thanks for the attention,

Have a good day

Posted

Not possible via apt or any other way to sideload.

However making a working kernel package for your board is fairly easy using the build script: https://github.com/armbian/build

Clone, run, select your board and that you wish to adjust the kernel config. Done. The script will handle the rest.

Posted
35 minutes ago, Werner said:

Not possible via apt or any other way to sideload.

However making a working kernel package for your board is fairly easy using the build script: https://github.com/armbian/build

Clone, run, select your board and that you wish to adjust the kernel config. Done. The script will handle the rest.

Thanks for the hint, i will give it a try. I have never gone deep about kernel related topics because i'm scared to wreck everything :lol:.

Posted

The two worst things that could happen are either the compile failes or the board does not boot after kernel replacement. So if possible make a backup of your sd card first, just in case...

 

Also take note that running a custom kernel voids support from Armbian side ;)

Posted

Oddly enough, There is a APT install for anbox but it is missing the android.img file and the 2 modules binder_linux and ashmem_linux.

I have followed the instructions to build there but keep hitting this wall on both modules. 

 

DKMS make.log for anbox-binder-1 for kernel 5.9.0-arm-64 (aarch64)
Fri 11 Dec 2020 02:03:53 PM MST
make -C /lib/modules/5.9.0-arm-64/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-5.9.0-arm-64'
  AR      /var/lib/dkms/anbox-binder/1/build/built-in.a
  CC [M]  /var/lib/dkms/anbox-binder/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder.o
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_update_page_range’:
/var/lib/dkms/anbox-binder/1/build/binder.c:633:19: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  633 |   down_write(&mm->mmap_sem);
      |                   ^~~~~~~~
      |                   mmap_base
/var/lib/dkms/anbox-binder/1/build/binder.c:683:17: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  683 |   up_write(&mm->mmap_sem);
      |                 ^~~~~~~~
      |                 mmap_base
/var/lib/dkms/anbox-binder/1/build/binder.c:710:17: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  710 |   up_write(&mm->mmap_sem);
      |                 ^~~~~~~~
      |                 mmap_base
make[2]: *** [scripts/Makefile.build:283: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1
make[1]: *** [Makefile:1784: /var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.0-arm-64'
make: *** [Makefile:8: all] Error 2
 

I would prefer not to rebuild the entire kernel...

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines