Patch Failed (ZTE 8012N) (4.14.141+)

Open
#252 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 4 days

@bmax121 is already working on this.

Since Mar 17, 2026.

  • #345 by @xingluo233 — open

Assessment

This issue has not been assessed yet.

Description

  1. Kernel image:
  2. kallsyms: kallsyms.zip
  3. Log from APatch:
********
********
 APatch Boot Image Patcher
********
- Backing boot.img 
- Patching kernel
+ ./kptools -p -i kernel.ori -S 'REDACTED' -k kpimg -o kernel
[-] /home/runner/work/KernelPatch/KernelPatch/tools/symbol.c:47/get_symbol_offset_exit(); no symbol tcp_init_sock
[+] kernel image_size: 0x0269280c
[+] kernel uefi header: false
[+] kernel load_offset: 0x00080000
[+] kernel kernel_size: 0x02f2a000
[+] kernel page_shift: 12
[+] new kernel image ...
[+] linux_banner 1: Linux version 4.14.141+ (zte@scl_xa242_068) (Android (5484270 based on r353983c) clang version 9.0.3 (https://android.googlesource.com/toolchain/clang 745b335211bb9eadfa6aa6301f84715cee4b37c5) (https://android.googlesource.com/toolchain/llvm 60cf23e54e46c807513f7a36d0a7b777920b5881) (based on LLVM 9.0.3svn)) #1 SMP PREEMPT Mon Jan 11 11:58:45 CST 2021
[+] linux_banner offset: 0x1bf3580
[+] kernel version major: 4, minor: 14, patch: 141
[+] kallsyms_token_table offset: 0x01be6200
[+] endian: little
[+] kallsyms_token_index offset: 0x01be6600
[+] arm64 relocation kernel_va: 0xffffff8008081000
[+] arm64 relocation table range: [0x01f5e858, 0x024ae7d0), count: 0x00038aa5
[+] apply 0x00038aa4 relocation entries
[+] kallsyms_markers range: [0x01be5500, 0x01be6180), count: 0x0000018f
[?] find approximate kallsyms_offsets error
[+] approximate kallsyms_addresses range: [0x019d6878, 0x01a9d188) count: 0x00018d22
[?] mismatch relo applied, subsequent operations may be undefined
[+] kallsyms_names offset: 0x01a9e300
[?] can't find kallsyms_num_syms, try: 0x00018d18
[?] no linux_banner, CONFIG_KALLSYMS_ALL=n
[+] names table vector index: 0x00000012, pid_vnr index: 0x0000c5eb
[+] pid_vnr verfied sp, insn: 0x910043fd
[+] vectors index: 18, offset: 0x01742000
[+] pid_vnr offset: 0x01e69774
[+] kallsyms_addresses offset: 0x01a37bb0
[+] kernel base address: 0xffffff8008080000
[+] layout kimg: 0x0,0x269280c, kpimg: 0x2693000,0x2c100, extra: 0x26bf100,0x80, end: 0x26bf180, start: 0x2f2a000
[+] kpimg version: c02
[+] kpimg compile time: 14:48:49 Nov 11 2025
[+] kpimg config: android, release
[+] tcp_init_sock: type: t, offset: 0xdcef6ce2
+ patch_rc=1
+ set +x
- Patch kernel error: 1
 Write patched boot.img failed
********
  1. zcat /proc/config.gz | grep -w CONFIG_KALLSYMS:
:/data/data/com.termux/files/home/ # zcat /proc/config.gz | grep -w CONFIG_KALLSYMS
CONFIG_KALLSYMS=y
Dominant language
C
Stars
1.6k
Forks
401
Avg merge
2d 14h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bmax121/KernelPatch

All issues in bmax121/KernelPatch

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.