A BIOS downgrade processing method, device, equipment and readable medium

By detecting the operating status of the management controller and introducing a retry mechanism, the problem of version rollback failure caused by IP anomalies during BIOS downgrade was solved, thus enabling the normal operation of storage devices and the successful BIOS downgrade.

CN116204235BActive Publication Date: 2026-06-26INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2023-02-16
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

During the BIOS downgrade process, the IP address of the management controller was 0.0.0.0, causing the version rollback to fail. The management controller then entered service mode, resulting in service interruption and inability to operate normally.

Method used

By detecting the operating status of the management controller, a retry mechanism is introduced. When the management controller's IP address is abnormal, a valid IP address is re-acquired. The retry mechanism is also initiated during BIOS downgrade to ensure that valid IP information is obtained for BIOS downgrade.

Benefits of technology

To prevent BIOS downgrade failures and ensure the normal operation of storage devices, a retry mechanism is used to reacquire a valid IP address of the management controller when an IP error occurs, thus avoiding service interruption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116204235B_ABST
    Figure CN116204235B_ABST
Patent Text Reader

Abstract

The application provides a BIOS downgrade processing method, device and equipment and readable medium. If BIOS downgrade is detected, the running states of each management controller are acquired. If the running states of two management controllers are different, the IP information of the management controller with the main running state is acquired. If all address bits in the IP information are 0, the preset retry mechanism for the management controller is started, and the step of acquiring the IP information of the management controller with the main running state is returned. If not all address bits in the IP information are 0, the BIOS is downgraded according to the IP information. Therefore, the retry mechanism is introduced when the BIOS is downgraded, the retry mechanism is started when the IP of the management controller is abnormal, the IP of the management controller is re-acquired, the valid IP address of the management controller is acquired when the BIOS is downgraded, and the BIOS downgrade failure of the storage device is prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a BIOS downgrade processing method, a BIOS downgrade processing apparatus, an electronic device, and a computer-readable medium. Background Technology

[0002] In the storage field, BIOS (Basic Input Output System) upgrades are essential for ensuring more stable operation of storage devices. During the upgrade process, hardware failures, hard drive failures, or system failures on the storage device can all cause the upgrade to fail, leading to a BIOS version downgrade. If the IP address of the storage device's management controller is found to be 0.0.0.0 during this downgrade, the rollback will fail, the management controller will enter service mode, and services will be interrupted, preventing normal operation. Summary of the Invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a BIOS downgrade processing method and a corresponding BIOS downgrade processing apparatus, electronic device and storage medium to overcome the above problems or at least partially solve the above problems.

[0004] This invention discloses a BIOS downgrade processing method applied to a storage device. The storage device includes a BIOS system and two management controllers. Each management controller operates in either a master or slave state within the storage device. The method includes:

[0005] If a BIOS downgrade is detected, the operating status of each management controller is obtained;

[0006] If the two management controllers are in different operating states, then the IP information of the management controller in the dominant operating state is obtained.

[0007] If all address bits in the IP information are 0, then the pre-set retry mechanism for the management controller is activated, and the process returns to the step of obtaining the IP information of the management controller whose running state is the main running state.

[0008] If the address bits in the IP information are not all 0, then the BIOS is downgraded based on the IP information.

[0009] Optionally, if a BIOS downgrade is detected, after obtaining the operating status of each management controller, the method further includes:

[0010] If the two management controllers are in the same operating state, a pre-set retry mechanism for the storage device is initiated, and the process returns to the point where the operating state of each management controller is obtained.

[0011] Optionally, the step of initiating a pre-defined retry mechanism for the storage device and returning to the step of obtaining the operating status of each management controller when the two management controllers are in the same operating state includes:

[0012] When the first operating states of the two management controllers are the same, the first start time corresponding to the first operating state of each management controller is recorded.

[0013] Taking the first start time as the first detection starting point, the second operating state corresponding to each management controller is obtained every first preset time interval;

[0014] If the second operating states of the two management controllers are the same, return to the step of obtaining the second operating state of each management controller every first preset time interval;

[0015] If the second operating states of the two management controllers are different, the IP information of the management controller whose operating state is the main operating state is obtained.

[0016] Optionally, the method further includes:

[0017] If the operating states of the two management controllers remain the same within a second preset time period starting from the first detection start point, then each management controller is restarted, and the step of obtaining the operating state of each management controller is returned.

[0018] Optionally, if all address bits in the IP information are 0, then the pre-defined retry mechanism for the management controller is activated, and the step of obtaining the IP information of the management controller whose running state is the main running state is returned includes:

[0019] If all address bits in the first IP information are 0, record the second start time corresponding to the first IP information of the management controller whose main running state is obtained.

[0020] Using the second start time as the second detection starting point, the second IP information of the management controller whose main operating state is obtained every first preset time interval;

[0021] If all address bits in the second IP information of the management controller in the main running state are 0, return to the step of obtaining the second IP information of the management controller in the main running state every first preset time interval.

[0022] Optionally, the management controller includes a network chip, and the method further includes:

[0023] If the address bits in the IP information remain 0 for a second preset time period starting from the second detection start point, the network chip is reset, and the process returns to the step of obtaining the IP information of the management controller whose operating state is the main operating state.

[0024] Optionally, the storage device includes a BIOS downgrade script, and the step of downgrading the BIOS based on the IP information includes:

[0025] Based on the IP information, the BIOS is automatically downgraded by calling the BIOS downgrade script.

[0026] This invention also discloses a BIOS downgrade processing apparatus applied to a storage device. The storage device includes a BIOS system and two management controllers. Each management controller operates in either a master or slave state within the storage device. The apparatus includes:

[0027] The running status acquisition module is used to acquire the running status of each management controller when a BIOS downgrade is detected.

[0028] The IP information acquisition module is used to acquire the IP information of the management controller whose main operating state is different when the two management controllers are in different operating states.

[0029] The startup module is used to start a pre-set retry mechanism for the management controller if all address bits in the IP information are 0, and return to the step of obtaining the IP information of the management controller whose running state is the main running state.

[0030] The downgrade module is used to downgrade the BIOS based on the IP information if the address bits in the IP information are not all 0.

[0031] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0032] The memory is used to store computer programs;

[0033] When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.

[0034] This invention also discloses one or more computer-readable media storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.

[0035] The embodiments of the present invention include the following advantages: when a BIOS downgrade is detected, the operating status of each management controller is obtained. If the operating status of two management controllers is different, the IP information of the management controller whose operating status is the primary operating status is obtained. If all address bits in the IP information are 0, a pre-set retry mechanism for the management controller is initiated, and the process returns to the step of obtaining the IP information of the management controller whose operating status is the primary operating status. If not all address bits in the IP information are 0, the BIOS is downgraded based on the IP information. This achieves the goal of introducing a retry mechanism during BIOS downgrade, initiating a retry mechanism when the IP of the management controller is abnormal, and re-obtaining the IP of the management controller, ensuring that a valid IP address of the management controller is obtained during BIOS downgrade, and preventing BIOS downgrade failure of the storage device. Attached Figure Description

[0036] Figure 1 This is a flowchart of the steps of a BIOS downgrade processing method provided in an embodiment of the present invention;

[0037] Figure 2 This is a flowchart of another BIOS downgrade processing method provided in an embodiment of the present invention;

[0038] Figure 3 This is a flowchart of a BIOS downgrade processing method provided in an embodiment of the present invention;

[0039] Figure 4 This is a structural block diagram of a BIOS downgrade processing device provided in an embodiment of the present invention;

[0040] Figure 5 This is a block diagram of an electronic device provided in an embodiment of the present invention;

[0041] Figure 6 This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation

[0042] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0043] Reference Figure 1This diagram illustrates a flowchart of a BIOS downgrade processing method provided in an embodiment of the present invention, applied to a storage device. The storage device includes a BIOS system and two management controllers. Each management controller operates in either a master or slave state within the storage device. Specifically, the method may include the following steps:

[0044] Step 101: If a BIOS downgrade is detected, obtain the operating status of each management controller;

[0045] Storage devices are used to store information, typically by digitizing the information and then storing it using media such as electricity, magnetism, or optics. In this embodiment of the invention, the storage device can be a storage server, and a BIOS runs within it. The BIOS is a set of programs embedded in a ROM (Read-Only Memory) chip on the computer's motherboard. It stores the computer's most important basic input / output programs, power-on self-test (POST) programs, and system startup programs. It can read and write specific system settings. Its main function is to provide the lowest-level, most direct hardware settings and control for the computer. BIOS upgrades are essential for ensuring more stable operation of storage devices. BIOS upgrades have the following benefits: supporting the latest hardware, optimizing older hardware, obtaining the latest security or vulnerability patches, changing some options within the BIOS, and supporting new features. However, during an upgrade, hardware failures, hard drive failures, system failures, etc., can all cause the BIOS upgrade to fail, resulting in a downgrade to the previous version.

[0046] The storage device also includes two management controllers (CMCs, Central Message Controllers), which manage and control the storage device. The storage device supports dual management controller redundancy. Each management controller can operate as either a master or slave. Under normal operating conditions, one management controller operates as the master, managing and controlling the storage device, while the other operates as a slave. If the master management controller fails, the slave controller takes over as the master, ensuring the continued operation of the storage device.

[0047] If a BIOS degradation of the storage device is detected, the operating status of each management controller can be obtained. If the operating status of two management controllers is the same, either both in master mode or both in slave mode, then the status of the management controllers is abnormal and degradation cannot continue. Degradation can only continue if the operating status of the two management controllers is different, that is, one of the two management controllers is in master mode and the other is in slave mode.

[0048] Step 102: If the two management controllers are in different operating states, then obtain the IP information of the management controller whose operating state is the dominant operating state.

[0049] The IP information of the management controller contains the IP address of the corresponding management controller, which includes multiple address bits. If the two management controllers are in different operating states, it can be determined that both management controllers are operating normally in the storage device. In this case, the IP information of the management controller with the dominant operating state will be retrieved.

[0050] Step 103: If all address bits in the IP information are 0, then start the pre-set retry mechanism for the management controller and return to the step of obtaining the IP information of the management controller whose running state is the main running state.

[0051] If all address bits in the IP information of the management controller in the primary running state are 0, i.e., the IP of the management controller in the primary running state is 0.0.0.0, it can be determined that the IP of the management controller in the primary running state is abnormal. During BIOS downgrade, if the IP of the management controller in the primary running state is abnormal, the management controller enters service mode, the service is interrupted, and the BIOS cannot operate normally. To avoid this situation, this embodiment of the invention introduces a retry mechanism. When an IP abnormality of the management controller in the primary running state is detected, a pre-set retry mechanism for the management controller is initiated, returning to the step of obtaining the IP information of the management controller in the primary running state, until the IP in the IP information is a valid IP.

[0052] Step 104: If the address bits in the IP information are not all 0, then downgrade the BIOS according to the IP information.

[0053] If the address bits in the IP information of the management controller in the primary running state are not all 0, that is, if the IP of the management controller in the primary running state is not 0.0.0.0, then the IP of the management controller in the primary running state is a valid IP, and the storage device will downgrade the BIOS based on the IP information of the management controller in the primary running state.

[0054] In this embodiment of the invention, when a BIOS downgrade is detected, the operating status of each management controller is obtained. If the operating statuses of two management controllers are different, the IP information of the management controller whose operating status is the primary operating status is obtained. If all address bits in the IP information are 0, a pre-defined retry mechanism for the management controller is initiated, and the process returns to obtaining the IP information of the management controller whose operating status is the primary operating status. If not all address bits in the IP information are 0, the BIOS is downgraded based on the IP information. This achieves the goal of introducing a retry mechanism during BIOS downgrade, initiating a retry mechanism when the IP of the management controller is abnormal, and re-obtaining the IP of the management controller, ensuring that a valid IP address of the management controller is obtained during BIOS downgrade, and preventing BIOS downgrade failure of the storage device.

[0055] Reference Figure 2 This diagram illustrates a flowchart of another BIOS downgrade processing method provided in an embodiment of the present invention, applied to a storage device. The storage device includes a BIOS system and two management controllers. Each management controller operates in either a master or slave state within the storage device. Specifically, the method may include the following steps:

[0056] Step 201: If a BIOS downgrade is detected, obtain the operating status of each management controller;

[0057] If a BIOS degradation of the storage device is detected, the operating status of each management controller can be obtained. If the operating status of two management controllers is the same, either both in master mode or both in slave mode, then the status of the management controllers is abnormal and degradation cannot continue. Degradation can only continue if the operating status of the two management controllers is different, that is, one of the two management controllers is in master mode and the other is in slave mode.

[0058] In an optional embodiment of the present invention, after obtaining the operating status of each management controller when a BIOS downgrade is detected, the method further includes:

[0059] Step S1: When the first operating states of the two management controllers are the same, record the first start time corresponding to the first operating state of each management controller.

[0060] If the first operating states of the two management controllers are the same, that is, both of the first operating states of the two management controllers are the master operating state or the slave operating state, the first start time corresponding to the first operating state of each management controller can be recorded and obtained.

[0061] Step S2: Taking the first start time as the first detection starting point, the second operating state corresponding to each management controller is obtained every first preset time interval;

[0062] After recording the first start time corresponding to the first operating state of each management controller, the second operating state corresponding to each management controller is obtained every first preset time interval, using the first start time as the first detection starting point. In one example, since the time for the management controller to switch operating states is 30 seconds, the first preset time interval can be set to 30 seconds.

[0063] Step S3: If the second operating states of the two management controllers are the same, return to the step of obtaining the second operating state of each management controller every first preset time interval;

[0064] If the second operating states of the two management controllers are found to be the same, the step of obtaining the second operating state of each management controller every first preset time interval is returned. That is, when the operating states of the two management controllers are the same, the operating state of each management controller is obtained every 30 seconds from the first start time corresponding to the first operating state of each management controller.

[0065] Step S4: If the second operating states of the two management controllers are different, then obtain the IP information of the management controller whose operating state is the main operating state.

[0066] If the second operating states of the two management controllers are detected to be different (i.e., one is in master operating state and the other is in slave operating state), then the IP information of the management controller in the master operating state is obtained. By introducing a retry mechanism, the IP information of the management controller is only obtained if the management controller in the storage device is operating normally.

[0067] In an optional embodiment of the present invention, the method further includes:

[0068] If the operating states of the two management controllers remain the same within a second preset time period starting from the first detection start point, then each management controller is restarted, and the step of obtaining the operating state of each management controller is returned.

[0069] If, within a second preset time period starting from the first detection point, the operating states of the two management controllers remain identical, then the two management controllers can be restarted, and the process can return to the step of obtaining the operating states of each management controller. In one example, the second preset time period can be set to 10 minutes to ensure that the management controllers have sufficient time to complete the startup process.

[0070] Step 202: If the two management controllers are in different operating states, then obtain the IP information of the management controller whose operating state is the dominant operating state.

[0071] The IP information of the management controller contains the IP address of the corresponding management controller, which includes multiple address bits. If the two management controllers are in different operating states, it can be determined that both management controllers are operating normally in the storage device. In this case, the IP information of the management controller with the dominant operating state will be retrieved.

[0072] Step 203: If all address bits in the first IP information are 0, record the second start time corresponding to the first IP information of the management controller whose running state is the main running state.

[0073] If all address bits in the first IP information of the management controller in the main running state are 0, indicating an IP anomaly in the management controller in the main running state, the second start time corresponding to the first IP information of the management controller in the main running state can be recorded.

[0074] Step 204: Using the second start time as the second detection starting point, acquire the second IP information of the management controller whose main operating state is the operating state every first preset time interval;

[0075] After recording the second start time corresponding to the first IP information of the management controller whose running status is primarily running, the second IP information of the management controller whose running status is primarily running is obtained every first preset time interval, using the second start time as the second detection starting point. In one example, the first preset time interval can be set to 30 seconds.

[0076] Step 205: If all address bits in the second IP information of the management controller whose operating state is the main operating state are 0, return to the step of obtaining the second IP information of the management controller whose operating state is the main operating state every first preset time interval.

[0077] If all address bits in the second IP information of the management controller in the main running state are detected to be 0, then the step of obtaining the second IP information of the management controller in the main running state every first preset time interval is returned. That is, when all address bits in the IP information of the management controller in the main running state are 0, starting from the second start time corresponding to the first IP information of the management controller in the main running state, the IP information of the management controller in the main running state is obtained every 30 seconds.

[0078] In an optional embodiment of the present invention, the management controller includes a network chip, and the method further includes:

[0079] If the address bits in the IP information remain 0 for a second preset time period starting from the second detection start point, the network chip is reset, and the process returns to the step of obtaining the IP information of the management controller whose operating state is the main operating state.

[0080] If, within a second preset time period starting from the first detection point, the operating states of the two management controllers remain identical, the network chip in the dominant operating state can be reset by executing the commands `ethtool -s eth0 autoneg off` and `ethtool -s eth0 autonegon`, returning to the step of obtaining the IP information of the management controller in the dominant operating state. In one example, the second preset time period can be set to 10 minutes to ensure the management controller has sufficient time to complete startup when resetting the network chip.

[0081] Step 206: If the address bits in the IP information are not all 0, then downgrade the BIOS according to the IP information.

[0082] If the address bits in the IP information of the primary running controller are not all 0 (i.e., the IP address of the primary running controller is not 0.0.0.0), then the primary running controller's IP address is considered valid. The storage device will then downgrade the BIOS based on this IP address. By introducing a retry mechanism, BIOS downgrading is only performed when the primary running controller's IP address is valid. This prevents the storage device's management controller from failing to downgrade if its IP address is abnormal and it enters service mode.

[0083] In an optional embodiment of the present invention, the storage device includes a BIOS downgrade script, and the step of downgrading the BIOS based on the IP information includes:

[0084] Based on the IP information, the BIOS is automatically downgraded by calling the BIOS downgrade script.

[0085] The storage device stores the BIOS downgrade script required for BIOS downgrade. If the address bits in the IP information of the management controller in the primary running state are not all 0, that is, the IP of the management controller in the primary running state is valid, the BIOS downgrade script can be called according to the IP of the management controller in the primary running state to automatically downgrade the BIOS.

[0086] In this embodiment of the invention, when a BIOS downgrade is detected, the operating status of each management controller is obtained. If the operating statuses of the two management controllers are different, the IP information of the management controller whose operating status is the primary operating status is obtained. If all address bits in the first IP information are 0, the second start time corresponding to the first IP information of the management controller whose operating status is the primary operating status is recorded. Using the second start time as the second detection start point, the second IP information of the management controller whose operating status is the primary operating status is obtained every first preset time interval. If all address bits in the second IP information of the management controller whose operating status is the primary operating status are 0, the step of obtaining the second IP information of the management controller whose operating status is the primary operating status is returned every first preset time interval. If the address bits in the IP information are not all 0, the BIOS is downgraded according to the IP information. This achieves the introduction of a retry mechanism during BIOS downgrade. When the operating status of the management controller is abnormal or the IP is abnormal, the retry mechanism is started to re-obtain the operating status and IP of the management controller, thereby ensuring that a valid IP address of the management controller is obtained during BIOS downgrade and preventing BIOS downgrade failure of the storage device.

[0087] Reference Figure 3 This is a flowchart of a BIOS downgrade processing method provided in an embodiment of the present invention;

[0088] Step 301; Obtain the operating status of each management controller;

[0089] Step 302: Determine whether the operating states of the two management controllers are the same. If not, proceed to step 303; if yes, proceed to step 304.

[0090] Step 303: Obtain the IP information of the management controller whose running status is the main running status;

[0091] Step 304, wait 30 seconds;

[0092] Step 305: Record the first start time corresponding to the first running state of each management controller, and determine whether more than 10 minutes have passed since the first start time; if not, return to step 301; if yes, proceed to step 306.

[0093] Step 306: Restart all management controllers and return to step 301;

[0094] Step 307: Determine if all address bits in the IP information are 0; if not, proceed to step 308; if yes, proceed to step 309.

[0095] Step 308: Downgrade the BIOS based on the IP information;

[0096] Step 309, wait 30 seconds;

[0097] Step 3010: Record the second start time corresponding to the first IP information of the management controller whose main running state is obtained, and determine whether more than 10 minutes have passed since the second start time; if not, return to step 303; if yes, execute step 3011.

[0098] Step 3011: Reset the network chip and return to step 303.

[0099] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0100] Reference Figure 4 This diagram illustrates a structural block diagram of a BIOS downgrade processing device provided in an embodiment of the present invention, applied to a storage device. The storage device includes a BIOS system and two management controllers. Each management controller operates in either a master or slave state within the storage device, and may specifically include the following modules:

[0101] The running status acquisition module 401 is used to acquire the running status of each management controller when a BIOS downgrade is detected.

[0102] IP information acquisition module 402 is used to acquire the IP information of the management controller whose main operating state is different when the two management controllers are in different operating states.

[0103] The first startup module 403 is used to start a pre-set retry mechanism for the management controller if all address bits in the IP information are 0, and return to the step of obtaining the IP information of the management controller whose running state is the main running state.

[0104] The downgrade module 404 is used to downgrade the BIOS based on the IP information if the address bits in the IP information are not all 0.

[0105] In an optional embodiment of the present invention, the device further includes:

[0106] The second startup module is used to initiate a pre-set retry mechanism for the storage device when the two management controllers are in the same operating state, and then return to the point where the operating state of each management controller is obtained.

[0107] In an optional embodiment of the present invention, the second startup module includes:

[0108] The first start time submodule is used to record the first start time corresponding to the first operating state of each management controller when the first operating state of the two management controllers is the same.

[0109] The running status submodule is used to acquire the second running status of each management controller at a first preset time interval, with the first start time as the first detection starting point.

[0110] The first return submodule is used to return the step of obtaining the second operating state of each management controller every first preset time interval when the second operating state of the two management controllers is the same.

[0111] The running status determination submodule is used to obtain the IP information of the management controller whose running status is the main running status when the second running statuses of the two management controllers are different.

[0112] In an optional embodiment of the present invention, the device further includes:

[0113] The restart module is used to restart each of the management controllers and return to the step of obtaining the operating status of each of the management controllers if the operating status of the two management controllers remains the same for a second preset time period starting from the first detection start point.

[0114] In an optional embodiment of the present invention, the first startup module 403 includes:

[0115] The second start time submodule is used to record the second start time corresponding to the first IP information of the management controller that has obtained the main running state if all the address bits in the first IP information are 0.

[0116] The IP information submodule is used to obtain the second IP information of the management controller whose main operating state is the operating state, with the second start time as the second detection starting point, every first preset time interval;

[0117] The second return submodule is used to return the step of obtaining the second IP information of the management controller whose operating state is the main operating state every first preset time interval when all the address bits in the second IP information of the management controller whose operating state is the main operating state are 0.

[0118] In an optional embodiment of the present invention, the management controller includes a network chip, and the device further includes:

[0119] The reset module is used to reset the network chip and return to the step of obtaining the IP information of the management controller whose operating state is the main operating state if the address bits in the IP information are always 0 within a second preset time period starting from the second detection start point.

[0120] In an optional embodiment of the present invention, the storage device includes a BIOS downgrade script, and the downgrade module 404 includes:

[0121] The downgrade submodule is used to automatically downgrade the BIOS based on the IP information by calling the BIOS downgrade script.

[0122] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0123] In addition, embodiments of the present invention also provide an electronic device, such as... Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503, and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.

[0124] Memory 503 is used to store computer programs;

[0125] When processor 501 executes the program stored in memory 503, it performs the following steps:

[0126] If a BIOS downgrade is detected, the operating status of each management controller is obtained;

[0127] If the two management controllers are in different operating states, then the IP information of the management controller in the dominant operating state is obtained.

[0128] If all address bits in the IP information are 0, then the pre-set retry mechanism for the management controller is activated, and the process returns to the step of obtaining the IP information of the management controller whose running state is the main running state.

[0129] If the address bits in the IP information are not all 0, then the BIOS is downgraded based on the IP information.

[0130] Optionally, if a BIOS downgrade is detected, after obtaining the operating status of each management controller, the method further includes:

[0131] If the two management controllers are in the same operating state, a pre-set retry mechanism for the storage device is initiated, and the process returns to the point where the operating state of each management controller is obtained.

[0132] Optionally, the step of initiating a pre-defined retry mechanism for the storage device and returning to the step of obtaining the operating status of each management controller when the two management controllers are in the same operating state includes:

[0133] When the first operating states of the two management controllers are the same, the first start time corresponding to the first operating state of each management controller is recorded.

[0134] Taking the first start time as the first detection starting point, the second operating state corresponding to each management controller is obtained every first preset time interval;

[0135] If the second operating states of the two management controllers are the same, return to the step of obtaining the second operating state of each management controller every first preset time interval;

[0136] If the second operating states of the two management controllers are different, the IP information of the management controller whose operating state is the main operating state is obtained.

[0137] Optionally, the method further includes:

[0138] If the operating states of the two management controllers remain the same within a second preset time period starting from the first detection start point, then each management controller is restarted, and the step of obtaining the operating state of each management controller is returned.

[0139] Optionally, if all address bits in the IP information are 0, then the pre-defined retry mechanism for the management controller is activated, and the step of obtaining the IP information of the management controller whose running state is the main running state is returned includes:

[0140] If all address bits in the first IP information are 0, record the second start time corresponding to the first IP information of the management controller whose main running state is obtained.

[0141] Using the second start time as the second detection starting point, the second IP information of the management controller whose main operating state is obtained every first preset time interval;

[0142] If all address bits in the second IP information of the management controller in the main running state are 0, return to the step of obtaining the second IP information of the management controller in the main running state every first preset time interval.

[0143] Optionally, the management controller includes a network chip, and the method further includes:

[0144] If the address bits in the IP information remain 0 for a second preset time period starting from the second detection start point, the network chip is reset, and the process returns to the step of obtaining the IP information of the management controller whose operating state is the main operating state.

[0145] Optionally, the storage device includes a BIOS downgrade script, and the step of downgrading the BIOS based on the IP information includes:

[0146] Based on the IP information, the BIOS is automatically downgraded by calling the BIOS downgrade script.

[0147] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0148] The communication interface is used for communication between the aforementioned terminal and other devices.

[0149] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0150] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0151] like Figure 6 As shown, in another embodiment of the present invention, a computer-readable storage medium 601 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the BIOS downgrade processing method described in the above embodiment.

[0152] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the BIOS downgrade processing method described in the above embodiments.

[0153] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0154] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0155] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0156] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A method for BIOS downgrading, characterized in that, Applied to a storage device, the storage device including a BIOS system and two management controllers, each of the management controllers operating in the storage device including a master operating state or a slave operating state, the method includes: If a BIOS downgrade is detected, the operating status of each management controller is obtained; If the two management controllers are in different operating states, then the IP information of the management controller in the dominant operating state is obtained. If all address bits in the IP information are 0, then the pre-set retry mechanism for the management controller is activated, and the process returns to the step of obtaining the IP information of the management controller whose running state is the main running state. If the address bits in the IP information are not all 0, then the BIOS is downgraded based on the IP information.

2. The method according to claim 1, characterized in that, If a BIOS downgrade is detected, after obtaining the operating status of each management controller, the method further includes: If the two management controllers are in the same operating state, a pre-set retry mechanism for the storage device is initiated, and the process returns to the point where the operating state of each management controller is obtained.

3. The method according to claim 2, characterized in that, The step of initiating a pre-defined retry mechanism for the storage device and returning to the step of obtaining the operating status of each management controller when the two management controllers are in the same operating state includes: When the first operating states of the two management controllers are the same, the first start time corresponding to the first operating state of each management controller is recorded. Taking the first start time as the first detection starting point, the second operating state corresponding to each management controller is obtained every first preset time interval; If the second operating states of the two management controllers are the same, return to the step of obtaining the second operating state of each management controller every first preset time interval; If the second operating states of the two management controllers are different, the IP information of the management controller whose operating state is the main operating state is obtained.

4. The method according to claim 3, characterized in that, The method further includes: If the operating states of the two management controllers remain the same within a second preset time period starting from the first detection start point, then each management controller is restarted, and the step of obtaining the operating state of each management controller is returned.

5. The method according to claim 1, characterized in that, If all address bits in the IP information are 0, then a pre-defined retry mechanism for the management controller is initiated, and the step of obtaining the IP information of the management controller whose running state is the main running state is returned. If all address bits in the first IP information are 0, record the second start time corresponding to the first IP information of the management controller whose main running state is obtained. Using the second start time as the second detection starting point, the second IP information of the management controller whose main operating state is obtained every first preset time interval; If all address bits in the second IP information of the management controller in the main running state are 0, return to the step of obtaining the second IP information of the management controller in the main running state every first preset time interval.

6. The method according to claim 5, characterized in that, The management controller includes a network chip, and the method further includes: If the address bits in the IP information remain 0 for a second preset time period starting from the second detection start point, the network chip is reset, and the process returns to the step of obtaining the IP information of the management controller whose operating state is the main operating state.

7. The method according to claim 1, characterized in that, The storage device contains a BIOS downgrade script, and the step of downgrading the BIOS based on the IP information includes: Based on the IP information, the BIOS is automatically downgraded by calling the BIOS downgrade script.

8. A BIOS downgrade processing apparatus, characterized in that, Applied to a storage device, the storage device including a BIOS system and two management controllers, each of the management controllers operating in the storage device including a master operating state or a slave operating state, the device comprising: The running status acquisition module is used to acquire the running status of each management controller when a BIOS downgrade is detected. The IP information acquisition module is used to acquire the IP information of the management controller whose main operating state is different when the two management controllers are in different operating states. The startup module is used to start a pre-set retry mechanism for the management controller if all address bits in the IP information are 0, and return to the step of obtaining the IP information of the management controller whose running state is the main running state. The downgrade module is used to downgrade the BIOS based on the IP information if the address bits in the IP information are not all 0.

9. An electronic device, characterized in that, include: The processor, the communication interface, the memory, and the communication bus are provided, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus. The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-7.

10. A computer-readable medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-7.