NXP MCU 技术论坛
直播中

陈韵瑄

7年用户 988经验值
私信 关注
[问答]

Yocto如何将文件安装到rootfs?

嗨恩智浦,
我正在尝试将文件安装到 rootfs 但失败了。
这是我的环境
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NAtiVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8qxpc0mek"
DISTRO               = "fsl-imx-wayland"
DISTRO_VERSION       = "5.15-kirkstone"
TUNE_FEATURES        = "aarch64 armv8a crc crypto"这是我的食谱“test.bb”
DESCRIPTION = "Box software"
LICENSE = "CLOSED"
# FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI += " \
    file://test \
    "
S = "${WORKDIR}"

do_install:append() {
    bbwarn "Test install file to rootfs <<<<<<<<<<<<<<<"
    #WiFi        
    install -D -v -m 0755 test -t ${D}${ROOT_HOME}/
}
FILES:${PN} += "${ROOT_HOME}/*" 这是错误输出
ERROR: imx-image-multimedia-1.0-r0 do_rootfs: Unable to install packages. Command '/media/wols/Data-ext4/imx5.15.52/clean_build/tmp/work/imx8qxpc0mek-poky-linux/imx-image-multimedia/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --allow-downgrades --allow-remove-essential --allow-change-held-packages --allow-unauthenticated --no-remove apt docker dpkg firmwared imx-g2d-samples packagegroup-base-extended packagegroup-core-boot packagegroup-core-full-cmdline packagegroup-core-nfs-server packagegroup-core-sdk packagegroup-core-ssh-dropbear packagegroup-core-standalone-sdk-target packagegroup-core-tools-debug packagegroup-core-tools-profile packagegroup-core-tools-testapps packagegroup-core-weston packagegroup-fsl-gstreamer1.0 packagegroup-fsl-gstreamer1.0-full packagegroup-fsl-optee-imx packagegroup-fsl-tools-audio packagegroup-fsl-tools-benchmark packagegroup-fsl-tools-gpu packagegroup-fsl-tools-gpu-external packagegroup-fsl-tools-testapps packagegroup-imx-isp packagegroup-imx-security packagegroup-tools-bluetooth run-postinsts test' returned 100:

Reading package lists...
Building dependency tree...
Reading state information...

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
packagegroup-fsl-tools-testapps : Depends: cryptodev-module but it is not installable
E: Unable to correct problems, you have held broken packages.我也尝试添加 <  IMAGE_INSTALL:append = " cryptodev-module " >
但确实有帮助,又出现了另一个错误。
The following packages have unmet dependencies:
kernel-module-cryptodev-5.15.52+g8e9642731c85 : Depends: kernel-5.15.52+g8e9642731c85 but it is not installable

更多回帖

发帖
×
20
完善资料,
赚取积分