summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2020-11-26 17:54:02 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2020-12-08 15:01:18 +0100
commit582417167b86cccae4455ceb086ee56fae2aded6 (patch)
tree12b4a18c4b47e08747c534475e78736a36263a09
parent250a6308016fb984e32b0e64e5be449d8b5d17a9 (diff)
apalis-tk1: udev: add symlinks to emmc
This creates stable symlinks to the eMMC card. Related-to: ELB-3293 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit f3b662ae73d5decabd1cfbe4e247f027d97c40de)
-rw-r--r--recipes-core/udev/files/apalis-tk1/99-toradex.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-core/udev/files/apalis-tk1/99-toradex.rules b/recipes-core/udev/files/apalis-tk1/99-toradex.rules
new file mode 100644
index 0000000..68cd9a8
--- /dev/null
+++ b/recipes-core/udev/files/apalis-tk1/99-toradex.rules
@@ -0,0 +1,3 @@
+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"