使用 checkinstall 构建英特尔 igb 驱动程序

使用 checkinstall 构建英特尔 igb 驱动程序

如何使用 checkinstall 正确编译最新的 Intel igb 驱动程序 (4.1.2)?当我尝试执行此操作时,出现以下错误:

*checkinstall -D
root@debian:~/igb-4.1.2/src# ========================= Installation results ===========================
-bash: =========================: command not found
root@debian:~/igb-4.1.2/src# make -C /lib/modules/3.2.0-4-amd64/build SUBDIRS=/root/igb-4.1.2/src modules
  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.
  CC [M]  /root/igb-4.1.2/src/igb_main.o
In file included from <command-line>:0:0:
/usr/src/linux-headers-3.2.0-4-common/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated.
make[4]: *** [/root/igb-4.1.2/src/igb_main.o] Error 1
make[3]: *** [_module_/root/igb-4.1.2/src] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-amd64'
make: *** [default] Error 2
****  Installation failed. Aborting package creation.
Cleaning up...OK*

那是什么??“Make install”工作正常,但我需要 .deb 包。有人能帮我解决这个问题吗?

我的规格:

uname -r
3.2.0-4-amd64


lsb_release -a
Distributor ID: Debian
Description:    Debian GNU/Linux 7.0 (wheezy)
Release:        7.0
Codename:       wheezy

答案1

你可能使用的是有缺陷的 checkinstall 版本。我也直接从官方 git 存储库克隆了有缺陷的版本:git clonehttp://checkinstall.izto.org/checkinstall.git 这个版本似乎以其他/奇怪/的方式处理 linux-headers 的 Makefile(似乎它试图编译整个内核)。

如果我使用来自 ubuntu 存储库的 checkinstall 版本,一切都会顺利...... http://launchpadlibrarian.net/133950593/checkinstall_1.6.2-4ubuntu1_amd64.deb

试一试 :-)

答案2

也许你可以更新你的内核头。

sudo apt-get install linux-headers-3.2.0-4-amd64

參考文獻:http://pkgs.org/debian-wheezy/debian-main-amd64/linux-headers-3.2.0-4-amd64_3.2.41-2_amd64.deb.html

相关内容