微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Yocto do_rootfs:['busybox'] 的安装后脚本已经失败

如何解决Yocto do_rootfs:['busybox'] 的安装后脚本已经失败

我正在构建 Yocto (thud) 图像,但在 do_rootfs 期间出现错误

update-alternatives: 错误:从 xxx/tmp/ 起没有将 xxx/tmp/work/cc-dey-linux/dey-image/1.0-r0/rootfs/usr/sbin/rtcwake 链接到 /bin/busyBox.nosuid work/cc-dey-linux/dey-image/1.0-r0/rootfs/usr/sbin/rtcwake 存在且不是链接

然后是详细的错误

ERROR: dey-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['busyBox'] have Failed. If the intention is to defer them to first boot,then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in xxx/tmp/work/cc-dey-linux/dey-image/1.0-r0/temp/log.do_rootfs.
ERROR: dey-image-1.0-r0 do_rootfs: Function Failed: do_rootfs
ERROR: Logfile of failure stored in: xxx/tmp/work/cc-dey-linux/dey-image/1.0-r0/temp/log.do_rootfs.835055

log.do_rootfs.835055文件中,错误日志和上面一样。

我想我有 3 个选择:

  1. 更新update-alternatives,但真的不知道如何
  2. 按照错误信息执行,使用 pkg_postinst_ontarget_${PN} ()

但是它们是什么来“将它们放入 pkg_postinst_ontarget_${PN} ()”?

  1. 使用 menuconfigrtcwake 禁用 busyBox

其他文章说这个错误是因为重复了busyBox,这个选项有什么副作用吗?

有什么例子可以说明如何使用 pkg_postinst_ontarget_${PN} ()

谢谢。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。