免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1405 | 回复: 0
打印 上一主题 下一主题

Linux AS4 网卡驱动安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-21 12:19 |只看该作者 |倒序浏览
Linux AS
4装好了之后,可能是由于机子是lenovo的,我不知道系统本身有没有自带网卡驱动,反正无法上网.因为在配置的时候,网络硬件哪里只有
broadcom公司的一个选项.而且配置都没有成功.所以知道到官方网站上面找到linux boradcom netlink的网卡驱动.下载地址:
http://zh-cn.broadcom.com/support/ethernet_nic/downloaddrivers.php
下载之后,我是把他放在tmp文件夹下面(不知道正确与否),启动终端:
The following are general guidelines for installing the driver.

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

See RPM instructions above for the location of the installed driver.

5. To configure network protocol and address, refer to various Linux
documentations.
以上是官方网上介绍的
下面是我的安装过程
[root@localhost /]# cd tmp
[root@localhost tmp]# ls
gconfd-root     mapping-root  ssh-kklIqf3374       xses-root.hcQogH
keyring-SEmkgj  orbit-root    tg3-3.71b-1.src.rpm
[root@localhost tmp]# tar xvzf tg3-3.71b.tar.gz
tg3-3.71b/tg3.4
tg3-3.71b/tg3.c
tg3-3.71b/tg3.h
tg3-3.71b/Makefile
tg3-3.71b/ChangeLog
tg3-3.71b/README.TXT
tg3-3.71b/LICENSE
[root@localhost tmp]# cd tg3-3.71b
[root@localhost tg3-3.71b]# ls
ChangeLog  LICENSE  Makefile  README.TXT  tg3.4  tg3.c  tg3.h
[root@localhost tg3-3.71b]# cd /
[root@localhost /]# ls
bin   dev
home   
lib         media
mnt  proc  sbin     srv
tftpboot  usr
boot  etc  initrd
lost+found  misc   opt  root  selinux
sys  tmp       var
[root@localhost /]# cd tmp
[root@localhost tmp]# ls
gconfd-root     orbit-root      tg3-3.71b-1.src.rpm
keyring-SEmkgj  ssh-kklIqf3374  tg3-3.71b.tar.gz
mapping-root    tg3-3.71b       xses-root.hcQogH
[root@localhost tmp]# cd tg3-3.71b
[root@localhost tg3-3.71b]# ls
ChangeLog  LICENSE  Makefile  README.TXT  tg3.4  tg3.c  tg3.h
[root@localhost tg3-3.71b]# make
make -C /lib/modules/2.6.9-22.ELsmp/build SUBDIRS=/tmp/tg3-3.71b modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
  CC [M]  /tmp/tg3-3.71b/tg3.o
  Building modules, stage 2.
  MODPOST
Warning: could not find versions for .tmp_versions/tg3.mod
  CC      /tmp/tg3-3.71b/tg3.mod.o
  LD [M]  /tmp/tg3-3.71b/tg3.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
[root@localhost tg3-3.71b]# make kver=2.6.9.22.EL-smp-i686
make -C /lib/modules/2.6.9-22.ELsmp/build SUBDIRS=/tmp/tg3-3.71b modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
  Building modules, stage 2.
  MODPOST
Warning: could not find versions for .tmp_versions/tg3.mod
make[1]: Leaving directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
[root@localhost tg3-3.71b]# insmod tg3.0
insmod: can't read 'tg3.0': No such file or directory
[root@localhost tg3-3.71b]# insmod tg3.ko
[root@localhost tg3-3.71b]# insmod tg3.ko
insmod: error inserting 'tg3.ko': -1 File exists
[root@localhost tg3-3.71b]# insmod tg3.ko
insmod: error inserting 'tg3.ko': -1 File exists
[root@localhost tg3-3.71b]# make install
make -C /lib/modules/2.6.9-22.ELsmp/build SUBDIRS=/tmp/tg3-3.71b modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
  Building modules, stage 2.
  MODPOST
Warning: could not find versions for .tmp_versions/tg3.mod
make[1]: Leaving directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
gzip -c tg3.4 > tg3.4.gz
mkdir -p /lib/modules/2.6.9-22.ELsmp/kernel/drivers/net;
install -m 444 tg3.ko /lib/modules/2.6.9-22.ELsmp/kernel/drivers/net;
install -m 444 tg3.4.gz /usr/share/man/man4;\
安装完成之后就可以进行网络配置,配置好了硬件以及ip之后,别忘记了DNS配置.
最后激活.就可以了.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/21684/showart_364560.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP