unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51772] Binder kernel module missing
@ 2021-11-11 19:12 phodina via Guix-patches via
  2021-11-11 19:34 ` bug#51772: Duplicate of 51771 phodina via Guix-patches via
  2021-11-11 22:43 ` [bug#51772] Binder kernel module missing Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 2 replies; 4+ messages in thread
From: phodina via Guix-patches via @ 2021-11-11 19:12 UTC (permalink / raw)
  To: 51772

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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#51772: Duplicate of 51771
  2021-11-11 19:12 [bug#51772] Binder kernel module missing phodina via Guix-patches via
@ 2021-11-11 19:34 ` phodina via Guix-patches via
  2021-11-11 22:43 ` [bug#51772] Binder kernel module missing Tobias Geerinckx-Rice via Guix-patches via
  1 sibling, 0 replies; 4+ messages in thread
From: phodina via Guix-patches via @ 2021-11-11 19:34 UTC (permalink / raw)
  To: 51772-done@debbugs.gnu.org

duplicate 51771




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#51772] Binder kernel module missing
  2021-11-11 19:12 [bug#51772] Binder kernel module missing phodina via Guix-patches via
  2021-11-11 19:34 ` bug#51772: Duplicate of 51771 phodina via Guix-patches via
@ 2021-11-11 22:43 ` Tobias Geerinckx-Rice via Guix-patches via
  2021-11-12  5:44   ` phodina via Guix-patches via
  1 sibling, 1 reply; 4+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-11-11 22:43 UTC (permalink / raw)
  To: phodina; +Cc: 51772

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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#51772] Binder kernel module missing
  2021-11-11 22:43 ` [bug#51772] Binder kernel module missing Tobias Geerinckx-Rice via Guix-patches via
@ 2021-11-12  5:44   ` phodina via Guix-patches via
  0 siblings, 0 replies; 4+ messages in thread
From: phodina via Guix-patches via @ 2021-11-12  5:44 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 51772

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-12  5:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 19:12 [bug#51772] Binder kernel module missing phodina via Guix-patches via
2021-11-11 19:34 ` bug#51772: Duplicate of 51771 phodina via Guix-patches via
2021-11-11 22:43 ` [bug#51772] Binder kernel module missing Tobias Geerinckx-Rice via Guix-patches via
2021-11-12  5:44   ` phodina via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).