QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3029|回复: 1

8139d芯片在as4上驱动不上,请教(信息全)

[复制链接]
发表于 2007-8-16 14:59:53 | 显示全部楼层 |阅读模式
系统是as4,2.6.9-5的内核.这卡是tplink的TF-3239DL型号的网卡
芯片是
RTL8139D
74402S1
我安装tplink提供的驱动提示错误信息如下...最下面还有lsmod的信息和lspci的信息.其中lsmod查看已经有8139too了,但是还是无法使用

[root@zt ~]# cd 200718013838/
[root@zt 200718013838]# cd Linux-2.4.x/
[root@zt Linux-2.4.x]# ls
8139too.c  Makefile  readme.txt
[root@zt Linux-2.4.x]# make
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -DUSE_MEM_OPS -I/usr/src/linux-2.4.20-8/include/ -c 8139too.c -o 8139too.o
In file included from 8139too.c:106:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
8139too.c:113:31: linux/etherdevice.h: 没有那个文件或目录
8139too.c:115:25: linux/delay.h: 没有那个文件或目录
In file included from 8139too.c:116:
/usr/include/linux/ethtool.h:15: error: syntax error before "u32"
/usr/include/linux/ethtool.h:17: error: syntax error before "advertising"
/usr/include/linux/ethtool.h:18: error: syntax error before "speed"
/usr/include/linux/ethtool.h:19: error: syntax error before "duplex"
/usr/include/linux/ethtool.h:20: error: syntax error before "port"
/usr/include/linux/ethtool.h:21: error: syntax error before "phy_address"
/usr/include/linux/ethtool.h:22: error: syntax error before "transceiver"
/usr/include/linux/ethtool.h:23: error: syntax error before "autoneg"
/usr/include/linux/ethtool.h:24: error: syntax error before "maxtxpkt"
/usr/include/linux/ethtool.h:25: error: syntax error before "maxrxpkt"
/usr/include/linux/ethtool.h:26: error: syntax error before "reserved"
/usr/include/linux/ethtool.h:27: error: syntax error before '}' token
/usr/include/linux/ethtool.h:32: error: syntax error before "u32"
/usr/include/linux/ethtool.h:40: error: syntax error before "eedump_len"
/usr/include/linux/ethtool.h:41: error: syntax error before "regdump_len"
/usr/include/linux/ethtool.h:47: error: syntax error before "u32"
/usr/include/linux/ethtool.h:49: error: syntax error before "wolopts"
/usr/include/linux/ethtool.h:50: error: syntax error before "sopass"
/usr/include/linux/ethtool.h:51: error: syntax error before '}' token
/usr/include/linux/ethtool.h:55: error: syntax error before "u32"
/usr/include/linux/ethtool.h:61: error: syntax error before "u32"
/usr/include/linux/ethtool.h:62: error: conflicting types for 'version'
/usr/include/linux/ethtool.h:34: error: previous declaration of 'version' was here
/usr/include/linux/ethtool.h:63: error: syntax error before "len"
/usr/include/linux/ethtool.h:64: error: syntax error before "data"
/usr/include/linux/ethtool.h:64: error: conflicting types for 'data'
/usr/include/linux/ethtool.h:56: error: previous declaration of 'data' was here
/usr/include/linux/ethtool.h:65: error: syntax error before '}' token
/usr/include/linux/ethtool.h:69: error: syntax error before "u32"
/usr/include/linux/ethtool.h:71: error: syntax error before "offset"
/usr/include/linux/ethtool.h:72: error: syntax error before "len"
/usr/include/linux/ethtool.h:73: error: syntax error before "data"
/usr/include/linux/ethtool.h:74: error: syntax error before '}' token
8139too.c:120:46: asm/uaccess.h: 没有那个文件或目录
In file included from 8139too.c:121:
/usr/include/asm/io.h:4:2: warning: #warning <asm/io.h> is deprecated, use <sys/io.h> instead
In file included from 8139too.c:125:
/usr/include/linux/mii.h:106: error: syntax error before "u16"
/usr/include/linux/mii.h:108: error: syntax error before "val_in"
/usr/include/linux/mii.h:109: error: syntax error before "val_out"
8139too.c:126:30: linux/completion.h: 没有那个文件或目录
8139too.c:249: error: syntax error before "u32"
8139too.c:249: warning: no semicolon at end of struct or union
8139too.c:250: warning: type defaults to `int' in declaration of `board_info'
8139too.c:251: warning: braces around scalar initializer
8139too.c:251: warning: (near initialization for `board_info[0]')
8139too.c:251: warning: initialization makes integer from pointer without a cast
8139too.c:251: warning: excess elements in scalar initializer
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl[2]')
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl[2]')
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl[2]')
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl[2]')
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl[2]')
8139too.c:267: warning: excess elements in struct initializer


.
.
.
.
这部分去掉了,要不太长,发不了贴
.
.
.
.

8139too.c:782: error: syntax error before "rtl8139_intr_mask"
8139too.c:782: warning: type defaults to `int' in declaration of `rtl8139_intr_mask'
8139too.c:784: warning: data definition has no type or storage class
8139too.c:799: warning: "struct net_device" declared inside parameter list
8139too.c: In function `init_crc32':
8139too.c:805: error: dereferencing pointer to incomplete type
8139too.c:808: warning: implicit declaration of function `atomic_set'
8139too.c:808: error: dereferencing pointer to incomplete type
8139too.c: At top level:
8139too.c:926: warning: "struct net_device" declared inside parameter list
8139too.c: In function `rtl8139_init_board':
8139too.c:931: error: `u8' undeclared (first use in this function)
8139too.c:931: error: (Each undeclared identifier is reported only once
8139too.c:931: error: for each function it appears in.)
8139too.c:1189: error: dereferencing pointer to incomplete type
8139too.c:1193: error: syntax error before string constant
8139too.c:1207: error: dereferencing pointer to incomplete type
8139too.c:1209: error: dereferencing pointer to incomplete type
8139too.c:1210: confused by earlier errors, bailing out
make: *** [8139too] 错误 1



[root@zt ~]# lsmod
Module                  Size  Used by
parport_pc             27905  1
lp                     15405  0
parport                37641  2 parport_pc,lp
autofs4                22085  0
i2c_dev                14273  0
i2c_core               25921  1 i2c_dev
sunrpc                137637  1
ztdummy                 7748  0
wcusb                  23840  0
wctdm                  41152  0
wcfxo                  16928  0
wcte11xp               30496  0
wct1xxp                20640  0
wct4xxp                60480  0
tor2                   93472  0
zaptel                196740  8 ztdummy,wcusb,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
crc_ccitt               6081  1 zaptel
button                 10449  0
battery                12869  0
ac                      8773  0
md5                     8001  1
ipv6                  238817  14
joydev                 14209  0
uhci_hcd               32729  0
ehci_hcd               31813  0
8139too                27329  0
mii                     8641  1 8139too
floppy                 58065  0
dm_snapshot            20837  0
dm_zero                 6337  0
dm_mirror              24989  2
ext3                  118473  2
jbd                    59481  1 ext3
dm_mod                 57157  6 dm_snapshot,dm_zero,dm_mirror


[root@zt ~]# lspci
00:00.0 Host bridge: Intel Corp.: Unknown device 2770 (rev 02)
00:02.0 VGA compatible controller: Intel Corp.: Unknown device 2772 (rev 02)
00:1b.0 Class 0403: Intel Corp.: Unknown device 27d8 (rev 01)
00:1d.0 USB Controller: Intel Corp.: Unknown device 27c8 (rev 01)
00:1d.1 USB Controller: Intel Corp.: Unknown device 27c9 (rev 01)
00:1d.2 USB Controller: Intel Corp.: Unknown device 27ca (rev 01)
00:1d.3 USB Controller: Intel Corp.: Unknown device 27cb (rev 01)
00:1d.7 USB Controller: Intel Corp.: Unknown device 27cc (rev 01)
00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corp.: Unknown device 27b8 (rev 01)
00:1f.2 IDE interface: Intel Corp.: Unknown device 27c0 (rev 01)
00:1f.3 SMBus: Intel Corp.: Unknown device 27da (rev 01)
01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
发表于 2007-8-24 01:12:33 | 显示全部楼层
。。。明显没有安上驱动阿。你 ifconfig能看到网卡吗?建议你直接找这个网卡的RPM包来安装。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-25 20:58 , Processed in 0.079118 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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