Firmware Update Self-Restoration Differential Packages
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Firmware update methods for terminal devices with limited resources face challenges in user experience due to large package sizes and high failure rates, particularly with the differential upgrade method, which can leave devices in an incomplete and unbootable state.
Innovation Solution
A firmware update method that generates a differential upgrade package and a differential restoration package, allowing the terminal device to upgrade and restore its firmware in a self-restoration mechanism, using a server and terminal device cooperation to download and apply these packages, and verify and restore incomplete upgrades.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If the differential upgrade method is used to reduce package size and memory consumption, then the terminal device can download and store the upgrade package efficiently, but the failure rate increases and the device may become dead due to incomplete firmware
Solution Approach 1:
The upgrade package is divided into multiple differential packages, each corresponding to a specific firmware component or version segment. This segmentation allows partial upgrades without requiring the complete firmware package, reducing overall memory consumption while maintaining reliability through selective application of upgrade segments
Solution Approach 2:
The system performs preliminary verification and validation of differential packages before full application. Backup mechanisms are established in advance, and the system verifies the integrity and compatibility of each differential package before applying it to the firmware, preventing incomplete or corrupted updates
2Reliability
If the whole package upgrade method is used to ensure complete firmware replacement, then the firmware update reliability is improved, but the terminal device requires large spared memory and long download time
Solution Approach 1:
The system extracts only the necessary differential portions from the complete firmware package. Instead of downloading and storing the entire firmware image, the system identifies and extracts only the changed segments, applying them to update the existing firmware. This extraction approach maintains update reliability while dramatically reducing memory requirements
3Loss of time
If the differential upgrade method is used to reduce download time, then the upgrade speed is improved, but the device may crash due to incomplete firmware
Solution Approach 1:
The system implements continuous feedback mechanisms during the differential upgrade process. Progress monitoring, integrity verification, and error detection are performed at multiple stages of the update process. If any anomaly is detected, the system can pause, rollback, or correct the update, ensuring device stability while maintaining fast download speeds through efficient differential compression
Data Source
AI summary
A firmware update method having a self-restoration mechanism is performed by a terminal device. The firmware update method includes the following steps: downloading a differential upgrade package and a differential restoration package through a communication network channel; performing an upgrade operation to current firmware of the terminal device with the differential upgrade package to upgrade the current firmware to a target firmware, wherein the current firmware is changed into incompletely-upgraded firmware after the upgrade operation starts and before the upgrade operation finishes successfully; and verifying whether the upgrade operation fails, and when the upgrade operation fails, performing a restoration operation to the incompletely-upgraded firmware with the differential restoration package to restore the incompletely-upgraded firmware to the current firmware.


