【问题标题】:Yocto image Building failsYocto 图像构建失败
【发布时间】:2021-09-15 02:28:14
【问题描述】:

目前我正在尝试为 quectel 的 sc20 构建 yocto 映像,但出现此错误。

Yocto error

文件 msm8990.inc 具有 RECOVERYFS_SIZE_EXT4='268435456'

我该如何处理这类问题?

这是完整的日志

ERROR: machine-recovery-image-1.0-r0 do_makesystem: Function failed: do_makesystem (log file is located at /opt/poky/build/tmp-glibc/work/msm8909-oe-linux-gnueabi/machine-recovery-image/1.0-r0/temp/log.do_makesystem.3590122)
ERROR: Logfile of failure stored in: /opt/poky/build/tmp-glibc/work/msm8909-oe-linux-gnueabi/machine-recovery-image/1.0-r0/temp/log.do_makesystem.3590122
Log data follows:
| DEBUG: Executing shell function do_makesystem
| error: ext4_allocate_best_fit_partial: failed to allocate 74 blocks, out of space?
| fs_config_file: (none)
| No fs_config applied as no fsconfig.conf file passed using -C option.
| Creating filesystem with parameters:
|     Size: 268435456
|     Block size: 4096
|     Blocks per group: 32768
|     Inodes per group: 8192
|     Inode size: 256
|     Journal blocks: 1024
|     Label:
|     Blocks: 65536
|     Block groups: 2
|     Reserved block group size: 15
| WARNING: /opt/poky/build/tmp-glibc/work/msm8909-oe-linux-gnueabi/machine-recovery-image/1.0-r0/temp/run.do_makesystem.3590122:1 exit 1 from 'make_ext4fs -s -a / -S /opt/poky/build/tmp-glibc/work/msm8909-oe-linux-gnueabi/machine-recovery-image/1.0-r0/rootfs/etc/selinux/mls/contexts/files/file_contexts -l 268435456 /opt/poky/build/tmp-glibc/deploy/images/msm8909-quec-smart/msm8909-recoveryfs.ext4 /opt/poky/build/tmp-glibc/work/msm8909-oe-linux-gnueabi/machine-recovery-image/1.0-r0/rootfs'
| ERROR: Function failed: do_makesystem (log file is located at /opt/poky/build/tmp-glibc/work/msm8909-oe-linux-gnueabi/machine-recovery-image/1.0-r0/temp/log.do_makesystem.3590122)
ERROR: Task (/opt/poky/meta-qti-bsp/recipes-products/images/machine-recovery-image.bb:do_makesystem) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7550 tasks of which 7547 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /opt/poky/meta-qti-bsp/recipes-products/images/machine-recovery-image.bb:do_makesystem
Summary: There were 5 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
/opt/poky/build

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: docker yocto quectel


【解决方案1】:

错误:ext4_allocate_best_fit_partial:未能分配 74 个块, 空间不足?

错误与图像大小有关。您的系统文件树大于您的图像大小。

要解决这个问题你需要增加根文件系统分区大小:

make menuconfig -> 目标图像 -> 根文件系统分区大小(以 MB 为单位)

【讨论】:

  • 嗨 kluszon,我无法访问进行 menuconfig。我试图改变文件系统的大小,但问题仍然存在。我正在使用 docker image 和 bitbake 构建
  • 问题肯定是图像大小。我没有构建 docker 镜像的经验,但它适用于普通的 yocto linux 操作系统。你需要搜索如何为docker做。
猜你喜欢
  • 2020-12-27
  • 1970-01-01
  • 2022-08-05
  • 1970-01-01
  • 2021-10-14
  • 1970-01-01
  • 1970-01-01
  • 2022-10-21
  • 1970-01-01
相关资源
最近更新 更多