systemd: Add udev rules for persistent naming of the can devices
PATCH v3 1/1 systemd: Add udev rules for persistent naming of the can devices
When multiple CAN's are present, then names that are getting assigned change after every boot even after providing alias in the device tree.
So add udev rules to specify the interface name to use for each mcan device, to make it persistent across reboots.
---
v3: Fix typos in the filename being installed in v2
v2:
- Switch to udev rules instead of systemd network links, as per feedback from v1: https://lists.yoctoproject.org/g/meta-arago/message/15104
- Also, extend to Sitara devices as well
--- .../systemd/systemd/k3/37-can-am62.rules | 4 ++ .../systemd/systemd/k3/37-can-j7.rules | 20 +++++++ .../recipes-core/systemd/systemd_%.bbappend | 58 +++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules create mode 100644 meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file +4 -0
@@ -0,0 +1,4 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e08000.can", NAME="mcu_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e18000.can", NAME="mcu_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="20701000.can", NAME="main_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="20711000.can", NAME="main_mcan1"
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file +20 -0
@@ -0,0 +1,20 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40528000.can", NAME="mcu_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40568000.can", NAME="mcu_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2701000.can", NAME="main_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2711000.can", NAME="main_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2721000.can", NAME="main_mcan2" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2731000.can", NAME="main_mcan3" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2741000.can", NAME="main_mcan4" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2751000.can", NAME="main_mcan5" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2761000.can", NAME="main_mcan6" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2771000.can", NAME="main_mcan7" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2781000.can", NAME="main_mcan8" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2791000.can", NAME="main_mcan9" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27a1000.can", NAME="main_mcan10" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27b1000.can", NAME="main_mcan11" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27c1000.can", NAME="main_mcan12" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27d1000.can", NAME="main_mcan13" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2681000.can", NAME="main_mcan14" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2691000.can", NAME="main_mcan15" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="26a1000.can", NAME="main_mcan16" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="26b1000.can", NAME="main_mcan17"
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +58 -0
67 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 81 lines · Aniket Limaye via lists.yoctoproject.org
When multiple CAN's are present, then names that are getting assigned change after every boot even after providing alias in the device tree.
So add udev rules to specify the interface name to use for each mcan device, to make it persistent across reboots.Signed-off-by Bhavya Kapoor <[email protected]>Signed-off-by Aniket Limaye <[email protected]>---
v3: Fix typos in the filename being installed in v2
v2:
- Switch to udev rules instead of systemd network links, as per feedback from v1:
https://lists.yoctoproject.org/g/meta-arago/message/15104
- Also, extend to Sitara devices as well--- .../systemd/systemd/k3/37-can-am62.rules | 4 ++ .../systemd/systemd/k3/37-can-j7.rules | 20 +++++++ .../recipes-core/systemd/systemd_%.bbappend | 58 +++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules create mode 100644meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules
diff --git a/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules b/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file mode 100644
index 00000000..59dc8075meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file +3
-0@@ -0,0 +1,4 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e08000.can", NAME="mcu_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e18000.can", NAME="mcu_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="20701000.can",NAME="main_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="20711000.can", NAME="main_mcan1"
diff --git a/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules b/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file mode 100644
index 00000000..f2804ecdmeta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file +13
-0@@ -0,0 +1,20 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40528000.can", NAME="mcu_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40568000.can", NAME="mcu_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2701000.can", NAME="main_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2711000.can", NAME="main_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2721000.can", NAME="main_mcan2" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2731000.can", NAME="main_mcan3" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2741000.can", NAME="main_mcan4" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2751000.can", NAME="main_mcan5" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2761000.can", NAME="main_mcan6" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2771000.can", NAME="main_mcan7" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2781000.can", NAME="main_mcan8" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2791000.can", NAME="main_mcan9" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27a1000.can",NAME="main_mcan10"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27b1000.can", NAME="main_mcan11"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27c1000.can", NAME="main_mcan12"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27d1000.can", NAME="main_mcan13"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2681000.can", NAME="main_mcan14"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2691000.can", NAME="main_mcan15"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="26a1000.can", NAME="main_mcan16"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="26b1000.can", NAME="main_mcan17"meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +0
-0
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend SRC_URI:append = " \ · line 21
Quoted 8 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0@@ -14,6 +14,11 @@ SRC_URI:append = " \ file://timesyncd.conf \ " +SRC_URI:append:k3 = " \ + file://37-can-j7.rules \ + file://37-can-am62.rules \ +"
Butting in here but is there any reason not to just combine the two can rules files and install the same file (37-can-k3.rules) to all k3 devices? It would make the bbappend file much shorter...
Quoted 88 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +1
-0+ do_install:append() { install -d ${D}${sysconfdir}/udev/rules.d/install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0@@ -43,3 +48,56 @@ do_install:append() { install -d ${D}${sysconfdir}/systemd/ install -m 0644 ${WORKDIR}/timesyncd.conf ${D}${sysconfdir}/systemd/ } + +do_install:append:j721e() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j7200() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j721s2() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j784s4() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am65xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62pxx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62axx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am64xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j722s() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-1+} + +FILES:udev += "${libdir}/udev/rules.d/37-can.rules" + --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#15125):
https://lists.yoctoproject.org/g/meta-arago/message/15125
Mute This Topic: https://lists.yoctoproject.org/mt/104225388/7902621
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 12 lines
Jonathan Cormier Software Engineer Voice: 315.425.4045 x222 http://www.CriticalLink.com <http://www.criticallink.com/> 6712 Brooklawn Parkway, Syracuse, NY 13211 <https://www.linkedin.com/company/critical-link-llc> <https://twitter.com/Critical_Link>
Quoted 87 lines · Jon Cormier via lists.yoctoproject.org
Quoted 84 lines · Aniket Limaye via lists.yoctoproject.org
When multiple CAN's are present, then names that are getting assigned change after every boot even after providing alias in the device tree.
So add udev rules to specify the interface name to use for each mcan device, to make it persistent across reboots.Signed-off-by Bhavya Kapoor <[email protected]>Signed-off-by Aniket Limaye <[email protected]>---
v3: Fix typos in the filename being installed in v2
v2:
- Switch to udev rules instead of systemd network links, as per feedback from v1:
https://lists.yoctoproject.org/g/meta-arago/message/15104
- Also, extend to Sitara devices as well--- .../systemd/systemd/k3/37-can-am62.rules | 4 ++ .../systemd/systemd/k3/37-can-j7.rules | 20 +++++++ .../recipes-core/systemd/systemd_%.bbappend | 58 +++++++++++++++++++ 3 files changed, 82 insertions(+)create mode 100644
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules
create mode 100644
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rulesdiff --git a/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules b/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file mode 100644
index 00000000..59dc8075meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file +3
-0@@ -0,0 +1,4 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e08000.can", NAME="mcu_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e18000.can", NAME="mcu_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="20701000.can",NAME="main_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="20711000.can", NAME="main_mcan1"
diff --git a/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules b/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file mode 100644
index 00000000..f2804ecdmeta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file +13
-0@@ -0,0 +1,20 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40528000.can", NAME="mcu_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40568000.can", NAME="mcu_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2701000.can", NAME="main_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2711000.can", NAME="main_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2721000.can", NAME="main_mcan2" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2731000.can", NAME="main_mcan3" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2741000.can", NAME="main_mcan4" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2751000.can", NAME="main_mcan5" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2761000.can", NAME="main_mcan6" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2771000.can", NAME="main_mcan7" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2781000.can", NAME="main_mcan8" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2791000.can", NAME="main_mcan9" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27a1000.can",NAME="main_mcan10"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27b1000.can", NAME="main_mcan11"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27c1000.can", NAME="main_mcan12"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27d1000.can", NAME="main_mcan13"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2681000.can", NAME="main_mcan14"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2691000.can", NAME="main_mcan15"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="26a1000.can", NAME="main_mcan16"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="26b1000.can", NAME="main_mcan17"meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +0
-0@@ -14,6 +14,11 @@ SRC_URI:append = " \ file://timesyncd.conf \ "
Quoted 9 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend SRC_URI:append = " \
Quoted 5 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0+SRC_URI:append:k3 = " \ + file://37-can-j7.rules \ + file://37-can-am62.rules \ +"Butting in here but is there any reason not to just combine the two can rules files and install the same file (37-can-k3.rules) to all k3 devices? It would make the bbappend file much shorter...
+1, that would also help in keeping this package from becoming machine specific, this could be deployed unconditionally, shouldn't hurt anything.
Andrew
Quoted 81 lines
Quoted 80 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +1
-0+ do_install:append() { install -d ${D}${sysconfdir}/udev/rules.d/install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0@@ -43,3 +48,56 @@ do_install:append() { install -d ${D}${sysconfdir}/systemd/ install -m 0644 ${WORKDIR}/timesyncd.conf ${D}${sysconfdir}/systemd/ } + +do_install:append:j721e() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j7200() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j721s2() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j784s4() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am65xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62pxx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62axx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am64xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j722s() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-1+} + +FILES:udev += "${libdir}/udev/rules.d/37-can.rules" + --2.34.1
Quoted 48 lines · Aniket Limaye
When multiple CAN's are present, then names that are getting assigned change after every boot even after providing alias in the device tree.
So add udev rules to specify the interface name to use for each mcan device, to make it persistent across reboots.Signed-off-by Bhavya Kapoor <[email protected]>Signed-off-by Aniket Limaye <[email protected]>---
v3: Fix typos in the filename being installed in v2
v2:
- Switch to udev rules instead of systemd network links, as per feedback from v1: https://lists.yoctoproject.org/g/meta-arago/message/15104
- Also, extend to Sitara devices as well--- .../systemd/systemd/k3/37-can-am62.rules | 4 ++ .../systemd/systemd/k3/37-can-j7.rules | 20 +++++++ .../recipes-core/systemd/systemd_%.bbappend | 58 +++++++++++++++++++ 3 files changed, 82 insertions(+)create mode 100644 meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules create mode 100644 meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file +4
-0@@ -0,0 +1,4 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e08000.can", NAME="mcu_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e18000.can", NAME="mcu_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="20701000.can", NAME="main_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="20711000.can", NAME="main_mcan1"meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file +10
-0@@ -0,0 +1,20 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40528000.can", NAME="mcu_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40568000.can", NAME="mcu_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2701000.can", NAME="main_mcan0" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2711000.can", NAME="main_mcan1" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2721000.can", NAME="main_mcan2" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2731000.can", NAME="main_mcan3" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2741000.can", NAME="main_mcan4" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2751000.can", NAME="main_mcan5" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2761000.can", NAME="main_mcan6" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2771000.can", NAME="main_mcan7"
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules line 20
Quoted 10 lines
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file +10
-0+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2781000.can", NAME="main_mcan8" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2791000.can", NAME="main_mcan9" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27a1000.can", NAME="main_mcan10" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27b1000.can", NAME="main_mcan11" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27c1000.can", NAME="main_mcan12" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="27d1000.can", NAME="main_mcan13" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2681000.can", NAME="main_mcan14" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="2691000.can", NAME="main_mcan15" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="26a1000.can", NAME="main_mcan16" +SUBSYSTEM=="net", ACTION=="add", KERNELS=="26b1000.can", NAME="main_mcan17"
On the surface, I like this patch better because it only contains plaintext files and not binary ones... =)
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend SRC_URI:append = " \ · line 20
Quoted 12 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0@@ -14,6 +14,11 @@ SRC_URI:append = " \ file://timesyncd.conf \ " +SRC_URI:append:k3 = " \ + file://37-can-j7.rules \ + file://37-can-am62.rules \ +"
Is this patch for all k3 devices? Or the big list of platforms below? It *seems* like you are breaking them up differently for Sitara vs Jacinto devices...
Would a cleaner approach be to define two new variables and use them in all of the places?
CAN_RULES_SRC = ""
CAN_RULES_SRC:j721e = "37-can-j7.rules"
CAN_RULES_SRC:j721e = "37-can-j7.rules"
CAN_RULES_SRC:j721e = "37-can-j7.rules"
<snip>
CAN_RULES_TGT = "udev/rules.d/37-can.rules"
SRC_URI:append = "file://${CAN_RULES}"
do_install:append:k3() {
install -d ${D}/${libdir}/udev/rules.d
install -m 0644 ${WORKDIR}/${CAN_RULES} ${D}${libdir}/${CAN_RULES_TGT}
}
FILES:udev += "${libdir}/${CAN_RULES_TGT}"
Quoted 60 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +53
-0do_install:append() { install -d ${D}${sysconfdir}/udev/rules.d/ install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/@@ -43,3 +48,56 @@ do_install:append() { install -d ${D}${sysconfdir}/systemd/ install -m 0644 ${WORKDIR}/timesyncd.conf ${D}${sysconfdir}/systemd/ } + +do_install:append:j721e() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:j7200() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:j721s2() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:j784s4() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:am65xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:am62xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:am62pxx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:am62axx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:am64xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +do_install:append:j722s() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules ${D}${libdir}/udev/rules.d/37-can.rules +} + +FILES:udev += "${libdir}/udev/rules.d/37-can.rules" +
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 104 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 74 lines · Aniket Limaye
When multiple CAN's are present, then names that are getting assigned change after every boot even after providing alias in the device tree.
So add udev rules to specify the interface name to use for each mcan device, to make it persistent across reboots.Signed-off-by Bhavya Kapoor <[email protected]>Signed-off-by Aniket Limaye <[email protected]>---
v3: Fix typos in the filename being installed in v2
v2:
- Switch to udev rules instead of systemd network links, as per feedback from v1: https://lists.yoctoproject.org/g/meta-arago/message/15104
- Also, extend to Sitara devices as well
---
.../systemd/systemd/k3/37-can-am62.rules | 4 ++ .../systemd/systemd/k3/37-can-j7.rules | 20 +++++++ .../recipes-core/systemd/systemd_%.bbappend | 58 +++++++++++++++++++3 files changed, 82 insertions(+)create mode 100644 meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules create mode 100644 meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file +1
-0@@ -0,0 +1,4 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e08000.can",NAME="mcu_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e18000.can", NAME="mcu_mcan1"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="20701000.can", NAME="main_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="20711000.can", NAME="main_mcan1"meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file +1
-0@@ -0,0 +1,20 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40528000.can",NAME="mcu_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="40568000.can", NAME="mcu_mcan1"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2701000.can", NAME="main_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2711000.can", NAME="main_mcan1"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2721000.can", NAME="main_mcan2"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2731000.can", NAME="main_mcan3"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2741000.can", NAME="main_mcan4"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2751000.can", NAME="main_mcan5"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2761000.can", NAME="main_mcan6"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2771000.can", NAME="main_mcan7"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2781000.can", NAME="main_mcan8"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2791000.can", NAME="main_mcan9"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27a1000.can", NAME="main_mcan10"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27b1000.can", NAME="main_mcan11"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27c1000.can", NAME="main_mcan12"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27d1000.can", NAME="main_mcan13"Quoted 8 lines
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2681000.can", NAME="main_mcan14"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2691000.can", NAME="main_mcan15"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="26a1000.can", NAME="main_mcan16"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="26b1000.can", NAME="main_mcan17"On the surface, I like this patch better because it only contains plaintext files and not binary ones... =)
Quoted 11 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +0
-0@@ -14,6 +14,11 @@ SRC_URI:append = " \ file://timesyncd.conf \"
+SRC_URI:append:k3 = " \
+ file://37-can-j7.rules \
+ file://37-can-am62.rules \
+"Is this patch for all k3 devices? Or the big list of platforms below? It *seems* like you are breaking them up differently for Sitara vs Jacinto devices...
Quoted 2 lines
Would a cleaner approach be to define two new variables and use them in all of the places?
Oops... I hit send too fast... Updated code:
CAN_RULES_SRC = ""
CAN_RULES_SRC:j721e = "37-can-j7.rules"
CAN_RULES_SRC:j7200 = "37-can-j7.rules"
CAN_RULES_SRC:j721s2 = "37-can-j7.rules"
CAN_RULES_SRC:j784s4 = "37-can-j7.rules"
CAN_RULES_SRC:am65xx = "37-can-j7.rules"
CAN_RULES_SRC:am62xx = "37-can-am62.rules"
CAN_RULES_SRC:am62pxx = "37-can-am62.rules"
CAN_RULES_SRC:am62axx = "37-can-am62.rules"
CAN_RULES_SRC:am64xx = "37-can-am62.rules"
CAN_RULES_SRC:j722s = "37-can-am62.rules"CAN_RULES_TGT = "udev/rules.d/37-can.rules"
SRC_URI:append:k3 = "file://${CAN_RULES_SRC}"
do_install:append:k3() {
install -d ${D}/${libdir}/udev/rules.d
install -m 0644 ${WORKDIR}/${CAN_RULES} ${D}${libdir}/${CAN_RULES_TGT}
}
FILES:udev += "${libdir}/${CAN_RULES_TGT}"
Make sure you double check my quick hackery and not take it as is....
Quoted 73 lines
Quoted 72 lines
do_install:append() {
install -d ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +0
-0@@ -43,3 +48,56 @@ do_install:append() {install -d ${D}${sysconfdir}/systemd/
install -m 0644${WORKDIR}/timesyncd.conf${D}${sysconfdir}/systemd/ }meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0+ +do_install:append:j721e() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j7200() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j721s2() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j784s4() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am65xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62pxx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62axx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am64xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j722s() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0+} + +FILES:udev += "${libdir}/udev/rules.d/37-can.rules" +
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
I'd appreciate it if you would also add the dra7(am57x) and 335x platforms.
+++ 37-can-dra7.rules
SUBSYSTEM=="net", ACTION=="add", KERNELS=="4ae3c000.can", NAME="main_dcan1" SUBSYSTEM=="net", ACTION=="add", KERNELS=="48480000.can", NAME="main_dcan2"
+++ 37-can-ti33x.rules
SUBSYSTEM=="net", ACTION=="add", KERNELS=="481cc000.can", NAME="main_dcan0" SUBSYSTEM=="net", ACTION=="add", KERNELS=="481d0000.can", NAME="main_dcan1"
+++ meta-arago-distro/recipes-core/systemd/systemd_%.bbappend CAN_RULES_SRC:dra7 = "37-can-dra7.rules" CAN_RULES_SRC:ti33x = "37-can-ti33x.rules"
Quoted 243 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 115 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 81 lines · Aniket Limaye
When multiple CAN's are present, then names that are getting assigned change after every boot even after providing alias in the device tree.
So add udev rules to specify the interface name to use for each mcan device, to make it persistent across reboots.Signed-off-by Bhavya Kapoor <[email protected]>Signed-off-by Aniket Limaye <[email protected]>---
v3: Fix typos in the filename being installed in v2
v2:
- Switch to udev rules instead of systemd network links, as per feedback from v1:
https://lists.yoctoproject.org/g/meta-arago/message/15104
- Also, extend to Sitara devices as well--- .../systemd/systemd/k3/37-can-am62.rules | 4 ++ .../systemd/systemd/k3/37-can-j7.rules | 20 +++++++ .../recipes-core/systemd/systemd_%.bbappend | 58 +++++++++++++++++++ 3 files changed, 82 insertions(+)create mode 100644
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules
create mode 100644
meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rulesdiff --git a/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules b/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file mode 100644
index 00000000..59dc8075meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-am62.rules new file +1
-0@@ -0,0 +1,4 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e08000.can",NAME="mcu_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="4e18000.can", NAME="mcu_mcan1"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="20701000.can", NAME="main_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="20711000.can", NAME="main_mcan1"
diff --git a/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules b/meta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file mode 100644
index 00000000..f2804ecdmeta-arago-distro/recipes-core/systemd/systemd/k3/37-can-j7.rules new file +1
-0@@ -0,0 +1,20 @@ +SUBSYSTEM=="net", ACTION=="add", KERNELS=="40528000.can",NAME="mcu_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="40568000.can", NAME="mcu_mcan1"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2701000.can", NAME="main_mcan0"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2711000.can", NAME="main_mcan1"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2721000.can", NAME="main_mcan2"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2731000.can", NAME="main_mcan3"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2741000.can", NAME="main_mcan4"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2751000.can", NAME="main_mcan5"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2761000.can", NAME="main_mcan6"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2771000.can", NAME="main_mcan7"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2781000.can", NAME="main_mcan8"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2791000.can", NAME="main_mcan9"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27a1000.can", NAME="main_mcan10"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27b1000.can", NAME="main_mcan11"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27c1000.can", NAME="main_mcan12"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="27d1000.can", NAME="main_mcan13"Quoted 8 lines
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2681000.can", NAME="main_mcan14"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="2691000.can", NAME="main_mcan15"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="26a1000.can", NAME="main_mcan16"
+SUBSYSTEM=="net", ACTION=="add", KERNELS=="26b1000.can", NAME="main_mcan17"On the surface, I like this patch better because it only contains plaintext files and not binary ones... =)
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend SRC_URI:append = " \ · line 19
Quoted 12 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0@@ -14,6 +14,11 @@ SRC_URI:append = " \ file://timesyncd.conf \ " +SRC_URI:append:k3 = " \ + file://37-can-j7.rules \ + file://37-can-am62.rules \ +"Is this patch for all k3 devices? Or the big list of platforms below? It *seems* like you are breaking them up differently for Sitara vs Jacinto devices...
Quoted 3 lines
Would a cleaner approach be to define two new variables and use them in all of the places?
Oops... I hit send too fast... Updated code:
CAN_RULES_SRC= ""
CAN_RULES_SRC:j721e = "37-can-j7.rules"
CAN_RULES_SRC:j7200 = "37-can-j7.rules"
CAN_RULES_SRC:j721s2 = "37-can-j7.rules"
CAN_RULES_SRC:j784s4 = "37-can-j7.rules"
CAN_RULES_SRC:am65xx = "37-can-j7.rules"
CAN_RULES_SRC:am62xx = "37-can-am62.rules"
CAN_RULES_SRC:am62pxx = "37-can-am62.rules"
CAN_RULES_SRC:am62axx = "37-can-am62.rules"
CAN_RULES_SRC:am64xx = "37-can-am62.rules"
CAN_RULES_SRC:j722s = "37-can-am62.rules"CAN_RULES_TGT= "udev/rules.d/37-can.rules"SRC_URI:append:k3 = "file://${CAN_RULES_SRC}"
do_install:append:k3() { install -d ${D}/${libdir}/udev/rules.d install -m 0644 ${WORKDIR}/${CAN_RULES} ${D}${libdir}/${CAN_RULES_TGT} }FILES:udev += "${libdir}/${CAN_RULES_TGT}"
Make sure you double check my quick hackery and not take it as is....
Quoted 66 lines
Quoted 66 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +0
-0do_install:append() { install -d ${D}${sysconfdir}/udev/rules.d/ install -m 0644 ${WORKDIR}/local.rules${D}${sysconfdir}/udev/rules.d/
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +0
-0@@ -43,3 +48,56 @@ do_install:append() { install -d ${D}${sysconfdir}/systemd/ install -m 0644 ${WORKDIR}/timesyncd.conf${D}${sysconfdir}/systemd/
}meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0+ +do_install:append:j721e() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j7200() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j721s2() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:j784s4() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am65xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-j7.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62pxx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am62axx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +5
-0+} + +do_install:append:am64xx() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +2
-0+} +Quoted 9 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend do_install:append() { · line 103
Quoted 8 lines
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +3
-0+do_install:append:j722s() { + install -d ${D}/${libdir}/udev/rules.d + install -m 0644 ${WORKDIR}/37-can-am62.rules${D}${libdir}/udev/rules.d/37-can.rules
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +4
-0+} + +FILES:udev += "${libdir}/udev/rules.d/37-can.rules" +--
Ryan Eatmon [email protected]
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15128): https://lists.yoctoproject.org/g/meta-arago/message/15128
Mute This Topic: https://lists.yoctoproject.org/mt/104225388/7902621
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 9 lines
Jonathan Cormier Software Engineer Voice: 315.425.4045 x222 http://www.CriticalLink.com 6712 Brooklawn Parkway, Syracuse, NY 13211