bigboo Posted July 26, 2023 Posted July 26, 2023 (edited) Hello, I installed https://armbian.hosthatch.com/dl/aml-s9xx-box/archive/Armbian_23.5.1_Aml-s9xx-box_bookworm_current_6.1.30.img.xz on my S905x box with correct dtb and u-boot. So far everything is working fine. Now I want to install Waydroid, I followed the installation instructions here for debian/ubuntu: https://docs.waydro.id/usage/install-on-desktops but when I try to start it it says i's missing binder. root@aml-s9xx-box:~# waydroid init [09:30:45] Failed to load binder driver [09:30:45] modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.1.30-meson64 [09:30:45] ERROR: Binder node "binder" for waydroid not found [09:30:45] See also: <https://github.com/waydroid> Run 'waydroid log' for details. It seems I need a kernel with this module, could it be possible to add this in your kernel to have an easier way to install waydroid on armbian? If not can you help me to compile a kernel with the necessary modules to start waydroid on my box? Thank you! Edited July 26, 2023 by bigboo 0 Quote
SteeMan Posted July 26, 2023 Posted July 26, 2023 Moved to non-board specific forum, as this isn't a board specific question. 0 Quote
bigboo Posted July 26, 2023 Author Posted July 26, 2023 I tried this method (I don't understand why this one worked) but replacing the kernel indicated with this one http://imola.armbian.com/beta/pool/main/l/linux-6.1.41/linux-image-current-meson64_23.08.0-trunk--6.1.41-S5302-D063d-P507e-C88cbHfe66-HK01ba-Ve377-B18f9_arm64.deb It still doesn't work 0 Quote
bigboo Posted August 6, 2023 Author Posted August 6, 2023 (edited) I made some progress: I added ashmem and binder modules using this script: https://github.com/choff/anbox-modules Then Waydroid finished installation correctly. But the S9xx kernel is still missing PSI to make waydroid start correctly, I tried psi=1 as kernel command-line but PSI is not compiled on this S9xx kernel https://github.com/waydroid/waydroid/issues/136 I don't know how to add this psi module to my kernel. Could it be possible to add all those 3 missing modules (ashmem, binder and psi) to the s9xx kernel config file, so waydroid could work directly on armbian S9xx kernel ? like this one: https://github.com/armbian/build/pull/4806 CONFIG_ASHMEM=y CONFIG_ANDROID_BINDER_IPC=y CONFIG_ANDROID_BINDERFS=y CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder" CONFIG_PSI=y # CONFIG_PSI_DEFAULT_DISABLED is not set Edited August 6, 2023 by bigboo 0 Quote
SteeMan Posted August 6, 2023 Posted August 6, 2023 Pull the build environment, make the changes, test and then submit a PR to get them incorporated 0 Quote
bigboo Posted August 6, 2023 Author Posted August 6, 2023 (edited) Do you have some kind of wiki or step-by-step instructions to do this? I'm sorry I'm a noob and not a dev. I modified "linux-meson64-current.config" with cherry-picked and copy/pasted changes from here: https://github.com/armbian/build/pull/4806 you can find my modified file here: https://github.com/bigboo3000/build/pull/1/commits/9d912af647748d66d0b7029da11039ee634e3dad but now I don't know how to use this file to modify my kernel. EDIT: ok found this https://github.com/armbian/build I'll try to compile modified kernel with my fork Edited August 6, 2023 by bigboo 0 Quote
bigboo Posted August 6, 2023 Author Posted August 6, 2023 it works! I compiled an image with Ubuntu jessie and Gnome root@aml-s9xx-box:~# zcat /proc/config.gz | grep -Ei 'psi|binder' CONFIG_PSI=y # CONFIG_PSI_DEFAULT_DISABLED is not set CONFIG_ANDROID_BINDER_IPC=y CONFIG_ANDROID_BINDERFS=y CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder" # CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set Waydroid works, but it's slow (probably because I only have 2Gb RAM) I'll do a pr Thank you 0 Quote
Recommended Posts
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.