docker - Yocto 图像构建失败
问题描述
目前我正在尝试为 quectel 的 sc20 构建 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
解决方案
错误:ext4_allocate_best_fit_partial:未能分配 74 个块,空间不足?
该错误与图像的大小有关。您的系统文件树大于您的图像大小。
要解决这个问题,您需要增加根文件系统分区大小:
make menuconfig ->目标图像->根文件系统分区大小(以 MB 为单位)
推荐阅读
- python - 指定范围内的输出元素
- react-native-draggable-flatlist - 如何实现两个可拖动的Flatlist
- javascript - ethereum web3js 如何导入“crypto-js”?
- sqlite - sqlite3 二进制数据类型
- python - 小鼠插补的运行时间估计?
- r - 有没有办法制作一个逻辑向量来查看向量的每个元素是否存在于另一个向量的所有元素中?
- aws-sdk - Javascript 中 AWS 开发工具包客户端生命周期的最佳实践
- android - android应用程序:单击菜单时操作栏重叠视图
- javascript - 迭代 Handlesbars.js 中的对象数组
- postgresql - 有没有办法阻止此错误“从“client_api_key”中选择 *,其中“api_key”= $1 限制 $2 - 连接意外终止”