我今天购买了 Enter E-100E 以太网卡 ( http://www.entermultimedia.com/pci_ethernet_10_100_lancard.html )..
我发现ubuntu无法检测到设备。所以,我查看了设备驱动程序文档,其中说:
This document contains instructions on installing Linux driver and adjusting speed for the series of RTL8139(A/B/C/8130) Network Adapter Installing Driver:
(1.) Kernel Had Supported Driver: Check the directory " /lib/modules/¡K./net " if you could find "rtl8139.o" Your kernel had supported RTL8139 series. You could easy use "linuxconf" to setup your card. If you don't like linuxconf, you also could use "modprobe rtl8139" and "ifconfig up eth0" to load module. If your driver load properly, your "/etc/conf.modules" should include line of "alias eth0 rtl8139".
(2.) Kernel Don't Support Driver: If your kernel doesn't support RTL8139 series, you should compiler driver by yourself. Please contact "www.scyld.com/network/rtl8139.html" to get source code. The compiler command is located on the end of source code. Maybe like "gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c". If you couldn't compiler success, maybe you should refer to error message and copy library or head file to Linux.
现在,(1) 对我不起作用,因为我没有找到所述目录(在用 linux-headers-3.0.8-19 替换 ¡K 之后)。
所以,我尝试做 (2)..
但是,该网站已关闭。因此,我从某个在线站点获得了源文件 rtl8139.c。但是,当我尝试使用包含的命令对其进行编译时,编译器显示/usr/src/linux(或库,视情况而定)目录不存在的错误..
但是,我从该站点注意到 Realtek RTL8139 驱动程序非常有名。所以,我想知道,我是否遗漏了什么?请帮忙..我在死胡同..
我是 linux 和 Ubuntu 的新手..所以,有人可以告诉我该怎么做吗...感谢您花时间阅读本文..
最佳答案
最近的 Linux 内核使用 8139too
模块支持基于 Real-Tek RTL8139 的卡。
8139too
模块基于您链接的 Donald Becker 的代码。
做
modprobe 8139too
或
insmod /<path to module>/8139too.ko
然后根据您的帖子使用 ifconfig
。
关于c - Enter E-100E 以太网卡所需的 RTL-8139 驱动程序 - 无法编译源文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18895626/