内核模块名称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
食谱bbappendKERNEL_MODULE_PROBECONF += "galcore"
module_conf_galcore = "blacklist galcore"
它将创建具有/etc/modprobe.d/galcore.conf
内容的module_conf
文件。
请参见超级手册: