ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.69k stars 1.83k forks source link

Make the Kernel compatible with Anbox #382

Closed MX10-AC2N closed 2 years ago

MX10-AC2N commented 2 years ago

Hi @ophub and all

I am trying to install Anbox but there is need to add 2 modules to the Kernel, see => https://docs.anbox.io/userguide/install_kernel_modules.html The source code are on https://github.com/anbox/anbox-modules I tried building as instructed but it didn't work..

In my research I also found this https://github.com/armbian/build/commit/369b0909f6d268375eb17ecec6f0e71975001a33

I think it might be nice to be able to easily install Anbox and therefore we need to build a Kernel that allows this..

If you have any ideas, you are welcome. thanks again

MX10-AC2N commented 2 years ago

Script to be able to automate compiling procedures. Eg. if you need to add .config options to your kernel sources like android (ASHMEM, BINDER, etc.) =>https://github.com/SoulInfernoDE/compile-kernel-from-source This could be a starting point.

ophub commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/commit/193911f872ee5756166cabd1b103d98d803abb7e

According to your feedback https://github.com/armbian/build/commit/369b0909f6d268375eb17ecec6f0e71975001a33, I modified the configuration, you can try the newly compiled kernel

MX10-AC2N commented 2 years ago

I also ran a kernel build adding config_kprobes=y but also added https://github.com/MX10-AC2N/amlogic-s9xxx-armbian/commit/1a1e3b1ff93c06f11fefbe965add178b032967fd?diff=unified and also need remove dual line of android in config file https://github.com/MX10-AC2N/amlogic-s9xxx-armbian/commit/c2a36c04815b0bfaee13d4417717554fb4cce70b Now I need test it https://github.com/MX10-AC2N/amlogic-s9xxx-armbian/releases/tag/kernel_5.15.48 Thank

MX10-AC2N commented 2 years ago

Testing failed.. :-( anbox doesn't seem really updated. I will rather try with Waydroid Thank

ophub commented 2 years ago

Waydroid can be installed and used in armbian?

MX10-AC2N commented 2 years ago

I need test it.. Install process failed with Armbian_22.08.0_Aml_s922x_bullseye_5.15.48_server_2022.06.20.img.gz freshly flashed on USB, but after upgrade to my kernel 5.15.48 with add of android part in .config kernel and also adding in the uEnv.txt binder.devices=binder,hwbinder,vndbinder (but i have to test if it is necessary or not) So the waydroid install process run fine and

root@armbian:~# systemctl status waydroid-container                             ● waydroid-container.service - Waydroid Container
     Loaded: loaded (/lib/systemd/system/waydroid-container.service; enabled; v>
     Active: active (running) since Tue 2022-06-21 17:58:03 CEST; 33min ago
   Main PID: 2473 (waydroid)
      Tasks: 1 (limit: 4218)
     Memory: 10.9M
        CPU: 392ms
     CGroup: /system.slice/waydroid-container.service
             └─2473 /usr/bin/python3 /usr/bin/waydroid container start

juin 21 17:58:03 armbian systemd[1]: Started Waydroid Container.
lines 1-11/11 (END)

I also find https://gist.github.com/diyism/70ae5719d42db173e0da0742f2728cda#file-waydroid-on-debian-x64-and-armbian-focal-pine64-txt-L90

Always testing..