Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch Failed (motorola edge 20 pro) (4.19.157-perf+) #148

Open
Galuis opened this issue Dec 3, 2024 · 0 comments
Open

Patch Failed (motorola edge 20 pro) (4.19.157-perf+) #148

Galuis opened this issue Dec 3, 2024 · 0 comments
Assignees

Comments

@Galuis
Copy link

Galuis commented Dec 3, 2024

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)

boot.img from LineageOS
boot.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

symbols.txt

  1. Other information

Apatch Manager: (10763-244-g68e6ead, 11007), KPatch: 0.11.1, APatch: 11007

KernelPatch output:

****************************
****************************
 APatch Boot Image Patcher
****************************
- Patching kernel
+ ./kptools -p -i kernel.ori -S testonce0 -k kpimg -o kernel
Segmentation fault
+ patch_rc=139
+ set +x
- Patch kernel error: 139
 Write patched boot.img failed
****************************

The patch error occurred in the latest build of the LineageOS image, and the previous two versions(at least) did not have this problem. See lineage-21.0-20241202-nightly changelog.

Tr33NewBee added a commit to Tr33NewBee/KernelPatch that referenced this issue Dec 19, 2024
Tr33NewBee added a commit to Tr33NewBee/KernelPatch that referenced this issue Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants