Skip to contentSkip to conversation

udev-extraconf: Disable automatic loading of kernel module evbug and mxc_vadc

PATCH New Jun Zhu 1 participant 1 message Jun 3, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore

Jun Zhu

author
#0 lore raw

PATCH 1/1 udev-extraconf: Disable automatic loading of kernel module evbug and mxc_vadc

The module evbug floods the dmesg output with input events such as mouse and causes the boot-up message to be discarded as dmesg buffer wraps.

Disable the module mxc_vadc can reduce the power comsumption for i.Mx6SX SOC in the non-video-input scenario.

Add them into /etc/modprobe.d/blacklist.conf and load them manually when needed

---
 recipes-core/udev/udev-extraconf/imx/blacklist.conf  |  3 +++
 .../udev/udev-extraconf/mx6sx/blacklist.conf         |  4 ++++
 recipes-core/udev/udev-extraconf_%.bbappend          | 20 ++++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 recipes-core/udev/udev-extraconf/imx/blacklist.conf
 create mode 100644 recipes-core/udev/udev-extraconf/mx6sx/blacklist.conf
 create mode 100644 recipes-core/udev/udev-extraconf_%.bbappend
recipes-core/udev/udev-extraconf/imx/blacklist.conf new file +3 -0
new file mode 100644
index 0000000..f771bce
@@ -0,0 +1,3 @@
+# blacklist
+# Users can manually load it with modprobe later after booting.
+blacklist evbug
recipes-core/udev/udev-extraconf/mx6sx/blacklist.conf new file +4 -0
new file mode 100644
index 0000000..d3d394a
@@ -0,0 +1,4 @@
+# blacklist
+# Users can manually load it with modprobe later after booting.
+blacklist evbug
+blacklist mxc_vadc
recipes-core/udev/udev-extraconf_%.bbappend new file +20 -0
new file mode 100644
index 0000000..724bc6e
@@ -0,0 +1,20 @@
+# Freescale i.MX SOC extra configuration udev rules
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append_mx6 = " file://blacklist.conf "
+SRC_URI_append_mx6ul = " file://blacklist.conf"
+SRC_URI_append_mx7 = " file://blacklist.conf"
+
+do_install_prepend () {
+    if [ -e "${WORKDIR}/blacklist.conf" ]; then
+        install -d ${D}${sysconfdir}/modprobe.d
+        install -m 0644 ${WORKDIR}/blacklist.conf ${D}${sysconfdir}/modprobe.d
+    fi
+}
+
+
+FILES_${PN}_append = " ${sysconfdir}/modprobe.d"
+
+PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mx6ul = "${MACHINE_SOCARCH}"
+PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}"
Signature · 1 line
1.9.1