Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Patch Failed (ZTE 8012N) (4.14.141+)

未关闭
#252 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 3 天内回复

@bmax121 已经在做这个了。

开始于 2026年3月17日。

评估

这个 Issue 还没有评估数据。

描述

  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
主要语言
C
星标
1.6k
派生
395
平均合并
3 天 23 小时
30 天内合并 PR
7

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bmax121/KernelPatch 的其他 Issue

查看 bmax121/KernelPatch 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。