[lfs-support] lfs-7.2 udev 2 ethernet boards

Walter Webb ngogn at earthlink.net
Fri Sep 14 12:28:41 PDT 2012

Bruce Dubbs wrote:
>     From 7.2:
>> 2: eth0:<NO-CARRIER,BROADCAST,MULTICAST,UP>  mtu 1500 qdisc pfifo_fast
>> state DOWN mode DEFAULT qlen 1000
>>        link/ether 00:26:18:fe:70:ec brd ff:ff:ff:ff:ff:ff
>> 3: eth1:<BROADCAST,MULTICAST,UP,LOWER_UP>  mtu 1500 qdisc pfifo_fast
>> state UNKNOWN mode DEFAULT qlen 1000
> There is no mac address here.  Is the driver compiled into the kernel?
It's there in my email; you must have clipped it.
> Take a look at the udevadm man page and see what it can do. I would 
> try udevadm --verbose --dry-run --action=add --subsystem-match=net \ 
> --attr-match=address=00:e0:4c:19:16:99 also look at udevadm test. -- Bruce

# udevadm trigger --verbose --dry-run --action=add --subsystem-match=net \
 > --attr-match=address=00:e0:4c:19:16:99

# udevadm test
calling: test
version 188
syspath parameter missing

I copied my lfs-7.2 build to another partition, made all the
necessary changes, then installed udev-181 according to
the lfs-7.1 instructions.  I just built it over the systemd-188
from 7.2.  Whenever the wrong ethernet got recognized
first, it always got switched.  Here is one dmesg:

# dmesg | grep eth
r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xf890a000, 
00:26:18:fe:70:ec, XID 083000c0 IRQ 46
8139too 0000:07:03.0: eth1: RealTek RTL8139 at 0xf8908c00, 
00:e0:4c:19:16:99, IRQ 18
r8169 0000:02:00.0: eth0: jumbo features [frames: 9200 bytes, tx 
checksumming: ko]
8139too 0000:07:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
r8169 0000:02:00.0: eth1: unable to load firmware patch 
rtl_nic/rtl8168d-2.fw (-2)
r8169 0000:02:00.0: eth1: link down

Note there is no message from udevd like this from lfs-7.1:

udevd[1053]: renamed network interface eth0 to eth1

On about the fifth boot, some kind of udev error stalled
the boot.  The next boot stopped after cleaning the
filesystem.  After this, I booted at least 15 times with
no more problems.

Incidentally, udev-181 put 70-persistent-cd.rules in
/etc/udev/rules.d.  I had noticed it wasn't there before,
but I hadn't got around to investigating it.

More information about the lfs-support mailing list