LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   realtek 8111B and r1000 problem (https://www.linuxquestions.org/questions/linux-hardware-18/realtek-8111b-and-r1000-problem-518705/)

vladakg85 01-12-2007 12:16 PM

realtek 8111B and r1000 problem
 
yes I buy a new computer and I have a lot of problems one of them is my network card (on motherboard) realtek 8111B.
Linux is Slackware 11 kernel 2.4 (try and with 2.6 the same thing) my network card was not found.
I downloaded r1000 driver from realtek site v5 and it doesn't work.
Here are some screen:

root@darkstar:/home/vlada/r1000_v1.05# make clean modules
make -C src/ clean
make[1]: Entering directory `/home/vlada/r1000_v1.05/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions
make[1]: Leaving directory `/home/vlada/r1000_v1.05/src'
make -C src/ modules
make[1]: Entering directory `/home/vlada/r1000_v1.05/src'
make -f Makefile_linux24x
make[2]: Entering directory `/home/vlada/r1000_v1.05/src'
gcc -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -I/lib/modules/2.4.33.3/build/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -include /lib/modules/2.4.33.3/build/include/linux/modversions.h -c r1000_n.c -o r1000_n.o
In file included from /lib/modules/2.4.33.3/build/include/linux/spinlock.h:6,
from /lib/modules/2.4.33.3/build/include/linux/module.h:12,
from r1000.h:1,
from r1000_n.c:5:
/lib/modules/2.4.33.3/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.4.33.3/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.33.3/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
r1000_n.c:106:1: warning: "IRQ_NONE" redefined
In file included from /lib/modules/2.4.33.3/build/include/asm/highmem.h:25,
from /lib/modules/2.4.33.3/build/include/linux/highmem.h:11,
from /lib/modules/2.4.33.3/build/include/linux/vmalloc.h:8,
from /lib/modules/2.4.33.3/build/include/asm/io.h:47,
from /lib/modules/2.4.33.3/build/include/asm/pci.h:41,
from /lib/modules/2.4.33.3/build/include/linux/pci.h:683,
from r1000.h:2,
from r1000_n.c:5:
/lib/modules/2.4.33.3/build/include/linux/interrupt.h:17:1: warning: this is the location of the previous definition
r1000_n.c:107:1: warning: "IRQ_HANDLED" redefined
/lib/modules/2.4.33.3/build/include/linux/interrupt.h:18:1: warning: this is the location of the previous definition
r1000_n.c: At top level:
r1000_n.c:1295: error: conflicting types for 'r1000_tx_action'
r1000_n.c:137: error: previous declaration of 'r1000_tx_action' was here
r1000_n.c:1295: error: conflicting types for 'r1000_tx_action'
r1000_n.c:137: error: previous declaration of 'r1000_tx_action' was here
r1000_n.c:1344: error: conflicting types for 'r1000_rx_action'
r1000_n.c:136: error: previous declaration of 'r1000_rx_action' was here
r1000_n.c:1344: error: conflicting types for 'r1000_rx_action'
r1000_n.c:136: error: previous declaration of 'r1000_rx_action' was here
r1000_n.c: In function `r1000_interrupt':
r1000_n.c:1479: warning: `return' with a value, in function returning void
r1000_n.c:1483: warning: `return' with a value, in function returning void
r1000_n.c: At top level:
r1000_n.c:136: warning: 'r1000_rx_action' declared `static' but never defined
r1000_n.c:137: warning: 'r1000_tx_action' declared `static' but never defined
r1000_n.c:1296: warning: 'r1000_tx_action' defined but not used
r1000_n.c:1345: warning: 'r1000_rx_action' defined but not used
make[2]: *** [r1000_n.o] Error 1
make[2]: Leaving directory `/home/vlada/r1000_v1.05/src'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/vlada/r1000_v1.05/src'
make: *** [modules] Error 2
root@darkstar:/home/vlada/r1000_v1.05#

===============================================

root@darkstar:/home/vlada/r1000_v1.05# make install modules
make -C src/ install
make[1]: Entering directory `/home/vlada/r1000_v1.05/src'
install -m 644 -c r1000.o /lib/modules/2.4.33.3/kernel/drivers/net/
install: cannot stat `r1000.o': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/vlada/r1000_v1.05/src'
make: *** [install] Error 2
root@darkstar:/home/vlada/r1000_v1.05#

=================================================

root@darkstar:/home/vlada/r1000_v1.05/src# lsmod
Module Size Used by Not tainted
snd-seq-oss 23104 0 (unused)
snd-seq-midi-event 3208 0 [snd-seq-oss]
snd-seq 33552 2 [snd-seq-oss snd-seq-midi-event]
snd-seq-device 3716 0 [snd-seq-oss snd-seq]
snd-pcm-oss 28928 0 (unused)
snd-mixer-oss 11928 0 [snd-pcm-oss]
uhci 23804 0 (unused)
ehci-hcd 17644 0 (unused)
usbcore 56812 1 [uhci ehci-hcd]
i810_rng 2496 0 (unused)
snd-intel8x0 19188 0
snd-ac97-codec 68160 0 [snd-intel8x0]
snd-pcm 52804 0 [snd-pcm-oss snd-intel8x0 snd-ac97-codec]
snd-timer 13168 0 [snd-seq snd-pcm]
snd 34304 0 [snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer]
soundcore 3300 6 [snd]
snd-page-alloc 4980 0 [snd-seq-oss snd-seq snd-seq-device snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd]
pcmcia_core 39492 0
ntfs 50848 2 (autoclean)
ide-scsi 9392 0
root@darkstar:/home/vlada/r1000_v1.05/src#

=============================================

oot@darkstar:/home/vlada/r1000_v1.05/src# lspci
00:00.0 Host bridge: Intel Corporation 945G/GZ/P/PL Express Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 945G/GZ/P/PL Express PCI Express Root Port (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1e.2 Multimedia audio controller: Intel Corporation 82801G (ICH7 Family) AC'97 Audio Controller (rev 01)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0393 (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
root@darkstar:/home/vlada/r1000_v1.05/src#

===============================================

root@darkstar:/home/vlada/r1000_v1.05/src# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

root@darkstar:/home/vlada/r1000_v1.05/src#

Electro 01-12-2007 04:18 PM

A lot of people do not know that 2.6.18 is a lot different than 2.6.9. Also the compiler version makes a big difference.

I recommend buy a PCI 100 Mb NIC. Eventually, PCI Express Realtek cards will work.

vladakg85 01-12-2007 05:10 PM

If I have to buy new hardware to use linux I will not use linux :) but that is not the point, I want to make this card work and becouse I can't do it alone, I come here for help.

PS
this is kernel 2.4.33.3

Electro 01-12-2007 05:43 PM

Send an email to Linus so he can recruit a network card developer that has a Realtek 8111/8168.

It is not Linux fault, it is motherboard manufactures that include hardware that is not Linux compatible. Also companies like Realtek need to follow through supporting their hardware in many OS.

BTW, I suggest using 2.6.x kernels because it has better scheduling and better for newer computers.

vladakg85 01-13-2007 05:15 AM

I solve the problem :) by installing kernel 2.6.19.2

nemestrinus 01-13-2007 09:09 PM

2.6.19.1 kernel works too
 
I also had this exact problem,using Slackware 11.0 with built-in realtek 8111B lan card on my motherboard, then trying to compile the r1000 driver. Everything worked fine when I compiled and installed the 2.6.19.1 kernel. One thing happened after that though: I couldn't run my firewall until I also upgraded my version of iptables, but that wasn't too hard once I figured it out.

Electro 01-13-2007 11:36 PM

I will note this in my book.


All times are GMT -5. The time now is 06:07 AM.