QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 687|回复: 1

[求助]redhat9怎么装Winbond W89C网卡??

[复制链接]
发表于 2004-2-15 23:24:35 | 显示全部楼层 |阅读模式
Winbond W89C841这个redhat里没驱动
网卡带有linux驱动文件1 wb841.c   2 wb841.o  
怎么装上去呢?
 楼主| 发表于 2004-2-16 19:04:16 | 显示全部楼层
顶,怎么装???我按照下面的编译,但是说错误
File List
  ---------
    wb841.c       Driver source code for Linux kernel 2.4.x.
    wb841.o       Driver object file, Compiled on RedHat7.2(Kernel version 2.4.3)
    INSTALL.TXT   This file.


  Installation
  ------------

    Linux2.4.x
    ======================================

    1. Plug the Winbond W89C841 card into one of the PCI slots of your PC.
    2. Turn power on then boot from Linux
    3. Compile the source file
        In the directory /lib/modules/"kernel-version"/kernel/drivers/net, there are driver modules for
        some Ethernet card, but if there is no the module for your card, you need compile and install
        the driver yourself, the procedure is:
            1) Verify that the source code for your current kernel version is installed.
            2) If you don't have a /usr/include/linux/version.h , please do
               cd /usr/src/linux
               make include/linux/version.h
            3) Copy the driver source code to a source directory. I use usr/src/linux/modules/ .
            4) Compile the source code using the GNU C compiler (gcc), the command is:
                   gcc -o wb841.o -DMODULE -D__KERNEL__ -I /usr/src/linux/include -O6 -c wb841.c (Memory mapping)
               or  gcc -o wb841.o -DMODULE -D__KERNEL__ -DUSE_IO_OPS -I /usr/src/linux/include -O6 -c wb841.c(I/O mapping)
               and the wb841.o file will be generated.
               
         You can also use the make tool provided by Linux to compile the source code automatically.
         All things need to do is to write a Makefile and save it in the same directory as the source file,
         and then type the command:
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-19 14:50 , Processed in 0.033500 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表