summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2021-05-15 12:31:17 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2021-05-24 18:25:16 +0200
commit7c4cbefab1c69d29259060d4faad4e3366ee0c16 (patch)
tree20a4904a42ebae0958d980d9d79cf2d7d7b92c69 /recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
parent59e68224cba5579db63aed4f931e7372d04c170a (diff)
recipes-core: udev: add hardware stable symlinks for sd-card
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit f5af6cd7e39e0eee75cca7f89ac81b5601267794) recipes-core: udev: change sd-card symlinks to style of emmc rules This commit does three things: - Use "-part<number>" instead of "-p" as it is with /dev/emmc symlinks - Use ENV{DEVTYPE} as it is used with /dev/emmc symlinks to for sure be able to distinguish partitions vs. disks - Use %n in stead of $attr{partition} as it is already used for emmc symlink rules Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit f8d013071a68cb90bbff8e00bdb328e472354ab8)
Diffstat (limited to 'recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules')
-rw-r--r--recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules b/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
index 707920e..ae80f8b 100644
--- a/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
@@ -9,3 +9,5 @@ KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.usdhc", SYMLINK+
KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.usdhc", SYMLINK+="emmc-boot%n"
KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="30b60000.usdhc", SYMLINK+="emmc-part%n"
SUBSYSTEM=="iio", KERNELS=="iio:device0", RUN+="/etc/udev/scripts/toradex-adc.sh"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd-part%n"