LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Realtek 8139 ethernet and new kernel (http://www.linuxquestions.org/questions/linux-newbie-8/realtek-8139-ethernet-and-new-kernel-125539/)

markjuggles 12-13-2003 12:42 PM

Realtek 8139 ethernet and new kernel
 
Hi,

I have a HP Pavilion 510n with an i810 Sound Chipset and an RTL8139 ethernet card.
The Debian 3.0 installed kernel does not recognize my sound card but the ethernet is ok.
When I rebuild the kernel with the i810 and the RTL8139 configured, sound is ok but ethernet is not.

Here is my lspci:

00:00.0 Host bridge: Intel Corp. 82810E GMCH [Graphics Memory Controller Hub] (rev 03)
00:01.0 VGA compatible controller: Intel Corp. 82810E CGC [Chipset Graphics Controller] (rev 03)
00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 02)
00:1f.2 USB Controller: Intel Corp. 82801AA USB (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801AA AC'97 Audio (rev 02)
01:0a.0 Communication controller: Conexant HCF 56k Data/Fax Modem (rev 89)
01:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)


Here are some greps from 'dmesg' for the two kernels:

Custom kernel, "eth0" (broken)
-----------------------------------
eth0: RealTek RTL8139 Fast Ethernet at 0xd0800000, 00:e0:18:4c:a9:d2, IRQ 9
eth0: Identified 8139 chip type 'RTL-8139B'
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.

Debian kernel, "eth0" (works)
---------------------------------
eth0: RealTek RTL8139 Fast Ethernet at 0xd081a000, 00:e0:18:4c:a9:d2, IRQ 9
eth0: Identified 8139 chip type 'RTL-8139B'
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.

Custom kernel, "8139" (broken)
-----------------------------------
8139too Fast Ethernet driver 0.9.24
eth0: RealTek RTL8139 Fast Ethernet at 0xd0800000, 00:e0:18:4c:a9:d2, IRQ 9
eth0: Identified 8139 chip type 'RTL-8139B'
8139cp 10/100 PCI Ethernet driver v0.0.6 (Nov 19, 2001)
8139cp: pci dev 01:0d.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp: Try the "8139too" driver instead.

Debian kernel, "8139" (works)
-----------------------------------
8139cp 10/100 PCI Ethernet driver v0.0.6 (Nov 19, 2001)
8139cp: pci dev 01:0d.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.24
eth0: RealTek RTL8139 Fast Ethernet at 0xd081a000, 00:e0:18:4c:a9:d2, IRQ 9
eth0: Identified 8139 chip type 'RTL-8139B'

It looks about the same to me except the order in which the 8139cp driver is rejected.
Since it's an 8139B card, rejecting the 8139cp driver is ok.

Can you provide any clues?

Thanks,

Mark

HappyTux 12-13-2003 09:45 PM

I would say make an alias to tell the system to use the 8139too for eth0. Open /etc/modutils/aliases and add the following lines:
Code:

## Added by me to force eth0 to use the correct module
alias eth0 8139too

Then run update-modules to update the /etc/modules.conf and reboot.

markjuggles 12-14-2003 12:56 PM

Thanks, but that didn't help.

My guess is that the kernel does choose the 8139too driver -- it just doesn't work.

Any other ideas??

Mark

HappyTux 12-14-2003 02:28 PM

Quote:

Originally posted by markjuggles
Thanks, but that didn't help.

My guess is that the kernel does choose the 8139too driver -- it just doesn't work.

Any other ideas??

Mark

Recompile the kernel with the 8139too module and no 8139cp then it has to use the correct module.

markjuggles 12-15-2003 09:04 AM

Yep, done that too.

I was going through the code and found a pointer to its homepage. There is a slightly newer version of the driver available from sourceforge. After downloading and compiling, I got some errors. Make clean didn't help.

I will try compiling the new driver as a module....

Mark


All times are GMT -5. The time now is 08:11 PM.