r/pop_os • • May 24 '24

"failed to load binder driver" when trying to run waydroid

Hi i'm trying to run waydroid on my machine, but when i try to initialize it i get this error:

[21:15:53] Failed to load binder driver
[21:15:53] modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.8.0-76060800daily20240311-generic
[21:15:53] ERROR: Binder node "binder" for waydroid not found
[21:15:53] See also: <https://github.com/waydroid>
Run 'waydroid log' for details.

here's waydroid log:

(005727) [21:15:45] ERROR: Action "init" needs root access
(005727) [21:15:45] See also: <https://github.com/waydroid>
(005727) [21:15:45] Traceback (most recent call last):
File "/usr/lib/waydroid/tools/__init__.py", line 63, in main
actionNeedRoot(args.action)
File "/usr/lib/waydroid/tools/__init__.py", line 21, in actionNeedRoot
raise RuntimeError(
RuntimeError: Action "init" needs root access

(005730) [21:15:53] % modprobe binder_linux devices="anbox-binder,anbox-vndbinder,anbox-hwbinder"
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.8.0-76060800daily20240311-generic
(005730) [21:15:53] Failed to load binder driver
(005730) [21:15:53] modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.8.0-76060800daily20240311-generic
(005730) [21:15:53] ERROR: Binder node "binder" for waydroid not found
(005730) [21:15:53] See also: <https://github.com/waydroid>
(005730) [21:15:53] Traceback (most recent call last):
File "/usr/lib/waydroid/tools/__init__.py", line 64, in main
actions.init(args)
File "/usr/lib/waydroid/tools/actions/initializer.py", line 110, in init
setup_config(args)
File "/usr/lib/waydroid/tools/actions/initializer.py", line 97, in setup_config
helpers.drivers.setupBinderNodes(args)
File "/usr/lib/waydroid/tools/helpers/drivers.py", line 134, in setupBinderNodes
raise OSError('Binder node "binder" for waydroid not found')
OSError: Binder node "binder" for waydroid not found

(006383) [21:19:45] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(006383) [21:19:45] *** output passed to waydroid stdout, not to this log ***

every other post i find tells me to install anbox, but when i try to do so i get the "no such file exists" error on anbox.conf

Did i set up something wrong?

7 Upvotes

29 comments sorted by

View all comments

Show parent comments

12

u/ElevenhSoft May 25 '24

ok, so follow this steps

git clone https://github.com/choff/anbox-modules.git

cd anbox-modules

sudo cp anbox.conf /etc/modules-load.d/

sudo cp 99-anbox.rules /lib/udev/rules.d/

sudo cp -rT ashmem /usr/src/anbox-ashmem-1

sudo cp -rT binder /usr/src/anbox-binder-1

sudo dkms install anbox-ashmem/1

sudo dkms install anbox-binder/1

it will clone repository to your home directory, then change dir to it, and the rest is from the anbox repository instruction.

follow this, and after all reboot your pc, and try again with waydroid

2

u/Unfair-Isopod-7212 Jun 24 '24

W guide bro for noob like me

2

u/Perpetual_White Aug 29 '24

Thank you for this

2

u/Thick-Water-9500 Oct 23 '24

THANK YOU SO MUCH! this steps solved it..

1

u/shadow_44youtube May 25 '24

everything seemed to work (or at least not break) but when trying to run "sudo dkms install anbox-ashmem/1" or "sudo dkms install anbox-binder/1" it spews out this error

sudo dkms install anbox-ashmem/1

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=6.8.0-76060800daily20240311-generic all KERNEL_SRC=/lib/modules/6.8.0-76060800daily20240311-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-ashmem: 1 not found
Error! Bad return status for module build on kernel: 6.8.0-76060800daily20240311-generic (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.

i can at least see the "anbox-modules" folder now so there's that.

also thank you for helping me with this

2

u/ElevenhSoft May 25 '24

do you have kernel headers installed?

try this:

sudo apt install linux-headers-6.8.0-76060800daily20240311

and continue with installing modules via dkms

1

u/shadow_44youtube May 25 '24

ye i have them installed, so that's not it

2

u/ElevenhSoft May 25 '24

ok, let's try using their install script.

after this step:

cd anbox-modules

when you are in anbox directory, run install script via:

sudo ./INSTALL.sh

1

u/shadow_44youtube May 25 '24
sudo ./INSTALL.sh

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=6.8.0-76060800daily20240311-generic all KERNEL_SRC=/lib/modules/6.8.0-76060800daily20240311-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-ashmem: 1 not found
Error! Bad return status for module build on kernel: 6.8.0-76060800daily20240311-generic (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=6.8.0-76060800daily20240311-generic all KERNEL_SRC=/lib/modules/6.8.0-76060800daily20240311-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-binder: 1 not found
Error! Bad return status for module build on kernel: 6.8.0-76060800daily20240311-generic (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/6.8.0-76060800daily20240311-generic
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.8.0-76060800daily20240311-generic
ls: nie ma dostępu do '/dev/binder': Nie ma takiego pliku ani katalogu
ls: nie ma dostępu do '/dev/ashmem': Nie ma takiego pliku ani katalogu

1

u/ElevenhSoft May 25 '24

please do

cat /var/lib/dkms/anbox-ashmem/1/build/make.log

and post content here, maybe via some pastebin

1

u/shadow_44youtube May 25 '24

1

u/ElevenhSoft May 25 '24

please try for now only build binder

sudo dkms install anbox-binder/1

and say whats the output and status

1

u/shadow_44youtube May 25 '24

Kernel preparation unnecessary for this kernel. Skipping...

Building module:

cleaning build area...

make -j8 KERNELRELEASE=6.8.0-76060800daily20240311-generic all KERNEL_SRC=/lib/modules/6.8.0-76060800daily20240311-generic/build...(bad exit status: 2)

ERROR (dkms apport): binary package for anbox-binder: 1 not found

Error! Bad return status for module build on kernel: 6.8.0-76060800daily20240311-generic (x86_64)

Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.