如何安装D-Link DFE-50TX (RevB)驱动
如何在MagicLinux下安装D-Link DFE-50TX (RevB)驱动,Linux在安装时检测到了一个错误的网卡,上网很慢,且不能进行域名解析。请教各位Linux高手,我这是初次用Linux系统。 :?:我用网上提示的在redhat 下的安装方法进行失败后的提示信息。
# make all
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6-I/usr/src/linux/include -c via-rhine.c
In file included from /usr/include/asm/thread_info.h:16,
from /usr/include/linux/thread_info.h:21,
from /usr/include/linux/spinlock.h:12,
from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:7,
from /usr/include/linux/module.h:10,
from via-rhine.h:20,
from via-rhine.c:26:
/usr/include/asm/processor.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:67: error: requested alignment is not a constant
In file included from /usr/include/linux/module.h:23,
from via-rhine.h:20,
from via-rhine.c:26:
/usr/include/asm/module.h:54:2: #error unknown processor family
In file included from /usr/include/linux/netdevice.h:151,
from via-rhine.h:29,
from via-rhine.c:26:
/usr/include/linux/skbuff.h:30:26: net/checksum.h: 没有那个文件或目录
In file included from /usr/include/linux/irq.h:20,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:12,
from /usr/include/linux/netdevice.h:512,
from via-rhine.h:29,
from via-rhine.c:26:
/usr/include/asm/irq.h:16:25: irq_vectors.h: 没有那个文件或目录
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:12,
from /usr/include/linux/netdevice.h:512,
from via-rhine.h:29,
from via-rhine.c:26:
/usr/include/linux/irq.h:68: error: requested alignment is not a constant
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:12,
from /usr/include/linux/netdevice.h:512,
from via-rhine.h:29,
from via-rhine.c:26:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
In file included from /usr/include/linux/interrupt.h:12,
from /usr/include/linux/netdevice.h:512,
from via-rhine.h:29,
from via-rhine.c:26:
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from via-rhine.c:26:
via-rhine.h:34:26: linux/malloc.h: 没有那个文件或目录
via-rhine.c: In function `pci_drv_register':
via-rhine.c:182: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:555)
via-rhine.c: In function `pci_drv_unregister':
via-rhine.c:310: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:567)
via-rhine.c: In function `via_probe1':
via-rhine.c:446: warning: implicit declaration of function `init_etherdev'
via-rhine.c:446: warning: assignment makes pointer from integer without a cast
via-rhine.c: In function `netdev_open':
via-rhine.c:653: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:555)
via-rhine.c:655: warning: passing arg 2 of `request_irq' from incompatible pointer type
via-rhine.c:657: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:567)
via-rhine.c: In function `set_rx_mode':
via-rhine.c:1291: warning: passing arg 2 of `set_bit' from incompatible pointer type
via-rhine.c: In function `netdev_close':
via-rhine.c:1408: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:567)
make: *** 错误 1
# 对不起,我不知道已经发贴了,所以点了三次的。 多的帖子我给删掉了,
请以后谨慎从事! redhat是2.4.x的kernel,和2.6.x不兼容
我想,kernel2.6.9已经可以支持了吧?(不清楚哦)
你是用了2.4.x下的驱动吧,
马上停止这种行为,
在konsole下运行kudzu检测硬件。
然后用netconfig设置网卡
还可以更改/etc/modprobe.conf里面的设置
像下面的
[root@Lover ~]# cat /etc/modprobe.conf
alias eth0 8139too
alias snd_card_0 snd-intel8x0
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && { /bin/alsa-startup start 2>&1; }
remove snd-intel8x0 { /bin/alsa-startup stop 2>&1 ; /sbin/rmmod snd-seq-oss; /sbin/rmmod snd-pcm-oss; /sbin/rmmod snd-mixer-oss; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
alias usb-controller ehci-hcd
alias scsi_hostadapter piix
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.6 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---
[root@Lover ~]#
alias eth0 8139too 就是我的网卡设置,eth0是设备名 8239too是驱动名
改成你的就行了。
如果你的驱动是2.6.x下的,你要安装kernel-source(请在Magic板块搜索),
然后重新编译 谢谢lovewilliam的回复
对,我是用的2.4.x下的驱动,但是哪里有2.6.x下的驱动呀?
我用magic Linux的kudzu检测到了一个错误的网卡,好像不VIA什么的,它上网N慢,根本打不开网站,总说未知的主机“未知的主机 bbs.whu.edu.cn”,可是我在win2K下用的IP和网关和域名地址都很好。
对,可以用QQ,速度还行,不能用带的那个BBS工具,不能上网。请教一下哪里有2.6.x下的驱动呀?怎么安装呢,
谢谢 这是检测到的我的网卡的型号VIA Phine PCI Fast Ethernet(eth0),而在win2K下面看到的是D-Link DFE-50TX (RevB)。
这是上网时的错误提示信息:
“载入 http://www.sohu.com.cn 时发生错误:
未知的主机 www.sohu.com.cn”
这是我有cat命令后的结果。
# cat /etc/modprobe.conf
alias eth0 via-rhine
alias snd_card_1 snd-cmipci
install snd-cmipci /sbin/modprobe --ignore-install snd-cmipci && { /bin/alsa-startup start 2>&1; }
remove snd-cmipci { /bin/alsa-startup stop 2>&1 ; /sbin/rmmod snd-seq-oss; /sbin/rmmod snd-pcm-oss; /sbin/rmmod snd-mixer-oss; }; /sbin/modprobe -r --ignore-remove snd-cmipci
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.6 ---
alias snd-card-0 snd-cmipci
alias sound-slot-0 snd-cmipci
# --- END: Generated by ALSACONF, do not edit. ---
我用QQ用的好好的,可是我还是不能上网,也不能上BBS
请教。谢谢 你是用adsl接入internet的?
你要自己设置dns服务器。 谢谢!我是用局域网接入的,在学校机房!这样我要自己设置DNS服务器吗? 当然需要 哦,难怪呢!!谢谢你了,只是mL设置DNS服务器的工具是什么呢!
谢谢大侠你了!! /etc/resolv.conf
[root@Lover etc]# cat resolv.conf
# MADE-BY-RP-PPPOE
nameserver 202.102.152.3
nameserver 202.102.128.68
[root@Lover etc]#
在里面添加就行了 好的,我试试,先谢谢你了。菜鸟要学的东西太多了。 不客气 不过,还是不行,我的DNS是正常的,和你一样,用的是我win2K里能正常使用的域名地址。但是上网还是不行呢!我也不知道是什么问题了!看来很有些麻烦的了。 不过,还是不行,我的DNS是正常的,和你一样,用的是我win2K里能正常使用的域名地址。但是上网还是不行呢!我也不知道是什么问题了!看来很有些麻烦的了。不知您有什么好的建议呢?
谢谢
页:
[1]
2