-
公开(公告)号:US20210124573A1
公开(公告)日:2021-04-29
申请号:US17140847
申请日:2021-01-04
Applicant: Huawei Technologies Co., Ltd.
Abstract: Embodiments of this application disclose a firmware upgrade method and apparatus, and a terminal. The method includes: sequentially obtaining first upgrade data and operation instructions in all data blocks in a block differential upgrade package; converting first data into a second upgrade data in an image of an old firmware version according to the operation instruction; and controlling the first upgrade data and the second upgrade data to overwrite a to-be-upgraded data area in the image of the old firmware version. An operation of upgrading to an image of a new firmware version is completed in the image of the old firmware version based on the first upgrade data and the second upgrade data. The image of the new firmware version does not need to be additionally generated in an entire upgrade process, and no storage space needs to be reserved for the image of the new firmware version. In addition, in comparison with a conventional differential upgrade package, in the block differential upgrade package, a part or all of data in the conventional differential upgrade package is replaced with an operation instruction, thereby further reducing flash overheads for storing the block differential upgrade package and reducing flash space resources occupied in the upgrade process.