Server firmware upgrading method and device, electronic equipment and readable storage medium
By obtaining the upgraded firmware data on the server core board, separately upgrading and switching the two static partitions loaded on the core board, the compatibility problem caused by inconsistent partitions after OTA upgrade is solved, achieving seamless upgrade and efficient firmware synchronization.
Patent Information
- Application Number
- CN202310349607.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
Existing servers cannot simultaneously upgrade the A and B partitions of the core board during the OTA upgrade process, resulting in inconsistent firmware versions, which may cause the server to crash and fail to boot, and is incompatible with the client system of the user device.
By obtaining the upgrade firmware data, the firmware versions of the first static partition and the second static partition of the core board are respectively upgraded to the target version, and different partition data are switched and loaded during restart to achieve seamless integration of the two partitions of the core board. Upgrade to keep its software and firmware versions consistent.
It achieves the synchronization of server firmware upgrades, improves upgrade efficiency, avoids compatibility issues caused by inconsistent partitions, and ensures that the server can operate normally and be compatible with user devices after the upgrade.
Smart Images

Figure CN118733073A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of servers, and in particular to a firmware upgrade method, device, electronic device and readable storage medium for a server. Background Art
[0002] The server contains two boards: BMC (Baseboard Management Controller) and core board. BMC is responsible for controlling and obtaining device information and data of the core board, and the core board supports specific business functions. BMC is used to update and upgrade the firmware version of the server during the OTA (Over-the-Air Technology) upgrade process. Specifically, the firmware of the core board (or business board) can be upgraded to achieve the update and upgrade of the server.
[0003] However, the current core boards generally use AB partitions. During the OTA upgrade process, only one of the A and B partitions of the core board is often upgraded, and the two partitions cannot be upgraded synchronously. The server firmware upgrade efficiency is low. For example, during a certain OTA upgrade process, the firmware version of partition A is upgraded, but the firmware version of partition B is not upgraded. Therefore, once partition A crashes and cannot be started, it is quickly started from partition B. However, due to the inconsistency of the software firmware versions of partitions AB, the server that loads the firmware version of partition B is likely to be incompatible with the client system of the user device, causing conflicts. Summary of the invention
[0004] The main purpose of this application is to provide a server firmware upgrade method, device, electronic device and readable storage medium, aiming to solve the technical problem that after OTA upgrade, a server using AB partitions is easily incompatible with the client system of the user device.
[0005] To achieve the above object, the present application provides a method for upgrading the firmware of a server, wherein the server includes a core board, the core board includes a first static partition and a second static partition, and the method includes: Get the firmware upgrade data; According to the upgraded firmware data, the first firmware version corresponding to the first static partition is upgraded to the target firmware version, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition; After upgrading the first firmware version to the target firmware version, restarting the core board, and when restarting the core board, controlling the core board to load the data of the first static partition; After the data of the first static partition is loaded, the second firmware version is upgraded to the target firmware version according to the upgrade firmware data.
[0006] Optionally, the step of upgrading the first firmware version corresponding to the first static partition to a target firmware version according to the upgraded firmware data includes: Writing the upgraded firmware data into the upgrade package storage area of the core board; The attribute value of the upgrade identification status bit of the core board is set to a first attribute value, wherein the upgrade identification status bit set to the first attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the first static partition, so as to upgrade the first firmware version of the first static partition to the target firmware version.
[0007] Optionally, the step of upgrading the second firmware version to the target firmware version according to the upgrade firmware data includes: The attribute value of the upgrade identification status bit of the core board is set to a second attribute value, wherein the upgrade identification status bit set to the second attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the second static partition to upgrade the second firmware version to the target firmware version.
[0008] Optionally, before the step of upgrading the second firmware version to the target firmware version according to the upgrade firmware data, the method further includes: Verifying whether the current firmware version of the first static partition can run normally; If not, it is determined that the upgrade of the first firmware version has failed; in response to the failure of the upgrade of the first firmware version, the core board is restarted, and when the core board is restarted, the core board is controlled to load the data of the second static partition; after the data of the second static partition is loaded, the step of obtaining the upgrade firmware data is executed; If yes, it is determined that the first firmware version is successfully upgraded; in response to the first firmware version being successfully upgraded, the step of upgrading the second firmware version to the target firmware version according to the upgraded firmware data is performed.
[0009] Optionally, after the step of determining that the first firmware version upgrade fails, the method further includes: Increment the cumulative number of failed upgrades to the first firmware version by one; If it is identified that the cumulative number of times is greater than the preset number threshold, an alarm message indicating that the firmware upgrade has failed is output; After the step of determining that the first firmware version is successfully upgraded, the method further includes: The accumulated count is reset to zero.
[0010] Optionally, after the step of upgrading the second firmware version to the target firmware version, the method further includes: The attribute value of the upgrade identification status bit of the core board is set to a third attribute value, wherein the upgrade identification status bit set to the third attribute is used to restrict the first static partition and the second static partition of the core board from performing firmware version upgrade.
[0011] Optionally, before the step of setting the attribute value of the upgrade identification status bit of the core board to a third attribute value, the method further includes: After upgrading the second static partition to the target firmware version, restarting the core board; When restarting the core board, controlling the core board to load the data of the second static partition; Verifying whether the current firmware version of the second static partition can run normally; If not, it is determined that the second firmware version upgrade fails; in response to the second firmware version upgrade failure, executing: when restarting the core board, controlling the core board to load the data of the first static partition; If so, it is determined that the second firmware version is successfully upgraded; in response to the second firmware version being successfully upgraded, the step of setting the attribute value of the upgrade identification status bit of the core board to the third attribute value is executed.
[0012] The present application also provides a firmware upgrade device for a server, the server comprising a core board, the core board comprising a first static partition and a second static partition, the device comprising: An acquisition module is used to acquire upgrade firmware data; An upgrade module, configured to upgrade the first firmware version corresponding to the first static partition to a target firmware version according to the upgrade firmware data, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition; A restart module, after upgrading the first firmware version to the target firmware version, restarts the core board, and when restarting the core board, controls the core board to load the data of the first static partition; The upgrade module is further configured to upgrade the second firmware version to the target firmware version according to the upgrade firmware data after the data of the first static partition is loaded.
[0013] The present application also provides an electronic device, which is a physical device, and includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the server firmware upgrade method as described above.
[0014] The present application also provides a readable storage medium, which is a computer-readable storage medium, on which is stored a program for implementing a firmware upgrade method for a server, and the program for implementing a firmware upgrade method for a server is executed by a processor to implement the steps of the firmware upgrade method for the server as described above. The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned server firmware upgrade method when executed by a processor.
[0015] The present application obtains upgrade firmware data, and upgrades the first firmware version corresponding to the first static partition to the target firmware version based on the upgrade firmware data, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition, thereby updating the firmware version data of the first static partition in the core board as a backup, while the server can still use the firmware version data of the second static partition currently running and called to perform normal processing and service of business messages, and then restart the core board after upgrading the first firmware version to the target firmware version, and when restarting the core board, control the core board to load the data of the first static partition, so that when the core board of the server is restarted next time, the firmware version data of the upgraded first static partition is run and called, thereby realizing seamless upgrade of the first static partition of the core board. Since after the core board is restarted this time, the core board is currently running and loading the first firmware version corresponding to the first static partition, that is, for the core board, the second static partition is a spare partition (currently idle static partition), and the first static partition is a working partition. Therefore, the present application also upgrades the second firmware version to the target firmware version according to the upgraded firmware data after the data loading of the first static partition is completed, so as to realize that during the OTA upgrade, the firmware version data of the second static partition as a spare is updated, and the server can still use the firmware version data of the first static partition currently called for normal processing and service of business messages, thereby realizing a seamless upgrade of the second static partition of the core board, and realizing that during an OTA upgrade process, the two partitions of the core board using AB partitions can be synchronously upgraded, so that the software firmware versions of the two partitions of the core board are consistent, thereby improving the firmware upgrade efficiency of the server, and avoiding the situation that after the OTA upgrade, a working partition of the core board crashes and cannot be started due to inconsistent software firmware versions of the AB partitions, and the server that enables the spare partition is incompatible with the client system of the user device and conflicts, thereby solving the technical problem that after the OTA upgrade, the server using AB partitions is easily incompatible with the client system of the user device. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 This is a flow chart of the first embodiment of the firmware upgrade method of the server of the present application; Figure 2 This is a detailed flow chart of step S20 in the second embodiment of the firmware upgrade method of the server of this application; Figure 3 This is a flow chart of a third embodiment of a firmware upgrade method for a server of the present application; Figure 4 This is a schematic diagram of the module structure of the firmware upgrade device of the server in the embodiment of the present application; Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the firmware upgrade device of the server in the embodiment of the present application.
[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0020] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0021] Embodiment 1 Firmware upgrade refers to the manufacturer upgrading the embedded firmware of electronic devices to improve device functions, enhance device stability, and patch device vulnerabilities.
[0022] The server contains two boards: BMC (Baseboard Management Controller) and core board. BMC is responsible for controlling and obtaining core board device information and data. BMC is used to update the server firmware version during OTA (Over-the-Air Technology) upgrades. Specifically, the server can be updated by upgrading the firmware of the core board (or business board). During the life cycle of the core board, new firmware versions need to be continuously released through OTA upgrades to solve new problems.
[0023] At present, core boards generally use AB partitions. During the OTA upgrade process, only one of the A and B partitions of the core board is often upgraded, and the two partitions cannot be upgraded synchronously. The server firmware upgrade efficiency is low. For example, during an OTA upgrade process, the firmware version of the A partition is upgraded, but the firmware version of the B partition is not upgraded. Therefore, once the A partition crashes and cannot be started, it is quickly started from the B partition. However, due to the inconsistency of the software firmware versions of the AB partitions, the server that loads the B partition firmware version is likely to be incompatible with the client system of the user device, resulting in conflicts.
[0024] Based on this, this application proposes a server firmware upgrade method of the first embodiment, please refer to Figure 1 , the server includes a core board, the core board includes a first static partition and a second static partition, and the method includes: Step S10, obtaining upgrade firmware data; The execution subject of the server firmware upgrade method of this embodiment may be a BMC (Baseboard Management Controller).
[0025] It is known to those skilled in the art that the upgrade firmware data is an upgrade package for performing firmware upgrade on the core board, and the upgrade package can specifically be a full upgrade package or a differential upgrade package, and the present embodiment does not specifically limit this. Specifically, the upgrade firmware data is used to upgrade the current firmware version of the core board to the target firmware version.
[0026] Step S20, upgrading the first firmware version corresponding to the first static partition to the target firmware version according to the upgraded firmware data, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition; The server of this embodiment has AB partitions, that is, the core board of the server includes a first static partition and a second static partition, that is, the first static partition is one of the A partition and the B partition, and the second static partition is the other of the A partition and the B partition.
[0027] For example, the partition structures of the first static partition and the second static partition may be consistent, and the sub-partition names of the static partitions may be distinguished from each other by suffixes _a and _b, such as boot_a, boot_b, system_a, system_b, vendor_a, and vendor_b.
[0028] It is understandable that the first firmware version refers to the firmware version installed on the first static partition before the first static partition is updated. The target firmware version refers to the firmware version installed on the first static partition of the core board after the server is updated. Correspondingly, the second firmware version refers to the firmware version installed on the second static partition before the second static partition is updated. The target firmware version refers to the firmware version installed on the second static partition of the core board after the server is updated, which is consistent with the firmware version installed on the first static partition after the server is updated.
[0029] In this embodiment, the core board of the server is configured based on the A / B partition. Since the core board is currently running and loading the second firmware version corresponding to the second static partition, that is, for the core board, the first static partition is a standby partition (currently idle static partition), and the second static partition is a working partition. During the OTA upgrade, the firmware version data of the first static partition as a standby will be updated, and the server can still use the firmware version data of the second static partition currently running and calling for normal processing and service of business messages.
[0030] Step S30, after upgrading the first firmware version to the target firmware version, restarting the core board, and when restarting the core board, controlling the core board to load the data of the first static partition; After the first firmware version is upgraded to the target firmware version, the core board is controlled to restart, so that when the core board of the server is restarted next time, the firmware version data of the upgraded first static partition is run and called, thereby achieving seamless upgrade.
[0031] Step S40: after the data of the first static partition is loaded, the second firmware version is upgraded to the target firmware version according to the upgrade firmware data.
[0032] It is easy to understand that after the core board is restarted this time, the core board is currently running and loading the first firmware version corresponding to the first static partition, that is, for the core board, the second static partition is the standby partition (the currently idle static partition), and the first static partition is the working partition. Therefore, during the OTA upgrade, the firmware version data of the second static partition as a standby will be updated, and the server can still use the firmware version data of the first static partition currently running and calling for normal processing and service of business messages.
[0033] This embodiment obtains upgrade firmware data, and upgrades the first firmware version corresponding to the first static partition to the target firmware version based on the upgrade firmware data, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition, thereby updating the firmware version data of the first static partition in the core board as a backup, and the server can still use the firmware version data of the second static partition currently running and called to perform normal processing and service of business messages, and then restart the core board after upgrading the first firmware version to the target firmware version, and when restarting the core board, control the core board to load the data of the first static partition, so that when the core board of the server is restarted next time, the firmware version data of the upgraded first static partition is run and called, thereby realizing seamless upgrade of the first static partition of the core board. Since after the core board is restarted this time, the core board is currently running and loading the first firmware version corresponding to the first static partition, that is, for the core board, the second static partition is a spare partition (currently idle static partition), and the first static partition is a working partition. Therefore, this embodiment also upgrades the second firmware version to the target firmware version according to the upgraded firmware data after the data loading of the first static partition is completed, so as to realize that during the OTA upgrade, the firmware version data of the second static partition as a spare is updated, and the server can still use the firmware version data of the first static partition currently called for normal processing and service of business messages, thereby achieving a seamless upgrade of the second static partition of the core board, and realizing that during an OTA upgrade process, the two partitions of the core board using AB partitions can be synchronously upgraded, so that the software firmware versions of the two partitions of the core board are consistent, thereby improving the firmware upgrade efficiency of the server, and avoiding the situation that after a working partition of the core board crashes and cannot be started after the OTA upgrade due to inconsistent software firmware versions of the AB partitions, the server that enables the spare partition is incompatible with the client system of the user device and conflicts, thereby solving the technical problem that after the OTA upgrade, the server using AB partitions is easily incompatible with the client system of the user device.
[0034] The embodiment of the present application provides a firmware upgrade method for a server in a server scenario, thereby achieving seamless upgrade while meeting the server core board update requirements and providing users with the latest business services, as well as improving the efficiency of server firmware upgrades, thereby avoiding the problem of incompatibility between a server using AB partitions and the current client system of a user device after an OTA upgrade.
[0035] In one possible implementation, please refer to Figure 2 The step of upgrading the first firmware version corresponding to the first static partition to the target firmware version according to the upgraded firmware data includes: Step S21, writing the upgraded firmware data into the upgrade package storage area of the core board; In this embodiment, the upgrade package storage area is a storage area for storing upgrade firmware data.
[0036] Wherein, the upgrade package storage area may belong to a sub-partition in the first static partition or a sub-partition of the second static partition. Of course, the upgrade package storage area may also belong to a sub-partition of an independent partition independent of the first static partition and the second static partition, wherein the independent partition is a public partition of the core board, that is, when the core board is turned on, whether it is running and calling the data of the first static partition or the second static partition, it is also necessary to load the data of the independent partition, and the data of the independent partition will not be lost due to restart.
[0037] Step S22, sets the attribute value of the upgrade identification status bit of the core board to a first attribute value, wherein the upgrade identification status bit set to the first attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the first static partition, so as to upgrade the first firmware version of the first static partition to the target firmware version.
[0038] In the present embodiment, the upgrade identification status bit of the core board can be used to indicate whether the current core board needs to perform a firmware version upgrade. It should be noted that when the attribute value of the upgrade identification status bit of the core board is set to the first attribute value, the core board can be triggered to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the first static partition, so as to upgrade the first firmware version of the first static partition to the target firmware version. Wherein, the first attribute value, those skilled in the art can set it according to actual conditions, and the present embodiment is not specifically limited. In one example, the first attribute value can be 1.
[0039] This embodiment first writes the upgrade firmware data to the upgrade package storage area of the core board, and after the upgrade firmware data is completely written, sets the attribute value of the upgrade identification status bit of the core board to the first attribute value, wherein the upgrade identification status bit set to the first attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the first static partition, thereby avoiding the problem of the core board upgrade failing due to the phenomenon of packet loss (abnormal upgrade firmware data transmission due to network instability and other reasons) caused by the firmware version upgrade of the core board being transmitted (i.e., transmitting the upgrade firmware data to the core board) while upgrading (i.e., upgrading the firmware version of the core board), thereby enabling the embodiment of the present application to efficiently and stably upgrade the first firmware version of the first static partition to the target firmware version.
[0040] In an implementable manner, the step of upgrading the second firmware version to the target firmware version according to the upgrade firmware data includes: Step A10, sets the attribute value of the upgrade identification status bit of the core board to a second attribute value, wherein the upgrade identification status bit set to the second attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the second static partition, so as to upgrade the second firmware version to the target firmware version.
[0041] It should be noted that the second attribute value is different from the first attribute value. When the attribute value of the upgrade identification status bit of the core board is set to the second attribute value, the core board can be triggered to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the second static partition to upgrade the second firmware version to the target firmware version. Wherein, the second attribute value can be set by those skilled in the art according to actual conditions, and the present embodiment is not specifically limited. In one example, the second attribute value can be 2.
[0042] In this embodiment, the upgrade firmware data is first written into the upgrade package storage area of the core board. After the upgrade firmware data is completely written, the first firmware version of the first static partition is upgraded to the target firmware version by retrieving the data from the upgrade package storage area. After the first firmware version is upgraded to the target firmware version, the core board is restarted. When the core board is restarted, the first static partition is used as the working partition (that is, when the core board is restarted, the core board is controlled to load the data of the first static partition), the second static partition is used as the backup partition, and the attribute value of the upgrade identification status bit of the core board is set to the second attribute value, wherein the upgrade identification status bit set to the second attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to upgrade the version of the second static partition, thereby avoiding the problem that the firmware version of the core board is upgraded by upgrading while transmitting (network instability and other reasons lead to abnormal upgrade firmware data transmission), which may cause the core board upgrade to fail. Therefore, the embodiment of the present application can efficiently and stably upgrade the second firmware version to the target firmware version.
[0043] In an practicable manner, the step of controlling the core board to load the data of the first static partition includes: Step B10, converting the attribute value of the startup identification status bit of the core board from the fourth attribute value to the fifth attribute value, wherein the startup identification status bit of the fourth attribute value is used to trigger the core board to run and load the data of the second static partition at startup, and the startup identification status bit of the fifth attribute value is used to trigger the core board to run and load the data of the first static partition at startup.
[0044] In the present embodiment, the startup identification status bit of the core board can be used to indicate that the core board needs to load the data of which static partition in the two static partitions during the startup process, and can also be used to indicate that the core board needs to use which static partition as the working partition during the startup process.It should be noted that when the attribute value of the startup identification status bit of the core board is the fourth attribute value, the data of the second static partition loaded at startup can be triggered to run.And when the attribute value of the startup identification status bit of the core board is the fifth attribute value, the data of the first static partition loaded at startup can be triggered to run.It is easy to understand that the fourth attribute value is different from the fifth attribute value, and the fourth attribute value and the fifth attribute value, those skilled in the art can be arranged according to actual conditions, and the present embodiment is not specifically limited, in an example, the fourth attribute value is 1, and the fifth attribute value is 2.In another example, the fourth attribute value is 2, and the fifth attribute value is 1.
[0045] This embodiment converts the attribute value of the startup identification status bit of the core board from the fourth attribute value to the fifth attribute value, wherein the startup identification status bit of the fourth attribute value is used to trigger the core board to run and load the data of the second static partition at startup, and the startup identification status bit of the fifth attribute value is used to trigger the core board to run and load the data of the first static partition at startup, thereby facilitating the subsequent restart of the core board (the core board may also be called the business board) of the server. The data of the corresponding static partition is loaded according to the attribute value of the startup identification status bit, and effectively realizes flexible switching of the working partition and the standby partition when the core board of the server is restarted next time after the first firmware version is upgraded to the target firmware version, thereby improving the robustness of the firmware upgrade method of the server of this embodiment.
[0046] The applicant took into consideration that when updating the firmware version of the core board of the server, the spare partition (or called spare firmware partition) is usually written based on the upgraded firmware data. After the data is written successfully, the core board is restarted. However, if an exception occurs when writing data to the spare firmware partition of the core board, for example, there is an exception in the spare firmware partition of the core board itself and the data cannot be written normally, or there is a sudden abnormal power outage during the data writing process, the data written into the spare firmware partition of the core board will be abnormal. When the core board is restarted, the working partition and the spare partition are switched, that is, the original spare partition is used as the working partition, and the original working partition is used as the spare partition. Therefore, when the updated firmware partition is run, the updated firmware partition cannot work normally due to the abnormal written data, and the core board cannot run normally.
[0047] Based on this, in a possible implementation, please refer to Figure 3 Before the step of upgrading the second firmware version to the target firmware version according to the upgrade firmware data, the method further includes: Step S50, verifying whether the current firmware version of the first static partition can run normally; If not, executing step S60, determining that the first firmware version upgrade fails; After step S60, executing step S70, in response to the failure of the first firmware version upgrade, restarting the core board, and controlling the core board to load the data of the second static partition when restarting the core board; after the data of the second static partition is loaded, executing: the step of obtaining the upgraded firmware data; In this embodiment, after the data of the first static partition is loaded, it can be further determined whether the current firmware version of the first static partition (i.e., the updated firmware partition) can be operated normally, which can be specifically but not limited to whether the core board can normally execute the user's operation instructions. In this embodiment, if the current firmware version of the first static partition is not able to operate normally, it is determined that the first firmware version upgrade fails. At this time, the core board is restarted, and the core board is controlled to load the data of the second static partition when the core board is restarted, so that when the first static partition cannot operate normally, it can be switched to the original low-version firmware partition for operation in time, thereby ensuring that the core board can operate normally, and then the server can normally process the request service of the business message. Then, after the data of the second static partition is loaded, the step of obtaining the upgraded firmware data is executed, so as to initiate the firmware version upgrade request for the first static partition again, so as to try to correctly and successfully upgrade the first firmware version to the target firmware version, overcome the problem that the first firmware version upgrade fails due to an exception when writing data to the first static partition of the core board during the last upgrade process, ensure the security of user data during the upgrade process, and restore to the state before the upgrade in the scenario of failed upgrade, so as to ensure the stability and reliability of the server operation.
[0048] If yes, then executing step S80, determining that the first firmware version upgrade is successful; After step S80, step S90 is executed. In response to the first firmware version being successfully upgraded, the step of upgrading the second firmware version to the target firmware version according to the upgraded firmware data is executed.
[0049] In this embodiment, if it is verified that the current firmware version of the first static partition can run normally, it is determined that the first firmware version has been successfully upgraded. At this time, the step of upgrading the second firmware version to the target firmware version based on the upgraded firmware data is executed to seamlessly upgrade the second static partition of the core board, thereby achieving synchronous upgrade of the two partitions of the core board using AB partitions during an OTA upgrade process, so that the software firmware versions of the two partitions of the core board are consistent, thereby overcoming the problem that due to the inconsistent software firmware versions of the AB partitions, a working partition of the core board crashes and cannot be started after the OTA upgrade, and the server that enables the backup partition is incompatible with the client system of the user device and causes conflicts.
[0050] In a possible implementation, after the step of determining that the first firmware version upgrade fails, the method further includes: Step C10, increasing the cumulative number of failed upgrades of the first firmware version by one; Step C20: if it is identified that the accumulated number of times is greater than a preset number threshold, outputting a warning message indicating that the firmware upgrade has failed; In this embodiment, the preset number of times threshold can be set by those skilled in the art according to actual conditions, and this embodiment does not make any specific limitation. In one example, the preset number of times threshold is 3, that is, when the firmware version upgrade of the first firmware version fails three times in a row, it is judged as an upgrade abnormality, and then the alarm information of the firmware upgrade failure is reported.
[0051] After the step of determining that the first firmware version is successfully upgraded, the method further includes: Step C30, resetting the accumulated times to zero.
[0052] This embodiment increases the cumulative number of first firmware version upgrade failures by one after determining that the first firmware version upgrade has failed, and resets the cumulative number of first firmware version upgrade failures to zero after determining that the first firmware version upgrade has succeeded. If it is identified that the cumulative number is greater than a preset number threshold, an alarm message of firmware upgrade failure is output, thereby avoiding repeated requests for re-upgrade of the first firmware version due to problems with the data packet of the upgrade firmware data, abnormalities in the spare firmware partition of the core board, or network instability, thereby promptly reminding the staff that the first firmware version could not be successfully upgraded, thereby further improving the robustness of the server's firmware upgrade method.
[0053] In order to help understand the technical concept or technical principle of the present application, a specific embodiment is listed: The upgrade process in this specific embodiment is: 1. BMC writes the upgrade file (i.e. the upgrade firmware data mentioned above) to the core board / data / ota_package directory (i.e. the upgrade package storage area mentioned above); 2. BMC notifies the core board to perform the upgrade action of upgrading the firmware version by setting the attribute value of persist.ota.file (that is, the upgrade identification status bit mentioned above); 3. Core board upgrade.
[0054] The core board is divided into AB partitions and needs to be upgraded twice.
[0055] (1) The core board monitors changes in the perist.ota.file property value. Once it changes, it parses the property value to obtain the name and complete path of the upgrade package.
[0056] (2) After the core board starts to execute the upgrade action, the core board sets the persist.ota.upgrading attribute value to 1. When the BMC monitors that the attribute value changes to 1, it means that the core board has started to process the upgrade business. Otherwise, the BMC configures the persist.ota.file attribute again.
[0057] (3) The core board executes the upgrade action on the backup partition in the AB partition. After the upgrade is completed, the core board triggers the restart process. During the restart process, the original backup partition is used as the working partition, and the original working partition is used as the backup partition.
[0058] (4) After the core board is powered on again, the attribute value of persist.ota.upgrading is 1, and the attribute value of persist.ota.file is not 0, indicating that it is necessary to perform a second upgrade on the current backup partition after this startup and execute the upgrade process again.
[0059] (5) After the upgrade is completed, the overall upgrade process of the two partitions of the core board has been completed. The core board sets persist.ota.upgrading to 0, sets persist.ota.file to 0, and deletes the upgrade package.
[0060] (6) The BMC monitors the persist.ota.upgrading property value. If it finds a change from 1 to 0, it means that the core board has completed the overall upgrade process and the firmware versions of the two partitions (AB partitions) of the core board are the latest versions.
[0061] It should be noted that the above specific embodiments are only used to understand the present application and do not constitute a limitation on the firmware upgrade method of the server of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0062] Embodiment 2 Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, after the step of upgrading the second firmware version to the target firmware version, the method further includes: Step D10, setting the attribute value of the upgrade identification status bit of the core board to a third attribute value, wherein the upgrade identification status bit set to the third attribute is used to restrict the first static partition and the second static partition of the core board from performing firmware version upgrades.
[0063] It should be noted that the third attribute value is different from the first attribute value and the second attribute value. When the attribute value of the upgrade identification state bit of the core board is set to the third attribute value, the first static partition and the second static partition of the core board can be limited to perform firmware version upgrade. Wherein, the third attribute value, those skilled in the art can set it according to actual conditions, and the present embodiment is not specifically limited. In one example, the third attribute value can be 0.
[0064] This embodiment sets the attribute value of the upgrade identification status bit of the core board to a third attribute value, wherein the upgrade identification status bit set to the third attribute is used to limit the firmware version upgrade of the first static partition and the second static partition of the core board, thereby effectively avoiding erroneous triggering of the firmware version upgrade of the core board, and further avoiding erroneous triggering of incompatibility between the upgraded server and the current client system of the user device.
[0065] In a possible implementation manner, before the step of setting the attribute value of the upgrade identification status bit of the core board to a third attribute value, the method further includes: Step E10, after upgrading the second static partition to the target firmware version, restarting the core board; Step E20, when restarting the core board, controlling the core board to load the data of the second static partition; Step E30, verifying whether the current firmware version of the second static partition can run normally; Step E40, if not, determining that the second firmware version upgrade fails; in response to the second firmware version upgrade failure, executing: the step of controlling the core board to load the data of the first static partition when restarting the core board; In this embodiment, after the data loading of the second static partition is completed, it can be further determined whether the current firmware version of the second static partition (i.e., the updated firmware partition) can operate normally, which can be specifically, but not limited to, whether the core board can normally execute the user's operation instructions. In this embodiment, if it is verified that the current firmware version of the second static partition cannot operate normally, it is determined that the second firmware version upgrade fails. At this time, the core board is restarted, and the core board is controlled to load the data of the first static partition when the core board is restarted, so that when the second static partition cannot operate normally, it can be switched to the first static partition that can operate normally in time, thereby ensuring that the core board can operate normally, and then the server can normally process the service request of the business message. Then, by subsequently initiating a firmware version upgrade request for the second static partition again, it is attempted to correctly and successfully upgrade the second firmware version to the target firmware version, overcome the problem that the second firmware version upgrade failed due to an exception when writing data to the second static partition of the core board during the last upgrade process, ensure the security of user data during the upgrade process, and restore to the state before the upgrade in the scenario of failed upgrade, so as to ensure the stability and reliability of the server operation.
[0066] Step E50, if yes, determine that the second firmware version is upgraded successfully; in response to the second firmware version being upgraded successfully, execute: the step of setting the attribute value of the upgrade identification status bit of the core board to the third attribute value.
[0067] In this embodiment, if it is verified that the current firmware version of the second static partition can run normally, it is determined that the second firmware version has been successfully upgraded. At this time, the step of setting the attribute value of the upgrade identification status bit of the core board to the third attribute value is executed to complete the entire OTA upgrade process. The embodiment of the present application synchronously upgrades the two partitions of the core board to keep the software firmware versions of the two partitions of the core board consistent, thereby overcoming the problem that due to the inconsistent software firmware versions of the AB partitions, a working partition of the core board crashes and cannot be started after the OTA upgrade, and the server that enables the standby partition is incompatible with the client system of the user device, causing conflicts.
[0068] In a possible implementation, after the step of determining that the second firmware version upgrade fails, the method further includes: Step F10, increasing the statistical number of the second firmware version upgrade failures by one; Step F20, if it is identified that the statistical number is greater than the preset number threshold, outputting a warning message of firmware upgrade failure; In this embodiment, the preset number threshold can be set by those skilled in the art according to actual conditions, and this embodiment does not make any specific limitation. In one example, the preset number threshold is 3, that is, when the firmware version upgrade of the second firmware version fails three times in a row, it is judged as an upgrade abnormality, and then the warning information of the firmware upgrade failure is reported.
[0069] After the step of determining that the second firmware version is successfully upgraded, the method further includes: Step F30, resetting the statistical times to zero.
[0070] This embodiment increases the statistical number of failed upgrades of the second firmware version by one after determining that the upgrade of the second firmware version has failed, and resets the statistical number of failed upgrades of the second firmware version to zero after determining that the upgrade of the second firmware version has succeeded. If it is identified that the statistical number is greater than a preset threshold, a warning message of firmware upgrade failure is output, thereby avoiding repeated requests for re-upgrade of the second firmware version due to problems with the data packet of the upgrade firmware data, abnormalities in the spare firmware partition of the core board, or network instability. The staff is promptly reminded that the second firmware version cannot be successfully upgraded, thereby further improving the robustness of the server's firmware upgrade method.
[0071] Embodiment 3 The embodiment of the present invention also provides a server firmware upgrade device, please refer to Figure 4 , the server includes a core board, the core board includes a first static partition and a second static partition, and the device includes: An acquisition module 10 is used to acquire upgrade firmware data; An upgrade module 20, configured to upgrade the first firmware version corresponding to the first static partition to a target firmware version according to the upgrade firmware data, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition; A restart module 30, after upgrading the first firmware version to the target firmware version, restarts the core board, and when restarting the core board, controls the core board to load the data of the first static partition; The upgrade module 20 is further configured to upgrade the second firmware version to the target firmware version according to the upgrade firmware data after the data of the first static partition is loaded.
[0072] Optionally, the upgrade module 20 is further used for: Writing the upgraded firmware data into the upgrade package storage area of the core board; The attribute value of the upgrade identification status bit of the core board is set to a first attribute value, wherein the upgrade identification status bit set to the first attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the first static partition, so as to upgrade the first firmware version of the first static partition to the target firmware version.
[0073] Optionally, the upgrade module 20 is further used for: The attribute value of the upgrade identification status bit of the core board is set to a second attribute value, wherein the upgrade identification status bit set to the second attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the second static partition to upgrade the second firmware version to the target firmware version.
[0074] Optionally, the device further includes a verification module 40, and the verification module 40 is used to: Verifying whether the current firmware version of the first static partition can run normally; If not, it is determined that the upgrade of the first firmware version has failed; in response to the failure of the upgrade of the first firmware version, the core board is restarted, and when the core board is restarted, the core board is controlled to load the data of the second static partition; after the data of the second static partition is loaded, the step of obtaining the upgrade firmware data is executed; If yes, it is determined that the first firmware version is successfully upgraded; in response to the first firmware version being successfully upgraded, the step of upgrading the second firmware version to the target firmware version according to the upgraded firmware data is performed.
[0075] Optionally, the verification module 40 is further configured to: Increment the cumulative number of failed upgrades to the first firmware version by one; If it is identified that the cumulative number of times is greater than the preset number threshold, an alarm message indicating that the firmware upgrade has failed is output; After the step of determining that the first firmware version is successfully upgraded, the verification module 40 is further configured to: The accumulated count is reset to zero.
[0076] Optionally, the upgrade module 20 is further used for: The attribute value of the upgrade identification status bit of the core board is set to a third attribute value, wherein the upgrade identification status bit set to the third attribute is used to restrict the first static partition and the second static partition of the core board from performing firmware version upgrade.
[0077] Optionally, the verification module 40 is further configured to: After upgrading the second static partition to the target firmware version, restarting the core board; When restarting the core board, controlling the core board to load the data of the second static partition; Verifying whether the current firmware version of the second static partition can run normally; If not, it is determined that the second firmware version upgrade fails; in response to the second firmware version upgrade failure, executing: when restarting the core board, controlling the core board to load the data of the first static partition; If so, it is determined that the second firmware version is successfully upgraded; in response to the second firmware version being successfully upgraded, the step of setting the attribute value of the upgrade identification status bit of the core board to the third attribute value is executed.
[0078] The server firmware upgrade device provided by the present invention adopts the server firmware upgrade method in the above-mentioned embodiment 1 or embodiment 2, which can solve the technical problem that after OTA upgrade, the server using AB partitions is easily incompatible with the client system of the user device. Compared with the prior art, the beneficial effects of the server firmware upgrade device provided by the embodiment of the present invention are the same as the beneficial effects of the server firmware upgrade method provided by the above-mentioned embodiment, and the other technical features in the server firmware upgrade device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0079] Embodiment 4 An embodiment of the present invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the firmware upgrade method of the server in the above-mentioned embodiment one.
[0080] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may be a BMC (Baseboard Management Controller) or the like. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0081] like Figure 5As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM 1002) or a program loaded from a storage device into a random access memory (RAM 1004). Various programs and data required for the operation of the electronic device are also stored in RAM 1004. The processing device 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface is also connected to the bus 1005.
[0082] Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0083] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0084] The electronic device provided by the present invention adopts the server firmware upgrade method in the above embodiment, which can solve the technical problem that after OTA upgrade, the server using AB partitions is easily incompatible with the client system of the user device. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the server firmware upgrade method provided by the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0085] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0086] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0087] Embodiment 5 An embodiment of the present invention provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the firmware upgrade method of the server in the above-mentioned embodiment 1.
[0088] The computer-readable storage medium provided in the embodiment of the present invention may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0089] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0090] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains upgrade firmware data; upgrades the first firmware version corresponding to the first static partition to the target firmware version according to the upgrade firmware data, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition; After upgrading the first firmware version to the target firmware version, restart the core board, and when restarting the core board, control the core board to load the data of the first static partition; after the data of the first static partition is loaded, upgrade the second firmware version to the target firmware version according to the upgraded firmware data.
[0091] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0092] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0093] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0094] The readable storage medium provided by the present invention is a computer-readable storage medium, which stores computer-readable program instructions for executing the firmware upgrade method of the above-mentioned server, and can solve the technical problem that after OTA upgrade, the server using AB partitions is easily incompatible with the client system of the user device. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present invention are the same as the beneficial effects of the firmware upgrade method of the server provided in the above-mentioned embodiment 1 or embodiment 2, and will not be repeated here.
[0095] Embodiment 6 An embodiment of the present invention further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned server firmware upgrade method are implemented.
[0096] The computer program product provided by this application can solve the technical problem that after OTA upgrade, the server using AB partitions is easily incompatible with the client system of the user device. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the firmware upgrade method of the server provided by the above-mentioned embodiment 1 or embodiment 2, and will not be repeated here.
[0097] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for upgrading server firmware, characterized in that: The server includes a core board, the core board includes a first static partition and a second static partition, and the method includes: Get the firmware upgrade data; According to the upgraded firmware data, the first firmware version corresponding to the first static partition is upgraded to the target firmware version, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition; After upgrading the first firmware version to the target firmware version, restarting the core board, and when restarting the core board, controlling the core board to load the data of the first static partition; After the data of the first static partition is loaded, the second firmware version is upgraded to the target firmware version according to the upgrade firmware data.
2. The server firmware upgrade method according to claim 1, characterized in that: The step of upgrading the first firmware version corresponding to the first static partition to the target firmware version according to the upgraded firmware data includes: Writing the upgraded firmware data into the upgrade package storage area of the core board; The attribute value of the upgrade identification status bit of the core board is set to a first attribute value, wherein the upgrade identification status bit set to the first attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the first static partition, so as to upgrade the first firmware version of the first static partition to the target firmware version.
3. The server firmware upgrade method according to claim 2, characterized in that: The step of upgrading the second firmware version to the target firmware version according to the upgrade firmware data comprises: The attribute value of the upgrade identification status bit of the core board is set to a second attribute value, wherein the upgrade identification status bit set to the second attribute is used to trigger the core board to retrieve the upgrade firmware data from the upgrade package storage area to perform a version upgrade of the second static partition to upgrade the second firmware version to the target firmware version.
4. The server firmware upgrade method according to claim 1, characterized in that: Before the step of upgrading the second firmware version to the target firmware version according to the upgrade firmware data, the method further includes: Verifying whether the current firmware version of the first static partition can run normally; If not, it is determined that the upgrade of the first firmware version has failed; in response to the upgrade failure of the first firmware version, the core board is restarted, and when the core board is restarted, the core board is controlled to load the data of the second static partition; after the data of the second static partition is loaded, the step of obtaining the upgrade firmware data is executed; If yes, it is determined that the first firmware version is successfully upgraded; in response to the first firmware version being successfully upgraded, the step of upgrading the second firmware version to the target firmware version according to the upgraded firmware data is performed.
5. The server firmware upgrade method according to claim 4, characterized in that: After the step of determining that the first firmware version upgrade fails, the method further includes: Increment the cumulative number of failed upgrades to the first firmware version by one; If it is identified that the cumulative number of times is greater than the preset number threshold, an alarm message indicating that the firmware upgrade has failed is output; After the step of determining that the first firmware version is successfully upgraded, the method further includes: The accumulated count is reset to zero.
6. The server firmware upgrade method according to any one of claims 2 to 5, characterized in that: After the step of upgrading the second firmware version to the target firmware version, the method further includes: The attribute value of the upgrade identification status bit of the core board is set to a third attribute value, wherein the upgrade identification status bit set to the third attribute is used to restrict the first static partition and the second static partition of the core board from performing firmware version upgrade.
7. The server firmware upgrade method according to claim 6, characterized in that: Before the step of setting the attribute value of the upgrade identification status bit of the core board to a third attribute value, the method further includes: After upgrading the second static partition to the target firmware version, restarting the core board; When restarting the core board, controlling the core board to load the data of the second static partition; Verifying whether the current firmware version of the second static partition can run normally; If not, it is determined that the upgrade of the second firmware version has failed; in response to the upgrade failure of the second firmware version, executing: when restarting the core board, controlling the core board to load the data of the first static partition; If so, it is determined that the second firmware version is successfully upgraded; in response to the second firmware version being successfully upgraded, executing: the step of setting the attribute value of the upgrade identification status bit of the core board to the third attribute value.
8. A server firmware upgrade device, characterized in that: The server includes a core board, the core board includes a first static partition and a second static partition, and the device includes: An acquisition module is used to acquire upgrade firmware data; An upgrade module, configured to upgrade the first firmware version corresponding to the first static partition to a target firmware version according to the upgrade firmware data, wherein the core board currently runs and loads the second firmware version corresponding to the second static partition; A restart module, after upgrading the first firmware version to the target firmware version, restarts the core board, and when restarting the core board, controls the core board to load the data of the first static partition; The upgrade module is further configured to upgrade the second firmware version to the target firmware version according to the upgrade firmware data after the data of the first static partition is loaded.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the firmware upgrade method of the server according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which is stored a program for implementing a firmware upgrade method for a server, and the program for implementing a firmware upgrade method for a server is executed by a processor to implement the steps of the firmware upgrade method for a server as described in any one of claims 1 to 7.
