[英]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.