LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Realtek problem (http://www.linuxquestions.org/questions/linux-hardware-18/realtek-problem-617165/)

heronleal 01-29-2008 10:42 AM

Realtek problem
 
Hello folks,

I have a motherboard D945 intel with realtek RTL8101E network shipset.

I google it for a solution about it and find these posts at vincentverhagen.nl/2007/12/03/realtek-linux-driver-automatic-compile-for-kernel/#comment-1661[/url]

But I find these errors.

Maybe someone could help??

[root@thaurix src]# chmod 755 r1000.sh
[root@thaurix src]# ls -ltr
total 24
-rw-r--r-- 1 root root 15267 Dec 3 19:26 realtek_r1000.tgz
-rwxr-xr-x 1 root root 307 Dec 3 19:27 r1000.sh
dr-xr-x--- 3 root root 4096 Jan 29 14:02 LAN

[root@thaurix src]# ./r1000.sh
Realtek r1000.ko module not found for this kernel. Creating it...
make -C src/ clean
make[1]: Entering directory `/usr/src/LAN/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/usr/src/LAN/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/LAN/src'
make -C /lib/modules/2.6.18-8.el5/build SUBDIRS=/usr/src/LAN/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.18-8.el5/build: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/LAN/src'
make: *** [modules] Error 2
make -C src/ install
make[1]: Entering directory `/usr/src/LAN/src'
install -m 644 -c r1000.ko /lib/modules/2.6.18-8.el5/kernel/drivers/net/
install: cannot stat `r1000.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/LAN/src'
make: *** [install] Error 2
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... done.
[ OK ]
[root@thaurix src]#uname -a
Linux thaurix.example.com 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686 i686 i386 GNU/Linux


[root@thaurix src]#lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller(rev 01)
Subsystem: Intel Corporation Unknown device d607
Flags: bus master, fast devsel, latency 0, IRQ 11
I/O ports at 2000 [size=256]
Memory at 30100000 (64-bit, non-prefetchable) [size=4K]
Expansion ROM at 30300000 [disabled] [size=128K]
Capabilities: [40] Power Management version 2
Capabilities: [48] Vital Product Data
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/1 Enable-
Capabilities: [60] Express Endpoint IRQ 0
Capabilities: [84] Vendor Specific Information

02:02.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone](rev 24)
Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
Flags: bus master, medium devsel, latency 32, IRQ 169
I/O ports at 1000 [size=128]
Memory at 30000000 (32-bit, non-prefetchable) [size=128]
Expansion ROM at 30400000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 1

Lenard 01-29-2008 11:08 AM

You need to install the kernel-devel rpm package(s) for your running kernel.

Also see; http://dag.wieers.com/rpm/FAQ.php#B
Then try something like: yum install dkms dkms-r1000 kernel-devel

maroonbaboon 01-29-2008 06:08 PM

This ethernet controller appears to be supported in current kernels by the r8169 driver module, but you are trying to use some 3rd party source code.

Have you tried 'modprobe r8169' (as root)? Just updating to the latest kernel version for your distro might work.

heronleal 01-30-2008 09:54 AM

I did modprobe r8169 (as root).
But what must I see after that?

May I have 1 pci network card and an onboard network controler?

As u can see, I installed a pci network card cause my onboard RTL8101E isn't working.

I do not want a 3rd party install.

maroonbaboon 01-30-2008 10:10 PM

Not sure what happened. I posted a reply a few hours ago and now it has disappeared. Try again...

If modprobe succeeds in loading the module there is no output message. You can check it is loaded by looking at the output of 'lsmod'. If the device is successfully configured there should also be a couple of lines at the end of the output of 'dmesg'. Here is my adapter getting set up:

Linux Tulip driver version 1.1.15 (Feb 27, 2007)
PCI: Found IRQ 11 for device 0000:01:09.0
PCI: Sharing IRQ 11 with 0000:00:1f.3
PCI: Sharing IRQ 11 with 0000:00:1f.5
tulip0: MII transceiver #1 config 1000 status 786d advertising 05e1.
tulip0: MII transceiver #2 config 1000 status 786d advertising 05e1.
tulip0: MII transceiver #3 config 1000 status 786d advertising 05e1.
tulip0: MII transceiver #4 config 1000 status 786d advertising 05e1.
eth0: ADMtek Comet rev 17 at Port 0xd800, 00:01:G8:23:92:00, IRQ 11.

There is no problem with multiple network adaptors. They should appear as eth0, eth1 etc.

heronleal 01-31-2008 06:41 AM

Quote:

Originally Posted by maroonbaboon (Post 3040617)
Not sure what happened. I posted a reply a few hours ago and now it has disappeared. Try again...

If modprobe succeeds in loading the module there is no output message. You can check it is loaded by looking at the output of 'lsmod'. If the device is successfully configured there should also be a couple of lines at the end of the output of 'dmesg'. Here is my adapter getting set up:

Linux Tulip driver version 1.1.15 (Feb 27, 2007)
PCI: Found IRQ 11 for device 0000:01:09.0
PCI: Sharing IRQ 11 with 0000:00:1f.3
PCI: Sharing IRQ 11 with 0000:00:1f.5
tulip0: MII transceiver #1 config 1000 status 786d advertising 05e1.
tulip0: MII transceiver #2 config 1000 status 786d advertising 05e1.
tulip0: MII transceiver #3 config 1000 status 786d advertising 05e1.
tulip0: MII transceiver #4 config 1000 status 786d advertising 05e1.
eth0: ADMtek Comet rev 17 at Port 0xd800, 00:01:G8:23:92:00, IRQ 11.

There is no problem with multiple network adaptors. They should appear as eth0, eth1 etc.

nothing happens whan I do modprobe r8169.

[root@heron ~]# cat /proc/interrupts
CPU0 CPU1
0: 48064082 0 IO-APIC-edge timer
1: 855 0 IO-APIC-edge i8042
8: 3 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-level acpi
12: 138 0 IO-APIC-edge i8042
14: 430807 0 IO-APIC-edge ide0
169: 9063 0 IO-APIC-level eth0
193: 0 0 IO-APIC-level uhci_hcd:usb3
201: 145025488 0 IO-APIC-level uhci_hcd:usb1, ehci_hcd:usb5
209: 68471 0 IO-APIC-level uhci_hcd:usb2, libata
217: 0 0 IO-APIC-level uhci_hcd:usb4
225: 184 0 IO-APIC-level HDA Intel
NMI: 0 0
LOC: 46617729 46617746
ERR: 0
MIS: 0

nachbar 05-13-2008 10:39 PM

As this thread did not come to a resolution, I thought I would post the solution to my similar problem. I have a Compaq SR5350F with an on-board RealTek RTL8101E that would not work with Centos Linux that came with Elastix 1.0 . In addition, I needed a second ethernet port and a PCI T1 card, and did not have another PCI slot (although it looks like I could have installed another PCI Express card).

After a lot of searching, I found this site with the Linux driver for the RTL8101E card: http://driverscollection.com/?C=8. I just followed the instructions that came with the driver (you first have to extract the .tar.bz2 file with
Quote:

tar xjvf (driver name).tar.bz2
).

I would note that searching for the r1000 driver on the RealTek http://www.realtek.com.tw/ website leads one to the driver for "RTL8111B/RTL8168B/RTL8111/RTL8168/RTL8111C". I tried installing that first. It didn't work at all for my onboard RTL8101E.

Other notes: I found a posting that said that I should enable the LAN BootRom in the BIOS (I tried that, but it didn't work and was not necessary. Of course, you do have to enable the onboard ethernet in the BIOS.)

Also, if you comment out the "alias" line for eth0 in /etc/modprobe.conf (if there is one), and use a generic /etc/sysconfig/network-scripts/ifcfg-eth0 file, the driver or operating system will add the hardware address and driver name to ifcfg-eth0 and create a new alias line, which is handy if you have more than one enthernet adapter to ensure that the proper IP address gets assigned to the proper adapter.

See also this post: http://www.linuxquestions.org/questi...roblem-531962/ for related info (they refer to a perhaps newer r1000 driver that I had trouble locating) and for info on ensuring that your system has the right libraries and sources to compile the driver.

James Nachbar
http://www.plastic.org


All times are GMT -5. The time now is 01:32 AM.