Android7.0 MTK方案 编译OTA升级包错误Could not append verity data!
2017-11-23 19:13
741 查看
一、Android7.0 MTK方案 编译OTA升级包时报错,如下
二、解决办法
敲命令 df –h,如下:
根目录只剩下1.8G的可用空间。而编译OTA包时,很多中间文件会存到 /tmp目录下,1.8G不够用,从而导致编译错误。
根本解决办法当然是增加 /tmp 所在分区的空间
临时解决办法:
cd /tmp
rm –rf *
删掉/tmp目录下的文件,清出空间,再进行编译。
Could not append verity data!: error: file_write: incomplete write Failed to write sparse file Traceback (most recent call last): File "./build/tools/releasetools/add_img_to_target_files", line 376, in <module> main(sys.argv[1:]) File "./build/tools/releasetools/add_img_to_target_files", line 370, in main AddImagesToTargetFiles(args[0]) File "./build/tools/releasetools/add_img_to_target_files", line 313, in AddImagesToT argetFiles AddSystem(output_zip, recovery_img=recovery_image, boot_img=boot_image) File "./build/tools/releasetools/add_img_to_target_files", line 70, in AddSystem block_list=block_list) File "./build/tools/releasetools/add_img_to_target_files", line 78, in BuildSystem return CreateImage(input_dir, info_dict, "system", block_list=block_list) File "./build/tools/releasetools/add_img_to_target_files", line 151, in CreateImage assert succ, "build " + what + ".img image failed" AssertionError: build system.img image failed
二、解决办法
敲命令 df –h,如下:
df -h Filesystem Size Used Avail Use% Mounted on udev 32G 4.0K 32G 1% /dev tmpfs 6.3G 52M 6.3G 1% /run none 4.0K 0 4.0K 0% /sys/fs/cgroup none 5.0M 0 5.0M 0% /run/lock none 32G 80K 32G 1% /run/shm
根目录只剩下1.8G的可用空间。而编译OTA包时,很多中间文件会存到 /tmp目录下,1.8G不够用,从而导致编译错误。
根本解决办法当然是增加 /tmp 所在分区的空间
临时解决办法:
cd /tmp
rm –rf *
删掉/tmp目录下的文件,清出空间,再进行编译。
相关文章推荐
- 关于Mac os gradle 编译时报‘could not download gradle.jar…’的错误问题解决
- WCF分布式开发常见错误(4):The type or namespace name 'DataContract' could not be found DataContract找不到
- 编译错误:Could not get unknown property 'release' for SigningConfig container
- qt编译过程中出现错误:arm-linux-g++ could not found
- Debian编译升级内核(could not load /lib/modules/2.6.28/modules.dep问题)
- [Android]编译错误:Could not get unknown property 'release' for SigningConfig container
- 升级Xcode7后,旧工程编译出现directory not found for option '-F...错误
- 用Struts+DAO+Hibernate+MySql写的程序发生:org.hibernate.exception.DataException:Could not execute JDBC batch update的错误原因
- htslib库安装过程中的编译错误,libz.a: could not read symbols: Bad value
- (诊断)为GitHub添加SSH key时出现“Could not open a connection to your authentication agent”错误的应对方案。
- 解决vsftpd编译时的错误:could not read symbols: File in wrong format
- WCF分布式开发常见错误(4):could not be found DataContract
- myeclipse菜鸟级别编译错误:The project was not built due to "Could not delete
- 编译错误:Could not get unknown property 'release' for SigningConfig container
- Eclipse之NDK编译-- Type 'jint' could not be resolved, and JNIEnv, jclass错误解决办法
- 【Hibernate错误解决办法】Could not execute JDBC batch update; Data too long for column 'name' at row 1
- 制作ota升级包之error:Could not create the Java virtual machine
- (诊断)为GitHub添加SSH key时出现“Could not open a connection to your authentication agent”错误的应对方案(转)
- 从vs 2005升级到vs 2008,出现Could not transform licenses file into a binary resource.错误,怎么办?
- linux2.6.35编译出现错误could not load /lib/modules/2.6.35/modules.dep