我正在为参考板 DragonBoard 845c 构建 android-11.0.0_r4。我已经通过执行设置我的构建source build/envsetup.sh
,然后是午餐,db845c-userdebug
然后是 make -j24
. 我收到以下构建错误:
'1>&2; echo '在构建单独的 system_ext.img 时,您不能将文件安装到 out/target/product/db845c/system/system_ext!' 1>&2; 1号出口;fi ) && (ln -sf /system_ext out/target/product/db845c/system/system_ext ) && (mkdir -p out/target/product/db845c/obj/PACKAGING/systemimage_intermediates/out/target/product/db845c/obj/ PACKAGING/systemimage_intermediates && rm -rf out/target/product/db845c/obj/PACKAGING/systemimage_intermediates/system_image_info.txt ) && (echo \"system_fs_type=ext4\" >> out/target/product/db845c/obj/PACKAGING/systemimage_intermediates /system_image_info.txt ) && (echo \"system_selinux_fc=out/target/product/db845c/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >> cp out/target/product/db845c/installed-files.txt \${DIST_DIR}/installed-files-rescued.txt; 退出 1 ) )" 2022-01-03 08:32:35 - build_image.py - 错误:无法从 out/target/product/db845c 构建出/target/product/db845c/obj/PACKAGING/systemimage_intermediates/system.img /system Out of space? Out of inodes? /home/rftest/UWB/dragon/out/soong/.temp/tmpGp99Zy的树大小为1169788928字节(1115 MB),保留空间为0字节(0 MB)。文件系统文件的最大映像大小为 1186566144 字节 (1131 MB),总分区大小为 1186566144 字节 (1131 MB)。来自 out/target/product/db845c/system 的 img 空间不足?没有inode?/home/rftest/UWB/dragon/out/soong/.temp/tmpGp99Zy的树大小为1169788928字节(1115 MB),保留空间为0字节(0 MB)。文件系统文件的最大映像大小为 1186566144 字节 (1131 MB),总分区大小为 1186566144 字节 (1131 MB)。来自 out/target/product/db845c/system 的 img 空间不足?没有inode?/home/rftest/UWB/dragon/out/soong/.temp/tmpGp99Zy的树大小为1169788928字节(1115 MB),保留空间为0字节(0 MB)。文件系统文件的最大映像大小为 1186566144 字节 (1131 MB),总分区大小为 1186566144 字节 (1131 MB)。
我搜索了答案并注意到最大图像大小为 1186566144 字节(1131 MB),而文件大小/home/rftest/UWB/dragon/out/soong/.temp/tmpGp99Zy
为 1169788928 字节(1115 MB),小于最大图像大小。我试图重定向构建的输出 -
export OUT_DIR_COMMON_BASE=/ext4/path/to/builds
但这并没有解决问题。
我该如何解决这个错误
*** 2022 年 1 月 4 日更新 ***
我在查看Android AOSP 构建失败后解决了这个问题 build_image.py for android-10.0.0_r39
我添加BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4
到我的/home/dragon/device/linaro/dragonboard/db845c/BoardConfig.mk
然后做了一个 make clean 和 make -j24 以成功构建