Waydroid icin bu modullerin derlenip DKMS ile derlenmesi gerekiyor ancak derleyemedim. 2 cıktısı veriyor.

Bash:Panoya kopyala
[email protected]:/home/cruslan# cd Belgeler [email protected]:/home/cruslan/Belgeler# cd Build [email protected]:/home/cruslan/Belgeler/Build# git clone https://github.com/anbox/anbox-modules.git Klonlama konumu: 'anbox-modules'... remote: Enumerating objects: 132, done. remote: Total 132 (delta 0), reused 0 (delta 0), pack-reused 132 Nesneler alınıyor: 100% (132/132), 68.65 KiB | 418.00 KiB/sn, bitti. Deltalar cozuluyor: 100% (48/48), bitti. [email protected]:/home/cruslan/Belgeler/Build# ls anbox-modules intel-undervolt [email protected]:/home/cruslan/Belgeler/Build# cd anbox-modules [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# sudo cp anbox.conf /etc/modules-load.d/ [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# sudo cp 99-anbox.rules /lib/udev/rules.d/ [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# sudo cp -rT ashmem /usr/src/anbox-ashmem-1 [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# sudo cp -rT binder /usr/src/anbox-binder-1 [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# sudo dkms install anbox-ashmem/1 Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Creating symlink /var/lib/dkms/anbox-ashmem/1/source -> /usr/src/anbox-ashmem-1 Building module: Cleaning build area... make -j4 KERNELRELEASE=6.1.8-x64v3-xanmod1 all KERNEL_SRC=/lib/modules/6.1.8-x64v3-xanmod1/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.1.8-x64v3-xanmod1 (x86_64) Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information. [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# sudo dkms install anbox-binder/1 Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Creating symlink /var/lib/dkms/anbox-binder/1/source -> /usr/src/anbox-binder-1 Building module: Cleaning build area... make -j4 KERNELRELEASE=6.1.8-x64v3-xanmod1 all KERNEL_SRC=/lib/modules/6.1.8-x64v3-xanmod1/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.1.8-x64v3-xanmod1 (x86_64) Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information. [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# sudo modprobe ashmem_linux modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/6.1.8-x64v3-xanmod1 [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# synaptic Another synaptic is running. Trying to bring it to the foreground [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# /lib/modules/6.1.8-x64v3-xanmod1/build bash: /lib/modules/6.1.8-x64v3-xanmod1/build: Bir dizin [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# nano /var/lib/dkms/anbox-binder/1/build/make.log [email protected]:/home/cruslan/Belgeler/Build/anbox-modules# ls -1 /dev/ ls: '/dev/ashmem' ogesine erişilemedi: Boyle bir dosya ya da dizin yok ls: '/dev/binder' ogesine erişilemedi: Boyle bir dosya ya da dizin yok [email protected]:/home/cruslan/Belgeler/Build/anbox-modules#


Kod:Panoya kopyala
make.log for anbox-ashmem-1 for kernel 6.1.8-x64v3-xanmod1 (x86_64) Prş 26 Oca 2023 14:21:24 +03 make -C /lib/modules/6.1.8-x64v3-xanmod1/build V=0 M=$PWD make[1]: Entering directory '/usr/src/linux-headers-6.1.8-x64v3-xanmod1' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-12 (Debian 12.2.0-9) 12.2.0 You are using: gcc (Debian 12.2.0-14) 12.2.0 CC [M] /var/lib/dkms/anbox-ashmem/1/build/deps.o CC [M] /var/lib/dkms/anbox-ashmem/1/build/ashmem.o /var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_init ’: /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:877:9: error: too few arguments to function ‘register_shrinker ’ 877 | register_shrinker(&ashmem_shrinker); | ^~~~~~~~~~~~~~~~~ In file included from ./include/linux/list_lru.h:13, from ./include/linux/fs.h:13, from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:25: ./include/linux/shrinker.h:99:27: note: declared here 99 | extern int __printf(2, 3) register_shrinker(struct shrinker *shrinker, | ^~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/anbox-ashmem/1/build/ashmem.o] Error 1 make[1]: *** [Makefile:2135: /var/lib/dkms/anbox-ashmem/1/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.8-x64v3-xanmod1' make: *** [Makefile:12: all] Error 2

Kod:Panoya kopyala
DKMS make.log for anbox-binder-1 for kernel 6.1.8-x64v3-xanmod1 (x86_64) Prş 26 Oca 2023 14:21:34 +03 make -C /lib/modules/6.1.8-x64v3-xanmod1/build V=0 M=$PWD make[1]: Entering directory '/usr/src/linux-headers-6.1.8-x64v3-xanmod1' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-12 (Debian 12.2.0-9) 12.2.0 You are using: gcc (Debian 12.2.0-14) 12.2.0 CC [M] /var/lib/dkms/anbox-binder/1/build/deps.o CC [M] /var/lib/dkms/anbox-binder/1/build/binder.o In file included from ././include/linux/kconfig.h:5, from : ./include/generated/autoconf.h:4593: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined 4593 | #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder" | : note: this is the location of the previous definition In file included from ././include/linux/kconfig.h:5, from : ./include/generated/autoconf.h:4593: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined 4593 | #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder" | : note: this is the location of the previous definition /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:16: error: implicit declaration of function ‘__alloc_fd ’ [-Werror=implicit-function-declaration] 444 | return __alloc_fd(files, 0, rlim_cur, flags); | ^~~~~~~~~~ /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_fd_install ’: /var/lib/dkms/anbox-binder/1/build/binder.c:454:17: error: implicit declaration of function ‘__fd_install ’; did you mean ‘fd_install ’? [-Werror=implicit-function-declaration] 454 | __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:18: error: implicit declaration of function ‘__close_fd ’; did you mean ‘close_fd ’? [-Werror=implicit-function-declaration] 467 | 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:33: error: ‘struct mm_struct ’ has no member named ‘mmap_sem ’; did you mean ‘mmap_base ’? 633 | down_write(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /var/lib/dkms/anbox-binder/1/build/binder.c:663:23: error: implicit declaration of function ‘map_kernel_range_noflush ’ [-Werror=implicit-function-declaration] 663 | ret = map_kernel_range_noflush((unsigned long)page_addr, | ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/dkms/anbox-binder/1/build/binder.c:683:31: error: ‘struct mm_struct ’ has no member named ‘mmap_sem ’; did you mean ‘mmap_base ’? 683 | up_write(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /var/lib/dkms/anbox-binder/1/build/binder.c:701:17: error: implicit declaration of function ‘unmap_kernel_range ’ [-Werror=implicit-function-declaration] 701 | unmap_kernel_range((unsigned long)page_addr, PAGE_SIZE); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/anbox-binder/1/build/binder.c:710:31: error: ‘struct mm_struct ’ has no member named ‘mmap_sem ’; did you mean ‘mmap_base ’? 710 | 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:49: error: passing argument 1 of ‘security_binder_transfer_binder ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1626 | if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) | ~~~~^~~~~ | | | struct task_struct * In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48: ./include/linux/security.h:268:56: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 268 | int security_binder_transfer_binder(const struct cred *from, | ~~~~~~~~~~~~~~~~~~~^~~~ /var/lib/dkms/anbox-binder/1/build/binder.c:1626:67: error: passing argument 2 of ‘security_binder_transfer_binder ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1626 | if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) | ~~~~~~~~~~~^~~~~ | | | struct task_struct * ./include/linux/security.h:269:56: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 269 | const struct cred *to); | ~~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_handle ’: /var/lib/dkms/anbox-binder/1/build/binder.c:1668:49: error: passing argument 1 of ‘security_binder_transfer_binder ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1668 | if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) | ~~~~^~~~~ | | | struct task_struct * ./include/linux/security.h:268:56: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 268 | int security_binder_transfer_binder(const struct cred *from, | ~~~~~~~~~~~~~~~~~~~^~~~ /var/lib/dkms/anbox-binder/1/build/binder.c:1668:67: error: passing argument 2 of ‘security_binder_transfer_binder ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1668 | if (security_binder_transfer_binder(proc->tsk, target_proc->tsk)) | ~~~~~~~~~~~^~~~~ | | | struct task_struct * ./include/linux/security.h:269:56: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 269 | const struct cred *to); | ~~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_fd ’: /var/lib/dkms/anbox-binder/1/build/binder.c:1740:49: error: passing argument 1 of ‘security_binder_transfer_file ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1740 | ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file); | ~~~~^~~~~ | | | struct task_struct * ./include/linux/security.h:270:54: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 270 | int security_binder_transfer_file(const struct cred *from, | ~~~~~~~~~~~~~~~~~~~^~~~ /var/lib/dkms/anbox-binder/1/build/binder.c:1740:67: error: passing argument 2 of ‘security_binder_transfer_file ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1740 | ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file); | ~~~~~~~~~~~^~~~~ | | | struct task_struct * ./include/linux/security.h:271:54: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 271 | const struct cred *to, struct file *file); | ~~~~~~~~~~~~~~~~~~~^~ /var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_transaction ’: /var/lib/dkms/anbox-binder/1/build/binder.c:1967:53: error: passing argument 1 of ‘security_binder_transaction ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1967 | if (security_binder_transaction(proc->tsk, | ~~~~^~~~~ | | | struct task_struct * ./include/linux/security.h:266:52: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 266 | int security_binder_transaction(const struct cred *from, | ~~~~~~~~~~~~~~~~~~~^~~~ /var/lib/dkms/anbox-binder/1/build/binder.c:1968:60: error: passing argument 2 of ‘security_binder_transaction ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1968 | target_proc->tsk) < 0) { | ~~~~~~~~~~~^~~~~ | | | struct task_struct * ./include/linux/security.h:267:52: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 267 | const struct cred *to); | ~~~~~~~~~~~~~~~~~~~^~ /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:51: error: passing argument 1 of ‘security_binder_set_context_mgr ’ from incompatible pointer type [-Werror=incompatible-pointer-types] 3262 | ret = security_binder_set_context_mgr(proc->tsk); | ~~~~^~~~~ | | | struct task_struct * ./include/linux/security.h:265:56: note: expected ‘const struct cred * ’ but argument is of type ‘struct task_struct * ’ 265 | 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:23: error: implicit declaration of function ‘get_files_struct ’; did you mean ‘put_files_struct ’? [-Werror=implicit-function-declaration] 3486 | proc->files = get_files_struct(current); | ^~~~~~~~~~~~~~~~ | put_files_struct cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1 make1: *** Makefile:2135: /var/lib/dkms/anbox-binder/1/build Error 2 make1: Leaving directory '/usr/src/linux-headers-6.1.8-x64v3-xanmod1' make: *** Makefile:8: all Error 2


Debian Sid uzerinde Xanmod Stable 6.1.8'in x86_64-v3 cekirdeğini kullanıyorum. Bu cekirdeğin headerleri de yuklu.

Guncelleme; Ashmem isimli cekirdek modulu cekirdekten kaldırılmış. Binder ise hala duruyor. Wayland, ashmem yerine memfd kullanmak uzere duzenlenmiş. Binder'i modul olarak aktif etmem yetti ancak ashmem ve memfd meselesini hala cozemedim.