summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2021-08-12 12:08:52 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2021-08-14 13:13:53 +0200
commit4fdaa61767fbd326c762695cc11cb8e007730acd (patch)
tree20f4c5132d89f0f58d1a6957e7338225930de72d
parent88ce757e06c5662bcca0dc271a0b78489c5e365f (diff)
udev: 99-toradex.rules: improve sd-card rules
ENV{DEVTYPE} has been found to not be present on apalis-imx6 sometimes. Since we see also some troubles on our lava setup this property is being removed from this rule as anyway disk and partition is already catched with the "p" in the KERNEL rule Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit d9b673df1b21c14dfb9db76a037698a0065a8ee7)
-rw-r--r--recipes-core/udev/files/apalis-imx6/99-toradex.rules8
-rw-r--r--recipes-core/udev/files/apalis-imx8/99-toradex.rules8
-rw-r--r--recipes-core/udev/files/apalis-imx8x/99-toradex.rules4
-rw-r--r--recipes-core/udev/files/apalis-tk1/99-toradex.rules8
-rw-r--r--recipes-core/udev/files/colibri-imx6/99-toradex.rules4
-rw-r--r--recipes-core/udev/files/colibri-imx6ull/99-toradex.rules4
-rw-r--r--recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules4
-rw-r--r--recipes-core/udev/files/colibri-imx7/99-toradex.rules4
-rw-r--r--recipes-core/udev/files/colibri-imx8x/99-toradex.rules4
-rw-r--r--recipes-core/udev/files/verdin-imx8mm/99-toradex.rules4
-rw-r--r--recipes-core/udev/files/verdin-imx8mp/99-toradex.rules4
11 files changed, 28 insertions, 28 deletions
diff --git a/recipes-core/udev/files/apalis-imx6/99-toradex.rules b/recipes-core/udev/files/apalis-imx6/99-toradex.rules
index 07f1661..e65ad07 100644
--- a/recipes-core/udev/files/apalis-imx6/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-imx6/99-toradex.rules
@@ -14,7 +14,7 @@ KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+=
KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc-boot%n"
KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="2198000.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=="2194000.usdhc", SYMLINK+="apalis-sd4bit"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="2194000.usdhc", SYMLINK+="apalis-sd4bit-part%n"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2190000.usdhc", SYMLINK+="apalis-mmc8bit"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="2190000.usdhc", SYMLINK+="apalis-mmc8bit-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="2194000.usdhc", SYMLINK+="apalis-sd4bit"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="2194000.usdhc", SYMLINK+="apalis-sd4bit-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="2190000.usdhc", SYMLINK+="apalis-mmc8bit"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="2190000.usdhc", SYMLINK+="apalis-mmc8bit-part%n"
diff --git a/recipes-core/udev/files/apalis-imx8/99-toradex.rules b/recipes-core/udev/files/apalis-imx8/99-toradex.rules
index ef9d40e..cb0629b 100644
--- a/recipes-core/udev/files/apalis-imx8/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-imx8/99-toradex.rules
@@ -12,7 +12,7 @@ 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]", ENV{DEVTYPE}=="disk", KERNELS=="5b030000.mmc", SYMLINK+="apalis-sd4bit"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="5b030000.mmc", SYMLINK+="apalis-sd4bit-part%n"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b020000.mmc", SYMLINK+="apalis-mmc8bit"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="5b020000.mmc", SYMLINK+="apalis-mmc8bit-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="5b030000.mmc", SYMLINK+="apalis-sd4bit"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="5b030000.mmc", SYMLINK+="apalis-sd4bit-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="5b020000.mmc", SYMLINK+="apalis-mmc8bit"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="5b020000.mmc", SYMLINK+="apalis-mmc8bit-part%n"
diff --git a/recipes-core/udev/files/apalis-imx8x/99-toradex.rules b/recipes-core/udev/files/apalis-imx8x/99-toradex.rules
index a5fc57b..74bb2fa 100644
--- a/recipes-core/udev/files/apalis-imx8x/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-imx8x/99-toradex.rules
@@ -13,5 +13,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]", ENV{DEVTYPE}=="disk", KERNELS=="5b020000.mmc", SYMLINK+="apalis-mmc8bit"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="5b020000.mmc", SYMLINK+="apalis-mmc8bit-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="5b020000.mmc", SYMLINK+="apalis-mmc8bit"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="5b020000.mmc", SYMLINK+="apalis-mmc8bit-part%n"
diff --git a/recipes-core/udev/files/apalis-tk1/99-toradex.rules b/recipes-core/udev/files/apalis-tk1/99-toradex.rules
index 0a8e45f..9f399d7 100644
--- a/recipes-core/udev/files/apalis-tk1/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-tk1/99-toradex.rules
@@ -1,7 +1,7 @@
KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="700b0600.sdhci", SYMLINK+="emmc"
KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="700b0600.sdhci", SYMLINK+="emmc-boot%n"
KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="700b0600.sdhci", SYMLINK+="emmc-part%n"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="700b0400.sdhci", SYMLINK+="apalis-sd4bit"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="700b0400.sdhci", SYMLINK+="apalis-sd4bit-part%n"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="700b0000.sdhci", SYMLINK+="apalis-mmc8bit"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="700b0000.sdhci", SYMLINK+="apalis-mmc8bit-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="700b0400.sdhci", SYMLINK+="apalis-sd4bit"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="700b0400.sdhci", SYMLINK+="apalis-sd4bit-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="700b0000.sdhci", SYMLINK+="apalis-mmc8bit"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="700b0000.sdhci", SYMLINK+="apalis-mmc8bit-part%n"
diff --git a/recipes-core/udev/files/colibri-imx6/99-toradex.rules b/recipes-core/udev/files/colibri-imx6/99-toradex.rules
index 161f83f..fb5ffaa 100644
--- a/recipes-core/udev/files/colibri-imx6/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx6/99-toradex.rules
@@ -11,5 +11,5 @@ KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+=
KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc-boot%n"
KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="2198000.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=="2190000.usdhc", SYMLINK+="colibri-sd"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="2190000.usdhc", SYMLINK+="colibri-sd-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="2190000.usdhc", SYMLINK+="colibri-sd"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="2190000.usdhc", SYMLINK+="colibri-sd-part%n"
diff --git a/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules b/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules
index 80ef25b..49b6975 100644
--- a/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules
@@ -6,5 +6,5 @@ ACTION=="add", ATTRS{iomem_base}=="0x21F4000", SYMLINK+="colibri-uartc"
ACTION=="add", KERNELS=="20bc000.wdog", SYMLINK+="colibri-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2008000.*spi", SYMLINK+="colibri-spi-cs%n"
SUBSYSTEM=="iio", KERNELS=="iio:device0", RUN+="/etc/udev/scripts/toradex-adc.sh"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2190000.usdhc", SYMLINK+="colibri-sd"
-ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="2190000.usdhc", SYMLINK+="colibri-sd-part%n"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="2190000.usdhc", SYMLINK+="colibri-sd"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="2190000.usdhc", SYMLINK+="colibri-sd-part%n"
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 ae80f8b..cdb2feb 100644
--- a/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
@@ -9,5 +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"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd-part%n"
diff --git a/recipes-core/udev/files/colibri-imx7/99-toradex.rules b/recipes-core/udev/files/colibri-imx7/99-toradex.rules
index ae80f8b..cdb2feb 100644
--- a/recipes-core/udev/files/colibri-imx7/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx7/99-toradex.rules
@@ -9,5 +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"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd-part%n"
diff --git a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules
index 9f9a63a..d0c65ea 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]", 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"
+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-part%n"
diff --git a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
index 5ae5e61..87f276b 100644
--- a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
+++ b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
@@ -11,5 +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"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="30b50000.mmc", SYMLINK+="verdin-sd"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="30b50000.mmc", SYMLINK+="verdin-sd-part%n"
diff --git a/recipes-core/udev/files/verdin-imx8mp/99-toradex.rules b/recipes-core/udev/files/verdin-imx8mp/99-toradex.rules
index 98054a6..e1ee4dd 100644
--- a/recipes-core/udev/files/verdin-imx8mp/99-toradex.rules
+++ b/recipes-core/udev/files/verdin-imx8mp/99-toradex.rules
@@ -12,5 +12,5 @@ KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.mmc", SYMLINK+="
KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.mmc", SYMLINK+="emmc-boot%n"
KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="30b60000.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"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="30b50000.mmc", SYMLINK+="verdin-sd"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="30b50000.mmc", SYMLINK+="verdin-sd-part%n"