summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2020-04-27 11:17:45 +0200
committerPhilippe Schenker <philippe.schenker@toradex.com>2020-04-27 11:28:20 +0200
commitac32e59f1f961070189e1a038644f87ce9e7c152 (patch)
tree9fcb6b3bc975be5229eefec355aa0db8c777bef9
parentbd072a5fc62dd7f29a94d682de2346257344ea35 (diff)
recipes-core: udev: move emmc rules from torizon to bsp
This adds udev rules for symlinking eMMC devices consitently. Related-to: ELB-2380, ELB-2696 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
-rw-r--r--recipes-core/udev/files/apalis-imx6/99-toradex.rules3
-rw-r--r--recipes-core/udev/files/apalis-imx8/99-toradex.rules3
-rw-r--r--recipes-core/udev/files/apalis-imx8x/99-toradex.rules3
-rw-r--r--recipes-core/udev/files/colibri-imx6/99-toradex.rules3
-rw-r--r--recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules3
-rw-r--r--recipes-core/udev/files/colibri-imx8x/99-toradex.rules3
-rw-r--r--recipes-core/udev/files/verdin-imx8mm/99-toradex.rules3
7 files changed, 21 insertions, 0 deletions
diff --git a/recipes-core/udev/files/apalis-imx6/99-toradex.rules b/recipes-core/udev/files/apalis-imx6/99-toradex.rules
index fa258ba..ee467a4 100644
--- a/recipes-core/udev/files/apalis-imx6/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-imx6/99-toradex.rules
@@ -9,3 +9,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x21F4000", SYMLINK+="apalis-tty4"
ACTION=="add", KERNELS=="20bc000.wdog", SYMLINK+="apalis-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2008000.ecspi", SYMLINK+="apalis-spi1-cs%n"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="200c000.ecspi", SYMLINK+="apalis-spi2-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc"
+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"
diff --git a/recipes-core/udev/files/apalis-imx8/99-toradex.rules b/recipes-core/udev/files/apalis-imx8/99-toradex.rules
index 5cc0c45..09b0770 100644
--- a/recipes-core/udev/files/apalis-imx8/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-imx8/99-toradex.rules
@@ -8,3 +8,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x5A080010", SYMLINK+="apalis-tty4"
ACTION=="add", KERNELS=="watchdog", SYMLINK+="apalis-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a000000.lpspi", SYMLINK+="apalis-spi1-cs%n"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a020000.lpspi", SYMLINK+="apalis-spi2-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.usdhc", SYMLINK+="emmc"
+KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.usdhc", SYMLINK+="emmc-boot%n"
+KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="5b010000.usdhc", SYMLINK+="emmc-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 63b3542..b4ba7fc 100644
--- a/recipes-core/udev/files/apalis-imx8x/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-imx8x/99-toradex.rules
@@ -9,3 +9,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x5A090010", SYMLINK+="apalis-tty4"
ACTION=="add", KERNELS=="watchdog", SYMLINK+="apalis-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a000000.lpspi", SYMLINK+="apalis-spi1-cs%n"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a020000.lpspi", SYMLINK+="apalis-spi2-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.usdhc", SYMLINK+="emmc"
+KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.usdhc", SYMLINK+="emmc-boot%n"
+KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="5b010000.usdhc", SYMLINK+="emmc-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 9283577..9ba2fdf 100644
--- a/recipes-core/udev/files/colibri-imx6/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx6/99-toradex.rules
@@ -6,3 +6,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x21E8000", SYMLINK+="colibri-ttyb"
ACTION=="add", ATTRS{iomem_base}=="0x21EC000", SYMLINK+="colibri-ttyc"
ACTION=="add", KERNELS=="20bc000.wdog", SYMLINK+="colibri-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2014000.ecspi", SYMLINK+="colibri-spi-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc"
+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"
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 ba70bdd..cbbfb40 100644
--- a/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
@@ -5,3 +5,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x30890000", SYMLINK+="colibri-ttyb"
ACTION=="add", ATTRS{iomem_base}=="0x30880000", SYMLINK+="colibri-ttyc"
ACTION=="add", KERNEL=="watchdog", DRIVERS=="rn5t618-wdt", SYMLINK+="colibri-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30840000.ecspi", SYMLINK+="colibri-spi-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.usdhc", SYMLINK+="emmc"
+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"
diff --git a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules
index e68645f..fea5b81 100644
--- a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules
@@ -5,3 +5,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x5A060010", SYMLINK+="colibri-ttyb"
ACTION=="add", ATTRS{iomem_base}=="0x5A080010", SYMLINK+="colibri-ttyc"
ACTION=="add", KERNELS=="watchdog", SYMLINK+="colibri-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a020000.lpspi", SYMLINK+="colibri-spi-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.usdhc", SYMLINK+="emmc"
+KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.usdhc", SYMLINK+="emmc-boot%n"
+KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="5b010000.usdhc", SYMLINK+="emmc-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 cb046a8..35e4761 100644
--- a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
+++ b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
@@ -7,3 +7,6 @@ ACTION=="add", ATTRS{iomem_base}=="0x30880000", SYMLINK+="verdin-tty2"
ACTION=="add", ATTRS{iomem_base}=="0x30860000", SYMLINK+="verdin-tty3"
ACTION=="add", KERNELS=="watchdog", SYMLINK+="verdin-watchdog"
ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30830000.ecspi", SYMLINK+="verdin-spi-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b40000.mmc", SYMLINK+="emmc"
+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"