diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2021-05-19 10:28:55 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2021-05-20 22:01:40 +0000 |
commit | f8d013071a68cb90bbff8e00bdb328e472354ab8 (patch) | |
tree | 449cfaa008d0b9c97273dbb80d2d358383d909d4 /recipes-core/udev/files/colibri-imx8x/99-toradex.rules | |
parent | fad3643e14fc4412288549b833b097ec4a44bf33 (diff) |
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>
Diffstat (limited to 'recipes-core/udev/files/colibri-imx8x/99-toradex.rules')
-rw-r--r-- | recipes-core/udev/files/colibri-imx8x/99-toradex.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules index 2d5c010..9f9a63a 100644 --- a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules @@ -9,5 +9,5 @@ KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.mmc", SYMLINK+=" KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.mmc", SYMLINK+="emmc-boot%n" KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="5b010000.mmc", SYMLINK+="emmc-part%n" SUBSYSTEM=="iio", KERNELS=="iio:device0", RUN+="/etc/udev/scripts/toradex-adc.sh" -ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="5b020000.mmc", SYMLINK+="colibri-sd" -ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="5b020000.mmc", SYMLINK+="colibri-sd-p$attr{partition}" +ACTION=="add|change", KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b020000.mmc", SYMLINK+="colibri-sd" +ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="5b020000.mmc", SYMLINK+="colibri-sd-part%n" |