发布时间:2014-09-05 16:58:41作者:知识屋
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
作者“小龙的空间”
linux一键安装web环境全攻略 在linux系统中怎么一键安装web环境方法
Linux网络基本网络配置方法介绍 如何配置Linux系统的网络方法
Linux下DNS服务器搭建详解 Linux下搭建DNS服务器和配置文件
对Linux进行详细的性能监控的方法 Linux 系统性能监控命令详解
linux系统root密码忘了怎么办 linux忘记root密码后找回密码的方法
Linux基本命令有哪些 Linux系统常用操作命令有哪些
Linux必学的网络操作命令 linux网络操作相关命令汇总
linux系统从入侵到提权的详细过程 linux入侵提权服务器方法技巧
linux系统怎么用命令切换用户登录 Linux切换用户的命令是什么
在linux中添加普通新用户登录 如何在Linux中添加一个新的用户
2012-07-10
CentOS 6.3安装(详细图解教程)
Linux怎么查看网卡驱动?Linux下查看网卡的驱动程序
centos修改主机名命令
Ubuntu或UbuntuKyKin14.04Unity桌面风格与Gnome桌面风格的切换
FEDORA 17中设置TIGERVNC远程访问
StartOS 5.0相关介绍,新型的Linux系统!
解决vSphere Client登录linux版vCenter失败
LINUX最新提权 Exploits Linux Kernel <= 2.6.37
nginx在网站中的7层转发功能