Skip to contentSkip to conversation

udev-aragoconf: remove legacy usb rules

PATCH In review [email protected] 2 participants 2 messages Nov 19, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev-aragoconf: remove legacy usb rules

From: Randolph Sapp <[email protected]>

These rules do not match the current structure of the USB DEVPATH and are not actually fired.

They were initially cited as being help scripts, but I think users should attempt to gracefully bring down the gadget interface on their own instead of relying on a script that will attempt to reload it post mode change.

---

Master version of: https://lists.yoctoproject.org/g/meta-arago/message/16788

 .../recipes-core/udev/udev-aragoconf/50-arago.rules         | 2 --
 .../recipes-core/udev/udev-aragoconf/usb1-rules.sh          | 3 ---
 .../recipes-core/udev/udev-aragoconf/usb2-rules.sh          | 3 ---
 meta-arago-distro/recipes-core/udev/udev-aragoconf_1.bb     | 6 ------
 4 files changed, 14 deletions(-)
 delete mode 100755 meta-arago-distro/recipes-core/udev/udev-aragoconf/usb1-rules.sh
 delete mode 100755 meta-arago-distro/recipes-core/udev/udev-aragoconf/usb2-rules.sh
meta-arago-distro/recipes-core/udev/udev-aragoconf/50-arago.rules +0 -2
index 4829ca14..3ff14eb0 100644
@@ -22,5 +22,3 @@ SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLI
 # Auto-mount any SD cards
 ACTION=="add", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh"
 ACTION=="remove", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh"
-ACTION=="add", DEVPATH=="/devices/44000000\.ocp/48880000\.omap_dwc3_1/48890000\.usb/udc*", RUN+="/etc/udev/scripts/usb1-rules.sh"
-ACTION=="add", DEVPATH=="/devices/44000000\.ocp/488c0000\.omap_dwc3_2/488d0000\.usb/udc*", RUN+="/etc/udev/scripts/usb2-rules.sh"
meta-arago-distro/recipes-core/udev/udev-aragoconf/usb1-rules.sh deleted +0 -3
deleted file mode 100755
index 51dfd71a..00000000
@@ -1,3 +0,0 @@
-#!bin/sh
-/sbin/modprobe g_ncm -r
-/sbin/modprobe g_ncm
meta-arago-distro/recipes-core/udev/udev-aragoconf/usb2-rules.sh deleted +0 -3
deleted file mode 100755
index f00565e4..00000000
@@ -1,3 +0,0 @@
-#!bin/sh
-/sbin/modprobe g_zero -r
-/sbin/modprobe g_zero
meta-arago-distro/recipes-core/udev/udev-aragoconf_1.bb +0 -6
index e96e9d3e..e23688b1 100644
@@ -5,8 +5,6 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
 inherit bin_package
 
 SRC_URI = " \
-    file://usb1-rules.sh \
-    file://usb2-rules.sh \
     file://50-arago.rules \
     file://37-can-j7.rules \
     file://37-can-am62.rules \
@@ -17,10 +15,6 @@ SRC_URI = " \
 S = "${UNPACKDIR}"
 
 do_install() {
-    install -d ${D}${sysconfdir}/udev/scripts
-    install -m 0755 ${UNPACKDIR}/usb1-rules.sh ${D}${sysconfdir}/udev/scripts/usb1-rules.sh
-    install -m 0755 ${UNPACKDIR}/usb2-rules.sh ${D}${sysconfdir}/udev/scripts/usb2-rules.sh
-
     install -d ${D}${libdir}/udev/rules.d
     install -m 0644 ${UNPACKDIR}/50-arago.rules ${D}${libdir}/udev/rules.d/
     install -m 0644 ${UNPACKDIR}/37-can-j7.rules ${D}${libdir}/udev/rules.d/
Signature · 1 line
2.51.1
#1 lore raw

meta-arago / na / 20251119200836.362773-2-rs

PRC Results: PASS

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [meta-arago][master][PATCH] udev-aragoconf: remove legacy usb rules
WARN: Commit message should not include directory path to recipe: udev-aragoconf: remove legacy usb rules.
udev-aragoconf: (COMMIT-MESSAGE-3)
patch

For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887

=========================================================
apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-arago][master][PATCH] udev-aragoconf: remove legacy usb rules
- Submitter: From: <[email protected]>
From: Randolph Sapp <[email protected]>
- Date: Date: Wed, 19 Nov 2025 14:08:37 -0600
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: d8faeeff0c68ec6c93fc13f450ce1f07c8169990

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: master-wip
- Commit Author: sadik <[email protected]>
- Commit Subject: coremark: add Coremark CPU benchmark
- Commit SHA: 174dd3e5fc6920bfcf7ce267ff359ad2c302e469

Patches
----------------------------------------
All patches applied

=========================================================
check-yocto-repo: PASS
=========================================================
master
=====================
PASS

=========================================================
yocto-check-layers: PASS
=========================================================
master - PASS
=====================
All checks passed