NXP MCU 技术论坛
直播中

廉鼎琮

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

imx8qxpmek在yocto中使用sstate出现错误怎么解决?

我正在尝试使用 sstate 来提高构建速度并 减少所需的磁盘空间。
首先,创建一个干净的构建。
DISTRO=fsl-imx-wayland MACHINE=imx8qxpc0mek source imx-setup-release.sh -b build然后编辑 build/conf/local.conf
SSTATE_DIR ?="/share/yocto-sstate/"并建立,一切都很好。
bitbake imx-image-multimedia但是另一个构建尝试使用相同的 sstate 出现错误。
DISTRO=fsl-imx-wayland MACHINE=imx8qxpc0mek source imx-setup-release.sh -b build2

# build2/conf/local.conf
SSTATE_DIR ?="/share/yocto-sstate/"

#Then build
bitbake imx-image-multimedia并收到错误
ERROR: imx-image-multimedia-1.0-r0 do_rootfs: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function:
     0001:
*** 0002:license_create_manifest(d)
     0003:
File: '/path/to/imx5.15.52/sources/poky/meta/classes/license_image.bbclass', lineno: 38, function: license_create_manifest
     0034:    pkg_dic = {}
     0035:    for pkg in sorted(image_list_installed_packages(d)):
     0036:        pkg_info = os.path.join(d.getVar('PKGDATA_DIR'),
     0037:                                'runtime-reverse', pkg)
*** 0038:        pkg_name = os.path.basename(os.readlink(pkg_info))
     0039:
     0040:        pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
     0041:        if not "LICENSE" in pkg_dic[pkg_name].keys():
     0042:            pkg_lic_name = "LICENSE:" + pkg_name
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/path/to/imx5.15.52/build2/tmp/pkgdata/imx8qxpc0mek/runtime-reverse/kernel-5.15.52+ga3a946ec1ef5'

ERROR: Logfile of failure stored in: /path/to/imx5.15.52/build2/tmp/work/imx8qxpc0mek-poky-linux/imx-image-multimedia/1.0-r0/temp/log.do_rootfs.3670757
ERROR: Task (/path/to/imx5.15.52/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-multimedia.bb:do_rootfs) failed with exit code '1'我该如何解决?

更多回帖

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