rtl8169驱动编译问题
我的网卡是RealTek RTL8169/8110 Gigabit Ethernet NIC(微星主板上集成的)在安装红旗桌面4.1之后,系统可以认出网卡,但是没有驱动。 :roll: 于是下载了驱动,但是在make 的时候总是提示:make -C src/ clean
make: Entering directory `/tmp/linux-8169/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make: Leaving directory `/tmp/linux-8169/src'
make -C src/ modules
make: Entering directory `/tmp/linux-8169/src'
make -f Makefile_linux24x
make: Entering directory `/tmp/linux-8169/src'
gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux-2.4.26-1/include/ -c r8169_n.c -o r8169.o
r8169_n.c:412: conflicting types for `irqreturn_t'
/usr/src/linux-2.4.26-1/include/linux/interrupt.h:16: previous declaration of `irqreturn_t'
r8169_n.c:413:1: warning: "IRQ_NONE" redefined
In file included from /usr/src/linux-2.4.26-1/include/asm/highmem.h:25,
from /usr/src/linux-2.4.26-1/include/linux/highmem.h:11,
from /usr/src/linux-2.4.26-1/include/linux/vmalloc.h:8,
from /usr/src/linux-2.4.26-1/include/asm/io.h:47,
from /usr/src/linux-2.4.26-1/include/asm/pci.h:41,
from /usr/src/linux-2.4.26-1/include/linux/pci.h:680,
from r8169_n.c:63:
/usr/src/linux-2.4.26-1/include/linux/interrupt.h:17:1: warning: this is the location of the previous definition
r8169_n.c:414:1: warning: "IRQ_HANDLED" redefined
/usr/src/linux-2.4.26-1/include/linux/interrupt.h:18:1: warning: this is the location of the previous definition
make: *** Error 1
make: Leaving directory `/tmp/linux-8169/src'
make: *** Error 2
make: Leaving directory `/tmp/linux-8169/src'
make: *** Error 2
这个到底是怎么回事呢?应该如何做才能使用网卡呢? 用ifconf配置一下网卡试试先。
你这情况得升级内核啊。 不行的啊,我已经试过了,难道除了升级内核之外,就没有别的办法了吗? :cry: 恩,因为几个错误全部和内核有关的,所以我怀疑是内核和你的驱动不兼容,最好升一下了。升了都不用装驱动了。 谢了!!!
:-D
页:
[1]