summaryrefslogtreecommitdiff
path: root/recipes-core/udev/eudev/mtcdt/accessory_ethernet.rules
blob: edc0cc04adb063d0a96af06cec3affd49d4a986e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ACTION!="add|change|move", GOTO="mlinux_end"
SUBSYSTEM!="net", GOTO="mlinux_end"
#
# Cannot always get driver test to work.
#ENV{DRIVER}!="smsc75xx", GOTO="mlinux_end"
#DRIVERS!="smsc75xx", GOTO="mlinux_end"

#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
#
# Because ID_PATH is the same for two different cases in the two port hub case, and
# the original MTCDT hub layout, we must use the entire device path.  Only eth1 needs
# to be renamed.
#
# Two port hub case:
# Some MTCDTIP-0.1:
ENV{DEVPATH}=="/devices/platform/ahb/700000.ehci/usb1/1-2/1-2.3/1-2.3:1.0/net/eth1", NAME="eth2"
# AP1          /devices/platform/ahb/700000.ehci/usb1/1-2/1-2.2/1-2.2:1.0/net/eth1

# MTCDT-0.0 and MTCDT-0.1:
ENV{DEVPATH}=="/devices/platform/ahb/700000.ehci/usb1/1-2/1-2.1/1-2.1.2/1-2.1.2:1.0/net/eth1", NAME="eth2"
# AP1          /devices/platform/ahb/700000.ehci/usb1/1-2/1-2.1/1-2.1.1/1-2.1.1:1.0/net/eth1

# MTCDT-0.2:
ENV{DEVPATH}=="/devices/platform/ahb/700000.ehci/usb1/1-2/1-2.1/1-2.1.2/1-2.1.2:1.0/net/eth1", NAME="eth2"
# AP1          /devices/platform/ahb/700000.ehci/usb1/1-2/1-2.1/1-2.1.1/1-2.1.1:1.0/net/eth1

LABEL="mlinux_end"