QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1732|回复: 9

〓 网卡驱动安装 紧急求助(快进来帮我)在线等〓

[复制链接]
发表于 2005-8-26 19:28:12 | 显示全部楼层 |阅读模式
前提:
我安装的linux是这个版本:
MagicLinux-2.0beta3-1.iso

我的主板是映泰U8598:(请看下面的地址)
http://www.biostar.cn/products/ProductDetail.asp?vID=163

网卡是集成的:
VIA PCI 10/100Mb Fast Ethernet Adapter
本身的网卡驱动支持如下:
Kernel Supported
================
    This driver support linux kernel version 2.2.x and 2.4.x (2.4.1-2.4.6) now.

我安装的MagicLinux-2.0beta3-1.iso  kernel v 2.2.6

我尝试着用这个驱动的说明安装 如下:

Installation
============
    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 (linuxfet.tar) 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/linuxfet.tar /temp'
       command to copy the driver to the temporary directory):
        mcopy a:linuxfet.tar .

    3) untar the archive file:
        tar xvf linuxfet.tar   
                        
    4) Compile the driver source files and it will generate linuxfet.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 linuxfet):
        alias eth# linuxfet

    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 linuxfet

    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>


第3)后要编译
然后我就这么做:如下

[root@andy temp]# ls
gcc-3.3.2-5.aix5.3.ppc.rpm  linuxfet.h    linux.txt
linuxfet.c                  linuxfet.tar  Makefile
[root@andy temp]# make
***  Clean up older object files  ***
rm -f core *.o *~

*****  Compile the driver source files to generate linuxfet.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE  -DMODVERSION   -c linuxfet.c
In file included from /usr/src/linux/include/asm/irq.h:16,
                 from /usr/src/linux/include/linux/irq.h:21,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from linuxfet.h:30,
                 from linuxfet.c:19:
/usr/src/linux/include/asm/irq_vectors.h:87:32: irq_vectors_limits.h: 没有那个文件或目录
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from linuxfet.h:30,
                 from linuxfet.c:19:
/usr/src/linux/include/linux/irq.h:72: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:74,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from linuxfet.h:30,
                 from linuxfet.c:19:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
In file included from linuxfet.c:19:
linuxfet.h:38:26: linux/malloc.h: 没有那个文件或目录
linuxfet.c: In function `pci_drv_register':
linuxfet.c:211: warning: implicit declaration of function `pci_find_class'
linuxfet.c:211: warning: assignment makes pointer from integer without a cast
linuxfet.c:298: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
linuxfet.c:298: error: (Each undeclared identifier is reported only once
linuxfet.c:298: error: for each function it appears in.)
linuxfet.c: In function `pci_drv_unregister':
linuxfet.c:427: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
linuxfet.c: In function `via_probe1':
linuxfet.c:553: warning: implicit declaration of function `init_etherdev'
linuxfet.c:553: warning: assignment makes pointer from integer without a cast
linuxfet.c: In function `netdev_open':
linuxfet.c:1130: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
linuxfet.c:1132: warning: passing arg 2 of `request_irq' from incompatible pointer type
linuxfet.c:1134: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
linuxfet.c: In function `set_rx_mode':
linuxfet.c:2588: warning: passing arg 2 of `set_bit' from incompatible pointer type
linuxfet.c: In function `netdev_close':
linuxfet.c:2739: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)

[root@andy temp]# make install
***  Clean up older object files  ***
rm -f core *.o *~

*****  Compile the driver source files to generate linuxfet.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE  -DMODVERSION   -c linuxfet.c
In file included from /usr/src/linux/include/asm/irq.h:16,
                 from /usr/src/linux/include/linux/irq.h:21,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from linuxfet.h:30,
                 from linuxfet.c:19:
/usr/src/linux/include/asm/irq_vectors.h:87:32: irq_vectors_limits.h: 没有那个文件或目录
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from linuxfet.h:30,
                 from linuxfet.c:19:
/usr/src/linux/include/linux/irq.h:72: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:74,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:12,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/if_ether.h:107,
                 from /usr/src/linux/include/linux/netdevice.h:29,
                 from linuxfet.h:30,
                 from linuxfet.c:19:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
In file included from linuxfet.c:19:
linuxfet.h:38:26: linux/malloc.h: 没有那个文件或目录
linuxfet.c: In function `pci_drv_register':
linuxfet.c:211: warning: implicit declaration of function `pci_find_class'
linuxfet.c:211: warning: assignment makes pointer from integer without a cast
linuxfet.c:298: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
linuxfet.c:298: error: (Each undeclared identifier is reported only once
linuxfet.c:298: error: for each function it appears in.)
linuxfet.c: In function `pci_drv_unregister':
linuxfet.c:427: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
linuxfet.c: In function `via_probe1':
linuxfet.c:553: warning: implicit declaration of function `init_etherdev'
linuxfet.c:553: warning: assignment makes pointer from integer without a cast
linuxfet.c: In function `netdev_open':
linuxfet.c:1130: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
linuxfet.c:1132: warning: passing arg 2 of `request_irq' from incompatible pointer type
linuxfet.c:1134: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
linuxfet.c: In function `set_rx_mode':
linuxfet.c:2588: warning: passing arg 2 of `set_bit' from incompatible pointer type
linuxfet.c: In function `netdev_close':
linuxfet.c:2739: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)

[root@andy temp]#

里面的文件.h找不到 我就不知道该怎么办了

我尝试过查找最新的支持linux的驱动 但是找不到~!
希望哪个大大可以9我与水火之中...感激  qq:441979144 期待你的建议
发表于 2005-8-26 19:37:17 | 显示全部楼层
一般来说,你先./configure
make
make install就可以了
回复

使用道具 举报

 楼主| 发表于 2005-8-26 20:44:05 | 显示全部楼层
如何啊?具体怎么搞?

另外  我下载一个GCC 但是我安装不了
如下:
[root@andy temp]# rpm -ivh gcc-3.3.2-5.aix5.3.ppc.rpm
error: Failed dependencies:
        AIX-rpm >= 5.3.0.0 is needed by gcc-3.3.2-5.ppc
        libc.a(shr.o) is needed by gcc-3.3.2-5.ppc
[root@andy temp]#

看不懂 如何搞?谢谢
回复

使用道具 举报

发表于 2005-8-26 21:58:03 | 显示全部楼层
楼上的,你的是powerpc么?
回复

使用道具 举报

发表于 2005-8-26 22:56:10 | 显示全部楼层
啥发行版, via的6103可以自认的(包括530tx之类的都是)
回复

使用道具 举报

 楼主| 发表于 2005-8-27 00:56:14 | 显示全部楼层
TO jozhu:
./configure  提示没这个目录

TO jet :
powerpc?不是的

TO linky_fan:
我这个没有自认啊  是怎么回事啊?快9我。我第一次安装linux.
回复

使用道具 举报

 楼主| 发表于 2005-8-27 05:00:05 | 显示全部楼层
奇怪啊 我不知道怎么搞的 竟然能INTERNET了 哈哈 研究中...
以后和大家分享
回复

使用道具 举报

发表于 2005-8-27 05:02:06 | 显示全部楼层
最近太累了,7点回来倒在床上就睡,4点多醒来,看到Google Talk上feiyunxb的提的问题,起来看看能否解决

Installation
============
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 (linuxfet.tar) 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/linuxfet.tar /temp'
command to copy the driver to the temporary directory):
mcopy a:linuxfet.tar .

3) untar the archive file:
tar xvf linuxfet.tar

1~3步应该问题不大,对安装失败不会有影响

4) Compile the driver source files and it will generate linuxfet.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
编译驱动的源文件,你好像没有做./configure哦,就会产生linuxfet.o,还要把linuxfet.o拷贝到当前驱动安装路径下,而且这个路径是因“Kernel版本”而异的,运行uname -r看看您的Kernel是什么版本的,2.4.x的,就拷贝到/lib/modules/KERNEL_VERSION/kernel/drivers/net/,2.2.x版本的,就拷贝到/lib/modules/KERNEL_VERSION/net/,注意其中的KERNEL_VERSION是您的Kernel版本号,要确实运行一下uname -r,把KERNEL_VERSION用您的版本号替代,我想第4步是造成安装失败的隐患

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 linuxfet):
alias eth# linuxfet
检查配置文件/etc/modules.conf或/etc/conf.modules,因您的Linux发行版本而异,确保有类似alias eth0 linuxfet这样的内容

6) Reboot now:
shutdown -r now

后面7~9是您安装成功后才能作的事儿了,希望您注意关键、复杂的第4步,Good  Luck

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 linuxfet

Cool 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>


继续睡觉
回复

使用道具 举报

 楼主| 发表于 2005-8-27 06:00:41 | 显示全部楼层
唉呀 感激兔子老大 睡梦中醒来看我的贴

并且给我建设性指导

谢谢 经过我 2天2夜奋战我终于爬上NET了 哈哈  兴奋阿

谢谢楼上的 所有朋友

但是很多不懂阿  大家多帮忙

一个疑问
每次进ML的时候都没声音阿  要在控制中心-程序-声卡里一路点OK才 出来声音
而且再重新起动还需要再稿   有啥方法解决?感激
回复

使用道具 举报

发表于 2005-8-27 09:05:01 | 显示全部楼层
[quote:278f5d2ec7="feiyunxb"]唉呀 感激兔子老大 睡梦中醒来看我的贴

并且给我建设性指导

谢谢 经过我 2天2夜奋战我终于爬上NET了 哈哈  兴奋阿

谢谢楼上的 所有朋友

但是很多不懂阿  大家多帮忙

一个疑问
每次进ML的时候都没声音阿  要在控制中心-程序-声卡里一路点OK才 出来声音
而且再重新起动还需要再稿   有啥方法解决?感激[/quote]

呵呵,邮寄兔兔一套ML,偶这边的网速那个快的……

应该有设置后保存为默认选项吧

不要叫偶老大
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-30 18:51 , Processed in 0.042207 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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