简体   繁体   English

输入E-100E以太网卡需要RTL-8139驱动程序-无法编译源文件

[英]Driver for RTL-8139 required for Enter E-100E Ethernet Card - Can't compile source file

I purchased an Enter E-100E Ethernet Card ( http://www.entermultimedia.com/pci_ethernet_10_100_lancard.html ) today.. 我今天购买了Enter E-100E以太网卡http://www.entermultimedia.com/pci_ethernet_10_100_lancard.html )。

I found that ubuntu can't detect the device. 我发现ubuntu无法检测到设备。 So, I checked out the device driver documentation, which said : 因此,我查看了设备驱动程序文档,其中说:

This document contains instructions on installing Linux driver and adjusting speed for the series of RTL8139(A/B/C/8130) Network Adapter Installing Driver: 本文档包含有关安装Linux驱动程序以及调整RTL8139(A / B / C / 8130)系列网络适配器安装驱动程序速度的说明:

(1.) Kernel Had Supported Driver: Check the directory " /lib/modules/¡K./net " if you could find "rtl8139.o" Your kernel had supported RTL8139 series. (1.)内核具有支持的驱动程序:如果可以找到“ rtl8139.o”,请检查目录“/lib/modules/¡K./net”。您的内核已支持RTL8139系列。 You could easy use "linuxconf" to setup your card. 您可以轻松地使用“ linuxconf”来设置您的卡。 If you don't like linuxconf, you also could use "modprobe rtl8139" and "ifconfig up eth0" to load module. 如果您不喜欢linuxconf,也可以使用“ modprobe rtl8139”和“ ifconfig up eth0”来加载模块。 If your driver load properly, your "/etc/conf.modules" should include line of "alias eth0 rtl8139". 如果驱动程序正确加载,则“ /etc/conf.modules”应包含“ alias eth0 rtl8139”行。

(2.) Kernel Don't Support Driver: If your kernel doesn't support RTL8139 series, you should compiler driver by yourself. (2.)内核不支持驱动程序:如果您的内核不支持RTL8139系列,则应自己编译编译器驱动程序。 Please contact "www.scyld.com/network/rtl8139.html" to get source code. 请联系“ www.scyld.com/network/rtl8139.html”以获取源代码。 The compiler command is located on the end of source code. 编译器命令位于源代码的末尾。 Maybe like "gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c". 可能像“ 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. 如果编译器无法成功,也许您应该参考错误消息并将库或头文件复制到Linux。

Now, (1) didn't work for me, as I did not find the said directory (after replacing the ¡K with linux-headers-3.0.8-19). 现在,(1)对我不起作用,因为我找不到该目录(用linux-headers-3.0.8-19替换¡K后)。

So, I tried to do (2).. 因此,我尝试做(2)..

But, the website is down.. So, I got the source file, rtl8139.c from some site online.. However, when I tried to compile it with the included command, the compiler showed an error that the /usr/src/linux (or library, as the case may be) directory didn't exist.. 但是,该网站关闭了。因此,我从某个在线站点获得了源文件rtl8139.c 。但是,当我尝试使用包含的命令对其进行编译时,编译器显示错误,即/ usr / src / linux(或库,视情况而定)目录不存在。

However, I noticed from this site that the Realtek RTL8139 driver is quite famous.. So, I was wondering, am i missing something? 但是,我从该站点注意到Realtek RTL8139驱动程序非常有名。.因此,我想知道,我是否缺少某些东西? Plese Help.. I'm at an dead end.. 请帮我..我死定了..

I'm new to linux and Ubuntu.. So, can someone please tell me what to do... Thanks for taking the time to read this.. 我是Linux和Ubuntu的新手。所以,有人可以告诉我该怎么做...感谢您抽出宝贵的时间阅读本文。

Recent Linux kernels support Real-Tek RTL8139 based cards using the 8139too module. 最新的Linux内核使用8139too模块支持基于Real-Tek RTL8139的卡。

The 8139too module is base on the code by Donald Becker you linked. 8139too模块基于您链接的Donald Becker的代码。

Do

modprobe 8139too

or 要么

insmod /<path to module>/8139too.ko

and then use ifconfig as per your posting. 然后根据您的发布使用ifconfig

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM