欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 会展 > android R编译Super.img时size过大报错

android R编译Super.img时size过大报错

2025/1/8 14:08:02 来源:https://blog.csdn.net/qq_48192676/article/details/143947084  浏览:    关键词:android R编译Super.img时size过大报错

编译Android12时最后一步打包Super.img报错:

out/target/product/tt/obj/PACKAGING/check-all-partition-sizes_intermediates/misc_info.txt )"
Traceback (most recent call last):File "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/internal/stdlib/runpy.py", line 174, in _run_module_as_mainFile "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/internal/stdlib/runpy.py", line 72, in _run_codeFile "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/__main__.py", line 12, in <module>File "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/internal/stdlib/runpy.py", line 174, in _run_module_as_mainFile "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/internal/stdlib/runpy.py", line 72, in _run_codeFile "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/check_partition_sizes.py", line 271, in <module>File "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/check_partition_sizes.py", line 265, in mainFile "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/check_partition_sizes.py", line 253, in CheckPartitionSizesFile "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/check_partition_sizes.py", line 245, in RunFile "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/check_partition_sizes.py", line 242, in _CheckAllPartitionSizesFile "/home/test/tt_r_temp/android/out/host/linux-x86/bin/check_partition_sizes/check_partition_sizes.py", line 61, in CheckLe
RuntimeError: sum of sizes of ['youroem_dynamic_partitions'] is greater than BOARD_SUPER_PARTITION_SIZE / 2: 2147483648
4290772992 == 4290772992 > 2147483648 == 2147483648
[100% 312/312] Target super fs image for debug: out/target/product/tt/super.img
2021-07-12 10:20:00 - build_super_image.py - INFO    : Building super image from info dict...
2021-07-12 10:20:00 - sparse_img.py - INFO    : Total of 217749 4096-byte output blocks in 20 input chunks.

解决:

修改对应工程下BoardConfig.mk

如device/mediateksample/k62v1_64_bsp/BoardConfig.mk

--- a/alps-mp-s0/device/mediateksample/k62v1_64_bsp/BoardConfig.mk
+++ b/alps-mp-s0/device/mediateksample/k62v1_64_bsp/BoardConfig.mk
@@ -60,4 +60,4 @@ BOARD_VENDOR_RAMDISK_KERNEL_MODULES +=
 # For Wifi
 BOARD_VENDOR_RAMDISK_KERNEL_MODULES +=
 # Super size increased W:22.29
-BOARD_MTK_SUPER_SIZE_KB := 4859904
+BOARD_MTK_SUPER_SIZE_KB := 14859904

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com