升级固件的方法、电子设备和存储介质
Published in 发明专利 Invention patent, 2024
Recommended citation: Dayao Ji. (2024). "Method for upgrading firmware, electronic device and storage medium." China patent. CN117369847A. https://patents.google.com/patent/CN117369847A
升级固件的方法、电子设备和存储介质
摘要:本发明涉及升级固件的方法、电子设备和存储介质。该方法包括获取待升级固件升级包,包括升级模式固件的完整镜像和升级模式固件的依赖固件列表的完整镜像,根据待升级固件升级包构建升级暂存镜像,并将其写入设备分区表中的暂存固件分区,在第一升级阶段,根据第一升级指令基于暂存固件分区对升级模式固件和升级模式固件的依赖固件列表进行升级,在第二升级阶段,根据第二升级指令对其他固件进行升级。即使在升级过程的任意时刻出现掉电,设备都能在重新上电后从暂存固件分区中获取相应固件进行正常引导并继续升级,从而实现对升级模式固件和升级模式固件的依赖固件列表进行升级的同时,确保升级过程的可靠性。
Method for upgrading firmware, electronic device and storage medium
Abstract:The invention relates to a method for upgrading firmware, an electronic device and a storage medium. The method comprises the steps of obtaining a firmware upgrade package to be upgraded, including a complete image of an upgrade mode firmware and a complete image of a dependent firmware list of the upgrade mode firmware, constructing an upgrade temporary storage image according to the firmware upgrade package to be upgraded, writing the upgrade temporary storage image into a temporary storage firmware partition in a device partition table, upgrading the upgrade mode firmware and the dependent firmware list of the upgrade mode firmware based on the temporary storage firmware partition according to a first upgrade instruction in a first upgrade stage, and upgrading other firmware according to a second upgrade instruction in a second upgrade stage. Even if power failure occurs at any time in the upgrading process, the device can acquire corresponding firmware from the temporary firmware partition after being powered on again to conduct normal boot and continue upgrading, so that the upgrading mode firmware and the dependent firmware list of the upgrading mode firmware are upgraded, and meanwhile the reliability of the upgrading process is ensured.
Recommended citation:
纪大峣. 升级固件的方法、电子设备和存储介质[P]. 中国:CN117369847A,2024-01-09.
D. Ji,”Method for upgrading firmware, electronic device and storage medium,” China Patent CN117369847A, January 9,2024.
