[英]Can I use Linux kernel image even after this build failure
我是Linux内核的新手,并试图构建我的第一个内核映像,我是从i686 Architecture的3.4.28 Linux内核构建32位的。
经过一个半小时的构建过程,出现以下错误
BUILD arcarch/x86/boot/compressedh/x86/boot/bzImage
Setup is 16540 bytes (padded to 16896 bytes).
System is 4667 kB
CRC c2376a1f
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 3508 modules
ERROR: "__sync_fetch_and_and_4" [drivers/staging/line6/line6usb.ko] undefined!
ERROR: "__sync_fetch_and_or_4" [drivers/staging/line6/line6usb.ko] undefined!
WARNING: modpost: Found 28 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
但是,如果我去查找“ arch / x86 / boot / compressed”目录,则会发现带有ELF标头的vmlinux.bin映像。
我想知道我是否可以将此vmlinux二进制文件用于我的目的,或者是使该二进制文件完全起作用所需的完整成功构建。
只要不依赖内核模块line6usb.ko
或之后构建的任何模块,您就可以了。
我的答案也与JimR相同; 内核模块line6usb.ko
并不是很重要的模块。 首先,首先运行 mrproper
然后在make menuconfig
之后禁用该模块。 在menuconfig
,在驱动程序分级中找到驱动程序并将其禁用。 稍后再次交叉编译内核。
在内核配置中禁用该模块。
通过这样选择
设备驱动程序 - -
staging drivers
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.