从源代码安装内核时出错

从源代码安装内核时出错

当我尝试编译内核版本 3.17.0-rc5 时出现以下错误:

Error! Bad return status for module build on kernel: 3.17.0-rc5+ (x86_64)

为什么我会收到此错误以及它意味着什么?

完整输出:

sh ./arch/x86/boot/install.sh 3.17.0-rc5+ arch/x86/boot/bzImage \
        System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.17.0-rc5+ /boot/vmlinuz-3.17.0-rc5+
run-parts: executing /etc/kernel/postinst.d/dkms 3.17.0-rc5+ /boot/vmlinuz-3.17.0-rc5+
Error! Bad return status for module build on kernel: 3.17.0-rc5+ (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.141+bdcom/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.17.0-rc5+ /boot/vmlinuz-3.17.0-rc5+
update-initramfs: Generating /boot/initrd.img-3.17.0-rc5+
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.17.0-rc5+ /boot/vmlinuz-3.17.0-rc5+
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.17.0-rc5+ /boot/vmlinuz-3.17.0-rc5+
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.17.0-rc5+ /boot/vmlinuz-3.17.0-rc5+
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.17.0-rc5+
Found initrd image: /boot/initrd.img-3.17.0-rc5+
Found linux image: /boot/vmlinuz-3.17.0-rc5+.old
Found initrd image: /boot/initrd.img-3.17.0-rc5+
Found linux image: /boot/vmlinuz-3.13.0-32-generic
Found initrd image: /boot/initrd.img-3.13.0-32-generic
Found Mac OS X on /dev/sda2
done

我正在按照kernelnewbies.org

make
make -j16
sudo make modules_install 
sudo make install

答案1

你实际上并没有问一个问题,我认为你的问题是“为什么我会收到这个错误以及它意味着什么?”。

问题不在于内核编译过程,该过程似乎进展顺利。相反,当 dkms(第三方驱动程序管理器)尝试为新内核编译您的 wifi 驱动程序时,会发生错误。编译失败,很可能是因为驱动程序与您正在编译的内核版本不兼容。

相关内容