因为我的网卡驱动在suse10.3和fedora8都不能用,
我在装网卡驱动时,出现这样的问题:# make install
Makefile:106: *** Linux kernel source not configured - missing config.h。 停止。
请问谁知道这该怎么解决?谢谢!
文章评论
共有 3 条评论
jianzhifu 于 2008-01-23 12:02:55发表:
能不能再说的详细一些,多谢!
Edit your Makefile and replace config.h you see to autoconf.h (approx. at line 92 and 96)
2. Edit at.h and replace #include config.h to #include autoconf.h
3. Edit at_main.c and replace all CHECKSUM_HW to CHECKSUM_PARTIAL
这三步是怎么操作吗?
Beautlif 于 2008-01-23 11:06:18发表:
I love trouble !!
If you’re compiling ATL1 module with kernel after 2.6.18, the config.h is no longer there and you’ll receive an error message:
Makefile: Linux kernel source not configured -- missing config.h Stop.
Since include/linux/config.h is deprecated, one is suggested to use include/linux/autoconf.h.
No big deal, let’s do it.
1. Edit your Makefile and replace config.h you see to autoconf.h (approx. at line 92 and 96)
2. Edit at.h and replace #include config.h to #include autoconf.h
3. Edit at_main.c and replace all CHECKSUM_HW to CHECKSUM_PARTIAL
now make; make install; insmod atl1.ko;
and enjoy your network interface. Note that if you encounter weird traffic problem like extremely slow uploading traffic through that interface. Try this way
jianzhifu 于 2008-01-23 12:02:55发表:
能不能再说的详细一些,多谢!
Edit your Makefile and replace config.h you see to autoconf.h (approx. at line 92 and 96)
2. Edit at.h and replace #include config.h to #include autoconf.h
3. Edit at_main.c and replace all CHECKSUM_HW to CHECKSUM_PARTIAL
这三步是怎么操作吗?
Beautlif 于 2008-01-23 11:06:18发表:
I love trouble !!
If you’re compiling ATL1 module with kernel after 2.6.18, the config.h is no longer there and you’ll receive an error message:
Makefile: Linux kernel source not configured -- missing config.h Stop.
Since include/linux/config.h is deprecated, one is suggested to use include/linux/autoconf.h.
No big deal, let’s do it.
1. Edit your Makefile and replace config.h you see to autoconf.h (approx. at line 92 and 96)
2. Edit at.h and replace #include config.h to #include autoconf.h
3. Edit at_main.c and replace all CHECKSUM_HW to CHECKSUM_PARTIAL
now make; make install; insmod atl1.ko;
and enjoy your network interface. Note that if you encounter weird traffic problem like extremely slow uploading traffic through that interface. Try this way
#ethtool -K eth0 tso off
hong001 于 2008-01-23 09:16:00发表:
谢谢分享,我正需要