'make dist' error when building OTA package system.img > 2GB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

'make dist' error when building OTA package system.img > 2GB

934 Views
michaelrobbelot
Contributor IV

I receive the following error when calling the "make dist" target to generate an OTA package:

Traceback (most recent call last):
File "./build/tools/releasetools/img_from_target_files", line 205, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/img_from_target_files", line 191, in main
AddSystem(output_zip)
File "./build/tools/releasetools/img_from_target_files", line 146, in AddSystem
common.ZipWriteStr(output_zip, "system.img", data)
File "/home/.../.../build/tools/releasetools/common.py", line 617, in ZipWriteStr
zip.writestr(zinfo, data)
File "/usr/lib/python2.7/zipfile.py", line 1131, in writestr
zinfo.CRC = crc32(bytes) & 0xffffffff       # CRC-32 checksum
OverflowError: size does not fit in an int


I do get the ota update zip for updating a system, but the system-img zip is not generated as system.img is greater than 2GB, which is something zipfile.writestr can't handle. Is there a workaround for this problem? Are there any problems with using the ota update zip archive when the system img zip archive is not generated.


Michael Robbeloth

0 Kudos
0 Replies