Probleme mit Installation von Anbox-Module

Hinweis: In dem Thema Probleme mit Installation von Anbox-Module gibt es 10 Antworten auf 2 Seiten. Der letzte Beitrag () befindet sich auf der letzten Seite.
  • Hallo,


    Bei mir läuft Opensuse Leap 15.5 und möchte auf diesem waydroid nutzen. Zu diesem Zweck wollte ich die Anbox Module ashmem und binder installieren. Ashmem ging problemlos, allerdings bekomm ich bei Binder folgende Rückmeldung:


    dkms install anbox-binder/1


    Building module:

    cleaning build area...

    make -j4 KERNELRELEASE=5.14.21-150500.55.44-default all KERNEL_SRC=/lib/modules/5.14.21-150500.55.44-default/build...(bad exit status: 2)

    Error! Bad return status for module build on kernel: 5.14.21-150500.55.44-default (x86_64)

    Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.



    Als Quelle für die Vorgehensweise bei der Installation nutze ich diese hier:

    anbox-modules/README.md at master · anbox/anbox-modules
    Anbox kernel modules. Contribute to anbox/anbox-modules development by creating an account on GitHub.
    github.com




    Kann mir hier jemand weiterhelfen? Bringt ein eventuelles Update was?


    Danke!


    Schöne Grüße

    Für den Inhalt des Beitrages 317198 haftet ausdrücklich der jeweilige Autor: suserookie

  • Und was ist hiermit?

    Hallo,


    Hier die komplette Log:



    DKMS make.log for anbox-binder-1 for kernel 5.14.21-150500.55.44-default (x86_64)

    So 24. Nov 14:13:07 CET 2024

    make -C /lib/modules/5.14.21-150500.55.44-default/build V=0 M=$PWD

    make[1]: Verzeichnis „/usr/src/linux-5.14.21-150500.55.44-obj/x86_64/default“ wird betreten

    CC [M] /var/lib/dkms/anbox-binder/1/build/deps.o

    CC [M] /var/lib/dkms/anbox-binder/1/build/binder.o

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_get_unused_fd_flags’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:444:9: error: implicit declaration of function ‘__alloc_fd’; did you mean ‘vmalloc_32’? [-Werror=implicit-function-declaration]

    return __alloc_fd(files, 0, rlim_cur, flags);

    ^~~~~~~~~~

    vmalloc_32

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_fd_install’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:454:3: error: implicit declaration of function ‘__fd_install’; did you mean ‘fd_install’? [-Werror=implicit-function-declaration]

    __fd_install(proc->files, fd, file);

    ^~~~~~~~~~~~

    fd_install

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_close_fd’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:467:11: error: implicit declaration of function ‘__close_fd’; did you mean ‘close_fd’? [-Werror=implicit-function-declaration]

    retval = __close_fd(proc->files, fd);

    ^~~~~~~~~~

    close_fd

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_update_page_range’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:633:19: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?

    down_write(&mm->mmap_sem);

    ^~~~~~~~

    mmap_base

    /var/lib/dkms/anbox-binder/1/build/binder.c:663:9: error: implicit declaration of function ‘map_kernel_range_noflush’; did you mean ‘remap_pfn_range_notrack’? [-Werror=implicit-function-declaration]

    ret = map_kernel_range_noflush((unsigned long)page_addr,

    ^~~~~~~~~~~~~~~~~~~~~~~~

    remap_pfn_range_notrack

    /var/lib/dkms/anbox-binder/1/build/binder.c:683:17: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?

    up_write(&mm->mmap_sem);

    ^~~~~~~~

    mmap_base

    /var/lib/dkms/anbox-binder/1/build/binder.c:701:3: error: implicit declaration of function ‘unmap_kernel_range’; did you mean ‘remap_pfn_range’? [-Werror=implicit-function-declaration]

    unmap_kernel_range((unsigned long)page_addr, PAGE_SIZE);

    ^~~~~~~~~~~~~~~~~~

    remap_pfn_range

    /var/lib/dkms/anbox-binder/1/build/binder.c:710:17: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?

    up_write(&mm->mmap_sem);

    ^~~~~~~~

    mmap_base

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_binder’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:1626:38: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))

    ^~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:266:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_transfer_binder(const struct cred *from,

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c:1626:49: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))

    ^~~~~~~~~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:266:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_transfer_binder(const struct cred *from,

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_handle’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:1668:38: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))

    ^~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:266:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_transfer_binder(const struct cred *from,

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c:1668:49: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))

    ^~~~~~~~~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:266:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_transfer_binder(const struct cred *from,

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_fd’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:1740:38: error: passing argument 1 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);

    ^~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:268:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_transfer_file(const struct cred *from,

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c:1740:49: error: passing argument 2 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);

    ^~~~~~~~~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:268:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_transfer_file(const struct cred *from,

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_transaction’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:1967:35: error: passing argument 1 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    if (security_binder_transaction(proc->tsk,

    ^~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:264:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_transaction(const struct cred *from,

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c:1968:7: error: passing argument 2 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    target_proc->tsk) < 0) {

    ^~~~~~~~~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:264:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_transaction(const struct cred *from,

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_ioctl_set_ctx_mgr’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:3262:40: error: passing argument 1 of ‘security_binder_set_context_mgr’ from incompatible pointer type [-Werror=incompatible-pointer-types]

    ret = security_binder_set_context_mgr(proc->tsk);

    ^~~~

    In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:0:

    /usr/src/linux-5.14.21-150500.55.44/include/linux/security.h:263:5: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’

    int security_binder_set_context_mgr(const struct cred *mgr);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_mmap’:

    /var/lib/dkms/anbox-binder/1/build/binder.c:3486:16: error: implicit declaration of function ‘get_files_struct’; did you mean ‘put_files_struct’? [-Werror=implicit-function-declaration]

    proc->files = get_files_struct(current);

    ^~~~~~~~~~~~~~~~

    put_files_struct

    cc1: some warnings being treated as errors

    make[3]: *** [/usr/src/linux-5.14.21-150500.55.44/scripts/Makefile.build:275: /var/lib/dkms/anbox-binder/1/build/binder.o] Fehler 1

    make[2]: *** [/usr/src/linux-5.14.21-150500.55.44/Makefile:1891: /var/lib/dkms/anbox-binder/1/build] Fehler 2

    make[1]: *** [../../../linux-5.14.21-150500.55.44/Makefile:220: __sub-make] Fehler 2

    make[1]: Verzeichnis „/usr/src/linux-5.14.21-150500.55.44-obj/x86_64/default“ wird verlassen

    make: *** [Makefile:8: all] Fehler 2




    Les ich das richtig das die auszuführenden Befehle eine falschen Syntax haben?


    Danke!

    Für den Inhalt des Beitrages 317200 haftet ausdrücklich der jeweilige Autor: suserookie

  • Ich würde sagen:

    zu alt, du musst die Sourcen patchen.


    Siehe auch

    https://build.opensuse.org/pac…:anbox/anbox-modules-dkms

    Hallo,


    danke!


    die Module sind installiert und das Installationspaket von Waydroid für Yast auch.


    Allerdings taucht jetzt wieder ein neues Problem auf; über die Yast Installation gab es folgende Fehlermeldung:



    Softwareinstallation

    Die Installation ist fehlgeschlagen. Für mehr Informationen schauen Sie sich die Logdatei /var/log/YaST2/y2log an. Fehlerstadium war: Adding Repositories

    Fehlermeldung

    Ein Fehler trat auf, bei dem Versuch die benötigten Repositories einzutragen. Überprüfen Sie die YaST2-Logdateien für mehr Informationen.

    Die folgenden Repositories konnten nicht hinzugefügt werden


    Was kann ich noch tun?


    Danke!

    Für den Inhalt des Beitrages 317202 haftet ausdrücklich der jeweilige Autor: suserookie

  • Nichts. Diese Repos brauchst du nicht. Einfach ignorieren. Die gibt es nicht mehr. Die werden nur bei Einklickern aktiviert. Hast du eine Ein-Klick - Installation gemacht?

  • Und wie?


    Wenn ich dann deiner Repoliste sehe, schätze ich mal über 1-klick Installationen.......

    Hallo,


    ich bin über hier eingestiegen:


    Install package home:sp1rit / waydroid


    Die Anweisungen für das 15.5 ausgeführt


    Code
    zypper addrepo https://download.opensuse.org/repositories/home:sp1rit/15.5/home:sp1rit.repo
    zypper refresh
    zypper install waydroid

    Und dann die waydroid.ymp ausgeführt -> ja, als 1-Click installation.


    Hier noch die Logs nach "zypper se -si wayd anbox": (log von "zypper lr -d" kann ich wegen zu langem Posting nicht anhängen)


    |

    xxx583f3bb:/ # zypper se -si wayd anbox

    Fehler bei der Erstellung des Cache:

    [https-download.opensuse.org-00d4115a|https://download.opensuse.org/…USE:/SLE-15-SP4:/GA/pool/] Keine gültigen Metadaten bei d

    em festgelegten URL gefunden

    Verlauf:

    - [https-download.opensuse.org-00d4115a|https://download.opensuse.org/…USE:/SLE-15-SP4:/GA/pool/] Repository type can't be de

    termined.


    Warnung: Repository 'SUSE:SLE-15-SP4:GA' wird aufgrund des obigen Fehlers übersprungen.

    Fehler bei der Erstellung des Cache:

    [https-download.opensuse.org-17fec696|https://download.opensuse.org/…USE:/SLE-15-SP5:/GA/pool/] Keine gültigen Metadaten bei d

    em festgelegten URL gefunden

    Verlauf:

    - [https-download.opensuse.org-17fec696|https://download.opensuse.org/…USE:/SLE-15-SP5:/GA/pool/] Repository type can't be de

    termined.


    Warnung: Repository 'SUSE:SLE-15-SP5:GA' wird aufgrund des obigen Fehlers übersprungen.

    Fehler bei der Erstellung des Cache:

    [https-download.opensuse.org-2c2dec54|https://download.opensuse.org/…USE:/SLE-15-SP3:/GA/pool/] Keine gültigen Metadaten bei d

    em festgelegten URL gefunden

    Verlauf:

    - [https-download.opensuse.org-2c2dec54|https://download.opensuse.org/…USE:/SLE-15-SP3:/GA/pool/] Repository type can't be de

    termined.


    Warnung: Repository 'SUSE:SLE-15-SP3:GA' wird aufgrund des obigen Fehlers übersprungen.

    Fehler bei der Erstellung des Cache:

    [https-download.opensuse.org-62db8bc7|https://download.opensuse.org/…USE:/SLE-15-SP1:/GA/pool/] Keine gültigen Metadaten bei d

    em festgelegten URL gefunden

    Verlauf:

    - [https-download.opensuse.org-62db8bc7|https://download.opensuse.org/…USE:/SLE-15-SP1:/GA/pool/] Repository type can't be de

    termined.


    Warnung: Repository 'SUSE:SLE-15-SP1:GA' wird aufgrund des obigen Fehlers übersprungen.

    Fehler bei der Erstellung des Cache:

    [https-download.opensuse.org-95682088|https://download.opensuse.org/…USE:/SLE-15-SP2:/GA/pool/] Keine gültigen Metadaten bei d

    em festgelegten URL gefunden

    Verlauf:

    - [https-download.opensuse.org-95682088|https://download.opensuse.org/…USE:/SLE-15-SP2:/GA/pool/] Repository type can't be de

    termined.


    Warnung: Repository 'SUSE:SLE-15-SP2:GA' wird aufgrund des obigen Fehlers übersprungen.

    Fehler bei der Erstellung des Cache:

    [https-download.opensuse.org-ae90f962|https://download.opensuse.org/…USE:/SLE-15-SP1:/GA/pool/] Keine gültigen Metadaten bei d

    em festgelegten URL gefunden

    Verlauf:

    - [https-download.opensuse.org-ae90f962|https://download.opensuse.org/…USE:/SLE-15-SP1:/GA/pool/] Repository type can't be de

    termined.


    Warnung: Repository 'SUSE:SLE-15-SP1:GA' wird aufgrund des obigen Fehlers übersprungen.

    Einige der Repositorys konnten aufgrund eines Fehlers nicht aktualisiert werden.

    Repository-Daten werden geladen...

    Warnung: Metadaten von Repository 'openSUSE:Backports:SLE-15-SP5' seit 2024-03-22 18:13:55 CET abgelaufen.


    Warning: Die Metadaten des Repositorys sind abgelaufen: Prüfen Sie, ob 'autorefresh' aktiviert

    ist (zypper lr). Aktualisieren Sie andernfalls das Repository manuell (zypper ref). Wenn das

    Problem weiterhin besteht, verwenden Sie möglicherweise einen defekten Spiegel oder der Server

    hat die Unterstützung für das Repository eingestellt.


    Installierte Pakete werden gelesen...


    S | Name | Type | Version | Arch | Repository

    ---+--------------------+-------+-------------------------------+--------+-----------------------------------------------------------------

    ----------------------------------------------------------------

    i | anbox-modules | Paket | 0.0.1.git20191114-7.38 | x86_64 | Anbox is container based approach to boot a full Android system

    on a regular GNU Linux system like Ubuntu. (openSUSE_Tumbleweed)

    i+ | anbox-modules-dkms | Paket | 0.0.1.git20191114-8.37 | noarch | Anbox is container based approach to boot a full Android system

    on a regular GNU Linux system like Ubuntu. (openSUSE_Tumbleweed)

    i+ | waydroid | Paket | 1.2.1+git.3~facf2b7-lp155.3.1 | noarch | home:sp1rit (15.5)




    Grüße

    Für den Inhalt des Beitrages 317206 haftet ausdrücklich der jeweilige Autor: suserookie

  • Diese Repos alle löschen, wobei das

    Zitat

    sogar doppelt vorhanden ist.


    Die 3 Pakete würde ich auch löschen und nur die Pakete aus diesem Repo nehmen:

    /repositories/home:/petertr:/branches:/home:/runa-chin:/Waydroid/openSUSE_Leap_15.5_Update_standard - openSUSE Download


    Da brauchst du nur 1 Repo, kein dkms und es sollte alles funktionieren (hoffentlich).


    Achso:

    nächstes mal für Konsolenausgaben:

    Verwendung des Editors im Forum - Tutorials / Howtos - Community Hilfe - Download Software - Tipps und Tricks


    Da kannst du sofort mit

    Code
    zypper lr -d

    anfangen........

    Für den Inhalt des Beitrages 317208 haftet ausdrücklich der jeweilige Autor: Sauerland