| Summary: | Android modules (ashmem, binder) not enabled | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Buchan Milne <bgmilne> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | andrewsfarm, contact, eatdirt, marja11, sysadmin-bugs, thierry.vignaud |
| Version: | 9 | Keywords: | advisory, validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | MGA9-64-OK | ||
| Source RPM: | dkms-anbox | CVE: | |
| Status comment: | |||
| Attachments: |
make log for module
make log for module on MGA9 Make log for module ashmem on MGA9 Make log for module binder on MGA9 |
||
|
Description
Buchan Milne
2021-11-01 11:38:42 CET
Assigning CC:
(none) =>
marja11 I have succeeded with out-of-tree modules (dkms package), however I got stuck with: 11-06 10:00:19.105 427 427 E libpsi : No kernel psi monitor support (errno=2) So, regardless of enabling ashmem and binder, for the purposes of using waydroid (at least, possibly anbox as well), pressure stall information must also be enabled, at least: CONFIG_PSI=y In this case, psi must be enabled via kernel command line by appending `psi=1`, otherwise add: CONFIG_PSI_DEFAULT_DISABLED=n See https://github.com/waydroid/waydroid/issues/136 I've enabled PSI in next kernel build (4.14.17-1 currently building), and you need to enable it with "psi=1"... I need to think a bit about the other android bits I built a kernel with only the following changes: [root@buchan-desktop ~]# zgrep PSI /proc/config.gz CONFIG_PSI=y # CONFIG_PSI_DEFAULT_DISABLED is not set [root@buchan-desktop ~]# cat /proc/cmdline BOOT_IMAGE=/vmlinuz-5.10.75-1.mga8custom root=UUID=466aceb7-8be9-434c-ae3d-4247a70fd06f ro splash quiet noiswmd resume=/dev/VGsys/swap audit=0 psi=1 vga=791 With the rest of what I've packaged so far for waydroid (including ashmem_linux and binder_linux from https://github.com/choff/anbox-modules as a dkms package), this was sufficient to get an android container to start (on Mageia 8). I'll try and get what I've done uploaded later today, so we don't necessarily need them enabled in the kernel package. Were you able to run anbox? CC:
(none) =>
thierry.vignaud I didn't try anbox itself, I wanted these changes for waydroid: http://svnweb.mageia.org/packages/cauldron/waydroid/current/SPECS/waydroid.spec?revision=1754269&view=markup I have been successfully running waydroid on Mageia 8 since I uploaded it. On Mageia 8 you need: * to add `psi=1` to your boot parameters * install kernel >= kernel-5.14.17-1.mga8 (e.g. current kernel from updates should work) * install waydroid from backports/testing (urpmi waydroid) * Run `waydroid init` to install an android runtime * systemctl start waydroid-container as root To run an android container: * Be logged into a wayland session (plasma or Gnome) * waydroid session start * waydroid show-full-ui Similar steps should work on Cauldron with less effort. dkms-anbox do not compile in Mageia 9
kernel 6.0.11-destop-1
logs of installation:
Creating symlink /var/lib/dkms/anbox-ashmem/0.0.2-2.mga9/source ->
/usr/src/anbox-ashmem-0.0.2-2.mga9
DKMS: add Completed.
Preparing kernel 6.0.11-desktop-1.mga9 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
/sbin/dkms: ligne 939: avertissement :substitution de commande: octet nul ignoré en entrée
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....
Building module:
cleaning build area....
make -j4 KERNELRELEASE=6.0.11-desktop-1.mga9 all KERNEL_SRC=/lib/modules/6.0.11-desktop-1.mga9/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.11-desktop-1.mga9 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/anbox-ashmem/0.0.2-2.mga9/build/ for more information.
Error! Could not locate ashmem_linux.ko.xz for module anbox-ashmem in the DKMS tree.
You must run a dkms build for kernel 6.0.11-desktop-1.mga9 (x86_64) first.
Creating symlink /var/lib/dkms/anbox-binder/0.0.2-2.mga9/source ->
/usr/src/anbox-binder-0.0.2-2.mga9
DKMS: add Completed.
Preparing kernel 6.0.11-desktop-1.mga9 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
/sbin/dkms: ligne 939: avertissement :substitution de commande: octet nul ignoré en entrée
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....
Building module:
cleaning build area....
make -j4 KERNELRELEASE=6.0.11-desktop-1.mga9 all KERNEL_SRC=/lib/modules/6.0.11-desktop-1.mga9/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.11-desktop-1.mga9 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/anbox-binder/0.0.2-2.mga9/build/ for more information.
Error! Could not locate binder_linux.ko.xz for module anbox-binder in the DKMS tree.
You must run a dkms build for kernel 6.0.11-desktop-1.mga9 (x86_64) first.
attention : %post(dkms-anbox-0.0.2-2.mga9.noarch) scriptlet échoué, état de sortie 4
ERROR: 'script' failed for dkms-anbox-0.0.2-2.mga9.noarchCC:
(none) =>
contact Please try dkms-anbox-0.0.3-1.mga9.noarch when it is available on your mirror. (My local mirror is out-of-date and my cauldron VM doesn't have the matching kernel-devel package installed, so I haven't tried it myself on a 6.0.x kernel yet) Status:
NEW =>
NEEDINFO My mirror has caught up, and I was able to install waydroid on my Cauldron VM, including the compilation of the anbox modules:
[root@cauldron-vm ~]# urpmi waydroid
unable to access synthesis file of "Core Release (cdrom-1)", medium ignored
unable to access synthesis file of "Nonfree Release (cdrom-2)", medium ignored
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Arch
(medium "Core Release (cauldron-1)")
dkms 2.0.19 45.mga9 noarch
dkms-anbox 0.0.3 1.mga9 noarch
dkms-minimal 2.0.19 45.mga9 noarch
dnsmasq 2.88 1.mga9 x86_64
lib64gbinder1 1.1.13 2.mga9 x86_64
lib64libglibutil1 1.0.56 2.mga9 x86_64
lib64lxc1 4.0.12 1.mga9 x86_64
lib64nftables1 1.0.2 2.mga9 x86_64
lxc 4.0.12 1.mga9 x86_64
nftables 1.0.2 2.mga9 x86_64
python-gbinder 1.0.0 3.mga9 x86_64
python3-pyclip 0.5.4 3.mga9 noarch
waydroid 1.2.0 2.mga9 noarch
23MB of additional disk space will be used.
3.9MB of packages will be retrieved.
Proceed with the installation of the 13 packages? (Y/n) y
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/dkms-2.0.19-45.mga9.noarch.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/nftables-1.0.2-2.mga9.x86_64.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/lib64libglibutil1-1.0.56-2.mga9.x86_64.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/lib64gbinder1-1.1.13-2.mga9.x86_64.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/lxc-4.0.12-1.mga9.x86_64.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/waydroid-1.2.0-2.mga9.noarch.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/dkms-minimal-2.0.19-45.mga9.noarch.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/dkms-anbox-0.0.3-1.mga9.noarch.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/dnsmasq-2.88-1.mga9.x86_64.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/lib64lxc1-4.0.12-1.mga9.x86_64.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/python-gbinder-1.0.0-3.mga9.x86_64.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/python3-pyclip-0.5.4-3.mga9.noarch.rpm
http://ftp.sun.ac.za/ftp/pub/mirrors/mageia/distrib/cauldron/x86_64/media/core/release/lib64nftables1-1.0.2-2.mga9.x86_64.rpm
installing dkms-anbox-0.0.3-1.mga9.noarch.rpm dnsmasq-2.88-1.mga9.x86_64.rpm python-gbinder-1.0.0-3.mga9.x86_64.rpm lib64lxc1-4.0.12-1.mga9.x86_64.rpm lib64nftables1-1.0.2-2.mga9.x86_64.rpm python3-pyclip-0.5.4-3.mga9.noarch.rpm lib64libglibutil1-1.0.56-2.mga9.x86_64.rpm nftables-1.0.2-2.mga9.x86_64.rpm dkms-2.0.19-45.mga9.noarch.rpm lxc-4.0.12-1.mga9.x86_64.rpm lib64gbinder1-1.1.13-2.mga9.x86_64.rpm dkms-minimal-2.0.19-45.mga9.noarch.rpm waydroid-1.2.0-2.mga9.noarch.rpm from /var/cache/urpmi/rpms
Preparing... #################################################################
1/13: dkms-minimal #################################################################
2/13: dkms #################################################################
3/13: dkms-anbox #################################################################
Creating symlink /var/lib/dkms/anbox-ashmem/0.0.3-1.mga9/source ->
/usr/src/anbox-ashmem-0.0.3-1.mga9
DKMS: add Completed.
Preparing kernel 6.0.12-desktop-1.mga9 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....
Building module:
cleaning build area....
make -j2 KERNELRELEASE=6.0.12-desktop-1.mga9 all KERNEL_SRC=/lib/modules/6.0.12-desktop-1.mga9/build....
cleaning build area....
cleaning kernel tree (make mrproper)....
DKMS: build Completed.
Running module version sanity check.
ashmem_linux.ko.xz:
- Installation
- Installing to /lib/modules/6.0.12-desktop-1.mga9/dkms/updates/
depmod......
DKMS: install Completed.
Creating symlink /var/lib/dkms/anbox-binder/0.0.3-1.mga9/source ->
/usr/src/anbox-binder-0.0.3-1.mga9
DKMS: add Completed.
Preparing kernel 6.0.12-desktop-1.mga9 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....
Building module:
cleaning build area....
make -j2 KERNELRELEASE=6.0.12-desktop-1.mga9 all KERNEL_SRC=/lib/modules/6.0.12-desktop-1.mga9/build.....
cleaning build area....
cleaning kernel tree (make mrproper)....
DKMS: build Completed.
Running module version sanity check.
binder_linux.ko.xz:
- Installation
- Installing to /lib/modules/6.0.12-desktop-1.mga9/dkms/updates/
depmod.....
DKMS: install Completed.
4/13: lib64libglibutil1 #################################################################
5/13: lib64gbinder1 #################################################################
6/13: python-gbinder #################################################################
7/13: python3-pyclip #################################################################
8/13: lib64nftables1 #################################################################
9/13: nftables #################################################################
10/13: lib64lxc1 #################################################################
11/13: lxc #################################################################
12/13: dnsmasq #################################################################
13/13: waydroid #################################################################
[root@cauldron-vm ~]#Status:
NEEDINFO =>
RESOLVED Broken again on MGA8 and MGA9.
Creating symlink /var/lib/dkms/anbox-ashmem/0.0.1-2.mga8/source ->
/usr/src/anbox-ashmem-0.0.1-2.mga8
DKMS: add Completed.
Preparing kernel 5.15.88-desktop-1.mga8 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare.....
Building module:
cleaning build area....
make -j2 KERNELRELEASE=5.15.88-desktop-1.mga8 all KERNEL_SRC=/lib/modules/5.15.88-desktop-1.mga8/build....
cleaning build area....
cleaning kernel tree (make mrproper)....
DKMS: build Completed.
Running module version sanity check.
ashmem_linux.ko.xz:
- Installation
- Installing to /lib/modules/5.15.88-desktop-1.mga8/dkms/updates/
depmod......
DKMS: install Completed.
Creating symlink /var/lib/dkms/anbox-binder/0.0.1-2.mga8/source ->
/usr/src/anbox-binder-0.0.1-2.mga8
DKMS: add Completed.
Preparing kernel 5.15.88-desktop-1.mga8 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....
Building module:
cleaning build area....
make -j2 KERNELRELEASE=5.15.88-desktop-1.mga8 all KERNEL_SRC=/lib/modules/5.15.88-desktop-1.mga8/build.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.88-desktop-1.mga8 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/anbox-binder/0.0.1-2.mga8/build/ for more information.
Error! Could not locate binder_linux.ko.xz for module anbox-binder in the DKMS tree.
You must run a dkms build for kernel 5.15.88-desktop-1.mga8 (x86_64) first.
warning: %post(dkms-anbox-0.0.1-2.mga8.noarch) scriptlet failed, exit status 4
ERROR: 'script' failed for dkms-anbox-0.0.1-2.mga8.noarchSource RPM:
kernel-5.10.20-2.mga8.src.rpm =>
kernel-5.15.88-desktop-1.mga8 / Created attachment 13705 [details]
make log for module
Created attachment 13706 [details]
make log for module on MGA9
sturmvogel
2023-02-18 22:46:18 CET
Whiteboard:
(none) =>
MGA8TOO
sturmvogel
2023-02-18 22:46:59 CET
Source RPM:
kernel-5.15.88-desktop-1.mga8 / =>
kernel-5.15.88-desktop-1.mga8 / kernel-6.1.12-desktop-1.mga9 *** Bug 31724 has been marked as a duplicate of this bug. *** on MGA9 kernel 6.4.15-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC anbox-ashmem and anbox-binder does not compile. Created attachment 13996 [details]
Make log for module ashmem on MGA9
Created attachment 13997 [details]
Make log for module binder on MGA9
Confirmed. Update to latest git snapshot fixes the build of binder. Ashmem still fails, but I succeeded initializing waydroid without it. ---- Update advisory: dkms-0.0.3-1.1.mga9 landing in core/updates_testing. This version fixes build failure of the binder module against kernel 6.4.* RPMS dkms-anbox-0.0.3-1.1.mga9.noarch.rpm SRPMS: dkms-anbox-0.0.3-1.1.mga9.src.rpm CC:
(none) =>
eatdirt
Chris Denice
2023-10-10 16:02:12 CEST
Assignee:
bgmilne =>
qa-bugs Advisory from comment 17 uploaded. I assume this won't be fixed for Mageia 8, since nothing was pushed for Mageia 8? Keywords:
(none) =>
advisory
Marja Van Waes
2023-10-10 16:48:46 CEST
Whiteboard:
MGA8TOO =>
(none)
Marja Van Waes
2023-10-10 16:49:39 CEST
Version:
Cauldron =>
9 I don't know the latest kernel version of mga8, if there are in 6.3.* or 6.4.*, I could push an update indeed!? Backported kernels in mga8 went as high as 6.1.45, but "regular" kernel is 5.15.126. IMO, anyone who needed the backported kernels because of newer hardware should have upgraded to mga9 by now. But then, I can't decide these things by myself. CC:
(none) =>
andrewsfarm MGA9-64 Plasma in VirtualBox. I downloaded dkms-anbox using qarepo, then used urpmi to successfully install waydroid. I watched part of a short video on waydroid, discovering I should have been using wayland for success, but I forged ahead anyway. I enabled the waydroid-container service, then ran "waydroid init." Lots of stuff was downloaded and stored locally, and when finished, it quit. Seemed normal enough, as far as I went. I would say it was enough to show that the modules were built. Giving this an OK, and validating. Whiteboard:
(none) =>
MGA9-64-OK An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2023-0089.html Resolution:
(none) =>
FIXED Let me add a little comment, I've pushed further my attempts to run waydroid, and even though this update has fixed the problem with anbox, we have other problems with two other packages that prevents waydroid to successfully start: python-gbinder and libgbinder. I will open other reports for them to fix that. NB: All that because my new battery charger from Traxxas (Live Peak) is utterly sh... You have to download an android app to control it, even though it comes with buttons. How stupid is that??? I still cannot believe some enginners manades to come with such a crazy idea... On the bright side, that's why I am going to make waydroid working :) |