diff options
author | Jeff Hatch <Jeff.Hatch@multitech.com> | 2016-11-29 10:18:46 -0600 |
---|---|---|
committer | Jeff Hatch <Jeff.Hatch@multitech.com> | 2016-11-29 10:18:46 -0600 |
commit | fd8e0a15f32252f38ba36645535b54c33b3bdb18 (patch) | |
tree | 2fcebd77a1eb80ef05a91f7044bc5329e1537333 /recipes-core/udev/udev-182/mtcdt | |
parent | cc493ab08f771ec4b82087c91c76f65be2b384d8 (diff) | |
download | meta-mlinux-atmel-fd8e0a15f32252f38ba36645535b54c33b3bdb18.tar.gz meta-mlinux-atmel-fd8e0a15f32252f38ba36645535b54c33b3bdb18.tar.bz2 meta-mlinux-atmel-fd8e0a15f32252f38ba36645535b54c33b3bdb18.zip |
Add udev Ethernet AC card interface naming rules
Diffstat (limited to 'recipes-core/udev/udev-182/mtcdt')
-rw-r--r-- | recipes-core/udev/udev-182/mtcdt/accessory_ethernet.rules | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-core/udev/udev-182/mtcdt/accessory_ethernet.rules b/recipes-core/udev/udev-182/mtcdt/accessory_ethernet.rules new file mode 100644 index 0000000..376486b --- /dev/null +++ b/recipes-core/udev/udev-182/mtcdt/accessory_ethernet.rules @@ -0,0 +1,21 @@ +#To add new rule for new device you have to run (in case if you want to add eth1 interface) +#admin@mtcdt:~# udevadm info --attribute-walk --path=/sys/class/net/eth1 +# looking at device '/devices/ahb.0/700000.ehci/usb1/1-2/1-2.1/1-2.1.1/1-2.1.1:1.0/net/eth1': +# KERNEL=="eth1" +# SUBSYSTEM=="net" +# DRIVER=="" +# ATTR{mtu}=="1500" +# ATTR{type}=="1" +# ........... +# ........... + +# looking at parent device '/devices/ahb.0/700000.ehci/usb1/1-2/1-2.1/1-2.1.1/1-2.1.1:1.0': +# KERNELS=="1-2.1.1:1.0" <------------------- extract this record to add to the rule +# SUBSYSTEMS=="usb" +# DRIVERS=="smsc75xx" +# ATTRS{bInterfaceClass}=="ff" +# ATTRS{bInterfaceSubClass}=="00" +# ........... + +KERNELS=="1-2.1.1:1.0", SUBSYSTEMS=="usb", DRIVERS=="smsc75xx", NAME="eth1" +KERNELS=="1-2.1.2:1.0", SUBSYSTEMS=="usb", DRIVERS=="smsc75xx", NAME="eth2" |