GNU bug report logs -
#51772
Binder kernel module missing
Previous Next
Reported by: phodina <phodina <at> protonmail.com>
Date: Thu, 11 Nov 2021 19:14:02 UTC
Severity: normal
Done: phodina <phodina <at> protonmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51772 in the body.
You can then email your comments to 51772 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#51772
; Package
guix-patches
.
(Thu, 11 Nov 2021 19:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
phodina <phodina <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 11 Nov 2021 19:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Unfortunately, as stated above the binder interface is missing. I looked for the kernel module but couldn't find it. As the /proc/config.gz is not present I can't verify it's enabled.
$ find /run/booted-system/kernel/lib/modules/5.14.17-gnu/kernel/ -iname "*binder*"
$ cat /proc/cmdline
BOOT_IMAGE=/gnu/store/fr1cwmbn19hyrs3wxr5sqr7iy4cj674y-linux-libre-waydroid-5.14.17/bzImage --root=/dev/mapper/cryptsystem --system=/gnu/store/8g26gi6v9dni0cagc3l1ny8shyz8r38h-system --load=/gnu/store/8g26gi6v9dni0cagc3l1ny8shyz8r38h-system/boot modprobe.blacklist=usbmouse,usbkbd quiet
Therefore the waydroid userspace manager also doesn't work:
# waydroid.py init
[19:40:05] Failed to load binder driver
[19:40:06] modprobe: FATAL: Module binder_linux not found in directory /run/booted-system/kernel/lib/modules/5.14.17-gnu
[19:40:06] ERROR: Binder node "binder" for waydroid not found
[19:40:06] See also: <https://github.com/waydroid>
Run 'waydroid log' for details.
$ waydroid.py log
(006323) [19:40:05] % modprobe binder_linux devices="anbox-binder,anbox-vndbinder,anbox-hwbinder"
modprobe: FATAL: Module binder_linux not found in directory /run/booted-system/kernel/lib/modules/5.14.17-gnu
(006323) [19:40:05] Failed to load binder driver
(006323) [19:40:06] modprobe: FATAL: Module binder_linux not found in directory /run/booted-system/kernel/lib/modules/5.14.17-gnu
(006323) [19:40:06] ERROR: Binder node "binder" for waydroid not found
(006323) [19:40:06] See also: <https://github.com/waydroid>
(006323) [19:40:06] Traceback (most recent call last):
File "/gnu/store/iprc2yqsx5zi8nc2g3nqvlmlqzbw7nrf-waydroid-1.2.0/lib/waydroid/tools/__init__.py", line 54, in main
My conclusion is the module is not enabled and built. It could be do the the extended match-lambda expression as I'm not Guile guru.
Reply sent
to
phodina <phodina <at> protonmail.com>
:
You have taken responsibility.
(Thu, 11 Nov 2021 19:35:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
phodina <phodina <at> protonmail.com>
:
bug acknowledged by developer.
(Thu, 11 Nov 2021 19:35:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 51772-done <at> debbugs.gnu.org (full text, mbox):
duplicate 51771
Information forwarded
to
guix-patches <at> gnu.org
:
bug#51772
; Package
guix-patches
.
(Thu, 11 Nov 2021 22:45:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 51772 <at> debbugs.gnu.org (full text, mbox):
Petr,
On 2021-11-11 20:12, phodina via Guix-patches via wrote:
> Unfortunately, as stated above the binder interface is missing. I
> looked for the kernel module but couldn't find it.
How did you search? find(1)? Are you running the customised kernel?
> As the
> /proc/config.gz is not present I can't verify it's enabled.
You can. The Linux kernel configuration is at
/run/booted-system/kernel/.config, not /proc/config.gz. What does it
report for 'grep ANDROID'?
> It could be do the the extended match-lambda expression
I can't parse this, sorry.
Kind regards,
T G-R
Sent from a Web browser. Excuse or enjoy my brevity.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#51772
; Package
guix-patches
.
(Fri, 12 Nov 2021 05:45:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 51772 <at> debbugs.gnu.org (full text, mbox):
Hi,
> > Unfortunately, as stated above the binder interface is missing. I
> >
> > looked for the kernel module but couldn't find it.
>
> How did you search? find(1)? Are you running the customised kernel?
>
> > As the
> >
> > /proc/config.gz is not present I can't verify it's enabled.
>
> You can. The Linux kernel configuration is at
>
> /run/booted-system/kernel/.config, not /proc/config.gz. What does it
>
> report for 'grep ANDROID'?
So I use the following command to reconfigure the system:
$ sudo -E ./pre-inst-env guix system build/laptop-rocinante.scm
...
/gnu/store/dqp07qd42wicv9q80wplr3hd20ha5a3r-system
$ grep ANDROID /gnu/store/dqp07qd42wicv9q80wplr3hd20ha5a3r-system/kernel/.config
CONFIG_ANDROID=y
# CONFIG_ANDROID_BINDER_IPC is not set
Also in the GRUB menu I can see the kernel with the Waydroid suffix.
In the config I specify the kernel with the following s-exp:
(kernel linux-libre-with-waydroid)
Yes I was looking for the binder module "*binder*.ko" with find.
>
> > It could be do the the extended match-lambda expression
>
> I can't parse this, sorry.
>
Sorry for making it not clear.
The there is one option in the kernel that needs to be enabled which is of type string:
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
However, current implementation of config->string does not handle strings and numbers as you can see below.
gnu/packages/linux.scm (v1.3.0-8241-g5592058e9d)
725 (define (config->string options)
726 (string-join (map (match-lambda
727 ((option . 'm)
728 (string-append option "=m"))
729 ((option . #t)
730 (string-append option "=y"))
731 ((option . #f)
732 (string-append option "=n")))
733 options)
734 "\n"))
Therefore I made the first patch to add the support.
Nevertheless, even if I complile the linux kernel without this patch and without the CONFIG_ANDROID_BINDER_DEVICES (due to string value) the binder is not present.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 10 Dec 2021 12:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 99 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.