CN-116301973-B - Firmware upgrading method, device, equipment and readable storage medium
Abstract
The invention provides a firmware upgrading method, a device, equipment and a readable storage medium, relating to the field of firmware upgrading, wherein the method comprises the steps of responding to a firmware upgrading instruction, obtaining starting information in a key starting area of a first medium; the method comprises the steps of determining a target upgrading slot area from all upgrading slot areas of a second medium according to starting information, obtaining firmware to be upgraded from the target upgrading slot area, upgrading the firmware to be upgraded according to firmware upgrading instructions, wherein the starting information is obtained by calling a firmware guide program FBL from a read-only slot area of a first medium, the read-only slot area also stores read-only function firmware for offline programming, the capacity of the first medium is smaller than that of the second medium, and the firmware upgrading speed of the first medium is smaller than that of the second medium. The invention not only can ensure the factory offline programming of the solid state disk, but also can improve the upgrading efficiency of the firmware, thereby reducing the influence of the firmware upgrading on the operation business of the user.
Inventors
- YIN ZUOGANG
- CUI JIANING
- ZHANG QI
Assignees
- 苏州浪潮智能科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20230217
Claims (11)
- 1. A firmware upgrade method, comprising: responding to a firmware upgrading instruction, and acquiring starting information in a key starting area of a first medium; Determining a target upgrade slot area from all upgrade slot areas of the second medium according to the starting information; obtaining firmware to be upgraded from the target upgrade slot area, and upgrading the firmware to be upgraded according to the firmware upgrade instruction; The starting information is obtained by calling a firmware boot program FBL from a read-only slot area of the first medium; the read-only slot area also stores read-only function firmware for offline programming; The capacity of the first medium is smaller than the capacity of the second medium; The firmware upgrading speed of the first medium is smaller than that of the second medium.
- 2. The firmware upgrade method of claim 1, wherein after said determining a target upgrade slot area from all upgrade slot areas of the second medium, the method further comprises: and calling the FCC micro-code area of the first medium under the condition that the target upgrading slot position area is in a power-on running state so as to establish a message channel for reading data with the target upgrading slot position area according to the FCC micro-code area.
- 3. The firmware upgrade method according to claim 2, wherein the obtaining the firmware to be upgraded from the target upgrade slot area, and upgrading the firmware to be upgraded according to the firmware upgrade instruction, includes: According to the message channel, acquiring the firmware to be upgraded from the main backup or the slave backup of the target upgrading slot area; According to the firmware upgrading instruction, version upgrading parameters matched with version information carried by the firmware upgrading instruction are obtained from a preset server; and upgrading the firmware to be upgraded according to the version upgrading parameters.
- 4. A firmware upgrade method according to claim 3, further comprising, before said upgrading said firmware to be upgraded according to said version upgrade parameter: and under the condition that the firmware to be upgraded cannot be obtained from the main backup or the slave backup of the target upgrading slot area, obtaining the read-only function firmware so as to load and operate the solid state disk according to the read-only function firmware.
- 5. The firmware upgrade method according to claim 1, further comprising, after said upgrading of said firmware to be upgraded according to said firmware upgrade instruction: under the condition that firmware upgrading is completed, upgrading completion information is generated, wherein the upgrading completion information at least comprises upgrading slot area information where the upgraded firmware is located; Updating the starting information according to the upgrading completion information, and generating a restarting instruction; And responding to the restarting instruction, and acquiring the updated firmware from an updating slot area where the updated firmware is located according to updated starting information so as to load and operate the solid state disk according to the updated firmware.
- 6. The firmware upgrade method of claim 1, wherein the determining a target upgrade slot area from all upgrade slot areas of the second medium according to the start-up information comprises: determining a target upgrade slot area from all upgrade slot areas of the second medium under the condition that the upgrade slot areas matched with the starting information exist in all upgrade slot areas; Under the condition that the upgrading slot areas matched with the starting information do not exist in all the upgrading slot areas, determining a target upgrading slot area from all the upgrading slot areas of the second medium according to the firmware upgrading characteristics in the firmware upgrading instruction; the firmware upgrade feature includes a firmware protocol version and a target upgrade power consumption.
- 7. The firmware upgrade method of claim 6, wherein said determining a target upgrade slot area from all upgrade slot areas of the second medium according to firmware upgrade features in the firmware upgrade instructions comprises: determining a preset protocol version corresponding to each upgrading slot region and a preset power consumption interval corresponding to each upgrading slot region; Under the condition that the firmware protocol version of the firmware upgrading feature is matched with a preset protocol version corresponding to any upgrading slot position area, determining the upgrading slot position area as a target upgrading slot position area; determining target upgrading power consumption of the firmware upgrading feature under the condition that the firmware protocol version of the firmware upgrading feature is not matched with the preset protocol version corresponding to all upgrading slot areas; And under the condition that the target upgrading power consumption falls into a preset power consumption interval corresponding to any upgrading slot position area, determining the upgrading slot position area as a target upgrading slot position area.
- 8. The firmware upgrade method of claim 1, wherein after responding to the firmware upgrade instruction, the method further comprises: and determining the read-only slot area of the first medium according to the boot program BOOTROM.
- 9. A firmware upgrade apparatus, comprising: the acquiring unit is used for responding to the firmware upgrading instruction and acquiring starting information in a key starting area of the first medium; the determining unit is used for determining a target upgrading slot position area from all upgrading slot position areas of the second medium according to the starting information; The upgrading unit is used for obtaining firmware to be upgraded from the target upgrading slot position area and upgrading the firmware to be upgraded according to the firmware upgrading instruction; The starting information is obtained by calling a firmware boot program FBL from a read-only slot area of the first medium; the read-only slot area also stores read-only function firmware for offline programming; The capacity of the first medium is smaller than the capacity of the second medium; The firmware upgrading speed of the first medium is smaller than that of the second medium.
- 10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the firmware upgrade method of any of claims 1-8 when the program is executed by the processor.
- 11. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the firmware upgrade method of any of claims 1-8.
Description
Firmware upgrading method, device, equipment and readable storage medium Technical Field The present invention relates to the field of firmware upgrade, and in particular, to a method, apparatus, device and readable storage medium for firmware upgrade. Background At present, firmware to be upgraded is usually stored in a Norflash medium, however, the processing mode can reduce the speed of erasing redundant files after upgrading the firmware by the solid state disk, and also reduce the speed of writing corresponding upgrade files, so that the firmware upgrade time is too long, and the storage service is abnormal. Disclosure of Invention The invention provides a firmware upgrading method, a device, equipment and a readable storage medium, which are used for solving the technical defect of realizing quick firmware upgrading under the condition of ensuring factory off-line programming in the prior art, the technical scheme is that the firmware is divided into the slot areas, the factory firmware is stored in a Norflash medium, and the upgrading firmware is stored in a nonvolatile medium Nand of a solid state disk, so that the firmware upgrading speed is improved. In a first aspect, the present invention provides a firmware upgrade method, including: responding to a firmware upgrading instruction, and acquiring starting information in a key starting area of a first medium; Determining a target upgrade slot area from all upgrade slot areas of the second medium according to the starting information; obtaining firmware to be upgraded from the target upgrade slot area, and upgrading the firmware to be upgraded according to the firmware upgrade instruction; The starting information is obtained by calling a firmware boot program FBL from a read-only slot area of the first medium; the read-only slot area also stores read-only function firmware for offline programming; The capacity of the first medium is smaller than the capacity of the second medium; The firmware upgrading speed of the first medium is smaller than that of the second medium. According to the firmware upgrading method provided by the invention, after the target upgrading slot area is determined from all upgrading slot areas of the second medium, the method further comprises the following steps: and calling the FCC micro-code area of the first medium under the condition that the target upgrading slot position area is in a power-on running state so as to establish a message channel for reading data with the target upgrading slot position area according to the FCC micro-code area. According to the firmware upgrading method provided by the invention, the firmware to be upgraded is obtained from the target upgrading slot area, and is upgraded according to the firmware upgrading instruction, and the method comprises the following steps: According to the message channel, acquiring the firmware to be upgraded from the main backup or the slave backup of the target upgrading slot area; According to the firmware upgrading instruction, version upgrading parameters matched with version information carried by the firmware upgrading instruction are obtained from a preset server; and upgrading the firmware to be upgraded according to the version upgrading parameters. According to the firmware upgrading method provided by the invention, before the firmware to be upgraded is upgraded according to the version upgrading parameter, the method further comprises the following steps: and under the condition that the firmware to be upgraded cannot be obtained from the main backup or the slave backup of the target upgrading slot area, obtaining the read-only function firmware so as to load and operate the solid state disk according to the read-only function firmware. According to the firmware upgrading method provided by the invention, after the firmware to be upgraded is upgraded according to the firmware upgrading instruction, the method further comprises the following steps: under the condition that firmware upgrading is completed, upgrading completion information is generated, wherein the upgrading completion information at least comprises upgrading slot area information where the upgraded firmware is located; Updating the starting information according to the upgrading completion information, and generating a restarting instruction; And responding to the restarting instruction, and acquiring the updated firmware from an updating slot area where the updated firmware is located according to updated starting information so as to load and operate the solid state disk according to the updated firmware. According to the firmware upgrading method provided by the invention, the determining of the target upgrading slot area from all the upgrading slot areas of the second medium according to the starting information comprises the following steps: determining a target upgrade slot area from all upgrade slot areas of the second medium under the condition that the upgrade slot areas mat