标题:centos 安装Broadcom网卡驱动 出处:沧海一粟 时间:Sat, 04 Jun 2011 12:44:56 +0000 作者:jed 地址:http://www.dzhope.com/post/820/ 内容: 要求安装ORACLE CVS SVN FTP JDK WEBSphere.想来想去,用那个版本比较好?正好以前玩了一段时间的CentOS。就用它了。安装过程一切正常,等到提示重新启动,全部安装完成。 开机,进系统,设定网络,用ifconfig查看只发现了LO。其它都没有。想有可能网卡驱动没有安装。查看网卡的硬件版本Broadcom 57785.go to 官网。查找驱动。 驱动下载网址为:http://www.broadcom.com/support/ethernet_nic/netlink_k57.php 然后复制到U盘。到Centos进行U盘挂载文件解压。 mount /dev/sdb1 /mnt cd /mnt unzip linux-3.110g.zip 解压完成以后进入相应目录,查看README文件。说明文件提供二种安装方法,第一种 RPM包,第二种 源代码安装。我用第一种安装成功,就没有进行第二种方法的测试(安装方法我会粘贴到最后。) rpm -ivh tg3-3.116j-1.src.rpm #完成后进入安装目录 cd /usr/scr/redhat #目录下共计五个子目录:BUILD RPMS SOURCES SPECS SRPMS rpm -bb SPECS/tg3.spec or rpmbuild -bb SPECS/tg3.spec #我用些命令 然后到进入RPMS下的i386目录你ls查看目录会发现有新RPM文件生成 rpm -ivh tg3-3.116j-1.i386.rpm 分别查看二个文件目录看是否有tg3.o or tg3.ko文件。 /lib/modules//kernel/drivers/net/tg3.o #为你的内核目录。 /lib/modules//kernel/drivers/net/tg3.o #为你的内核目录。 加载模块 modprobe tg3 service network restart #添加网卡完成。 第二种安装方法 1. Create a directory and extract the files: tar xvzf tg3-.tar.gz 2. Build the driver tg3.o (or tg3.ko) as a loadable module for the running kernel: cd src make 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: make KVER= where in the form of 2.x.y-z is the version of another kernel that is installed on the system. 3. Test the driver by loading it: insmod tg3.o or insmod tg3.ko (on 2.6.x kernels) or insmod tg3 4. Install the driver: make install 到此结束。 Generated by Bo-blog 2.1.1 Release