ARM64 加载内核模块报 unsupported RELA relocation 错误

6710阅读 0评论2018-07-22 deep_pro
分类:嵌入式

ARM64 加载内核模块报  unsupported RELA relocation 错误,看起来很多人都遇到了。
搜了一下没有管用的方法。

这个问题是因为一些内核补丁导致的。检查内核配置,去掉跟当前cpu不一致的补丁。
例如使用的是Cortex A72 的处理器的话,那么就把不需要的补丁都去掉。
尤其是这个补丁,是添乱来了
config ARM64_ERRATUM_843419  
bool "Cortex-A53: 843419: A load or store might access an incorrect address"  
default y  select ARM64_MODULE_PLTS if MODULES  
help    This option links the kernel with '--fix-cortex-a53-843419' and    
enables PLT support to replace certain ADRP instructions, which can   
 cause subsequent memory accesses to use an incorrect address on   
 Cortex-A53 parts up to r0p4.


上一篇:锁屏汪v1.00
下一篇:bin2text V0.1版 二进制文件转文本工具