Jump to content

Recommended Posts

Posted (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 by bigboo
  • bigboo changed the title to Problems installing waydroid - missing "binder" kernel module
Posted (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 by bigboo
Posted (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 by bigboo
Posted

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

 

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.

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

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines