Firmware refreshing method and device, readable storage medium and program product

After the firmware upgrade is completed, the power signal status of the system is controlled to clear the global reset status record, and the firmware refresh without power is achieved, solving the problem of power outage and restarting in the existing technology, saving labor costs and avoiding business impacts.

CN119536773AActive Publication Date: 2025-02-28INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202510098712.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-02-28
Estimated Expiration
2045-01-22

AI Technical Summary

Technical Problem

In the prior art, firmware refresh requires power outage and restarting the server, resulting in high labor costs and system business impact.

Method used

By detecting the firmware upgrade in the flash memory, obtain the advanced configuration and power interface status of the system, control the auxiliary power signal and the equipment to turn off the power reserved signal to be non-enabled, clear the global reset state record, and realize the firmware refresh without power outage.

Benefits of technology

It realizes the upgrade of the basic input and output system firmware without power outage, saving labor costs and avoiding the impact on the current operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536773A_ABST
    Figure CN119536773A_ABST
Patent Text Reader

Abstract

The invention discloses a firmware refreshing method and device, a readable storage medium and a program product, and relates to the technical field of computer application, and the method comprises the following steps: when it is detected that firmware upgrading of a basic input and output system in a flash memory is completed, obtaining current system advanced configuration and a power interface state; when it is determined that the current advanced configuration and power interface state of the system is a device all-off state, controlling an auxiliary power supply signal and a device all-off power supply retention signal to be in a non-enabling state so as to clear a global reset state record; and when it is detected that the auxiliary power supply signal and the equipment all-off power supply retention signal are both in a non-enabling state, updating the upgraded basic input / output system firmware in the flash memory to the synchronous static random access memory. According to the method, the firmware of the basic input and output system is upgraded in a power-off-free manner, so that the labor cost is saved, and the influence on the current running service of the system is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a firmware refresh method, device, computer-readable storage medium and computer program product. Background Art

[0002] For system security and function expansion, the Basic Input / Output System (BIOS) firmware (Firmware, FW) needs to be upgraded. During the in-band BIOS upgrade process, the synchronous static random access memory (S3M SRAM) of the central processing unit (CPU) is already accessing the basic input / output system flash memory (BIOSFlash). When the CPU is unaware that the basic input / output system firmware in the flash memory has been upgraded, the firmware update will cause the server to be unable to boot normally. At this time, it is generally necessary to power off the system to recover, restart the server, and manually unplug the power cord, etc., which has high labor costs. In addition, restarting the server requires offline server-related services, affecting important business data of customers, data centers, etc.

[0003] In summary, how to effectively solve the current problem of needing to power off and restart the server to refresh the firmware, which has high labor costs and affects the normal business of the system, is an issue that technicians in this field urgently need to solve. Summary of the invention

[0004] An object of the present invention is to provide a firmware refresh method, which can upgrade the basic input and output system firmware without powering off, saving labor costs and avoiding the impact on the current operation of the system; another object of the present invention is to provide a firmware refresh device, a computer-readable storage medium and a computer program product.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] A firmware updating method, comprising:

[0007] When it is detected that the firmware upgrade of the basic input and output system in the flash memory is completed, the current system advanced configuration and power interface status are obtained;

[0008] When it is determined that the current system advanced configuration and power interface state is a state where all devices are turned off, the auxiliary power signal and the device all power off reserve signal are controlled to be in a non-enabled state to clear the global reset state record;

[0009] When it is detected that the auxiliary power signal and the device all power off reservation signal are both in the disabled state, the basic input and output system firmware upgraded in the flash memory is refreshed to the synchronous static random access memory.

[0010] In a specific implementation of the present invention, after refreshing the upgraded basic input / output system firmware in the flash memory to the synchronous static random access memory, the method further includes:

[0011] The auxiliary power signal and the device all power off reservation signal are controlled to be converted from the disabled state to the enabled state.

[0012] In a specific implementation of the present invention, controlling the auxiliary power signal and the device all power off retention signal to be in a non-enabled state includes:

[0013] Control the auxiliary power signal and the device to shut down all power and retain the signal to be in a low level state;

[0014] Correspondingly, when it is detected that the auxiliary power signal and the device all power off reservation signal are both in the non-enabled state, refreshing the basic input and output system firmware upgraded in the flash memory to the synchronous static random access memory includes:

[0015] When it is detected that the auxiliary power signal and the device all power off retention signal are both in low level state, refreshing the basic input and output system firmware upgraded in the flash memory to the synchronous static random access memory;

[0016] Accordingly, controlling the auxiliary power signal and the device all power off retention signal to switch from the disabled state to the enabled state includes:

[0017] The auxiliary power signal and the device all power off retention signal are controlled to switch from a low level state to a high level state.

[0018] In a specific embodiment of the present invention, controlling the auxiliary power signal and the device all power off reservation signal to switch from a low level state to a high level state includes:

[0019] The auxiliary power signal and the device all power off retention signal are kept in a low level state for a period of time to obtain a statistical period;

[0020] When the statistical time reaches a preset time, the auxiliary power signal and the device all power off retention signal are controlled to switch from a low level state to a high level state.

[0021] In a specific implementation of the present invention, after obtaining the current system advanced configuration and power interface status, the method further includes:

[0022] When it is determined that the current system advanced configuration and power interface status are in a working state, the preset upgrade flag is converted from a disabled state to an enabled state.

[0023] In a specific implementation of the present invention, after converting the preset upgrade flag bit from a disabled state to an enabled state, the method further includes:

[0024] Monitoring the current system advanced configuration and power interface status;

[0025] When it is monitored that the current system advanced configuration and power interface state are converted from the working state to the device all-off state, the step of controlling the auxiliary power signal and the device all-off power retention signal to be in a non-enabled state is performed.

[0026] In a specific embodiment of the present invention, it also includes:

[0027] If the current system advanced configuration and power interface states are converted from the device all-off state to the working state during the firmware refresh to the synchronous static random access memory, the preset upgrade operation statistics flag is converted from the disabled state to the enabled state;

[0028] The number of upgrade operations is counted to obtain a counting result.

[0029] In a specific implementation of the present invention, when it is determined that the current system advanced configuration and power interface state is a state where all devices are turned off, controlling the auxiliary power signal and the device all power off reserve signal to be in a non-enabled state includes:

[0030] When it is determined that the current system advanced configuration and power interface status is that all devices are shut down, obtaining the upgrade operation statistics flag bit;

[0031] When the upgrade operation statistics flag is in an enabled state, obtaining the counting result;

[0032] Determine whether the counting result is greater than or equal to a preset value;

[0033] If not, the step of controlling the auxiliary power signal and the device all power off retention signal to be in a non-enabled state is executed;

[0034] If yes, then an abnormal prompt message of the upgrade process will be output.

[0035] In a specific embodiment of the present invention, it also includes:

[0036] When it is detected that the upgraded basic input / output system firmware in the flash memory is refreshed to the synchronous static random access memory successfully, the upgrade flag and the upgrade operation statistics flag are both converted from an enabled state to a disabled state, and the counting result is cleared.

[0037] In a specific implementation of the present invention, when it is detected that the firmware upgrade of the basic input / output system in the flash memory is completed, obtaining the current system advanced configuration and power interface status includes:

[0038] When it is detected that the basic input / output system firmware in the flash memory is upgraded by triggering the system management interrupt, the current system advanced configuration and power interface status are obtained.

[0039] In a specific implementation of the present invention, when it is detected that the firmware upgrade of the basic input / output system in the flash memory is completed, obtaining the current system advanced configuration and power interface status includes:

[0040] When it is detected that the baseboard management controller has completed refreshing the new version of the basic input and output system firmware to the flash memory, the current system advanced configuration and power interface state are obtained.

[0041] In a specific implementation of the present invention, after refreshing the upgraded basic input / output system firmware in the flash memory to the synchronous static random access memory, the method further includes:

[0042] When it is detected that the current system advanced configuration and power interface state are converted from the device all-off state to the working state, the control server runs based on the refreshed new version of the basic input and output system firmware.

[0043] A firmware flashing device, comprising:

[0044] Memory for storing computer programs;

[0045] A processor is used to implement the steps of the firmware refresh method as described above when executing the computer program.

[0046] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the firmware refresh method described above are implemented.

[0047] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the steps of the firmware refreshing method described above are implemented.

[0048] The firmware refresh method provided by the present invention obtains the current system advanced configuration and power interface status when it is detected that the basic input / output system firmware in the flash memory is upgraded; when it is determined that the current system advanced configuration and power interface status is the device all-off status, the auxiliary power signal and the device all-off power retention signal are controlled to be in a non-enabled state to clear the global reset state record; when it is detected that the auxiliary power signal and the device all-off power retention signal are both in a non-enabled state, the upgraded basic input / output system firmware in the flash memory is refreshed to the synchronous static random access memory.

[0049] The beneficial effect of the present invention is that when it is detected that the upgrade of the basic input-output system firmware in the flash memory is completed, when it is determined that the current system advanced configuration and power interface state is the device all-off state, the auxiliary power signal and the device all-off power retention signal are controlled to be in a non-enabled state, thereby clearing the global reset state record, and then notifying the central processor that the auxiliary power signal and the device all-off power retention signal are in an unready state, and notifying the synchronous static random access memory that the basic input-output system firmware needs to be refreshed from the flash memory again. The effect of power-off restart is achieved, but there is no need to actually manually unplug the power cord, so that the basic input-output system firmware can be upgraded in a way without powering off, saving labor costs and avoiding the impact on the current running business of the system.

[0050] Correspondingly, the present invention also provides a firmware refresh device, a computer-readable storage medium and a computer program product corresponding to the above-mentioned firmware refresh method, which have the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] FIG1 is a flowchart of a firmware refresh method according to an embodiment of the present invention;

[0053] FIG2 is a flowchart of another firmware refresh method according to an embodiment of the present invention;

[0054] FIG3 is a structural block diagram of a firmware refresh device according to an embodiment of the present invention;

[0055] FIG4 is a structural block diagram of a firmware refresh device according to an embodiment of the present invention;

[0056] FIG5 is a schematic diagram of the specific structure of a firmware refresh device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0058] Referring to FIG. 1 , FIG. 1 is a flowchart of a firmware refresh method according to an embodiment of the present invention. The method may include the following steps:

[0059] S101: When it is detected that the basic input / output system firmware in the flash memory is upgraded, the current system advanced configuration and power interface status are obtained.

[0060] The system detects the upgrade status of the basic input and output system firmware in the flash memory, and when it detects that the upgrade of the basic input and output system firmware in the flash memory is completed, obtains the current system Advanced Configuration and Power Interface (ACPI) state. The system Advanced Configuration and Power Interface state can include the state where all devices are turned off (i.e., the S5 state) and the working state (i.e., the S0 state).

[0061] S102: When it is determined that the current system advanced configuration and power interface state is a device-all-off state, the auxiliary power signal and the device-all-off power reserve signal are controlled to be in a non-enabled state to clear the global reset state record.

[0062] After obtaining the current system advanced configuration and power interface status, when it is determined that the current system advanced configuration and power interface status is the device all shut down state, it means that the basic input and output system firmware in the synchronous static random access memory can be refreshed based on the new version of the basic input and output system firmware in the flash memory, and the auxiliary power signal (AUX_PWRGOOD) and the device all shut down power retention signal (S5_PWR_RETAINED) are controlled to be in a non-enabled state, thereby informing the central processor that the auxiliary power signal and the device all shut down power retention signal are in an unready state, and informing the synchronous static random access memory that the basic input and output system firmware needs to be refreshed from the flash memory, thereby clearing the global reset state record and avoiding the service being offline.

[0063] S103: When it is detected that the auxiliary power signal and the device all power off reserve signal are both in a disabled state, the upgraded basic input and output system firmware in the flash memory is refreshed to the synchronous static random access memory.

[0064] After controlling the auxiliary power signal and the device all power off reserve signal to be in a non-enabled state, it is detected whether the auxiliary power signal and the device all power off reserve signal are both in a non-enabled state. When it is detected that the auxiliary power signal and the device all power off reserve signal are both in a non-enabled state, it means that the power off and restart effect is achieved, but there is no need to actually manually unplug the power cord, and the basic input and output system firmware upgraded in the flash memory is refreshed to the synchronous static random access memory. In this way, the basic input and output system firmware can be upgraded without powering off, saving labor costs and avoiding the impact on the current running business of the system.

[0065] It can be seen from the above technical solution that when the upgrade of the basic input-output system firmware in the flash memory is detected to be completed, when it is determined that the current system advanced configuration and power interface state is the device all-off state, the auxiliary power signal and the device all-off power retention signal are controlled to be in a non-enabled state, thereby clearing the global reset state record, and then notifying the central processor that the auxiliary power signal and the device all-off power retention signal are in an unready state, and notifying the synchronous static random access memory that the basic input-output system firmware needs to be refreshed from the flash memory. The effect of power-off restart is achieved, but there is no need to actually manually unplug the power cord, so that the basic input-output system firmware can be upgraded without powering off, saving labor costs and avoiding the impact on the current running business of the system.

[0066] It should be noted that, based on the above embodiment, the embodiment of the present invention also provides corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiment can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.

[0067] Referring to FIG. 2 , FIG. 2 is a flowchart of another firmware updating method according to an embodiment of the present invention. The method may include the following steps:

[0068] S201: When it is detected that the basic input / output system firmware in the flash memory is upgraded, the current system advanced configuration and power interface status are obtained.

[0069] The version information of the basic input-output system firmware in the flash memory can be detected at a preset time interval or in real time to obtain the first basic input-output system firmware version information, obtain the pre-stored second basic input-output system firmware version information, and determine whether the first basic input-output system firmware version information is consistent with the second basic input-output system firmware version information. If they are consistent, it means that the basic input-output system firmware in the flash memory has not been upgraded and no processing is required. If they are inconsistent, it means that the basic input-output system firmware in the flash memory has been upgraded. Next, when the conditions for upgrading the basic input-output system firmware in the synchronous static random access memory are met, the basic input-output system firmware in the synchronous static random access memory is upgraded. By detecting the upgrade status of the basic input-output system firmware in the flash memory according to the firmware version comparison method, accurate and rapid detection of the upgrade status of the basic input-output system firmware in the flash memory is achieved.

[0070] S202: When it is determined that the current system advanced configuration and power interface state is a device-all-off state, the auxiliary power signal and the device-all-off power reserve signal are controlled to be in a non-enabled state to clear the global reset state record.

[0071] S203: When it is detected that the auxiliary power signal and the device all power off reserve signal are both in a disabled state, the upgraded basic input and output system firmware in the flash memory is refreshed to the synchronous static random access memory.

[0072] S204: Control the auxiliary power signal and the device all power off retention signal to switch from the disabled state to the enabled state.

[0073] After the upgraded basic input-output system firmware in the flash memory is refreshed to the synchronous static random access memory, the auxiliary power signal and the device all power off reserve signal are controlled to be converted from the non-enabled state to the enabled state, thereby timely notifying the central processor that the auxiliary power signal and the device all power off reserve signal are in the ready state, and the basic input-output system firmware in the synchronous static random access memory has been refreshed.

[0074] S205: When it is detected that the current system advanced configuration and power interface state are converted from the all-device-off state to the working state, the control server runs based on the refreshed new version of the basic input / output system firmware.

[0075] After the upgraded basic input-output system firmware in the flash memory is refreshed to the synchronous static random access memory, when it is detected that the current system advanced configuration and power interface state are converted from the device all-off state to the working state, the server is controlled to run based on the refreshed new version of the basic input-output system firmware. Thus, the server runs based on the refreshed new version of the basic input-output system firmware, and the basic input-output system firmware is upgraded without powering off, which saves labor costs and improves the efficiency of firmware refresh.

[0076] In a specific implementation of the present invention, controlling the auxiliary power signal and the device all power off retention signal to be in a non-enabled state may include the following steps:

[0077] Control the auxiliary power signal and all equipment power off retention signal to be in low level state;

[0078] Accordingly, when it is detected that the auxiliary power signal and the device all power off reservation signal are both in a non-enabled state, refreshing the basic input and output system firmware upgraded in the flash memory to the synchronous static random access memory may include the following steps:

[0079] When it is detected that the auxiliary power signal and the device all power off reserve signal are both in a low level state, the basic input and output system firmware upgraded in the flash memory is refreshed to the synchronous static random access memory;

[0080] Accordingly, controlling the auxiliary power signal and the device all power off reservation signal to switch from a disabled state to an enabled state may include the following steps:

[0081] Controls the auxiliary power signal and the device all power off retention signal to transition from a low level state to a high level state.

[0082] When it is determined that the current system advanced configuration and power interface state is the device all-off state, it means that the basic input-output system firmware in the synchronous static random access memory can be refreshed based on the new version of the basic input-output system firmware in the flash memory, and the auxiliary power signal and the device all-off power retention signal are controlled to be in a low-level state, thereby notifying the central processing unit that the auxiliary power signal and the device all-off power retention signal are in an unready state, and notifying the synchronous static random access memory that the basic input-output system firmware needs to be refreshed from the flash memory. When it is detected that the auxiliary power signal and the device all-off power retention signal are both in a low-level state, it means that the effect of power-off restart has been achieved, but there is no need to actually manually unplug the power cord, and the basic input-output system firmware upgraded in the flash memory is refreshed to the synchronous static random access memory. After refreshing the basic input-output system firmware upgraded in the flash memory to the synchronous static random access memory, the auxiliary power signal and the device all-off power retention signal are controlled to be converted from a low-level state to a high-level state. Thus, the central processing unit is promptly notified that the auxiliary power signal and the device all-off power retention signal are both in a ready state, and the basic input-output system firmware in the synchronous static random access memory has been refreshed. The auxiliary power signal and the device all power off retention signal are generally in a high level state. By setting the low level state of the auxiliary power signal and the low level state of the device all power off retention signal as the trigger condition for refreshing the basic input and output system firmware in the synchronous static random access memory, the system can easily and accurately identify the timing of firmware refresh, thereby improving the accuracy of firmware refresh.

[0083] When the basic input and output system firmware in the flash memory is upgraded, an execution instruction for upgrading the basic input and output system firmware in the synchronous static random access memory can be sent to the baseboard management controller through the intelligent platform management interface (Intelligent Platform Management Interface, IPMI) command. After receiving the execution instruction, the baseboard management controller sends the instruction to the complex programmable logic device (Complex Programmable Logic Device, CPLD) through the serial interface bus (Inter-Integrated Circuit, I2C). After receiving the instruction, the complex programmable logic device recognizes that the system state is the device all shut down state, and controls the auxiliary power signal and the device all shut down power retention signal to be in a low level state.

[0084] In a specific embodiment of the present invention, controlling the auxiliary power signal and the device all power off reserve signal to switch from a low level state to a high level state may include the following steps:

[0085] Step 1: Count the duration that the auxiliary power signal and the device power-off retention signal are in a low-level state to obtain the statistical duration;

[0086] Step 2: When the statistical duration reaches the preset duration, the auxiliary power signal and the device all power off retention signal are controlled to switch from a low level state to a high level state.

[0087] For the convenience of description, the above two steps can be combined for explanation.

[0088] After the auxiliary power signal and the device power-off retention signal are controlled to be in a low-level state, the duration of the auxiliary power signal and the device power-off retention signal being in a low-level state is counted to obtain the statistical duration. When the statistical duration reaches the preset duration, the auxiliary power signal and the device power-off retention signal are controlled to switch from a low-level state to a high-level state. By automatically switching the auxiliary power signal and the device power-off retention signal from a low-level state to a high-level state according to the duration statistics, while ensuring that the firmware refresh is completed, the auxiliary power signal and the device power-off retention signal can be automatically and timely switched to the state before control, without the need for manual intervention, saving manpower and improving the user experience.

[0089] It should be noted that the preset duration can be set and adjusted according to actual conditions. For example, the preset duration can be set and adjusted according to the length of time from controlling the auxiliary power signal and the device to turn off all power to retain the signal in a low level state to completing the firmware refresh. The embodiments of the present invention are not limited to this.

[0090] In a specific implementation of the present invention, after obtaining the current system advanced configuration and power interface status, the method may further include the following steps:

[0091] When it is determined that the current system advanced configuration and power interface states are in a working state, the preset upgrade flag is converted from a non-enabled state to an enabled state.

[0092] After obtaining the current system advanced configuration and power interface status, when it is determined that the current system advanced configuration and power interface status is in the working state, it means that the basic input-output system firmware in the synchronous static random access memory cannot be refreshed based on the new version of the basic input-output system firmware in the flash memory, and the preset upgrade flag is converted from a non-enabled state to an enabled state. By pre-setting the upgrade flag to mark the basic input-output system firmware in the synchronous static random access memory as needing to be refreshed, an effective mark for firmware refresh is realized, so that when the system advanced configuration and power interface status is converted to the device fully shut down state, the firmware can be refreshed in time by identifying the upgrade flag.

[0093] In a specific implementation of the present invention, after converting the preset upgrade flag bit from a disabled state to an enabled state, the method may further include the following steps:

[0094] Step 1: Monitor the current system advanced configuration and power interface status;

[0095] Step 2: When it is detected that the current system advanced configuration and power interface status is converted from the working status to the device all shut down status, the step of controlling the auxiliary power signal and the device all shut down power reserve signal to be in a non-enabled state is executed.

[0096] For the convenience of description, the above two steps can be combined for explanation.

[0097] After the preset upgrade flag is converted from the non-enabled state to the enabled state, the current system advanced configuration and power interface state are monitored. When it is detected that the current system advanced configuration and power interface state are converted from the working state to the device fully shut down state, the auxiliary power signal and the device fully shut down power retention signal are controlled to the non-enabled state, thereby performing firmware refresh. By monitoring the current system advanced configuration and power interface state after the preset upgrade flag is converted from the non-enabled state to the enabled state, the firmware refresh timing is obtained in a timely manner, thereby improving the firmware refresh efficiency.

[0098] In a specific embodiment of the present invention, the method may further include the following steps:

[0099] Step 1: If the current system advanced configuration and power interface states are changed from the device all-off state to the working state during the firmware update to the synchronous static random access memory, the preset upgrade operation statistics flag is changed from the disabled state to the enabled state;

[0100] Step 2: Count the number of upgrade operations to obtain a counting result.

[0101] For the convenience of description, the above two steps can be combined for explanation.

[0102] If the current system advanced configuration and power interface status are changed from the device all-off state to the working state during the firmware refresh to the synchronous static random access memory, it means that the firmware refresh process is interrupted, and the pre-set upgrade operation statistics flag is changed from the non-enabled state to the enabled state, and the number of upgrade operations is counted to obtain the counting result. By setting the upgrade operation statistics flag to mark that the basic input and output system firmware has been refreshed, but the firmware refresh process was interrupted and not completed, the system and users can timely grasp the firmware refresh status according to the upgrade operation statistics flag. By counting the number of upgrade operations, users can timely understand the number of times the firmware refresh has not been completed, and take timely countermeasures according to the counting results.

[0103] In a specific implementation of the present invention, when it is determined that the current system advanced configuration and power interface state is a device-all-off state, controlling the auxiliary power signal and the device-all-off power reserve signal to be in a non-enabled state may include the following steps:

[0104] Step 1: When it is determined that the current system advanced configuration and power interface status is that all devices are turned off, obtain the upgrade operation statistics flag bit;

[0105] Step 2: When the upgrade operation statistics flag is enabled, obtain the counting result;

[0106] Step 3: Determine whether the counting result is greater than or equal to the preset value, if not, execute step 4, if yes, execute step 5;

[0107] Step 4: Control the auxiliary power signal and all equipment to turn off the power and keep the signal in a non-enabled state;

[0108] Step 5: Output the abnormal prompt information of the upgrade process.

[0109] For the convenience of description, the above five steps can be combined for explanation.

[0110] When it is determined that the current system advanced configuration and power interface status is that all devices are shut down, obtain the upgrade operation statistics flag. When the upgrade operation statistics flag is enabled, obtain the count result and determine whether the count result is greater than or equal to the preset value. If not, it means that the number of unfinished firmware refreshes is within the normal range, and the auxiliary power signal and the device all power off retention signal are controlled to be in the non-enabled state. If so, it means that the number of unfinished firmware refreshes is within the abnormal range. The firmware refresh failure may be caused by the system's own abnormality, and the upgrade process abnormal prompt information is output. By setting the upper limit of the upgrade operation statistics, when the upper limit of the upgrade statistics is exceeded, the upgrade process abnormal prompt information is output, thereby prompting the user that the firmware refresh is abnormal, which is convenient for the user to conduct troubleshooting in time.

[0111] It should be noted that the preset value can be set and adjusted according to actual conditions, and the embodiment of the present invention does not limit this. For example, it can be set to 3.

[0112] In a specific embodiment of the present invention, the method may further include the following steps:

[0113] When it is detected that the upgraded basic input / output system firmware in the flash memory is successfully refreshed to the synchronous static random access memory, the upgrade flag bit and the upgrade operation statistics flag bit are both converted from an enabled state to a disabled state, and the counting result is cleared.

[0114] When it is detected that the basic input-output system firmware that has been upgraded in the flash memory is successfully refreshed to the synchronous static random access memory, it means that the firmware refresh task has been completed, and the upgrade flag bit and the upgrade operation statistics flag bit are both converted from the enabled state to the disabled state, and the counting result is cleared. By timely converting the upgrade flag bit and the upgrade operation statistics flag bit from the enabled state to the disabled state after the basic input-output system firmware is successfully refreshed to the synchronous static random access memory, and clearing the counting result, interference with the subsequent newly generated firmware refresh tasks is avoided, and accurate recording of the firmware refresh status is achieved.

[0115] In a specific implementation of the present invention, when it is detected that the basic input / output system firmware upgrade in the flash memory is completed, obtaining the current system advanced configuration and power interface status may include the following steps:

[0116] When it is detected that the basic input and output system firmware in the flash memory is upgraded after the system management interrupt is triggered, the current system advanced configuration and power interface status are obtained.

[0117] When it is detected that the basic input and output system firmware in the flash memory is upgraded by triggering the system management interrupt, the current system advanced configuration and power interface state are obtained. By triggering the system management interrupt to upgrade the basic input and output system firmware in the flash memory, the in-band upgrade of the basic input and output system firmware is realized.

[0118] In a specific implementation of the present invention, when it is detected that the basic input / output system firmware upgrade in the flash memory is completed, obtaining the current system advanced configuration and power interface status may include the following steps:

[0119] When it is detected that the baseboard management controller has completed refreshing the new version of the basic input and output system firmware to the flash memory, the current system advanced configuration and power interface state are obtained.

[0120] When it is detected that the baseboard management controller (BMC) has completed refreshing the new version of the basic input and output system firmware to the flash memory, the current system advanced configuration and power interface status are obtained. By using the baseboard management controller to refresh the new version of the basic input and output system firmware to the flash memory, the out-of-band upgrade of the basic input and output system firmware is realized, such as the basic input and output system firmware can be remotely managed and upgraded through the Internet Protocol (IP), which improves the user experience.

[0121] Corresponding to the above method embodiment, the present invention further provides a firmware refresh device. The firmware refresh device described below and the firmware refresh method described above can refer to each other.

[0122] Referring to FIG. 3 , FIG. 3 is a structural block diagram of a firmware refresh device according to an embodiment of the present invention, and the device may include:

[0123] The advanced configuration and power interface status acquisition module 31 is used to acquire the current system advanced configuration and power interface status when it is detected that the basic input and output system firmware upgrade in the flash memory is completed;

[0124] The signal state control module 32 is used to control the auxiliary power signal and the device all power off reservation signal to be in a non-enabled state when it is determined that the current system advanced configuration and power interface state is a device all power off state, so as to clear the global reset state record;

[0125] The firmware refresh module 33 is used to refresh the upgraded basic input and output system firmware in the flash memory to the synchronous static random access memory when it is detected that the auxiliary power signal and the device all power off retention signal are both in the disabled state.

[0126] It can be seen from the above technical solution that when the upgrade of the basic input-output system firmware in the flash memory is detected to be completed, when it is determined that the current system advanced configuration and power interface state is the device all-off state, the auxiliary power signal and the device all-off power retention signal are controlled to be in a non-enabled state, thereby clearing the global reset state record, and then notifying the central processor that the auxiliary power signal and the device all-off power retention signal are in an unready state, and notifying the synchronous static random access memory that the basic input-output system firmware needs to be refreshed from the flash memory. The effect of power-off restart is achieved, but there is no need to actually manually unplug the power cord, so that the basic input-output system firmware can be upgraded without powering off, saving labor costs and avoiding the impact on the current running business of the system.

[0127] In a specific embodiment of the present invention, the device may further include:

[0128] The signal conversion module is used to control the auxiliary power signal and the device all power off retention signal to be converted from the non-enabled state to the enabled state after the upgraded basic input and output system firmware in the flash memory is refreshed to the synchronous static random access memory.

[0129] In a specific embodiment of the present invention, the signal state control module 32 is specifically a module that controls the auxiliary power signal and the device all power off retention signal to be in a low level state;

[0130] The firmware refresh module 33 is specifically a module that refreshes the basic input and output system firmware upgraded in the flash memory to the synchronous static random access memory when it is detected that the auxiliary power signal and the device all power off reservation signal are both in a low level state;

[0131] The signal conversion module is specifically a module for controlling the auxiliary power signal and the device all power off retention signal to be converted from a low level state to a high level state.

[0132] In a specific embodiment of the present invention, the signal conversion module includes:

[0133] The statistical duration acquisition submodule is used to count the duration of the auxiliary power signal and the device all power off retention signal being in a low level state to obtain the statistical duration;

[0134] The level state conversion submodule is used to control the auxiliary power signal and the device all power off reservation signal to convert from a low level state to a high level state when the statistical time reaches a preset time.

[0135] In a specific embodiment of the present invention, the device may further include:

[0136] The upgrade flag state conversion module is used to convert the preset upgrade flag from a disabled state to an enabled state after obtaining the current system advanced configuration and power interface state and determining that the current system advanced configuration and power interface state are in a working state.

[0137] In a specific embodiment of the present invention, the device may further include:

[0138] The advanced configuration and power interface status monitoring module is used to monitor the current system advanced configuration and power interface status after the preset upgrade flag is converted from a disabled state to an enabled state;

[0139] The signal state control module 32 is specifically a module that controls the auxiliary power signal and the device all power off reservation signal to be in a non-enabled state when monitoring that the current system advanced configuration and power interface state are converted from a working state to a device all power off state.

[0140] In a specific embodiment of the present invention, the device may further include:

[0141] An upgrade operation statistics flag state conversion module is used to convert a preset upgrade operation statistics flag from a non-enabled state to an enabled state if the current system advanced configuration and power interface states are converted from a fully-equipped shutdown state to a working state during the firmware refresh to the synchronous static random access memory;

[0142] The counting result obtaining module is used to count the number of upgrade operations and obtain the counting result.

[0143] In a specific implementation of the present invention, the signal state control module 32 includes:

[0144] The upgrade operation statistics flag bit acquisition submodule is used to acquire the upgrade operation statistics flag bit when it is determined that the current system advanced configuration and power interface status are all device shutdown states;

[0145] The counting result acquisition submodule is used to obtain the counting result when the upgrade operation statistics flag is in the enabled state;

[0146] A judgment submodule is used to judge whether the counting result is greater than or equal to a preset value;

[0147] The signal state control submodule is used to control the auxiliary power signal and the device all power off retention signal to be in a non-enabled state when it is determined that the counting result is less than a preset value;

[0148] The prompt information output submodule is used to output the upgrade process abnormal prompt information when it is determined that the counting result is greater than or equal to the preset value.

[0149] In a specific embodiment of the present invention, the device may further include:

[0150] The counting result clearing module is used to convert the upgrade flag bit and the upgrade operation statistics flag bit from the enabled state to the disabled state and clear the counting result when it is detected that the basic input and output system firmware upgraded in the flash memory is refreshed to the synchronous static random access memory successfully.

[0151] In a specific implementation of the present invention, the advanced configuration and power interface status acquisition module 31 is specifically a module for acquiring the current system advanced configuration and power interface status when it is detected that the basic input and output system firmware upgrade in the flash memory is completed by triggering the system management interrupt.

[0152] In a specific embodiment of the present invention, the advanced configuration and power interface status acquisition module 31 is a module for acquiring the current system advanced configuration and power interface status when it is detected that the baseboard management controller has completed refreshing the new version of the basic input and output system firmware to the flash memory.

[0153] In a specific embodiment of the present invention, the device may further include:

[0154] The operation control module is used to control the server to operate based on the refreshed new version of the basic input and output system firmware when it is detected that the current system advanced configuration and power interface status are converted from the all-device closed state to the working state.

[0155] Corresponding to the above method embodiment, referring to FIG. 4 , FIG. 4 is a schematic diagram of a firmware refresh device provided by the present invention, and the device may include:

[0156] A memory 332, for storing computer programs;

[0157] The processor 322 is used to implement the steps of the firmware refreshing method of the above method embodiment when executing a computer program.

[0158] Specifically, please refer to Figure 5, which is a schematic diagram of the specific structure of a firmware refresh device provided in this embodiment. The firmware refresh device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the firmware refresh device 301.

[0159] The firmware flashing device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0160] The steps in the firmware refreshing method described above can be implemented by the structure of a firmware refreshing device.

[0161] Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0162] When it is detected that the basic input-output system firmware in the flash memory is upgraded, the current system advanced configuration and power interface status is obtained; when it is determined that the current system advanced configuration and power interface status is the device-all-power-off state, the auxiliary power signal and the device-all-power-off retention signal are controlled to be in a non-enabled state to clear the global reset state record; when it is detected that the auxiliary power signal and the device-all-power-off retention signal are both in a non-enabled state, the upgraded basic input-output system firmware in the flash memory is refreshed to the synchronous static random access memory.

[0163] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0164] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0165] Corresponding to the above method embodiment, the present invention further provides a computer program product, including a computer program, which implements the steps of the above firmware refresh method when executed by a processor.

[0166] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device, computer-readable storage medium, and computer program product disclosed in the embodiment, since they correspond to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0167] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A firmware refresh method, characterized in that: include: When it is detected that the firmware upgrade of the basic input and output system in the flash memory is completed, the current system advanced configuration and power interface status are obtained; When it is determined that the current system advanced configuration and power interface state is a state where all devices are turned off, the auxiliary power signal and the device all power off reserve signal are controlled to be in a non-enabled state to clear the global reset state record; When it is detected that the auxiliary power signal and the device all power off reservation signal are both in the disabled state, the basic input and output system firmware upgraded in the flash memory is refreshed to the synchronous static random access memory.

2. The firmware updating method according to claim 1, characterized in that: After refreshing the upgraded basic input / output system firmware in the flash memory to the synchronous static random access memory, the method further includes: The auxiliary power signal and the device all power off reservation signal are controlled to be converted from the disabled state to the enabled state.

3. The firmware updating method according to claim 2, characterized in that: Control the auxiliary power signal and the device all power off retention signal to the non-enabled state, including: Control the auxiliary power signal and the device to shut down all power and retain the signal to be in a low level state; Correspondingly, when it is detected that the auxiliary power signal and the device all power off reservation signal are both in the non-enabled state, refreshing the basic input and output system firmware upgraded in the flash memory to the synchronous static random access memory includes: When it is detected that the auxiliary power signal and the device all power off retention signal are both in low level state, refreshing the basic input and output system firmware upgraded in the flash memory to the synchronous static random access memory; Accordingly, controlling the auxiliary power signal and the device all power off retention signal to switch from the disabled state to the enabled state includes: The auxiliary power signal and the device all power off retention signal are controlled to switch from a low level state to a high level state.

4. The firmware updating method according to claim 3, characterized in that: Controlling the auxiliary power signal and the device all power off retention signal to switch from a low level state to a high level state, comprising: The auxiliary power signal and the device all power off retention signal are kept in a low level state for a period of time to obtain a statistical period; When the statistical time reaches a preset time, the auxiliary power signal and the device all power off retention signal are controlled to switch from a low level state to a high level state.

5. The firmware updating method according to claim 1, characterized in that: After obtaining the current system advanced configuration and power interface status, it also includes: When it is determined that the current system advanced configuration and power interface status are in a working state, the preset upgrade flag is converted from a disabled state to an enabled state.

6. The firmware updating method according to claim 5, characterized in that: After the preset upgrade flag is converted from a disabled state to an enabled state, the method further includes: Monitoring the current system advanced configuration and power interface status; When it is monitored that the current system advanced configuration and power interface state are converted from the working state to the device all-off state, the step of controlling the auxiliary power signal and the device all-off power retention signal to be in a non-enabled state is performed.

7. The firmware updating method according to claim 6, characterized in that: Also includes: If the current system advanced configuration and power interface states are converted from the device all-off state to the working state during the firmware refresh to the synchronous static random access memory, the preset upgrade operation statistics flag is converted from the disabled state to the enabled state; The number of upgrade operations is counted to obtain a counting result.

8. The firmware updating method according to claim 7, characterized in that: When it is determined that the current system advanced configuration and power interface state is a state where all devices are turned off, controlling the auxiliary power signal and the device all power off reserve signal to be in a non-enabled state includes: When it is determined that the current system advanced configuration and power interface status is that all devices are shut down, obtaining the upgrade operation statistics flag bit; When the upgrade operation statistics flag is in an enabled state, obtaining the counting result; Determine whether the counting result is greater than or equal to a preset value; If not, the step of controlling the auxiliary power signal and the device all power off retention signal to be in a non-enabled state is executed; If yes, then an abnormal prompt message of the upgrade process will be output.

9. The firmware updating method according to claim 8, characterized in that: Also includes: When it is detected that the upgraded basic input / output system firmware in the flash memory is refreshed to the synchronous static random access memory successfully, the upgrade flag and the upgrade operation statistics flag are both converted from an enabled state to a disabled state, and the counting result is cleared.

10. The firmware updating method according to claim 1, characterized in that: When it is detected that the basic input and output system firmware upgrade in the flash memory is completed, the current system advanced configuration and power interface status are obtained, including: When it is detected that the basic input / output system firmware in the flash memory is upgraded by triggering the system management interrupt, the current system advanced configuration and power interface status are obtained.

11. The firmware updating method according to claim 1, characterized in that: When it is detected that the basic input and output system firmware upgrade in the flash memory is completed, the current system advanced configuration and power interface status are obtained, including: When it is detected that the baseboard management controller has completed refreshing the new version of the basic input and output system firmware to the flash memory, the current system advanced configuration and power interface state are obtained.

12. The firmware updating method according to claim 1, characterized in that: After refreshing the upgraded basic input / output system firmware in the flash memory to the synchronous static random access memory, the method further includes: When it is detected that the current system advanced configuration and power interface state are converted from the device all-off state to the working state, the control server runs based on the refreshed new version of the basic input and output system firmware.

13. A firmware refresh device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the firmware refresh method according to any one of claims 1 to 12 when executing the computer program.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the firmware refresh method according to any one of claims 1 to 12 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the firmware refresh method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Power management method of CPLD and related device

    CN109933377A

  • BMC firmware refreshing method and related device

    CN113626255A

  • Operating system entering method and device, equipment and storage medium

    CN117608674A

  • Firmware refreshing method and device of basic input and output system and storage medium

    CN118796239A

  • Upgrade method based on basic input output system (BIOS) and terminal device

    WO2023216790A1

Cited By

  • Firmware refresh method and device, and readable storage medium and program product

    WO2026157551A1