论坛风格切换切换到宽版
  • 680阅读
  • 8回复

[问题求助]Red Hat 9网卡如何驱动??--新人问题。谢谢帮助! [复制链接]

上一主题 下一主题
 
发帖
2080
C币
-60684
威望
388
贡献值
1
银元
-4
铜钱
4695
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
用户被禁言,该主题自动屏蔽!
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线chaoran898.
发帖
2053
C币
-60843
威望
358
贡献值
1
银元
0
铜钱
4539
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:Red
驱动文件名是什么啊?会解包吗?

解开看看有没有安装说明,我估计官网应该有说明。

离线54nb.
发帖
2136
C币
-140107
威望
384
贡献值
1
银元
-4
铜钱
4658
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:Red
下载的程序全名是什么?

发帖
2025
C币
-235323
威望
401
贡献值
1
银元
-2
铜钱
4701
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
Re:Red
看是什么文件,再选择不同的命令
里面一般都会有readme
看哈

离线junsan.
发帖
2098
C币
-198917
威望
360
贡献值
1
银元
-6
铜钱
4659
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
Re:Red


QUOTE:原帖由 "牙齿晒太阳"]下载的程序全名是什么?[/quote 发表:



在这里我就把有用的说一下~

  8139too.c

  Makefile  (为什么在WIN下看没有后缀)

  还有就是README
[quote]8139too.c release note
2001/10/31 by ShuChen Shao

1.This driver was originally based on 8139too.c version "0.9.15".
        
2.It has been enhanced to support RTL8139C+ PCI ethernet controller.

3.RTL8139C+ PCI ethernet chips is set to support C+ mode by default.
  If FORCE_C_Mode below is enabled, the RTL8139C+ chip will be forced to support C mode
  after reboot.


4.This program can be compiled using the attached Makefile.
  Please remember to SPECIFY "NEW_INCLUDE_PATH" in Makefile according to your linux environment.
  The object file named 8139too.o should be moved to the directory
  /lib/modules/<linux-version>;/kernel/drivers/net/
  The driver could be brought up by the following steps:
        'insmod 8139too'
        'ifconfig eth0 up'

5.It can support Auto-Negotiation ability,that is
        10-half         0x01
        10-full         0x02
        100-half 0x04
        100-full 0x08
  If 10-half mode is expected, it can be achieved by the following steps:
        #ifconfig eth0 down
        #rmmod 8139too
        #insmod 8139too media=0x01

6.If the "Install Type", selected during the Linux install procedure, is "laptop",
  this driver can work normally for CardBus application without any modification.
  Otherwise, reinstall Linux and select "Install Type" as "laptop".
  Then this driver can also work.

---------------------------------------------------------------------------------------
8139too.c version 1.5.0 release note
2003/3/4 by ShuChen  Shao

1.Add flag in Makefile to specify access type to operation register on PCI
ethernet chips.


离线ing1024.
发帖
1895
C币
-236276
威望
326
贡献值
1
银元
-3
铜钱
4186
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
Re:Red
只有这三个文件吗?
make 就可以了,然后把得到的.o文件拷贝到/lib/modules/然后按照readme说的insmod和ifconfig

离线jguzhou.
发帖
2015
C币
-235266
威望
407
贡献值
1
银元
-4
铜钱
4616
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
Re:Red


QUOTE:原帖由 "天外闲云" 发表:
只有这三个文件吗?
make 就可以了,然后把得到的.o文件拷贝到/lib/modules/然后按照readme说的insmod和ifconfig



首先谢谢各位~~

能不能说的在仔细些,我不明白如何运行MAKE,怎么得到的.o文件````


后面的insmod   ifconfig   就更是迷糊了!

离线tomsina.
发帖
2065
C币
-140211
威望
356
贡献值
1
银元
-1
铜钱
4481
人人网人气币
0
只看该作者 7楼 发表于: 2010-04-13
Re:Red
解包之后的目录里面:

make

编译程序

完成之后应该会出现一个.o的文件

insmod和ifconfig那个readme已经说了,而且很细。

离线bakkey.
发帖
2046
C币
-235861
威望
424
贡献值
1
银元
-6
铜钱
4679
人人网人气币
0
只看该作者 8楼 发表于: 2010-04-13
Re:Red
先确定gcc安装好,得出8139.o
./configure
make


cp 8139.o  lib/modules/<linux-version>;/kernel/drivers/net/
这是详细的解释:
Compile the driver source files and it will generate rhinefet.o, and
       copy it to correct driver installation path (The installation directory
       is different in different kernel versions. In 2.4.x kernel, the path is
       /lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
       the path is /lib/modules/KERNEL_VERSION/net/, the KERNEL_VERSION (see
       above) means the kernel version of your Linux distribution. If you don't
       know your kernel version , please run 'uname -r' command in command
       line. The kernel version will look like '2.2.16', '2.4.2-2smp' etc.) :
        make install

insmod 8139too
ifconfig eth0 up
reboot
==============================

我的不是8139,但做法更详细,看以下的照做也可以..
   Please enter the following commands at the UNIX prompt. Remember, UNIX is
    case sensitive.

    1) Create a temporary directory:
        mkdir /temp

    2) Change to the temporary directory:
        cd /temp

    2) Copy driver (dlkfet-4.24.tar.gz) from released CD, (If you didn't mount
       CD drive before, you can type
       'mkdir /cdrom'
       'mount -r -t iso9660 -o conv=auto /dev/cdrom /cdrom' and use
       'cp /cdrom/LINUX/dlkfet-4.24.tar.gz /temp'
       command to copy the driver to the temporary directory):
       cp /<cdrom_mount_point>;/LINUX/dlkfet-4.24.tar.gz .

    3) untar the archive file:

        tar xzvf dlkfet-4.24.tar.gz
        cd dlkfet-4.24

   4) Compile the driver source files and it will generate rhinefet.o, and
       copy it to correct driver installation path (The installation directory
       is different in different kernel versions. In 2.4.x kernel, the path is
       /lib/modules/KERNEL_VERSION/kernel/drivers/net/, and in 2.2.x kernel,
       the path is /lib/modules/KERNEL_VERSION/net/, the KERNEL_VERSION (see
       above) means the kernel version of your Linux distribution. If you don't
       know your kernel version , please run 'uname -r' command in command
       line. The kernel version will look like '2.2.16', '2.4.2-2smp' etc.) :
        make install

    5) Check configuration file (/etc/modules.conf or /etc/conf.modules,it
       depend on your Linux distribution) for loading kernel modules. Make sure
       there is the following content in the configuration file, where # is
       interface number (eg: alias eth0 rhinefet):
        alias eth# rhinefet

    6) Reboot now:
        shutdown -r now

    7) Install your driver module (If the driver module is in the wrong place,
       an error message will appear, and say that can't find the driver
       module):
        insmod rhinefet

     Use ifconfig command to assign the IP address, where # is network
       interface number:
        ifconfig eth# <IP>;


    9) Check the interface works:
        ping <remote_host_IP>;
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个