Forums - [QRB5165.LE.1.0 LEPDK] cannot create OTA package when rootfs over around 4GiB.

1 post / 0 new
[QRB5165.LE.1.0 LEPDK] cannot create OTA package when rootfs over around 4GiB.
sangwoo.kim
Join Date: 6 Dec 21
Posts: 1
Posted: Tue, 2022-11-29 18:33
If rootfs over around 4GiB, cannot create full ota package(full_update_ext4.zip) on LE platform(qti-yocto).
 
Error occurred when do_gen_ota_full_zip_ext4 bitbake task.
ota-scripts/ota_from_target_files script not support ZIP64 format.
log: ota_debug.txt from target-files-ext4.zip
--------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "./ota_from_target_files", line 2497, in <module>
    main(sys.argv[1:])
  File "./ota_from_target_files", line 2444, in main
    WriteFullOTAPackage(input_zip, output_zip)
  File "./ota_from_target_files", line 770, in WriteFullOTAPackage
    system_diff.WriteScript(script, output_zip)
  File "/yocto/build_target/tmp/deploy/images/qrb5165-rb5/ota-scripts/common.py", line 1421, in WriteScript
    self._WriteUpdate(script, output_zip)
  File "/yocto/build_target/tmp/deploy/images/qrb5165-rb5/ota-scripts/common.py", line 1576, in _WriteUpdate
    '{}.new.dat'.format(self.partition))
  File "/yocto/build_target/tmp/deploy/images/qrb5165-rb5/ota-scripts/common.py", line 1072, in ZipWrite
    zip_file.write(filename, arcname=arcname, compress_type=compress_type)
  File "/usr/lib/python2.7/zipfile.py", line 1171, in write
    self._writecheck(zinfo)
  File "/usr/lib/python2.7/zipfile.py", line 1137, in _writecheck
    " would require ZIP64 extensions")
zipfile.LargeZipFile: Filesize would require ZIP64 extensions
--------------------------------------------------------------------------------------
 
So, I added 'allowZip64=True' parameter when create zip object
then created 'full_update_ext4.zip' successfully.
 
But, unfortunately occured another issue.
cannot install full_update_ext4.zip via recovery tool.
I think it might revocery tool(minzip) not support ZIP64 format.
 
How can i solve this problem?
 
Regards,
 
 
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.