免费注册 查看新帖 |

Chinaunix

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

网卡无法正常编译,我怎么解决?急!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-31 08:01 |只看该作者 |倒序浏览
以下是网卡驱动的内容
    linux.txt               This file.
    Makefile                Makefile for generating driver object file
    rhinefet.c              The linux core driver source code file
    rhine_proc.c            The source to create proc entries
    rhine_wol.c             The WOL supporting source file
    rhine.h                 The extended driver header file
    rhine_proc.h            The header file for proc entries
    rhine_wol.h             The WOL supporting header file
    rhine_cfg.h             The general and basic info header file
    kcompat.h               The header file for Linux kernel version
================================================================
以下是文明文档提供的操作步骤
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 (rhinefet.tgz) from DOS disk, (mcopy below is one tool in
       mtools, if you didn't install mtools, you can type
       'mount -t msdos /dev/fd0 /mnt' and use 'cp /mnt/rhinefet.tgz /temp'
       command to copy the driver to the temporary directory):
        mcopy a:rhinefet.tgz .

    3) untar the archive file:

        tar xzvf rhinefet.tgz
        cd rhinefet
                        
    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
第四步骤中的"Compile the driver source files and it will generate rhinefet.o" rhinefet.o这个文件我如何得到啊!!!
进目录后,输入make命令进行编译,出现错误!!!
谢谢!!!达人指点一下!!!
附上错误图片

[ 本帖最后由 michaelzzl 于 2007-1-31 08:35 编辑 ]

err.jpg (145.55 KB, 下载次数: 25)

err.jpg

论坛徽章:
0
2 [报告]
发表于 2007-01-31 08:08 |只看该作者
make 报什么错误?

[ 本帖最后由 ryanmm 于 2007-1-31 08:15 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-01-31 08:36 |只看该作者
原帖由 ryanmm 于 2007-1-31 08:08 发表于 2楼  
make 报什么错误?

图片我已经上传了,帮帮我

论坛徽章:
0
4 [报告]
发表于 2007-01-31 09:52 |只看该作者
汗 我不清楚了 不好意思!

[ 本帖最后由 ryanmm 于 2007-1-31 10:21 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2007-01-31 10:51 |只看该作者
先 make make之后会产生一个 *.o 的文件,然后拷过去,然后make install,然后按它说的继续。其实最关键的就是那个*.o 这个就是你的驱动。

论坛徽章:
0
6 [报告]
发表于 2007-01-31 16:10 |只看该作者
LZ 就是说 make 的时候出错了啊

论坛徽章:
0
7 [报告]
发表于 2007-01-31 16:59 |只看该作者
看上传的图片是make install 出错
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP