The quiter you become,the more you are able to hear!

Linux 内核编译常见错误

Author: geneblue

Blog: https://geneblue.github.io/

以下列出内核编译过程出现的一些错误和解决

warning: the frame size of 1040 bytes is larger than 1024 bytes

在编译内核模块驱动时,如果出现如下警告信息:

1
warning: the frame size of 1040 bytes is larger than 1024 bytes

主要是因为内核中设置了堆栈报警大小,其默认为1024bytes。我们主要将其修改为4096既可以消除告警信息。 make menuconfig -> kernel hacking -> warn for stack frames larger than

将其修改为4096(最好不要大过这个数值)

Found 2 section mismatch(es)

1
2
3
4
5
6
WARNING: vmlinux.o(.data+0x74f4): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_linear_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

将 function mpm_irq_domain_linear_size() 前的 __init 去掉

unknown CPU architecture

更换 gcc ,在 msm-3.4 使用 gcc 4.7