【问题标题】:Cannot satisfy the following dependencies for packagegroup-core-boot无法满足 packagegroup-core-boot 的以下依赖项
【发布时间】:2018-02-21 05:47:04
【问题描述】:

我正在尝试将自定义内核模块 (comedi) 添加到我的 Yocto 映像中。我已经添加了这个 bitbake 食谱:

SUMMARY = "Comedi is a collection of drivers for a variety of common data acquisition plug-in boards. The drivers are implemented as a core Linux kernel module providing common functionality and individual low-level driver modules."
LICENSE = "GPLv2"
HOMEPAGE = "http://www.comedi.org"
LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
PR = "r1"

SRC_URI = "git://github.com/Linux-Comedi/comedi.git;protocol=git"
SRCREV = "af69459809c295699593604ef95b215189b3623f"

S = "${WORKDIR}/git"

inherit module

# The Linux kernel needs to be built before comedi
DEPENDS = "linux-yocto-rt"

do_configure() {
  cd ${WORKDIR}/git/
  ./autogen.sh
  echo ""
  ./configure --target=${TARGET_SYS} --host=${HOST_SYS} --with-machine=${TARGET_ARCH} --with-linuxdir=${STAGING_KERNEL_BUILDDIR} --with-linuxsrcdir=${STAGING_KERNEL_DIR}
}

EXTRA_OEMAKE = "-C ${S}"

do_install() {
  install -m 0755 -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/extra
  install -m 0755 -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/extra/comedi

  install -p -m 644 ${S}/comedi/comedi.ko ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/extra
}

FILES_${PN} = "${nonarch_base_libdir}/modules"
FILES_${PN} += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/extra/comedi/*"

Comedi 有很多内核驱动程序,但我只是想解决这个错误。内核对象正在构建良好。但是在do_rootfs 步骤中出现以下错误:

Collected errors:
 * calculate_dependencies_for: Cannot satisfy the following dependencies for packagegroup-core-boot:
 *  kernel-module-comedi * 
 * opkg_solver_install: Cannot install package packagegroup-core-boot.
guring kernel-module-xt-hashlimit.

有什么办法解决?

【问题讨论】:

    标签: yocto bitbake


    【解决方案1】:

    我设法通过将我的模块添加到位于layer.confKERNEL_MODULE_AUTOLOAD 来解决这个问题。出于某种原因,将 KERNEL_MODULE_AUTOLOAD 添加到配方中不起作用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-20
      • 1970-01-01
      • 2020-09-11
      • 2019-09-12
      • 1970-01-01
      相关资源
      最近更新 更多