You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device: Xiaomi Wayne (SDM660)
ROM: AxionOS GSI
Kernel: LKGeek-perf, custom build, kernel version 4.19.325
Tool used: Tried both standalone KernelPatch (via FolkPatch script) and APatch — same failure in both, since they share the same kptools core.
Kernel banner:
Linux version 4.19.325-LKGeek-perf (lkdenchin@Github-Action) (Android (13174946, +pgo, +bolt, +lto, +mlgo, based on r547379) clang version 20.0.0, LLD 20.0.0 (/mnt/disks/build-disk/src/android/llvm-r547379-release/out/llvm-project/llvm b718bcaf8c198c82f3021447d943401e3ab5bd54)) #1 SMP PREEMPT Wed Apr 22 14:35:22 UTC 2026
Full patch log:
FolkPatch Boot Image Patcher
Backing boot.img
Patching kernel
./kptools -p -i kernel.ori -S su -k kpimg -o kernel
[-] /home/runner/work/KernelPatch/KernelPatch/tools/patch.c:634/patch_update_img(); analyze_kallsym_info error
[+] kernel image_size: 0x01df3818
[+] kernel uefi header: false
[+] kernel load_offset: 0x00000000
[+] kernel kernel_size: 0x02187000
[+] kernel page_shift: 12
[+] new kernel image ...
[+] is_gki: false
[+] linux_banner 1: Linux version 4.19.325-LKGeek-perf (lkdenchin@Github-Action) (Android (13174946, +pgo, +bolt, +lto, +mlgo, based on r547379) clang version 20.0.0, LLD 20.0.0 (/mnt/disks/build-disk/src/android/llvm-r547379-release/out/llvm-project/llvm b718bcaf8c198c82f3021447d943401e3ab5bd54)) merge dev #1 SMP PREEMPT Wed Apr 22 14:35:22 UTC 2026
[+] linux_banner offset: 0x142000f
[+] kernel version major: 4, minor: 19, patch: 255
[-] /home/runner/work/KernelPatch/KernelPatch/tools/kallsym.c:129/find_token_table(); find token_table error
patch_rc=1
set +x
Patch kernel error: 1
Patch process exited with code: 1
Patch failed.
What I've checked:
Failure happens identically via both KernelPatch/FolkPatch and APatch, ruling out a wrapper-script issue.
Fails at find_token_table() — before kallsyms_token_table offset is even printed, which is earlier than most other reported kallsyms failures in this repo.
I don't have access to the kernel source or build config for this GSI-paired kernel, so I can't confirm CONFIG_KALLSYMS/CONFIG_KALLSYMS_ALL directly.
I've attached the raw unpacked kernel binary (via magiskboot unpack boot.img) below in case it helps identify what's different about this build's kallsyms layout.
Attached: kernel (29.95MB, raw kernel image extracted from boot.img)
Device: Xiaomi Wayne (SDM660)
ROM: AxionOS GSI
Kernel: LKGeek-perf, custom build, kernel version 4.19.325
Tool used: Tried both standalone KernelPatch (via FolkPatch script) and APatch — same failure in both, since they share the same kptools core.
Kernel banner:
Linux version 4.19.325-LKGeek-perf (lkdenchin@Github-Action) (Android (13174946, +pgo, +bolt, +lto, +mlgo, based on r547379) clang version 20.0.0, LLD 20.0.0 (/mnt/disks/build-disk/src/android/llvm-r547379-release/out/llvm-project/llvm b718bcaf8c198c82f3021447d943401e3ab5bd54)) #1 SMP PREEMPT Wed Apr 22 14:35:22 UTC 2026
Full patch log:
FolkPatch Boot Image Patcher
[-] /home/runner/work/KernelPatch/KernelPatch/tools/patch.c:634/patch_update_img(); analyze_kallsym_info error
[+] kernel image_size: 0x01df3818
[+] kernel uefi header: false
[+] kernel load_offset: 0x00000000
[+] kernel kernel_size: 0x02187000
[+] kernel page_shift: 12
[+] new kernel image ...
[+] is_gki: false
[+] linux_banner 1: Linux version 4.19.325-LKGeek-perf (lkdenchin@Github-Action) (Android (13174946, +pgo, +bolt, +lto, +mlgo, based on r547379) clang version 20.0.0, LLD 20.0.0 (/mnt/disks/build-disk/src/android/llvm-r547379-release/out/llvm-project/llvm b718bcaf8c198c82f3021447d943401e3ab5bd54)) merge dev #1 SMP PREEMPT Wed Apr 22 14:35:22 UTC 2026
[+] linux_banner offset: 0x142000f
[+] kernel version major: 4, minor: 19, patch: 255
[-] /home/runner/work/KernelPatch/KernelPatch/tools/kallsym.c:129/find_token_table(); find token_table error
Patch failed.
What I've checked:
Failure happens identically via both KernelPatch/FolkPatch and APatch, ruling out a wrapper-script issue.
Fails at find_token_table() — before kallsyms_token_table offset is even printed, which is earlier than most other reported kallsyms failures in this repo.
I don't have access to the kernel source or build config for this GSI-paired kernel, so I can't confirm CONFIG_KALLSYMS/CONFIG_KALLSYMS_ALL directly.
I've attached the raw unpacked kernel binary (via magiskboot unpack boot.img) below in case it helps identify what's different about this build's kallsyms layout.
Attached: kernel (29.95MB, raw kernel image extracted from boot.img)
kernel.zip