From da2e5ab836c8b81497ec7e97727b33dea3a7b719 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 30 Mar 2022 12:21:08 +0200 Subject: verdin-imx8mm: mainline: don't load etnaviv and hantro modules Suspend/resume seems to not work if these modules are loaded and currently the display output doesn't work so they serve no real purpose. Signed-off-by: Max Krummenacher --- conf/machine/verdin-imx8mm.conf | 1 + recipes-kernel/linux/modprobe-conf.bb | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 recipes-kernel/linux/modprobe-conf.bb diff --git a/conf/machine/verdin-imx8mm.conf b/conf/machine/verdin-imx8mm.conf index 29037ba..fa05a89 100644 --- a/conf/machine/verdin-imx8mm.conf +++ b/conf/machine/verdin-imx8mm.conf @@ -71,6 +71,7 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-toradex" PREFERRED_PROVIDER_virtual/kernel:preempt-rt = "linux-toradex" PREFERRED_PROVIDER_virtual/kernel:use-mainline-bsp = "linux-toradex-mainline" PREFERRED_PROVIDER_virtual/kernel:use-mainline-bsp:preempt-rt = "linux-toradex-mainline" +MACHINE_EXTRA_RRECOMMENDS:append:use-mainline-bsp = " modprobe-conf" IMX_DEFAULT_BOOTLOADER = "u-boot-toradex" # Currently we use the nxp 2020.04 downstream for mx8 as some features are diff --git a/recipes-kernel/linux/modprobe-conf.bb b/recipes-kernel/linux/modprobe-conf.bb new file mode 100644 index 0000000..adad17d --- /dev/null +++ b/recipes-kernel/linux/modprobe-conf.bb @@ -0,0 +1,16 @@ +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +# The verdin-imx8mm does hang during resume if etnaviv and/or hantro_vpu +# are loaded. As graphics currently anyway doesn't work anyway do not +# load these modules +do_install:append:verdin-imx8mm () { + install -d ${D}${sysconfdir}/modprobe.d + echo "blacklist etnaviv" > ${D}${sysconfdir}/modprobe.d/imx8mm-blacklist.conf + echo "blacklist hantro_vpu" >> ${D}${sysconfdir}/modprobe.d/imx8mm-blacklist.conf +} + +ALLOW_EMPTY:${PN} = "1" +FILES:${PN} = " ${sysconfdir}/modprobe.d" -- cgit v1.2.3