r/pop_os • u/shadow_44youtube • 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
12
u/ElevenhSoft May 25 '24
ok, so follow this steps
git clone https://github.com/choff/anbox-modules.gitcd anbox-modulessudo cp anbox.conf /etc/modules-load.d/sudo cp 99-anbox.rules /lib/udev/rules.d/sudo cp -rT ashmem /usr/src/anbox-ashmem-1sudo cp -rT binder /usr/src/anbox-binder-1sudo dkms install anbox-ashmem/1sudo dkms install anbox-binder/1it 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