diff options
Diffstat (limited to 'recipes-core/udev/eudev/mtcdt/accessory_ethernet.rules')
-rw-r--r-- | recipes-core/udev/eudev/mtcdt/accessory_ethernet.rules | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/recipes-core/udev/eudev/mtcdt/accessory_ethernet.rules b/recipes-core/udev/eudev/mtcdt/accessory_ethernet.rules index 5426544..64739e0 100644 --- a/recipes-core/udev/eudev/mtcdt/accessory_ethernet.rules +++ b/recipes-core/udev/eudev/mtcdt/accessory_ethernet.rules @@ -1,28 +1,22 @@ +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 -# 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" -# ........... - -# Four port to four port hub case -# 1-2.1:1.0 eth1 (Only in four port case) -# 1-2.2:1.0 eth2 (Matches eth1 in the two port case) # -# Four port to two port hub case -# 1-2.2:1.0 eth1 (matches eth2 in the four port case) -# 1-2.3:1.0 eth2 (only in two port case) +# 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. # -SUBSYSTEMS=="usb", DRIVERS=="smsc75xx", RUN+="/etc/udev/scripts/mtcdt_eth_rename.sh" +# 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" +# MTCDT-0.0 and MTCDT-0.1: +ENV{DEVPATH}=="/devices/platform/ahb/700000.ehci/usb1/1-2/1-2.2/1-2.2:1.0/net/eth1", NAME="eth2" +# 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" +LABEL="mlinux_end" |