You are not logged in.

#1 2012-09-22 20:27:41

hamroctopus
Member
Registered: 2012-09-22
Posts: 9

Failing to load Realtek ethernet driver [SOLVED]

Arch was installed on this computer not long ago, but I had established a steady-state of proper configuration. One day at boot time my computer threw me an error that dhcpcd failed on eth0.

Below is the output of ip addr | sed '/^[0-9]/!d;s/: <.*$//' . If you'll notice, I have no eth0 device.

1. lo

lspci -v | grep -a5 Ethernet

01:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. TRL=8139/8139C/8139C+ (rev 10)
        Subsystem: Elitegroup Computer Systems Device 8139
        Flags: bus master, medium devsel, latency 32, IRQ 10
        I/O ports at C800 (size=256)
        Memory at fd8fe000 (32-bit, non-prefetchable) [size=256]
        Capabilities: <access denied>

/etc/rc.conf

DAEMONS=(syslog-ng network @crond @sshd @dbus)

interface=eth0

This was the setup that was working for some time before things went awry, One solution I had tried involved adding

MODULES=(8139too)

with no better results, so that line is now removed.

It is my understanding that the modules for my Realtek device are built into the standard kernel I'm using, but I am having no luck loading them. If this is indeed the problem, what do you advise?

Last edited by hamroctopus (2012-09-23 18:31:06)

Offline

#2 2012-09-23 17:19:32

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Failing to load Realtek ethernet driver [SOLVED]

removing

8139too

from MODULES array

does udev load automatically the module?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2012-09-23 17:27:38

hamroctopus
Member
Registered: 2012-09-22
Posts: 9

Re: Failing to load Realtek ethernet driver [SOLVED]

It isn't now, but I'm assuming it used to. I'm not having any luck loading it manually.
modprobe 8139too returns nothing, and
insmod 8139too returns

Error: could not load module 8139too: No such file or directory

Offline

#4 2012-09-23 17:33:44

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Failing to load Realtek ethernet driver [SOLVED]

What is the output of ip link   ??
I ask, because the behavior of ip addr has changed.  It no longer displays interfaces that have no address.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Online

#5 2012-09-23 17:39:06

hamroctopus
Member
Registered: 2012-09-22
Posts: 9

Re: Failing to load Realtek ethernet driver [SOLVED]

ip link

1. lo <LOOPBACK,UP,LOWER_UP> ntu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 bdr 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever

Last edited by hamroctopus (2012-09-23 17:39:34)

Offline

#6 2012-09-23 17:50:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Failing to load Realtek ethernet driver [SOLVED]

Does the module exist in the file system?
Does the path match that of your kernel?

I do not have your hardware, but I can install the module.

ewaller@odin:~[1] 1005 %find /usr/lib/modules -name 8139too.ko.gz -print 
/usr/lib/modules/3.5.4-1-ARCH/kernel/drivers/net/ethernet/realtek/8139too.ko.gz
ewaller@odin:~ 1006 %uname -a
Linux odin 3.5.4-1-ARCH #1 SMP PREEMPT Sat Sep 15 08:12:04 CEST 2012 x86_64 GNU/Linux
ewaller@odin:~ 1007 %modprobe 8139too
ERROR: could not insert '8139too': Operation not permitted
ewaller@odin:~[1] 1008 %sudo modprobe 8139too
[sudo] password for ewaller: 
ewaller@odin:~ 1009 %lsmod | grep 8139
8139too                20727  0 
mii                     4123  2 r8169,8139too
ewaller@odin:~ 1010 %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Online

#7 2012-09-23 17:53:29

hamroctopus
Member
Registered: 2012-09-22
Posts: 9

Re: Failing to load Realtek ethernet driver [SOLVED]

It is there

%find /usr/lib/modules -name 8139too.ko.gz -print 
/usr/lib/modules/3.5.4-1-ARCH/kernel/drivers/net/ethernet/realtek/8139too.ko.gz

Offline

#8 2012-09-23 17:55:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Failing to load Realtek ethernet driver [SOLVED]

And your kernel is 3.5.4-1-ARCH ?
It looks like you did modprobe the driver before you tried insmod.  What is the output of lsmod | grep 8139   ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Online

#9 2012-09-23 17:58:02

hamroctopus
Member
Registered: 2012-09-22
Posts: 9

Re: Failing to load Realtek ethernet driver [SOLVED]

%uname -r
3.5.3-1-ARCH

%lsmod | grep 8139

%sudo lsmod | grep 8139

%

Offline

#10 2012-09-23 18:02:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Failing to load Realtek ethernet driver [SOLVED]

Well, there's your problem...

Your kernel is 3.5.3-1-Arch,  but the modules are for 3.5.4-1-Arch.

Methinks you have recently updated your kernel, but have not rebooted the system so the old kernel (which is still in memory) can no longer find its modules.  They have been replaced with the new ones.

Last edited by ewaller (2012-09-23 18:02:53)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Online

#11 2012-09-23 18:07:32

hamroctopus
Member
Registered: 2012-09-22
Posts: 9

Re: Failing to load Realtek ethernet driver [SOLVED]

D'oh! I must have overlooked that hundreds of times. Nice catch! Now, how do I fix this? I've rebooted dozens of times since I have not had ethernet on this computer. I tried mkinitcpio -p linux which did not fix the problem, and I'm not sure what else to try.

Offline

#12 2012-09-23 18:17:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Failing to load Realtek ethernet driver [SOLVED]

If a reboot did not catch it, it means the kernel installed in /boot must not have been updated when you last updated your kernel.  This might have happened if /boot was not mounted when you did the update.  In that case, the files will be mounted at the mount point /boot, not in the volume that you normally mount at that location (your boot volume)

Check this by seeing if /boot is mounted (look at the output of mount).  If it is, look at the dates and names of the kernel in boot.  Then, unmount it, and see if there are newer files at /boot.
If there are, you can move those files to the boot volume.

The easiest fix is probably just to ensure the boot volume is mounted at /boot, then just reinstall the kernel.  If there is any cruft in your mount point (without the boot volume mounted) then you could just delete them.

Edit:  Another possibility is that you have two boot partitions, and Grub (or Syslinux, or whatever) is picking up the wrong one.
Edit: Typo

Last edited by ewaller (2012-09-23 18:46:23)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Online

#13 2012-09-23 18:30:31

hamroctopus
Member
Registered: 2012-09-22
Posts: 9

Re: Failing to load Realtek ethernet driver [SOLVED]

Yep! I did have two boot partitions, removing the wrong one fixed my problem. Thank you very much!

Offline

Board footer

Powered by FluxBB