升级固件的方法、电子设备和存储介质
Published in 发明专利 Invention patent, 2023
Recommended citation: Dayao Ji. (2023). "Method for upgrading firmware, electronic device and storage medium." China patent. CN116974617A. https://patents.google.com/patent/CN116974617A
升级固件的方法、电子设备和存储介质
摘要:本发明涉及升级固件的方法、电子设备和存储介质。该方法包括外置存储装置含有与待升级设备相对应的预设名字的待升级固件烧录文件,外置存储装置插入待升级设备接口后,对待升级设备进行上电启动,以运行一级启动引导程序,加载和引导二级启动引导程序固件,然后备份二级启动引导程序固件至预设的备份地址,并将固件分区表中的二级启动引导程序固件分区修改为指向预设的备份地址,将修改后的固件分区表升级至分区表预设位置,并基于待升级固件烧录文件对二级启动引导程序固件进行升级,能够确保升级过程中任何时刻出现异常都能在设备重启后继续完成固件升级,从而更便捷地对烧错的固件进行修复,同时提高升级的可靠性。
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 that an external storage device contains a to-be-upgraded firmware burning file with a preset name corresponding to equipment to be upgraded, after the external storage device is inserted into an interface of the equipment to be upgraded, the equipment to be upgraded is powered on and started to run a primary starting guide program, load and guide secondary starting guide program firmware, then backup the secondary starting guide program firmware to a preset backup address, modify a secondary starting guide program firmware partition in a firmware partition table to point to the preset backup address, upgrade the modified firmware partition table to a partition table preset position, upgrade the secondary starting guide program firmware based on the to-be-upgraded firmware burning file, and enable firmware upgrade to be continuously completed after the equipment is restarted at any moment in the upgrading process, so that the wrongly burned firmware is more conveniently repaired, and meanwhile the upgrading reliability is improved.
Recommended citation:
纪大峣. 升级固件的方法、电子设备和存储介质[P]. 中国:CN116974617A,2023-10-31.
D. Ji,”Method for upgrading firmware, electronic device and storage medium,” China Patent CN116974617A, October 31,2023.
