# Generate incremental OTA upgrade package

Source: [https://docs.qualcomm.com/doc/80-88500-2/topic/generate_incremental_ota_upgrade_package.html](https://docs.qualcomm.com/doc/80-88500-2/topic/generate_incremental_ota_upgrade_package.html)

The incremental upgrade involves updating only those blocks on the system partition's
            file system that are different when compared to the base build. Incremental upgrade only
            applies to the system partition as that is the largest image; the other partitions are
            still upgraded as a whole.

The advantage when compared to a full upgrade is that the update-package size is less for
            incremental updates, however the time to perform an incremental update is more compared
            to a full upgrade.

To generate an incremental OTA package, perform the following steps: 
1. Copy the source (base-build currently on the device)
                        target-files-ext4.zip and the destination
                        target-files-ext4.zip to
                        build-qti-distro-rb-debug/tmp-glibc/deploy/images/qrb5165-rb5/qti-robotics-image.
2. If you want to upgrade any non-HLOS images, pack those images into the RADIO
                    folder of the destination target-files-ext4.zip. Do not
                    pack the non-HLOS images in the source
                        target-files-ext4.zip.
3. To generate the package, run the following
                    commands:

        cd build-qti-distro-rb-debug/tmp-glibc/deploy/images/qrb5165/ota-scriptsCopy to clipboard

        ./incremental_ota.sh <path/to/workspace>/build-qti-distro-rb-debug/tmp-glibc/deploy/image/qrb5165-rb5/qti-robotics-image/target-files-ext4_source.zip <path/to/workspace>/build-qti-distro-rb-debug/tmp-glibc/deploy/image/qrb5165-rb5/qti-robotics-image/target-files-ext4_dest.zip <path/to/workspace>/build-qti-distro-rb-debug/tmp-glibc/work/qrb5165_rb5-oe-linux/qti-robotics-image/1.0-r0/rootfs ext4 --block --system_path /Copy to clipboard

Note: The incremental OTA upgrade requires that the base build on the device is the same as
            the base (or source)-build using which the incremental update package was generated. If
            there are write operations (intentional or otherwise) to the system partition, then the
            incremental OTA upgrade may fail.

**Parent Topic:** [Over-the-air (OTA) (Linux Embedded)](https://docs.qualcomm.com/doc/80-88500-2/topic/over_the_air_ota_linux_embedded.html)

Last Published: Aug 18, 2023

[Previous Topic
Generate full-OTA package](https://docs.qualcomm.com/bundle/publicresource/80-88500-2/topics/generate_full_ota_package.md) [Next Topic
Upgrade OTA](https://docs.qualcomm.com/bundle/publicresource/80-88500-2/topics/upgrade_ota_linux_embedded.md)