bmax121/KernelPatch

Patch Failed (Redmi Note 10 Pro 'chopin') (4.14.186)

CC0126 opened this issue · 2 comments

CC0126 commented

The following two information are what I need to fix the problem

  1. Your kernel image. boot.img is too big, you can use 'magiskboot unpack boot.img' to get kernel image (which named 'kernel' after unpack)

!!!This is a 7zip file and you should rename it to kernel.7z and open it!!!

kernel.7z.zip

  1. The real symbol informations corresponding to your boot.img or kernel
    It can be obtained through the following two commands under root.
echo 1 > /proc/sys/kernel/kptr_restrict
cat /proc/kallsyms

!!!This is a 7zip file and you should rename it to kallsyms.7z and open it!!!

kallsyms.7z.zip

Redmi Note 10 Pro named as 'chopin'. A MTK cpu device which has version 4.14.186 kernel.
kernel config is here:

CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set
# CONFIG_KALLSYMS_BASE_RELATIVE is not set

Screenshot_2024-02-15-00-20-55-071_me bmax apatch

I hold Note 10 also. Now with the latest Apatch version it is successful to generate a boot.img, but I encountered bootloop after flashing it. Maybe the same problem with the dm-verify? Mediatek doesnt allow dmverify being disabled.

Here are the same problem solved by magisk community : (topjohnwu/Magisk#4964)