diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2021-05-15 12:31:17 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2021-05-24 18:25:16 +0200 |
commit | 7c4cbefab1c69d29259060d4faad4e3366ee0c16 (patch) | |
tree | 20a4904a42ebae0958d980d9d79cf2d7d7b92c69 /recipes-core/udev/files/verdin-imx8mm/99-toradex.rules | |
parent | 59e68224cba5579db63aed4f931e7372d04c170a (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/verdin-imx8mm/99-toradex.rules')
-rw-r--r-- | recipes-core/udev/files/verdin-imx8mm/99-toradex.rules | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules index 7319430..5ae5e61 100644 --- a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules +++ b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules @@ -11,3 +11,5 @@ KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b40000.mmc", SYMLINK+=" KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b40000.mmc", SYMLINK+="emmc-boot%n" KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="30b40000.mmc", 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=="30b50000.mmc", SYMLINK+="verdin-sd" +ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="30b50000.mmc", SYMLINK+="verdin-sd-part%n" |