Run Anbox on Armbian



Recommended Posts


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

Link to post
Share on other sites

Donate and support the project!

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:

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:.

Link to post
Share on other sites

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/ /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...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.