Bootloop
My device start bootloop when every I tried to install it the module get flash but whenever inside boot patching start and after completing I restart to get active in kpm after restarting it continuously bootloop
to install
Me to same issue On Samsung A73 5g 5.4 kernel Apatch works fine
Me to same issue On oneplus ace 2v 5.10 kernel Apatch works fine
to install
Me to same issue On Samsung A73 5g 5.4 kernel Apatch works fine
I have the same situation. As only I reboot after patching/flashing by KPatch-Next-Module 0.01 (kpimg 0.13.5) I get early bootloop. Flashing previous boot image brings phone back to the working condition.
My device: Samsung A52s (SM-A528B) FW A528BXXS5EWK1 Android 13 Kernel 5.4.210 Magisk (30.7) installed and works OK for years Zygisk and LSPosed installed
Here is the log of patching
`=============
No module found
System Default
Flash to Device
-
Backing boot.img
-
Patching kernel
- kptools -p -i kernel.ori -k kpimg -o kernel
[+] kernel image_size: 0x02e7a200
[+] kernel uefi header: true
[+] kernel load_offset: 0x00080000
[+] kernel kernel_size: 0x033d3000
[+] kernel page_shift: 12
[+] new kernel image ...
[+] linux_banner 1: Linux version 5.4.210-qgki-27101688-abA528BXXS5EWK1 (dpi@SWDK6117) (Android (6877366 based on r383902b1) clang version 11.0.2 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79), LLD 11.0.2 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79)) #1 SMP PREEMPT Fri Nov 3 13:45:16 KST 2023
[+] linux_banner offset: 0x2080038
[+] linux_banner 2: Linux version 5.4.210-qgki-27101688-abA528BXXS5EWK1 (dpi@SWDK6117) (Android (6877366 based on r383902b1) clang version 11.0.2 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79), LLD 11.0.2 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79)) #1 SMP PREEMPT Fri Nov 3 13:45:16 KST 2023
[+] linux_banner offset: 0x240c504
[+] kernel version major: 5, minor: 4, patch: 210
[+] kallsyms_token_table offset: 0x01fb5cd0
[+] endian: little
[+] kallsyms_token_index offset: 0x01fb5ff8
[+] arm64 relocation kernel_va: 0xffffffc010000000
- patch_rc=0
[+] arm64 relocation table range: [0x02878b58, 0x02b8a300), count: 0x00020ba7
[?] bad rela offset: 0xffffffc012e7b1d0
- set +x
[+] kallsyms_markers range: [0x01fb5130, 0x01fb5ccc), count: 0x000002e6
[+] approximate kallsyms_offsets range: [0x01afc4dc, 0x01bb6074) count: 0x0002e6e6
[+] kallsyms_names offset: 0x01bb6088
[+] kallsyms_num_syms offset: 0x01bb6080, value: 0x0002e6e5
[+] names table linux_banner index: 0x0001b458
[+] linux_banner index: 1
[+] kallsyms_offsets offset: 0x01afc4e0
[+] pid_vnr: type: T, offset: 0x002c0528
[+] pid_vnr verfied sp_el0, insn: 0xd5384108
[+] layout kimg: 0x0,0x2e7a200, kpimg: 0x2e7b000,0x2bf30, extra: 0x2ea6f30,0x80, end: 0x2ea6fb0, start: 0x33d3000
[+] kpimg version: d05
[+] kpimg compile time: 16:00:46 Jan 20 2026
[+] kpimg config: linux, release
[+] tcp_init_sock: type: T, offset: 0x0148c6e8
[+] no first pac instruction found
[+] map_start: 0x148c6e0, max_size: 0x800
[+] tcp_init_sock: type: T, offset: 0x0148c6e8
[+] Synced NOP modifications from kallsym_kimg to output file (offset: 0x148c6e8, size: 0x1000)
[+] kallsyms_lookup_name: type: T, offset: 0x003793f0
[+] printk: type: T, offset: 0x00321e20
[+] memblock_reserve: type: T, offset: 0x004a68f8
[+] memblock_free: type: T, offset: 0x004a685c
[+] memblock_mark_nomap: type: T, offset: 0x004a6bac
[+] memblock_phys_alloc_try_nid: type: T, offset: 0x02715494
[?] no symbol: memblock_virt_alloc_try_nid
[+] memblock_alloc_try_nid: type: T, offset: 0x02715624
[+] panic: type: T, offset: 0x00292ad4
[+] rest_init: type: T, offset: 0x01723994
[?] no symbol: kernel_init
[+] kernel_init -> kernel_init$cb3a170333fd7009bdedf7f60b4ea384: type: t, offset: 0x01723a68
[?] no symbol: report_cfi_failure
[?] no symbol: __cfi_slowpath_diag
[+] __cfi_slowpath: type: T, offset: 0x0041e5d8
[+] copy_process: type: t, offset: 0x0028f514
[+] avc_denied: type: t, offset: 0x007241d4
[+] slow_avc_audit: type: T, offset: 0x00723278
[+] input_handle_event: type: t, offset: 0x00ca1700
[+] paging_init: type: T, offset: 0x026fb744
[+] patch done: kernel
-
Repacking boot image
-
Flashing new boot image
-
Successfully Flashed!
=============`