- 论坛徽章:
- 0
|
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 |
|