31302227 发表于 2007-8-16 14:59:53

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

系统是as4,2.6.9-5的内核.这卡是tplink的TF-3239DL型号的网卡
芯片是
RTL8139D
74402S1
我安装tplink提供的驱动提示错误信息如下...最下面还有lsmod的信息和lspci的信息.其中lsmod查看已经有8139too了,但是还是无法使用

# cd 200718013838/
# cd Linux-2.4.x/
# ls
8139too.cMakefilereadme.txt
# 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')
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')
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl')
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl')
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl')
8139too.c:265: warning: excess elements in struct initializer
8139too.c:265: warning: (near initialization for `rtl8139_pci_tbl')
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: *** 错误 1



# lsmod
Module                  SizeUsed by
parport_pc             279051
lp                     154050
parport                376412 parport_pc,lp
autofs4                220850
i2c_dev                142730
i2c_core               259211 i2c_dev
sunrpc                1376371
ztdummy               77480
wcusb                  238400
wctdm                  411520
wcfxo                  169280
wcte11xp               304960
wct1xxp                206400
wct4xxp                604800
tor2                   934720
zaptel                1967408 ztdummy,wcusb,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
crc_ccitt               60811 zaptel
button               104490
battery                128690
ac                      87730
md5                     80011
ipv6                  23881714
joydev               142090
uhci_hcd               327290
ehci_hcd               318130
8139too                273290
mii                     86411 8139too
floppy               580650
dm_snapshot            208370
dm_zero               63370
dm_mirror            249892
ext3                  1184732
jbd                  594811 ext3
dm_mod               571576 dm_snapshot,dm_zero,dm_mirror


# 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)

jozhu 发表于 2007-8-24 01:12:33

。。。明显没有安上驱动阿。你 ifconfig能看到网卡吗?建议你直接找这个网卡的RPM包来安装。
页: [1]
查看完整版本: 8139d芯片在as4上驱动不上,请教(信息全)