LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1219|回复: 17

千兆网卡驱动出现的错误提示

[复制链接]
发表于 2004-9-5 21:29:34 | 显示全部楼层 |阅读模式
我用的RED HAT ES3在装MARVELL的1000M网卡时出现如下错误,
。。。。
Check kernel header version (not recognized)  warning
Compile the driver (error)                    failed
An error has occurred during the compile proces which prevented
the installation from completing.
Take a look at the log file install.log for more informations.
Installation of sk98lin driver module failed。
。。。
驱动程序是网卡自带的,适用2.4.13以上版本。
我的内核是2.4.21-9.EL

怎么解决?因为网卡是技嘉主板自带的所以我到该公司寻求支持时,该公司人员答复我“对不起,我们的驱动没能及时更新”
我想知道我应该继续找驱动,还是升级内核到2.6?
发表于 2004-9-6 13:06:09 | 显示全部楼层
是什么网卡?大多网卡是能解决的。

先把网卡的芯片组帖上来

#lspci

这个能通过最新内核的编译解决,新内核下载

http://mirrors.kernel.org  


祝兄弟好运
 楼主| 发表于 2004-9-6 21:00:52 | 显示全部楼层
网卡是MARVELL公司的,芯片上写着:
88E8001-LKJ
Q267951.1
0344 A3P
发表于 2004-9-9 10:03:03 | 显示全部楼层
最好是把芯片信息帖一下,这样判断 一点,现在感觉是要用tg3.o这个模块。但还是不太敢确认,还是帖一下lspci -v 的内容较好。
 楼主| 发表于 2004-9-11 16:15:44 | 显示全部楼层
[root@localhost root]# lspci -v
00:00.0 Host bridge: Intel Corp. 82865G/PE/P Processor to I/O Controller (rev 02)
        Subsystem: Giga-byte Technology: Unknown device 2570
        Flags: bus master, fast devsel, latency 0
        Memory at e8000000 (32-bit, prefetchable) [size=128M]
        Capabilities: [e4] #09 [2106]
        Capabilities: [a0] AGP version 3.0

00:01.0 PCI bridge: Intel Corp. 82865G/PE/P Processor to AGP Controller (rev 02) (prog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, fast devsel, latency 64
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        Memory behind bridge: f8000000-f9ffffff
        Prefetchable memory behind bridge: f0000000-f7ffffff

00:1d.0 USB Controller: Intel Corp. 82801EB USB (rev 02) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 14
        I/O ports at bc00

00:1d.1 USB Controller: Intel Corp. 82801EB USB (rev 02) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 6
        I/O ports at b000

00:1d.2 USB Controller: Intel Corp. 82801EB USB (rev 02) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at b400

00:1d.3 USB Controller: Intel Corp. 82801EB USB (rev 02) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 14
        I/O ports at b800

00:1d.7 USB Controller: Intel Corp. 82801EB USB2 (rev 02) (prog-if 20 [EHCI])
        Subsystem: Giga-byte Technology: Unknown device 5006
        Flags: bus master, medium devsel, latency 0, IRQ 9
        Memory at fc000000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2

00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev c2) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
        I/O behind bridge: 0000a000-0000afff
        Memory behind bridge: fa000000-fbffffff

00:1f.0 ISA bridge: Intel Corp. 82801EB LPC Interface Controller (rev 02)
        Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801EB Ultra ATA Storage Controller (rev 02) (prog-if 8a [Master SecP Pri P])
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at f000
        Memory at 10000000 (32-bit, non-prefetchable) [size=1K]

00:1f.2 IDE interface: Intel Corp. 82801EB Ultra ATA Storage Controller (rev 02) (prog-if 8f [Master SecP Sec O PriP PriO])
        Subsystem: Giga-byte Technology: Unknown device 24d1
        Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 11
        I/O ports at c000
        I/O ports at c400
        I/O ports at c800
        I/O ports at cc00
        I/O ports at d000

00:1f.3 SMBus: Intel Corp. 82801EB SMBus Controller (rev 02)
        Subsystem: Giga-byte Technology: Unknown device 24d2
        Flags: medium devsel, IRQ 5
        I/O ports at 1400

00:1f.5 Multimedia audio controller: Intel Corp. 82801EB AC'97 Audio Controller (rev 02)
        Subsystem: Giga-byte Technology: Unknown device a002
        Flags: bus master, medium devsel, latency 0, IRQ 5
        I/O ports at d800 [size=256]
        I/O ports at dc00
        Memory at fc001000 (32-bit, non-prefetchable) [size=512]
        Memory at fc002000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev c1) (prog-if 00 [VGA ])
        Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 14
        Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
        Memory at f0000000 (32-bit, prefetchable) [size=128M]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 3.0

02:09.0 Ethernet controller: Galileo Technology Ltd.: Unknown device 4320 (rev 13)
        Subsystem: Giga-byte Technology: Unknown device e000
        Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 10
        Memory at fb000000 (32-bit, non-prefetchable) [size=16K]
        I/O ports at a000 [size=256]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [48] Power Management version 2
        Capabilities: [50] Vital Product Data
[root@localhost root]#
发表于 2004-9-12 10:53:58 | 显示全部楼层
02:09.0 Ethernet controller: Galileo Technology Ltd.: Unknown device 4320 (rev 13) Subsystem: Giga-byte Technology: Unknown device e000 Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 10 Memory at fb000000 (32-bit, non-prefetchable) [size=16K] I/O ports at a000 [size=256] Expansion ROM at <unassigned> [disabled] [size=128K] Capabilities: [48] Power Management version 2 Capabilities: [50] Vital Product Data


是这个网卡用的是tg3.o或者是或者是e1000.o

首先查看一下模块是不是有这两个,如果没有只能编内核了。

[root@S0 beinan]# /sbin/lsmod

无论有没有先改一下/etc/modules.conf的内容,看看有没有这行
alias eth0 e1000
或者 alias etho tg3

如果没有就加上,如果有其它关于eth0的行可以删除。首先测试一下e1000吧。然后再tg3

接着做 modproe e1000 以及modprobe tg3

然后把网络停掉

#/etc/init.d/network stop
#/etc/init.d/network start

用ifconfig查看,如果没有eth0的情况,那只能编内核

编内核的时,把千m的所有网卡都编成模块,这样有多的选择。

最新内核下载 http://www.kernel.org

比较好弄,试试看吧。
 楼主| 发表于 2004-9-12 23:40:02 | 显示全部楼层
我经过反复选用,但e1000和tg3等模块都不能用,总是提示“设备没发现”。
于是我决定提升内核到2.6.8来解决网卡问题,
但是最后在配置grub 时又出了问题。目前我的grub内容入下:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/sda1
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=2
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-9.EL)
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.21-9.EL ro root=LABEL=/ hdc=ide-scsi
        initrd /boot/initrd-2.4.21-9.EL.img
title Red Hat Enterprise Linux ES (2.6.8)
        root (hd0,0)
        kernel /boot/bzImage-2.6.8 ro root=LABEL=/ hdc=ide-scsi
title windows XP
        rootnoverify (hd0,1)
        chainloader +1
启动时提示说根分区找不到。于是我又将root改为:root=/dev/sda1
也不行,后又改为root=/dev/hda1仍不行。
我的硬盘是SATA的盘符肯定没问题。旧内核2.4.21-9.EL还可以启动。

南北兄,帮我分析一下原因。
发表于 2004-9-13 15:00:06 | 显示全部楼层
启动时提示说根分区找不到。于是我又将root改为:root=/dev/sda1
也不行,后又改为root=/dev/hda1仍不行。
我的硬盘是SATA的盘符肯定没问题。旧内核2.4.21-9.EL还可以启动。

南北兄,帮我分析一下原因。



我感觉是少initrd文件,兄弟看一下这里,也就是说在grub.conf中的少initrd 一行。




http://www.linuxsir.cn/forum.php?mod=viewthread&tid=68068
发表于 2004-9-13 15:31:35 | 显示全部楼层
没有加入SATA控制器的模块吧
 楼主| 发表于 2004-9-17 20:50:39 | 显示全部楼层
感谢各位热心解答,让我学会不少知识。

问题现在虽然没解决,可是我已经知道答案了。

“没有加入SATA的控制模块。”

因为我把内核模块删得太多的缘故。关于SATA性能,我还不太了解。因为我把关于SCSI的模块基本都关了,SATA的打开,结果不行。把一些SCSI模块打开,就可以了。因为每次内核模块我调整的太多。以上只是感觉,相信经过不停反复的试验。我会把关键模块找到的。
谢谢你们,南北兄和nbmedia
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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