This repository was archived by the owner on Feb 13, 2024. It is now read-only.
binder: compilability with kernel 5.10#71
Open
mikhailnov wants to merge 1 commit intoanbox:masterfrom
Open
Conversation
Both kernel modules from the tree of this commit are compilable on kernel 5.10
The kernel has to be build with commit 0bd476e6c6 ("kallsyms: unexport kallsyms_lookup_name() and kallsyms_on_each_symbol()")
reverted, because both Anbox modules require kallsyms_lookup_name.
```
[user@rosa2019 binder]$ make KERNEL_SRC=/lib/modules/5.10.4-generic-2rosa2019.1-x86_64/build
make -C /lib/modules/5.10.4-generic-2rosa2019.1-x86_64/build V=0 M=$PWD
make[1]: вход в каталог «/usr/src/linux-5.10.4-generic-2rosa2019.1-x86_64»
CC [M] /mnt/dev/sources/anbox-modules/binder/binder.o
LD [M] /mnt/dev/sources/anbox-modules/binder/binder_linux.o
MODPOST /mnt/dev/sources/anbox-modules/binder/Module.symvers
ERROR: modpost: "kallsyms_lookup_name" [/mnt/dev/sources/anbox-modules/binder/binder_linux.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:111: /mnt/dev/sources/anbox-modules/binder/Module.symvers] Ошибка 1
make[2]: *** Удаляется файл «/mnt/dev/sources/anbox-modules/binder/Module.symvers»
make[1]: *** [Makefile:1697: modules] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-5.10.4-generic-2rosa2019.1-x86_64»
make: *** [Makefile:8: all] Ошибка 2
[user@rosa2019 binder]$ ьфлу^C
[user@rosa2019 binder]$ make
make -C /lib/modules/5.4.83-generic-2rosa2019.1-x86_64/build V=0 M=$PWD
make[1]: вход в каталог «/usr/src/linux-5.4.83-generic-2rosa2019.1-x86_64»
AR /mnt/dev/sources/anbox-modules/binder/built-in.a
CC [M] /mnt/dev/sources/anbox-modules/binder/deps.o
CC [M] /mnt/dev/sources/anbox-modules/binder/binder.o
LD [M] /mnt/dev/sources/anbox-modules/binder/binder_linux.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /mnt/dev/sources/anbox-modules/binder/binder_linux.mod.o
LD [M] /mnt/dev/sources/anbox-modules/binder/binder_linux.ko
make[1]: выход из каталога «/usr/src/linux-5.4.83-generic-2rosa2019.1-x86_64»
```
This kernel commit changed API: torvalds/linux@9740ca4e95b43
Author
|
This patch is incorrect, the kernel modules builds but does not work correctly: It is easier to build ashmem and binder from the upstream Linux kernel by porting the following commits from Ubuntu kernel:
|
|
so did you manage to get them working? |
|
is this superceded by #76 ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both kernel modules from the tree of this commit are compilable on kernel 5.10
The kernel has to be build with commit 0bd476e6c6 ("kallsyms: unexport kallsyms_lookup_name() and kallsyms_on_each_symbol()") reverted, because both Anbox modules require kallsyms_lookup_name.
This kernel commit changed API: torvalds/linux@9740ca4e95b43