如何从yoctorootfs中将galcore内核模块列入黑名单

如何从yoctorootfs中将galcore内核模块列入黑名单,yocto,kernel-module,blacklist,imx6,Yocto,Kernel Module,Blacklist,Imx6,内核模块名galcore.ko在引导时使imx6slevk板挂起。 此文件的路径为: /lib/modules/4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d61147/extra/galcore.ko 手动删除此.ko文件并使用flashng rootfs时,板将正常引导。 我想修改yyocto源代码,以防止自动加载此.ko文件 我试着加上 PACKAGE_EXCLUDE = "imx-gpu-viv" 而且 IMAGE_INSTALL_remove = "imx-g

内核模块名galcore.ko在引导时使imx6slevk板挂起。 此文件的路径为: /lib/modules/4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d61147/extra/galcore.ko 手动删除此.ko文件并使用flashng rootfs时,板将正常引导。 我想修改yyocto源代码,以防止自动加载此.ko文件

我试着加上

PACKAGE_EXCLUDE = "imx-gpu-viv"
而且

IMAGE_INSTALL_remove = "imx-gpu-viv"
进入我的fsl-image-validation-qt5.bb文件,但它们都没有任何效果

这是自动加载galcore的bb文件

inherit module
require recipes-kernel/linux/linux-imx-src.inc
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

EXTRA_OEMAKE += "CONFIG_MXC_GPU_VIV=m"

KERNEL_MODULE_AUTOLOAD = ""
如果我在上面的OEMAKE路径中给“n”,我会得到一个错误

ERROR: kernel-module-imx-gpu-viv-6.2.4.p1.2-r0 do_package: QA Issue: kernel-module-imx-gpu-viv: Files/directories were installed but not shipped in any package:
/lib
/lib/modules
/lib/modules/4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d61147
/lib/modules/4.9.88-imx_4.9.88_2.0.0_ga+g5e23f9d61147/extra
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install

如何将此内核模块列入黑名单或阻止其自动加载?

要将galcore内核模块列入黑名单,您应在中设置以下bitbake变量:

  • local.conf
  • virtual/kernel
  • 提供galcore模块bbappend的配方
  • 机器配置
  • 发行版配置
它将创建一个包含
模块conf
内容的
/etc/modprobe.d/galcore.conf
文件


见mega手册:


您试图从映像\u安装中删除包“imx gpu viv”,但至少包装错误提到“内核模块imx gpu viv”。可能会仔细检查哪个包实际包含您的模块?您可以添加类似
KERNEL\u module\u PROBECONF+=“galcore”module\u conf\u galcore=“blacklist galcore”
,请参阅@Nayfe我应该在local.conf或rootfs的.bb文件中添加这些吗?@JussiKukkonen如果我删除整个包,我将无法运行gpu应用程序,我需要的只是galcore.koremoved@Nayfe谢谢你,这对我有用。你能在你引用该段的地方贴一个“手册”的链接吗。。。为什么不加上你的评论作为答案呢?再次感谢。下次发帖之前,我一定会参考手册。
KERNEL_MODULE_PROBECONF += "galcore"
module_conf_galcore = "blacklist galcore"