Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Run Anbox on Armbian

Featured Replies

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

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

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.