新手请教。。pro/1000 pm驱动安装操作

为当前最终发行版之前的所有版本提供支持
回复
pan8609
帖子: 1
注册时间: 2006-05-09 4:07
送出感谢: 0
接收感谢: 0

新手请教。。pro/1000 pm驱动安装操作

#1

帖子 pan8609 » 2006-05-09 4:25

我从sourceforge下了e1000-7.0.38,解开后在src下运行
make install
出现以下信息
pan@ubuntu-pan:~/e1000-7.0.38/src$ make install
make -C /lib/modules/2.6.12-9-386/build SUBDIRS=/home/pan/e1000-7.0.38/src modules
/usr/src/linux-headers-2.6.12-9-386/scripts/gcc-version.sh: line 11: gcc-3.4: command not found
/usr/src/linux-headers-2.6.12-9-386/scripts/gcc-version.sh: line 12: gcc-3.4: command not found
make[1]: gcc-3.4: Command not found
make[1]: Entering directory `/usr/src/linux-headers-2.6.12-9-386'
CC [M] /home/pan/e1000-7.0.38/src/e1000_main.o
In file included from include/asm/system.h:5,
from include/asm/processor.h:18,
from include/asm/thread_info.h:17,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/pan/e1000-7.0.38/src/e1000.h:38,
from /home/pan/e1000-7.0.38/src/e1000_main.c:30:
include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory
In file included from include/asm/system.h:5,
from include/asm/processor.h:18,
from include/asm/thread_info.h:17,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/pan/e1000-7.0.38/src/e1000.h:38,
from /home/pan/e1000-7.0.38/src/e1000_main.c:30:
include/linux/kernel.h:94: error: syntax error before ‘va_list’
include/linux/kernel.h:95: warning: function declaration isn’t a prototype
include/linux/kernel.h:98: error: syntax error before ‘va_list’
include/linux/kernel.h:99: warning: function declaration isn’t a prototype
include/linux/kernel.h:102: error: syntax error before ‘va_list’
include/linux/kernel.h:103: warning: function declaration isn’t a prototype
include/linux/kernel.h:107: error: syntax error before ‘va_list’
include/linux/kernel.h:108: warning: function declaration isn’t a prototype
include/linux/kernel.h:119: error: syntax error before ‘va_list’
include/linux/kernel.h:120: warning: function declaration isn’t a prototype
In file included from include/linux/if_ether.h:107,
from include/linux/netdevice.h:29,
from /home/pan/e1000-7.0.38/src/e1000.h:47,
from /home/pan/e1000-7.0.38/src/e1000_main.c:30:
include/linux/skbuff.h: In function ‘skb_add_data’:
include/linux/skbuff.h:1067: warning: pointer targets in passing argument 1 of ‘csum_and_copy_from_user’ differ in signedness
In file included from include/linux/ip.h:84,
from /home/pan/e1000-7.0.38/src/e1000.h:62,
from /home/pan/e1000-7.0.38/src/e1000_main.c:30:
include/net/sock.h: In function ‘skb_copy_to_page’:
include/net/sock.h:992: warning: pointer targets in passing argument 1 of ‘csum_and_copy_from_user’ differ in signedness
/home/pan/e1000-7.0.38/src/e1000_main.c: In function ‘e1000_set_mac’:
/home/pan/e1000-7.0.38/src/e1000_main.c:2122: warning: pointer targets in passing argument 1 of ‘is_valid_ether_addr’ differ in signedness
make[2]: *** [/home/pan/e1000-7.0.38/src/e1000_main.o] Error 1
make[1]: *** [_module_/home/pan/e1000-7.0.38/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.12-9-386'
make: *** [default] Error 2
pan@ubuntu-pan:~/e1000-7.0.38/src$
不知道是否正常,好像是要gcc3.4,但是我现在联网都没有要怎么才能装?

但/lib/modules/version/kernel/drivers/net/下确实已经有e1000目录,里面有e1000.ko文件
然后在/etc/modules 里面加了:
alias eth0 e1000
运行sudo modprobe e1000屏幕无任何提示(迷惘……)


重器以后发现ifconfig -a显示的多了一个:
sit0 Link encap: IPv6-in-IPv4 (不知道是什么)??
不知道我的操作有没有错误?希望各位指导,不甚感激~~
回复

回到 “老旧版本支持”