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 kernel error: 1 (symbol.c:77/fillin_map_symbol(); no symbol memblock_alloc+ patch_rc=1) #909

Open
5 tasks done
JMVS opened this issue Feb 3, 2025 · 1 comment
Open
5 tasks done
Labels
bug Something isn't working

Comments

@JMVS
Copy link

JMVS commented Feb 3, 2025

Please check before submitting an issue/在提交 issue 前请检查

  • I have searched the issues and haven't found anything relevant/我已经搜索了 issues 列表,没有发现于本问题相关内容
  • If patch failed, root failed, or device unable to boot after flashing the new boot.img. Please goto KernelPatch/修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
  • I will upload bugreport file in APatch Manager - Settings - Report log/我会上传 bureport 文件从 APatch 管理器 - 设置 - 发送日志
  • I know how to reproduce the issue which may not be specific to my device/我知道如何重新复现这个问题

Version requirement/版本要求

  • I am using latest CI version of APatch/我正在使用最新 CI 版本

Describe the bug/描述 bug

Trying to patch image causes error "[-]/home/runner/work/Kernel Patch/KernelPatch/tools/symbol.c:77/fillin_map_symbol(); no symbol memblock_alloc+ patch_rc=1" (see full log below). Device info attached.
basic.txt

Output of zcat /proc/config.gz | grep -w CONFIG_KALLSYMS
CONFIG_KALLSYMS=y

Reproduce method/复现方法

  1. Go to
    Image
  2. Select a boot image to Patch
  3. Select boot.img extracted from original file
  4. Set a SuperKey
  5. Click Start

Expected behavior/预期行为

Patched boot.img

Actual behaviour /实际行为

No patched boot.img

Error: [-]/home/runner/work/Kernel Patch/KernelPatch/tools/symbol.c:77/fillin_map_symbol(); no symbol memblock_alloc+ patch_rc=1

Screenshots/截图

No response

Logs/日志

APatch Boot Image Patcher.log

Device Name/设备名称

POCO M3 Pro 5G

OS Version/系统版本

MIUI Global 14.0.6 (Android 13)

APatch Version/APatch 版本

10762 (shown on title) 10763 (shown on description and file)

Kernel Version/内核版本

#1 SMP PREEMPT Tue Sep 19 12:46:50 UTC 2023

KernelPatch Version/KernelPatch 版本

N/A

Additional context/其他信息

DEVICE: camellian
SELinux: Enforcing
KernelRelease: 4.14.186-perf-gf8d872e9279c
KernelVersion: #1 SMP PREEMPT Tue Sep 19 12:46:50 UTC 2023

@JMVS JMVS added the bug Something isn't working label Feb 3, 2025
@JMVS
Copy link
Author

JMVS commented Feb 4, 2025

Upon reading the README.md I see that I need not only CONFIG_KALLSYMS=y but also CONFIG_KALLSYMS_ALL=y. This is not what it says in the installation guide. Can this be the cause of the error?

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant