8139dоƬÔÚas4ÉÏÇý¶¯²»ÉÏ,Çë½Ì(ÐÅϢȫ)
ϵͳÊÇ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:263: error: `PCI_ANY_ID' undeclared here (not in a function)
.
.
.
.
Õⲿ·ÖÈ¥µôÁË,Òª²»Ì«³¤,·¢²»ÁËÌù
.
.
.
.
8139too.c:1179: error: dereferencing pointer to incomplete type
8139too.c:1181: error: dereferencing pointer to incomplete type
8139too.c:1183: error: dereferencing pointer to incomplete type
8139too.c:1183: error: dereferencing pointer to incomplete type
8139too.c:1184: error: dereferencing pointer to incomplete type
8139too.c:1185: error: dereferencing pointer to incomplete type
8139too.c:1186: warning: implicit declaration of function `spin_lock_init'
8139too.c:1186: error: dereferencing pointer to incomplete type
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) as4Ó¦¸Ã´øÓÐ8139dÇý¶¯µÄ£¬²»ÓÃ×ÔÒѱàÒëÁË¡£
Ö÷²Ëµ¥¡ª¡ªÍøÂ硪¡ªÐ½¨¡ª¡ªÊÊÅäÆ÷£¨Ñ¡Ôñ£©¡ª¡ªRealTek RTL-8139, SMC EZ Card¡ª¡ªÈ»ºó·ÖÅä£É£Ð£¬ÉèºÃ£Ç£×£¬£Ä£Î£Ó¼°×ÓÂ롪¡ª×îºó¼¤»îÍø¿¨±£´æÉèÖã¨Èç²»ÐпÉÖØÆô£©¡£ ͼÐνçÃæÀïÃæ¿´²»µ½Íø¿¨°¡
Ò³:
[1]