AnsweredAssumed Answered

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

Question asked by Michael Robbeloth on Jun 17, 2013

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>
File "./build/tools/releasetools/img_from_target_files", line 191, in main
File "./build/tools/releasetools/img_from_target_files", line 146, in AddSystem
common.ZipWriteStr(output_zip, "system.img", data)
File "/home/.../.../build/tools/releasetools/", line 617, in ZipWriteStr
zip.writestr(zinfo, data)
File "/usr/lib/python2.7/", 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