Chinaunix首页 | 论坛 | 博客
  • 博客访问: 144990
  • 博文数量: 10
  • 博客积分: 1883
  • 博客等级: 上尉
  • 技术积分: 115
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-01 11:26
文章分类
文章存档

2012年(2)

2011年(4)

2010年(3)

2009年(1)

分类: LINUX

2011-05-09 00:03:46

刚装了RedHat 5.1 server 版发现没有找到网卡驱动。只好自己动手编译安装一个了。
1. 到windows平台查看网卡是用的 Marvell 88E8056 PCI-E Gigabit Ethernet Controller

2. 到Marvell 官网下载驱动for Linux 的,注意:设置IE浏览器要弹出窗口。
install_v10.87.3.3.tar.bz2

3.查看内核版本
[root@localhost DriverInstall]# uname -a
Linux localhost.localdomain 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 athlon i386 GNU/Linux

4.安装驱动
[root@localhost ~]# cp /mnt/install_v10.87.3.3.tar.bz2 .
[root@localhost ~]# tar xvf install_v10.87.3.3.tar.bz2
[root@localhost ~]# cd DriverInstall/
[root@localhost DriverInstall]# ./install.sh
Installation script for sk98lin driver.
Version 10.87.3.3 (Feb-01-2011)
(C)Copyright 2003-2010 Marvell(R).
====================================================
Add to your trouble-report the logfile install.log
which is located in the  DriverInstall directory.
====================================================


1) installation       3) generate makefile
2) generate patch     4) exit
Choose your favorite installation method: 1

Please read this carefully!

This script will automatically compile and load the sk98lin
driver on your host system. Before performing both compilation
and loading, it is necessary to shutdown any device using the
sk98lin kernel module and to unload the old sk98lin kernel
module. This script will do this automatically per default.
 
Please plug a card into your machine. Without a card we aren't
able to check the full driver functionality.

Do you want proceed? (y/N) y
IMPORTANT INFORMATION!

We found an alternative driver for your Marvell product on this system.
The alternative driver is _NOT_ directly supported by Marvell and does not
include all features provided by your device. If you want to use the
sk98lin driver developed by Marvell, you may choose either to deactivate
or remove the alternative driver.

[PRESS ANY KEY FOR FURTHER INSTRUCTIONS]

Do nothing:
  - The sk98lin will be installed
  NOTE: It may happen that the alternative driver will be loaded on
  the next boot process. In this case the Marvell driver _WON'T_ be
  loaded.

Deactivate driver:
  - The alternative driver will be renamed to _skge.ko or _sky2.ko
  - All references in the /etc/modprobe.conf file will be changed to
    the sk98lin driver
  - The alternative driver will be unloaded
  - The sk98lin driver will be installed

Remove driver (recommended):
  - The alternative driver will be removed from your system
  - All references in the /etc/modprobe.conf file will be changed to
    the sk98lin driver
  - The alternative driver will be unloaded
  - The sk98lin driver will be installed


1) Do nothing
2) Deactivate diver
3) Remove driver
Action: 1






Create tmp dir (/tmp/Sk98IDalUVIXZBQaWIraBEGpk)                      [   OK   ]
Check user id (0)                                                    [   OK   ]
Check kernel version (2.6.18-53.el5)                                 [   OK   ]
Check kernel symbol file (/proc/kallsyms)                            [   OK   ]
Check kernel type (SMP)                                              [   OK   ]
Check number of CPUs (2)                                             [   OK   ]
Check architecture (found)                                           [   OK   ]
Set architecture (i386)                                              [   OK   ]
Check compiler (/usr/bin/gcc)                                        [   OK   ]
Check mcmodel flags (none)                                           [   OK   ]
Check module support (/sbin/insmod)                                  [   OK   ]
Check make (/usr/bin/make)                                           [   OK   ]
Check kernel gcc version (4.1.2) (Kernel:4.1.2 == gcc:4.1.2)         [   OK   ]
Check sk98lin driver availability (not loaded)                       [   OK   ]
Check kernel header files (/lib/modules/2.6.18-53.el5/source)        [   OK   ]
Check sources for .config file (/lib/modules/2.6.18-53.el5/source/.co[   OK   ]
Copy and check .config file (done)                                   [   OK   ]
Check the mem address space (highmem)                                [   OK   ]
Change IOMMU (disabled)                                              [   OK   ]
Create new .config file (done)                                       [   OK   ]
Execute: make oldconfig (done)                                       [   OK   ]
Check modpost availability (available)                               [   OK   ]
Unpack the sources (done)                                            [   OK   ]
Check firmware availability (done)                                   [   OK   ]
Check kernel header version (Kernel:2.6.18 == Header:2.6.18)         [   OK   ]
Check kernel functions (Changed: nothing)                            [   OK   ]
Compile the kernel (done)                                            [   OK   ]
Copy driver man page into /usr/share/man/man4/ (done)                [   OK   ]
Check the driver (done)                                              [   OK   ]
Create kernel modules driver directory (done)                        [   OK   ]
Delete old driver (done)                                             [   OK   ]
Copying driver (done)                                                [   OK   ]
Make dependency (done)                                               [   OK   ]
Delete temp directories (done)                                       [   OK   ]
All done. Driver installed and loaded.
To load the module manually, proceed as follows:
      Enter "modprobe sk98lin"

                                                     Have fun...
 查看驱动模块是否己装载
[root@localhost DriverInstall]# lsmod | grep sk98lin
sk98lin               150228  1
 这时就可以在System-->Administrator-->Network-->New 一个Eernet Connection
 启动eth0
[root@localhost DriverInstall]# ifconfig eth0 up
[root@localhost DriverInstall]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:61:12:C5:F9  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:61ff:fe12:c5f9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1287 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:86134 (84.1 KiB)  TX bytes:8756 (8.5 KiB)
          Interrupt:233 Memory:febfc000-0

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1617 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1617 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4327912 (4.1 MiB)  TX bytes:4327912 (4.1 MiB)

阅读(2854) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~