Linux网卡as4.2 编译安装及配置准备
[日期:2008-03-28]
来源:Linux公社
作者:Linux整理
[字体:大 中 小]
确定make gcc kernel-devel包必须安装,没安装的话需要手动安装
查看是否安装方法
rpm -aq|gcc
rpm -aq|make
rpm -aq|kernel-devel
解压
[root@mail /]# tar -zxvf e1000-7.6.9.tar.gz
e1000-7.6.9/
e1000-7.6.9/src/
e1000-7.6.9/src/Makefile
e1000-7.6.9/src/e1000.h
e1000-7.6.9/src/e1000_80003es2lan.c
e1000-7.6.9/src/e1000_80003es2lan.h
e1000-7.6.9/src/e1000_82540.c
e1000-7.6.9/src/e1000_82541.c
e1000-7.6.9/src/e1000_82541.h
e1000-7.6.9/src/e1000_82542.c
e1000-7.6.9/src/e1000_82543.c
e1000-7.6.9/src/e1000_82543.h
e1000-7.6.9/src/e1000_82571.c
e1000-7.6.9/src/e1000_82571.h
e1000-7.6.9/src/e1000_api.c
e1000-7.6.9/src/e1000_api.h
e1000-7.6.9/src/e1000_defines.h
e1000-7.6.9/src/e1000_ethtool.c
e1000-7.6.9/src/e1000_hw.h
e1000-7.6.9/src/e1000_ich8lan.c
e1000-7.6.9/src/e1000_ich8lan.h
e1000-7.6.9/src/e1000_mac.c
e1000-7.6.9/src/e1000_mac.h
e1000-7.6.9/src/e1000_main.c
e1000-7.6.9/src/e1000_manage.c
e1000-7.6.9/src/e1000_manage.h
e1000-7.6.9/src/e1000_nvm.c
e1000-7.6.9/src/e1000_nvm.h
e1000-7.6.9/src/e1000_osdep.h
e1000-7.6.9/src/e1000_param.c
e1000-7.6.9/src/e1000_phy.c
e1000-7.6.9/src/e1000_phy.h
e1000-7.6.9/src/e1000_regs.h
e1000-7.6.9/src/kcompat.c
e1000-7.6.9/src/kcompat.h
e1000-7.6.9/src/kcompat_ethtool.c
e1000-7.6.9/COPYING
e1000-7.6.9/README
e1000-7.6.9/ldistrib.txt
e1000-7.6.9/pci.updates
e1000-7.6.9/e1000.spec
e1000-7.6.9/e1000.7
e1000-7.6.9/SUMS
[root@mail /]# cd e1000-7.6.9/src/
编译
[root@mail src]# make
make -C /lib/modules/2.6.18-8.el5xen/build SUBDIRS=/igb-1.0.1/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-xen-i686'
CC [M] /igb-1.0.1/src/igb_main.o
CC [M] /igb-1.0.1/src/e1000_82575.o
CC [M] /igb-1.0.1/src/e1000_mac.o
CC [M] /igb-1.0.1/src/e1000_nvm.o
CC [M] /igb-1.0.1/src/e1000_phy.o
CC [M] /igb-1.0.1/src/e1000_manage.o
CC [M] /igb-1.0.1/src/igb_param.o
CC [M] /igb-1.0.1/src/igb_ethtool.o
CC [M] /igb-1.0.1/src/kcompat.o
CC [M] /igb-1.0.1/src/e1000_api.o
LD [M] /igb-1.0.1/src/igb.o
Building modules, stage 2.
MODPOST
CC /igb-1.0.1/src/igb.mod.o
LD [M] /igb-1.0.1/src/igb.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-xen-i686'
[root@mail src]# cd /e1000-7.6.9/src/
[root@mail src]# make
make -C /lib/modules/2.6.18-8.el5xen/build SUBDIRS=/e1000-7.6.9/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-xen-i686'
CC [M] /e1000-7.6.9/src/e1000_main.o
CC [M] /e1000-7.6.9/src/e1000_82540.o
CC [M] /e1000-7.6.9/src/e1000_82542.o
CC [M] /e1000-7.6.9/src/e1000_82571.o
CC [M] /e1000-7.6.9/src/e1000_82541.o
CC [M] /e1000-7.6.9/src/e1000_82543.o
CC [M] /e1000-7.6.9/src/e1000_ich8lan.o
CC [M] /e1000-7.6.9/src/e1000_80003es2lan.o
CC [M] /e1000-7.6.9/src/e1000_mac.o
CC [M] /e1000-7.6.9/src/e1000_nvm.o
CC [M] /e1000-7.6.9/src/e1000_phy.o
CC [M] /e1000-7.6.9/src/e1000_manage.o
CC [M] /e1000-7.6.9/src/e1000_param.o
CC [M] /e1000-7.6.9/src/e1000_ethtool.o
CC [M] /e1000-7.6.9/src/kcompat.o
CC [M] /e1000-7.6.9/src/e1000_api.o
LD [M] /e1000-7.6.9/src/e1000.o
Building modules, stage 2.
MODPOST
CC /e1000-7.6.9/src/e1000.mod.o
LD [M] /e1000-7.6.9/src/e1000.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-xen-i686'
安装
[root@mail src]# make install
[root@mail src]# kudzu
后会出现网卡配置界面