0

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

Yocto 错误

文件 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
4

1 回答 1

0

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

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

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

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

于 2021-09-15T06:18:09.447 回答