Realtek Gigabyte Ethernet problems on Slackware 11 install
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Realtek Gigabyte Ethernet problems on Slackware 11 install
I just configured a new system using Slackware 11.0 and a 2.6.17.13 kernel. I hit a few snags along the way but I was able to resolve them; although I'm a veteran with Linux I still can't consider myself an expert....
Anyhow the Abit AW8D mobo on this box has two onboard ethernet adapters; lspci returns this info (they both show up but I'm only posting one here for brevity):
=================
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
Subsystem: ABIT Computer Corp. Unknown device 240b
Flags: bus master, fast devsel, latency 0, IRQ 5
I/O ports at ee00 [size=256]
Memory at fdeff000 (64-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at fdd00000 [disabled] [size=64K]
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
Capabilities: [100] Advanced Error Reporting
Capabilities: [12c] Virtual Channel
Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-37
Capabilities: [154] Power Budgeting
===================
I compiled the module with support for realtek gigabit but it still doesn't seem to detect these, so I downloaded the r1000_v1.05 driver module from RealTek. It won't compile. Looking around at posts on this and other forums I see many have had similar problems but I've been unable to figure out a solution. Anyone able to help? I believe I have a good source tree, etc.
The readme says to do "make clean modules," but this is what I get:
make[1]: Entering directory `/usr/src/r1000_v1.05/src'
make -C /lib/modules/2.6.17.13/build SUBDIRS=/usr/src/r1000_v1.05/src modules
make[2]: Entering directory `/usr/src/linux-2.6.17.13'
CC [M] /usr/src/r1000_v1.05/src/r1000_n.o
/usr/src/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for 'r1000_tx_action'
/usr/src/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of 'r1000_tx_action' was here
/usr/src/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for 'r1000_tx_action'
/usr/src/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of 'r1000_tx_action' was here
/usr/src/r1000_v1.05/src/r1000_n.c:1344: error: conflicting types for 'r1000_rx_action'
/usr/src/r1000_v1.05/src/r1000_n.c:136: error: previous declaration of 'r1000_rx_action' was here
/usr/src/r1000_v1.05/src/r1000_n.c:1344: error: conflicting types for 'r1000_rx_action'
/usr/src/r1000_v1.05/src/r1000_n.c:136: error: previous declaration of 'r1000_rx_action' was here
/usr/src/r1000_v1.05/src/r1000_n.c:136: warning: 'r1000_rx_action' declared `static' but never defined
/usr/src/r1000_v1.05/src/r1000_n.c:137: warning: 'r1000_tx_action' used but never defined
/usr/src/r1000_v1.05/src/r1000_n.c:1296: warning: 'r1000_tx_action' defined but not used
/usr/src/r1000_v1.05/src/r1000_n.c:1345: warning: 'r1000_rx_action' defined but not used
make[3]: *** [/usr/src/r1000_v1.05/src/r1000_n.o] Error 1
make[2]: *** [_module_/usr/src/r1000_v1.05/src] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.17.13'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/r1000_v1.05/src'
make: *** [modules] Error 2
Thanks, ........
Last edited by nemestrinus; 12-31-2006 at 12:50 AM.
Anyhow the Abit AW8D mobo on this box has two onboard ethernet adapters; lspci returns this info (they both show up but I'm only posting one here for brevity):
Hmm - how are you going to select which one is which?
Ok, I have the exact same NIC on my GA-945PL-S3 Gigabyte motherboard. But I've had enormous problems getting this NIC to actually work - it seems that the Realtek driver for this card is currently broken. Mine only worked intermittently - but I did manage to get it compiled, though...
Quote:
I compiled the module with support for realtek gigabit but it still doesn't seem to detect these, so I downloaded the r1000_v1.05 driver module from RealTek.
I assume you unloaded / disabled this module -before- you tried to start using the downloaded one?
Quote:
It won't compile. Looking around at posts on this and other forums I see many have had similar problems but I've been unable to figure out a solution. Anyone able to help? I believe I have a good source tree, etc.
The readme says to do "make clean modules," but this is what I get:
make[1]: Entering directory `/usr/src/r1000_v1.05/src'
make -C /lib/modules/2.6.17.13/build SUBDIRS=/usr/src/r1000_v1.05/src modules
make[2]: Entering directory `/usr/src/linux-2.6.17.13'
CC [M] /usr/src/r1000_v1.05/src/r1000_n.o
/usr/src/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for 'r1000_tx_action'
/usr/src/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of 'r1000_tx_action' was here
/usr/src/r1000_v1.05/src/r1000_n.c:1295: error: conflicting types for 'r1000_tx_action'
/usr/src/r1000_v1.05/src/r1000_n.c:137: error: previous declaration of 'r1000_tx_action' was here
/usr/src/r1000_v1.05/src/r1000_n.c:1344: error: conflicting types for 'r1000_rx_action'
/usr/src/r1000_v1.05/src/r1000_n.c:136: error: previous declaration of 'r1000_rx_action' was here
/usr/src/r1000_v1.05/src/r1000_n.c:1344: error: conflicting types for 'r1000_rx_action'
/usr/src/r1000_v1.05/src/r1000_n.c:136: error: previous declaration of 'r1000_rx_action' was here
/usr/src/r1000_v1.05/src/r1000_n.c:136: warning: 'r1000_rx_action' declared `static' but never defined
/usr/src/r1000_v1.05/src/r1000_n.c:137: warning: 'r1000_tx_action' used but never defined
/usr/src/r1000_v1.05/src/r1000_n.c:1296: warning: 'r1000_tx_action' defined but not used
/usr/src/r1000_v1.05/src/r1000_n.c:1345: warning: 'r1000_rx_action' defined but not used
make[3]: *** [/usr/src/r1000_v1.05/src/r1000_n.o] Error 1
make[2]: *** [_module_/usr/src/r1000_v1.05/src] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.17.13'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/r1000_v1.05/src'
make: *** [modules] Error 2
Thanks, ........
Hmm - I'm not sure but it looks as if somehow the module is trying to compile twice? This may have to do with the configure script messing up - could this maybe be because you have two NICs on that board? Is it possible to disable one of them in the BIOS and see if the driver would then compile? It seems to define symbols and then try to redefine them, which crashes out the compiler.
It might also be due to the fact that you have an older kernel - have you tried getting a recent kernel and seeing if the problem persists? I managed to compile this very same driver on the 2.6.18.1 kernel under Fedora Core 6 with no problems. Ok, it DID compile, but my NIC still didn't work with this driver... I eventually had to disable it and use a Realtek 8139 based card in a PCI slot to get connectivity for my box...
OK thanks for the hints, I had already decided to try a newer kernel, and once I got 2.6.19.1 successfully compiled, it picked up both eth0 and eth1 with no further ado. Problem solved.
I'm having the same problem here and I use the slack 11 too. To solve the problem you just used the kernel 2.6.19.1?
Because I put the kernel 2.6.18.3 and the card didn't work!
Yes I had also tried the 2.6 kernels included on the Slackware install disks and those did not make the card work. So I went to kernel.org and downloaded 2.6.19.1, compiling it with the same options as the kernel on the Slackware disk, but being sure to enable the Realtek 1000MHz card support. I built it statically into the kernel, but the module should work as well. ( follow instructions carefully -- http://www.digitalhermit.com/~kwan/kernel.html )
Last edited by nemestrinus; 01-10-2007 at 12:42 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.