【问题标题】:bitbake rootfs large for core image minimalbitbake rootfs large for core image minimum
【发布时间】:2019-03-14 06:03:05
【问题描述】:

首先,我使用 bitbake 生成了一个core-image-sato 目标图像。然后我生成了core-image-minimal 目标。生成的根文件系统仍然包含现有目标的内容/包。

如何避免这种情况并拥有最小的根文件系统

【问题讨论】:

  • 这不是它的工作方式。每个图像都是从包源从头开始构建的。它不是基于以前的图像。
  • 如果有磁盘使用问题,可以看here
  • 启动新镜像前是否会删除sysroots文件夹
  • 在最近的 Yocto 版本上,是的
  • 我使用的是 Poky 2.0.3 版

标签: linux embedded-linux yocto rootfs


【解决方案1】:

我认为 core-image-sato 是使用 X11 构建的,而 core-image-minimal 是 without X11。两者都是完全不同的图像。

所以在你的 deploy/images/your-board/ 中。应该有core-image-sato-*-rootfs-* 也将出现core-image-minimal-*-rootfs*

删除core-image-sato--rootfs-那些不能删除的东西,下次就不能编译core-image-sato了。它会给出错误。

【讨论】:

    【解决方案2】:

    在最新的 Poky 2.6 中这样做了 - 尝试使用 poky > 2.1

    bitbake core-image-minimal & bitbake core-image-sato 生成不同的图像集。

    • 检查您是否有足够的磁盘空间!
    • 检查您没有在 /build/conf/local.config 中添加额外的包
    • 在 bitbaking core-image-minimal 和 core-image-sato 时检查您是否使用了不同的 local.config 文件。 (如果您在 bitbaking sato 时添加了软件包,那么如果您使用相同的 local.config,那么这些软件包将在 bitbaking 最小时添加)

    只是一个建议,不是你必须这样做:
    如果您是第一次进行 bitbaking,请使用默认的 /build/conf/local.config 和 /build/conf/bblayers.conf (但取消注释 DL_DIR、SSTATE_DIR、TMPDIR 会有好处)

    【讨论】:

      猜你喜欢
      • 2017-01-24
      • 2018-03-09
      • 1970-01-01
      • 2020-03-31
      • 2022-01-27
      • 1970-01-01
      • 2017-02-16
      • 2016-03-08
      • 2021-11-04
      相关资源
      最近更新 更多