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