[oe] confused by netbase/udev
Steffen Sledz
sledz at dresearch.de
Tue Feb 9 11:23:17 UTC 2010
I'm a bit confused about netbase and udev use im Angstrom.
Here's what i see:
I connect an USB-NIC.
/etc/udev/rules.d/70-persistent-net.rules is created:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# USB device 0x:0x (MOSCHIP usb-ethernet driver)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:3b:04:02:ae", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
But the NIC is not comming up (no ip assigned via DHCP). :(
I disconnect the USB-NIC and reboot.
/etc/udev/rules.d/70-persistent-net.rules still exists with
the mentioned content. Why?
I connect another USB-NIC.
/etc/udev/rules.d/70-persistent-net.rules is extended:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# USB device 0x:0x (MOSCHIP usb-ethernet driver)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:3b:04:02:ae", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# USB device 0x:0x (pegasus)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:e8:00:0f:e0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
This NIC is also not coming up. :(
And for each new NIC another name is created?! :(
And here's what i like to see:
* Connect an USB-NIC should result in an DHCP-configured interface.
* Disconnect the USB-NIC remove all traces from the system.
Hope you can clear the mist in my head.
Steffen
More information about the Openembedded-devel
mailing list