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

Bruce Dubbs bruce.dubbs at gmail.com
Thu Sep 13 18:20:37 PDT 2012


Walter Webb wrote:
> Bruce Dubbs wrote:
>> Walter Webb wrote:
>>> Since I got firefox installed in lfs-7.2 about 3 days ago,
>>> I have been trying to connect.  Eventually, I tried:

[deleted]

> ---------------  lfs 7.2 70-persistent-net.rules  ---------------

> # net device 8139too
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:e0:4c:19:16:99", ATTR{dev_id}=="0x0",
> ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
>
> # net device r8169
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:26:18:fe:70:ec", ATTR{dev_id}=="0x0",
> ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

This looks OK to me.


>   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?


> # dmesg | grep eth
> r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xf8896000,
> 00:26:18:fe:70:ec, XID 083000c0 IRQ 47
> r8169 0000:02:00.0: eth0: jumbo features [frames: 9200 bytes, tx
> checksumming: ko]
> 8139too 0000:07:03.0: eth1: RealTek RTL8139 at 0xf88bac00,
> 00:e0:4c:19:16:99, IRQ 18

 From the persistent-net.rules file, this should be eth0.

> r8169 0000:02:00.0: eth0: unable to load firmware patch
> rtl_nic/rtl8168d-2.fw (-2)
> r8169 0000:02:00.0: eth0: link down
> 8139too 0000:07:03.0: eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
>
>
> from 7.1:
>
> # dmesg | grep eth
> r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xf8786000,
> 00:26:18:fe:70:ec, XID 083000c0 IRQ 46
> r8169 0000:02:00.0: eth0: jumbo features [frames: 9200 bytes, tx
> checksumming: ko]
> udevd[1055]: renamed network interface eth0 to eth1

It looks like udevd is doing the proper thing here, but not in 7.2.

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

> 8139too 0000:07:03.0: eth0: RealTek RTL8139 at 0xf8822c00,
> 00:e0:4c:19:16:99, IRQ 18
> 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
>





More information about the lfs-support mailing list