Redhat 企业版6安装驱动
[root@localhost Driver]# tar -xvzf ./tg3-3.116j.tar.gz
tg3-3.116j/
tg3-3.116j/makeflags.sh
tg3-3.116j/ChangeLog
tg3-3.116j/Makefile
tg3-3.116j/tg3_firmware.h
tg3-3.116j/tg3.c
tg3-3.116j/tg3.h
tg3-3.116j/tg3_vmware.c
tg3-3.116j/tg3_compat.h
tg3-3.116j/LICENSE
tg3-3.116j/tg3_compat2.h
tg3-3.116j/tg3.4
tg3-3.116j/tg3_vmware.h
tg3-3.116j/README.TXT
tg3-3.116j/esx_ioctl.h
[root@localhost Driver]# ls
ChangeLog README.TXT tg3-3.116j tg3-3.116j-1.src.rpm tg3-3.116j.tar.gz
[root@localhost Driver]# cd ./tg3-3.116j
[root@localhost tg3-3.116j]# ls
ChangeLog Makefile tg3.4 tg3_compat.h tg3_vmware.c
esx_ioctl.h makeflags.sh tg3.c tg3_firmware.h tg3_vmware.h
LICENSE README.TXT tg3_compat2.h tg3.h
[root@localhost tg3-3.116j]# make
sh makeflags.sh /lib/modules/2.6.32-71.el6.i686/source > tg3_flags.h
make -C /lib/modules/2.6.32-71.el6.i686/build SUBDIRS=/root/Server/Linux/Driver/tg3-3.116j modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-71.el6.i686'
CC [M] /root/Server/Linux/Driver/tg3-3.116j/tg3.o
Building modules, stage 2.
MODPOST 1 modules
CC /root/Server/Linux/Driver/tg3-3.116j/tg3.mod.o
LD [M] /root/Server/Linux/Driver/tg3-3.116j/tg3.ko.unsigned
NO SIGN [M] /root/Server/Linux/Driver/tg3-3.116j/tg3.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-71.el6.i686'
[root@localhost tg3-3.116j]# make KVER= 2.6.32-71.el6.i686 这步很重要
[root@localhost 2.6.32-71.el6.i686]# insmod /lib/modules/2.6.32-71.el6.i686/updates/tg3.ko
[root@localhost tg3-3.116j]# make install
make -C /lib/modules/2.6.32-71.el6.i686/build SUBDIRS=/root/Server/Linux/Driver/tg3-3.116j modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-71.el6.i686'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/2.6.32-71.el6.i686'
gzip -c tg3.4 > tg3.4.gz
mkdir -p //lib/modules/2.6.32-71.el6.i686/updates;
install -m 444 tg3.ko //lib/modules/2.6.32-71.el6.i686/updates;
install -m 444 tg3.4.gz /usr/share/man/man4;\
[root@localhost tg3-3.116j]# lsmod | grep tg3 查看模块
tg3 116521 0
下面是需要重新启动NetManager重启服务识别网卡,Redhat ES6 已经没有kudzu的命令了。
Redhat 企业版5 安装方法。
Installing Source RPM Package
=============================
The following are general guidelines for installing the driver.
1. Install the source RPM package:
rpm -ivh tg3-<version>.src.rpm
2. CD to the RPM path and build the binary driver for your kernel:
cd /usr/src/{redhat,OpenLinux,turbo,packages,rpm ..} 注意哈,RHEL6下面没有redhat命名的文件夹。
rpm -bb SPECS/tg3.spec
Note that the RPM path is different for different Linux distributions.
The driver will be compiled for the running kernel by default. To build
the driver for a kernel different than the running one, specify the
kernel by defining it in KVER:
rpmbuild -bb SPECS/tg3.spec --define "KVER <kernel version>"
where <kernel version> in the form of 2.x.y-z is the version of another
kernel that is installed on the system.
3. Install the newly built package (driver and man page):
rpm -ivh RPMS/<arch>/tg3-<version>.<arch>.rpm
<arch> is the architecture of the machine, e.g. i386:
rpm -ivh RPMS/i386/tg3-<version>.i386.rpm
作者“小龙的空间”