Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to take remove kernelsu from kernel tree #1103

Closed
ulist opened this issue Nov 1, 2023 · 2 comments
Closed

How to take remove kernelsu from kernel tree #1103

ulist opened this issue Nov 1, 2023 · 2 comments

Comments

@ulist
Copy link

ulist commented Nov 1, 2023

Describe your problem.

MODPOST vmlinux.o
WARNING: EXPORT symbol "init_task" [vmlinux] version generation failed, symbol will not be versioned.
ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol __crc_init_task; recompile with -fPIC
>>> defined in built-in.o(init/init_task.o)
>>> referenced by init_task.c
>>>               init/init_task.o:(___kcrctab+init_task+0x0) in archive built-in.o

ld.lld: error: undefined symbol: ksu_handle_faccessat
>>> referenced by open.c:375 (/workspace/kernel_xiaomi_fleur/out/../fs/open.c:375)
>>>               fs/open.o:(SyS_faccessat) in archive built-in.o

ld.lld: error: undefined symbol: ksu_vfs_read_hook
>>> referenced by read_write.c:440 (/workspace/kernel_xiaomi_fleur/out/../fs/read_write.c:440)
>>>               fs/read_write.o:(vfs_read) in archive built-in.o
>>> referenced by read_write.c:440 (/workspace/kernel_xiaomi_fleur/out/../fs/read_write.c:440)
>>>               fs/read_write.o:(vfs_read) in archive built-in.o

ld.lld: error: undefined symbol: ksu_handle_vfs_read
>>> referenced by read_write.c:441 (/workspace/kernel_xiaomi_fleur/out/../fs/read_write.c:441)
>>>               fs/read_write.o:(vfs_read) in archive built-in.o

ld.lld: error: undefined symbol: ksu_handle_stat
>>> referenced by stat.c:175 (/workspace/kernel_xiaomi_fleur/out/../fs/stat.c:175)
>>>               fs/stat.o:(vfs_statx) in archive built-in.o

ld.lld: error: undefined symbol: ksu_execveat_hook
>>> referenced by exec.c:1718 (/workspace/kernel_xiaomi_fleur/out/../fs/exec.c:1718)
>>>               fs/exec.o:(do_execveat_common) in archive built-in.o
>>> referenced by exec.c:1718 (/workspace/kernel_xiaomi_fleur/out/../fs/exec.c:1718)
>>>               fs/exec.o:(do_execveat_common) in archive built-in.o

ld.lld: error: undefined symbol: ksu_handle_execveat_sucompat                     >>> referenced by exec.c:1721 (/workspace/kernel_xiaomi_fleur/out/../fs/exec.c:1721)
>>>               fs/exec.o:(do_execveat_common) in archive built-in.o
                                                                                  ld.lld: error: undefined symbol: ksu_handle_execveat
>>> referenced by exec.c:1719 (/workspace/kernel_xiaomi_fleur/out/../fs/exec.c:1719)                                                                                >>>               fs/exec.o:(do_execveat_common) in archive built-in.o            
ld.lld: error: undefined symbol: ksu_input_hook
>>> referenced by input.c:377 (/workspace/kernel_xiaomi_fleur/out/../drivers/input/input.c:377)
>>>               drivers/input/input.o:(input_handle_event) in archive built-in.o
>>> referenced by input.c:377 (/workspace/kernel_xiaomi_fleur/out/../drivers/input/input.c:377)                                                                     >>>               drivers/input/input.o:(input_handle_event) in archive built-in.o

ld.lld: error: undefined symbol: ksu_handle_input_handle_event
>>> referenced by input.c:378 (/workspace/kernel_xiaomi_fleur/out/../drivers/input/input.c:378)
>>>               drivers/input/input.o:(input_handle_event) in archive built-in.o
make[1]: *** [/workspace/kernel_xiaomi_fleur/Makefile:1144: vmlinux] Error 1
make[1]: Leaving directory '/workspace/kernel_xiaomi_fleur/out'
@rushiranpise
Copy link
Contributor

Maybe look at the commit history and just revert the commits adding kernelsu.

@ulist
Copy link
Author

ulist commented Nov 1, 2023

I see it.
xtrHV2/kernel_xiaomi_fleur@ed2cbbd
Is this is how you add kernelsu? The script in the documentation don't do that

@tiann tiann closed this as completed Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants