.1 Install binder_linux-dkms , which provides binder_linux.
(i) sudo pacman -S binder_linux-dkms
This installs the required binder modules if a kernel doesn’t include them with it, like Arch Linux’s default kernel (or any other kernel)
(check out the above hyperlink link for more information, recent updates and prevailing issues, if any, regarding binder modules)
Install binder_linux-dkms
, only if your kernel doesn’t have binder modules inbuilt.
You can check by using the modprobe
command:
(The binder module is present by the name binder
or binder_linux
)
sudo modprobe -a binder
or sudo modprobe -a binder_linux
If either of the above command returns a blank output, your kernel already has the binder modules inbuilt.
3. Setting up Kernel Modules
You probably won’t require this step as of now. It was required for earlier versions. You may take a look to have an idea of how it works under the hood.
i) To automatically load the binder modules on boot(Kernel module - ArchWiki ):
Create a file inside /etc/modules-load.d/
, which contains the lines:
(sudo nano /etc/modules-load.d/waydroid.conf
)
/etc/modules-load.d/waydroid.conf
binder_linux
- ( it could be simply
binder
instead of binder_linux
depending on the output of modprobe command as used above)
(Save and exit)
ii) To automatically create a mount point for the binder modules at boot
(systemd - ArchWiki ):
Create a file in /etc/tmpfiles.d/
with the content:
(sudo nano /etc/tmpfiles.d/waydroid.conf
)
/etc/tmpfiles.d/waydroid.conf
d! /dev/binderfs 0755 root root
(Save and exit)
iii) To automatically mount the binder modules on boot, add a line in the fstab . Using the option nofail
here will not greet you with a recovery shell when you are booting a kernel without binderfs support (such as the standard kernel):
(sudo nano /etc/fstab
)
/etc/fstab
none /dev/binderfs binder nofail 0 0
(Save and exit)
You can skip the iv) step if you reboot after the iii) one.
iv) Mount the binder modules:
Load the binder modules (Kernel module - ArchWiki )
(mkdir(1) — Arch manual pages )
(mount(8) — Arch manual pages )
sudo modprobe -a binder_linux
(it could be simply binder
instead of binder_linux
)
sudo mkdir -p /dev/binderfs
sudo mount -t binder none /dev/binderfs