KernelPatch
KernelPatch copied to clipboard
Patch Failed redmi10x 5G(xiaomi_atom)(4.14.186)
The following two information are what I need to fix the problem
- Your kernel image. boot.img is too big, you can use 'magiskboot unpack boot.img' to get kernel image (which named 'kernel' after unpack) Uploading boot.zip…
Upload to here or file download path
APatch Boot Image Patcher
- Patching kernel
- ./kptools -p -i kernel.ori -S Ch2001520@ -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: 0x02812000 [+] kernel uefi header: false [+] kernel load_offset: 0x00080000 [+] kernel kernel_size: 0x0331a000 [+] kernel page_shift: 12 [+] new kernel image ... [+] linux_banner 1: Linux version 4.14.186-perf-00253-g243e21b9a733 (builder@non-pangu-pod-wbr8t) (Android (6443078 based on r383902) clang version 11.0.1 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79), LLD 11.0.1 (/buildbot/tmp/tmp6_m7QH b397f81060ce6d701042b782172ed13bee898b79)) #1 SMP PREEMPT Fri Jun 30 16:11:57 CST 2023 [+] linux_banner offset: 0x199c467 [+] kernel version major: 4, minor: 14, patch: 186 [+] kallsyms_token_table offset: 0x0170d400 [+] endian: little [+] kallsyms_token_index offset: 0x0170d800 [+] arm64 relocation kernel_va: 0xffffff8008081000 [+] arm64 relocation table range: [0x0209d7d8, 0x025efa48), count: 0x00038c1a [+] apply 0x00038c19 relocation entries [+] kallsyms_markers range: [0x0170c800, 0x0170d348), count: 0x00000169 [?] find approximate kallsyms_offsets error [+] approximate kallsyms_addresses range: [0x0141b6c8, 0x014ce6a8) count: 0x000165fc [?] mismatch relo applied, subsequent operations may be undefined [+] kallsyms_names offset: 0x014cf800 [+] kallsyms_num_syms offset: 0x00000000, value: 0x00000000 [?] no linux_banner, CONFIG_KALLSYMS_ALL=n [+] names table vector index: 0x00000012, pid_vnr index: 0x00001158 [+] pid_vnr verfied sp, insn: 0x910183ff [+] vectors index: 18, offset: 0x0050b000 [+] pid_vnr offset: 0x00687df4 [+] kallsyms_addresses offset: 0x01435f90 [+] kernel base address: 0xffffff80080a1f00 [+] layout kimg: 0x0,0x2812000, kpimg: 0x2812000,0x2c110, extra: 0x283e110,0x80, end: 0x283e190, start: 0x331a000 [+] kpimg version: b01 [+] kpimg compile time: 01:18:26 Oct 7 2024 [+] kpimg config: android, release [?] no symbol: tcp_init_sock
- patch_rc=1
- set +x
- Patch kernel error: 1 Write patched boot.img failed
DUDE I HAVE THE SAME ISSUE
我也是这个问题,红米k40游戏增强版,内核跟你一样