android 编译出错的修改
1月3日 10:57#### make completed successfully (10:50 (mm:ss)) ####root@ailiving-Z490-UD:/home/share/test/sc60_android7.1.2_ailiving# ./build/tools/releasetools/ota_from_target_files --block -p out/host/l
1月3日 10:57
#### make completed successfully (10:50 (mm:ss)) ####
root@qq-Z490-UD:/home/share/test/xx.1.2_qq# ./build/tools/releasetools/ota_from_target_files --block -p out/host/linux-x86/ -k build/target/product/security/testkey -v out/target/product/msm8953_64/obj/PACKAGING/target_files_intermediates/msm8953_64-target_files-eng.qq.zip 2020_08_21_new_all.zip
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 2206, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 2068, in main
input_zip = zipfile.ZipFile(args[0], "r")
File "/usr/lib/python2.7/zipfile.py", line 756, in __init__
self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: 'out/target/product/msm8953_64/obj/PACKAGING/target_files_intermediates/msm8953_64-target_files-eng.xxx.zip'
root@xxx-Z490-UD:/home/share/test/xx.1.2_xxx# pip install requests
/home/share/auto_ver/xx.1.2_qq
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 2206, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 2068, in main
input_zip = zipfile.ZipFile(args[0], "r")
File "/usr/lib/python2.7/zipfile.py", line 756, in __init__
self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: './qq_ver//.zip'
二. unzip 某个zip文件失败,提示tmp空间不足
解决方法:
1.生成的zip文件,是否包括了当前编译环境的用户名,是请修改用户名,登录不同的用户名,再进行测试
2. tmp的分区一定要足够大,能有几百G 最佳
3.临时删除tmp文件的文件,进行测试
临时我增加硬盘的扩容tmp的方法
parted /dev/sda
mklabel gpt
设置单位为TB:(parted) unit MB(GB,TB)
分区:(parted) mkpart primary 1 500 (分第一个主分区500MB)
分区:(parted) mkpart primary 501 1000 (分第二个主分区500MB)
分区:(parted) mkpart logical 1001 2000 (分第三个逻辑分区1000MB) (parted的逻辑分区不用先分扩展分区,直接一步到位)
查看:(parted) p
blkid
cat /etc/fstab 下增加
UUID="6e223988-efdf-4b00-9f34-c6b4f50f7acf" /storageOne ext4 defaults 0 0
UUID="698f98ac-a832-4650-9641-3a97892d1157" /tmp ext4 defaults 0 0
更多推荐
所有评论(0)