Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] r8169 unable to apply firmware patch
Date: Mon, 01 Aug 2011 20:15:06
Message-Id: CAN0CFw2ebV1_Kfo+DRw=6dqW39TA7okwN618euRqBApf95PWjQ@mail.gmail.com
In Reply to: Re: [gentoo-user] r8169 unable to apply firmware patch by Michael Mol
1 >>>>  My laptop's
2 >>>> r8169 eth0 appears under ifconfig even when there's no ethernet cable
3 >>>> attached.  That's the expected behavior isn't it?
4 >>>
5 >>> Sure; ifconfig will even tell you if the link is up or down. Just
6 >>> because the link is down doesn't mean the interface isn't there. :)
7 >>
8 >> I see eth0 under ifconfig on my laptop but not on my desktop.
9 >> Strangely, on my desktop eth0 does appear under iwconfig (no wireless
10 >> extensions).  dmesg pertaining to eth0 and r8169 looks normal.  lspci
11 >> -v says:
12 >>
13 >> Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI
14 >> Express Gigabit Ethernet controller
15 >> ...
16 >> Kernel driver in use: r8169
17 >>
18 >> But no eth0 under ifconfig.
19 >
20 > Time to go for a walk in /sys, to find out more information.
21 >
22 > Check out /sys/bus/pci/devices
23 >
24 > Now, with lspci, a NIC will look something like this:
25 > 01:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
26 > RTL-8139/8139C/8139C+ (rev 10)
27 >
28 > If I look under /sys/bus/pci/devices, I'll see a corresponding
29 > directory (compare the first column from the lspci output):
30 > 0000:01:08.0
31
32 I have:
33
34 # lspci
35 ...
36 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
37 RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
38
39 # ls /sys/bus/pci/devices
40 0000:00:00.0 0000:00:0a.0 0000:00:13.0 0000:00:14.3 0000:00:15.1
41 0000:00:18.1 0000:01:05.0 0000:04:00.0
42 0000:00:01.0 0000:00:11.0 0000:00:13.2 0000:00:14.4 0000:00:16.0
43 0000:00:18.2 0000:01:05.1
44 0000:00:04.0 0000:00:12.0 0000:00:14.0 0000:00:14.5 0000:00:16.2
45 0000:00:18.3 0000:02:00.0
46 0000:00:09.0 0000:00:12.2 0000:00:14.1 0000:00:15.0 0000:00:18.0
47 0000:00:18.4 0000:03:00.0
48
49 # ls /sys/bus/pci/devices/0000:04:00.0
50 broken_parity_status device irq msi_bus reset
51 resource2_wc subsystem_device vpd
52 class dma_mask_bits local_cpulist net
53 resource resource4 subsystem_vendor
54 config driver local_cpus remove
55 resource0 resource4_wc uevent
56 consistent_dma_mask_bits enable modalias rescan
57 resource2 subsystem vendor
58
59 So I guess I'm missing net:eth0 in that last one?
60
61 It's a nearly brand new motherboard:
62
63 http://www.newegg.com/Product/Product.aspx?Item=N82E16813128490
64
65 Maybe the r8169 driver hasn't caught up?
66
67 - Grant
68
69
70 > If I run 'ls' in that directory, I see:
71 >
72 > -rw-r--r-- 1 root root 4096 2011-08-01 15:19 broken_parity_status
73 > lrwxrwxrwx 1 root root    0 2011-08-01 15:19 bus -> ../../../../bus/pci
74 > -r--r--r-- 1 root root 4096 2011-08-01 15:11 class
75 > -rw-r--r-- 1 root root  256 2011-08-01 15:11 config
76 > -r--r--r-- 1 root root 4096 2011-08-01 15:11 device
77 > lrwxrwxrwx 1 root root    0 2011-08-01 15:11 driver ->
78 > ../../../../bus/pci/drivers/8139too
79 > -rw------- 1 root root 4096 2011-08-01 15:19 enable
80 > -r--r--r-- 1 root root 4096 2011-08-01 15:11 irq
81 > -r--r--r-- 1 root root 4096 2011-08-01 15:19 local_cpus
82 > -r--r--r-- 1 root root 4096 2011-08-01 15:19 modalias
83 > -rw-r--r-- 1 root root 4096 2011-08-01 15:19 msi_bus
84 > lrwxrwxrwx 1 root root    0 2011-08-01 15:19 net:eth2 ->
85 > ../../../../class/net/eth2
86 > drwxr-xr-x 2 root root    0 2011-05-12 10:47 power
87 > -r--r--r-- 1 root root 4096 2011-08-01 15:11 resource
88 > -rw------- 1 root root  256 2011-08-01 15:19 resource0
89 > -rw------- 1 root root  256 2011-08-01 15:19 resource1
90 > lrwxrwxrwx 1 root root    0 2011-08-01 15:19 subsystem -> ../../../../bus/pci
91 > -r--r--r-- 1 root root 4096 2011-08-01 15:19 subsystem_device
92 > -r--r--r-- 1 root root 4096 2011-08-01 15:19 subsystem_vendor
93 > -rw-r--r-- 1 root root 4096 2011-08-01 15:19 uevent
94 > -r--r--r-- 1 root root 4096 2011-08-01 15:11 vendor
95 >
96 >
97 > So, you an see a file named 'net:eth2', so I expect it would show up
98 > as eth2, absent any udev renaming or aliasing rules.
99 >
100 > --
101 > :wq

Replies

Subject Author
Re: [gentoo-user] r8169 unable to apply firmware patch Michael Mol <mikemol@×××××.com>