Method, apparatus and device for starting firmware update and medium

By interacting with the server through the baseboard management controller, the parameter settings of the boot firmware are automatically adjusted, which solves the problem that the original services cannot be supported after the boot firmware is updated, and improves the stability and reliability of the server.

CN116610349BActive Publication Date: 2026-11-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310449611.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-24
Publication Date
2026-11-20
Estimated Expiration
2043-04-24

AI Technical Summary

Technical Problem

After the server initiates a firmware update, it cannot automatically retain the parameter settings from before the update, causing the server to be unable to support the original services and requiring manual intervention to adjust, which affects the server's stability and reliability.

Method used

After the firmware update is initiated, the Baseboard Management Controller (BMC) interacts with the server to obtain and transmit the parameter settings before the update, and automatically adjusts the parameters of the updated firmware to achieve automatic retention of configuration updates.

Benefits of technology

This reduces manual intervention during the firmware update process, ensures that the updated firmware supports existing services, and improves the stability and reliability of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116610349B_ABST
    Figure CN116610349B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of starting firmware update method, device and equipment and medium, it is related to server technical field, can realize the automatic reservation configuration update of starting firmware. The starting firmware update method includes: according to starting firmware update file, update the first starting firmware in the server, the first starting firmware is the starting firmware in the server starting;In the case where the update to the first starting firmware is completed, and the server enters the starting process, the first parameter setting before the first starting firmware is updated is obtained from the baseboard management controller associated with the server by the first starting firmware, and the first parameter setting is sent to the baseboard management controller by the first starting firmware before updating;According to the first parameter setting, the parameter setting of the first starting firmware is adjusted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server technology, and in particular to a method, apparatus, device, and medium for initiating firmware updates. Background Technology

[0002] To maintain the stable operation of servers with various architectures in a data center, it is often necessary to update the boot firmware in the server to resolve known issues with the boot firmware.

[0003] However, for some machines whose startup firmware settings have been modified, these machines cannot support the services provided before the firmware update after the update, and manual intervention is required to readjust the startup firmware settings. Summary of the Invention

[0004] The purpose of this application is to provide a boot firmware update method, apparatus, device, and medium that can achieve automatic retention and configuration updates of the boot firmware.

[0005] To address the aforementioned technical problems, in a first aspect, embodiments of this application provide a method for initiating firmware updates, applied to a server, the method comprising:

[0006] Update the first boot firmware in the server according to the boot firmware update file. The first boot firmware is the boot firmware that is started in the server.

[0007] When the update of the first boot firmware is completed and the server enters the boot process, the first parameter settings before the update of the first boot firmware are obtained from the baseboard management controller associated with the server through the first boot firmware. The first parameter settings are sent to the baseboard management controller by the first boot firmware before the update.

[0008] Adjust the parameter settings of the first boot firmware according to the first parameter settings.

[0009] Secondly, embodiments of this application also provide a method for initiating a firmware update, applied to a baseboard management controller, the method comprising:

[0010] In response to receiving a first request from the server for obtaining the first parameter settings before the first boot firmware update, the first parameter settings are sent to the first boot firmware so that the server adjusts the parameter settings of the first boot firmware according to the first parameter settings.

[0011] Wherein, the first boot firmware is the boot firmware started in the server, the first parameter setting is sent to the baseboard management controller by the first boot firmware before the update, and the first acquisition request is issued by the server after the update of the first boot firmware is completed and the server enters the boot process.

[0012] Thirdly, embodiments of this application also provide a firmware update initiation device, applied to a server, the device comprising:

[0013] The first update module is used to update the first boot firmware in the server according to the boot firmware update file, wherein the first boot firmware is the boot firmware that is started in the server.

[0014] The first acquisition module is used to acquire, when the update of the first boot firmware is completed and the server enters the boot process, the first parameter settings before the update of the first boot firmware are obtained from the baseboard management controller associated with the server through the first boot firmware. The first parameter settings are sent to the baseboard management controller by the first boot firmware before the update.

[0015] The first setting module is used to adjust the parameter settings of the first boot firmware according to the first parameter settings.

[0016] Fourthly, embodiments of this application also provide a firmware update initiation device, applied to a baseboard management controller, the device comprising:

[0017] The first sending module is configured to, in response to receiving a first request from the server for obtaining the first parameter settings before the first boot firmware update, send the first parameter settings to the first boot firmware so that the server adjusts the parameter settings of the first boot firmware according to the first parameter settings.

[0018] Wherein, the first boot firmware is the boot firmware started in the server, the first parameter setting is sent to the baseboard management controller by the first boot firmware before the update, and the first acquisition request is issued by the server after the update of the first boot firmware is completed and the server enters the boot process.

[0019] Fifthly, embodiments of this application also provide an electronic device, including a memory, a processor, and a computer program stored on the memory, wherein the processor executes the computer program to implement the firmware update method as described in the first or second aspect.

[0020] In a sixth aspect, embodiments of this application also provide a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implements the firmware update startup method as described in the first or second aspect.

[0021] In a seventh aspect, embodiments of this application also provide a computer program product, including a computer program / instructions that, when executed by a processor, implement the firmware update startup method as described in the first or second aspect.

[0022] As can be seen from the above technical solution, after the server's boot firmware is updated, the parameter settings before the boot firmware update can be transferred to the updated boot firmware through data interaction between the boot firmware and the baseboard management controller. This allows the updated boot firmware to restore the parameter settings, thereby achieving automatic retention and configuration updates of the boot firmware. This reduces manual intervention during the boot firmware update process, enabling the updated boot firmware to support the services provided before the boot firmware update, thus improving the stability and reliability of the server. Attached Figure Description

[0023] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 A flowchart illustrating an implementation method for initiating a firmware update, as provided in this application embodiment;

[0025] Figure 2 A schematic diagram illustrating an implementation process for automatic firmware updates provided in an embodiment of this application;

[0026] Figure 3 A flowchart illustrating another method for initiating a firmware update as provided in this application embodiment;

[0027] Figure 4 This is a schematic diagram of the structure of a firmware update device provided in an embodiment of this application;

[0028] Figure 5 This is a schematic diagram of another firmware update device provided in an embodiment of this application;

[0029] Figure 6 A schematic diagram of an electronic device provided in an embodiment of this application;

[0030] Figure 7 This is a schematic diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation

[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.

[0032] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.

[0033] With the development of Internet technology, the number of servers in data centers has reached the millions. How to maintain the stable operation of servers with various architectures in data centers has become a problem that all server manufacturers must consider.

[0034] To ensure stable server operation, server motherboards are typically designed with a primary / backup configuration based on the Basic Input / Output System (BIOS, also known as BIOS firmware, BIOS image, boot firmware, or boot management firmware). When either the primary or backup BIOS fails, a Complex Programmable Logic Device (CPLD) can control the boot firmware to automatically switch over, thus ensuring server security and reliability and extending the server's lifespan.

[0035] During the R&D process of various server manufacturers, boot firmware updates are often used to resolve boot firmware issues discovered in data centers or known issues identified by server chip manufacturers. However, when using tools to batch upgrade boot firmware, the backup BIOS that is not currently running on the server cannot be updated, and the server cannot boot promptly after the boot firmware update is complete. As a result, users cannot know in a timely manner whether the boot firmware has been updated or confirm the updated version. At the same time, some customers have modified critical BIOS settings on certain machines, but these settings are not automatically retained after the boot firmware update, making it difficult for the server to meet the business requirements before the boot firmware update.

[0036] To address the problems existing in the aforementioned related technologies, this application proposes an automatic configuration retention update method for boot firmware. The method controls the primary and backup BIOS updates through the BMC. After the primary and backup BIOS updates are completed, the server is triggered to start, enabling the BMC to pass the parameter settings of the primary and backup BIOS before the update to the updated primary and backup BIOS. At the same time, the BMC can obtain the BIOS version information passed by the primary and backup BIOS updates respectively, thereby confirming that the primary and backup BIOS updates have been completed.

[0037] The following description, in conjunction with the accompanying drawings, details a firmware update method provided by the embodiments of this application through some examples and application scenarios.

[0038] Firstly, see [the following] Figure 1 The diagram shown is an implementation flowchart of a firmware update startup method provided in this application embodiment. This firmware update startup method is applied to a server and may include the following steps:

[0039] Step S101: Update the first boot firmware in the server according to the boot firmware update file.

[0040] It is understandable that the first boot firmware is the boot firmware that has been started when the server triggers the boot firmware update. For example, the first boot firmware can be the server's main BIOS. If the server performs a switch between the main and backup BIOS due to firmware abnormality before triggering the boot firmware update, the first boot firmware is the backup BIOS that the server switched to.

[0041] The boot firmware is a set of system programs embedded in a storage chip on the server motherboard. It plays an indispensable role in the normal initialization, startup, and operating system booting of the computer system, and is a key link in realizing the security, reliability, and other critical functions of the computer system.

[0042] In practice, when a server needs to update its boot firmware, it can obtain the relevant boot firmware update file in advance (e.g., through the BMC). After obtaining the boot firmware update file, the server can continue business processing until the server's current state meets the boot firmware update conditions (e.g., the server is powered off or not running any business). Then, based on the boot firmware update file, the server can update its existing boot firmware using either in-band or out-of-band management methods.

[0043] As one possible implementation, after receiving the boot firmware update file, the server can notify the BMC to power off the server so that the server can perform the boot firmware update in a timely manner.

[0044] Step S102: After the update of the first boot firmware is completed and the server enters the boot process, the first parameter settings before the update of the first boot firmware are obtained from the baseboard management controller associated with the server through the first boot firmware.

[0045] The first parameter setting is sent to the baseboard management controller by the first boot firmware before the update.

[0046] In practical implementation, the first boot firmware can send the manually modified parameter settings to the baseboard management controller for storage each time its own parameter settings are manually modified. This allows for parameter setting restoration based on the parameter settings saved by the baseboard management controller during subsequent firmware updates. Considering that the boot firmware update takes effect during server boot-up, the server can use the updated boot firmware to interact with the BMC during the initial boot process after the update. This avoids failure to retrieve the previous parameter settings due to using the previous boot firmware (such as an abnormal boot firmware), thereby improving the reliability of the boot firmware update process.

[0047] Step S103: Adjust the parameter settings of the first boot firmware according to the first parameter settings.

[0048] In practical implementation, after obtaining the parameter settings before the update, the startup firmware can configure the obtained parameter settings to the corresponding selection, thereby automatically restoring the parameter settings of the updated startup firmware to the state before the update, and realizing business support before the startup firmware update.

[0049] It is understandable that if the server deploys at least two boot firmwares in a primary / backup configuration, after the server completes the automatic retention configuration update of the first boot firmware through the above steps, it can automatically switch to use the other boot firmware deployed on the server (i.e., the second boot firmware). After the firmware switch is completed, the above steps for automatically retaining the configuration update of the first boot firmware can be repeated to achieve automatic updates of other boot firmwares deployed on the server (such as the backup BIOS that was not started when the server triggered the boot firmware update).

[0050] As can be seen from the above technical solution, after the server's boot firmware is updated, the parameter settings before the boot firmware update can be transferred to the updated boot firmware through data interaction between the boot firmware and the baseboard management controller. This allows the updated boot firmware to restore the parameter settings, thereby achieving automatic retention and configuration updates of the boot firmware. This reduces manual intervention during the boot firmware update process, enabling the updated boot firmware to support the services provided before the boot firmware update, thus improving the stability and reliability of the server.

[0051] Implementation Method 1

[0052] This embodiment describes an example of data interaction between the updated boot firmware and the BMC. Depending on the type of data exchanged between the boot firmware and the BMC, there are two possible scenarios.

[0053] Scenario 1: During the boot process, the BIOS will exchange data with the BMC through an interactive interface. The BMC will pass the BIOS parameter settings from the previous version, which were preserved in the BMC image, to the updated BIOS image.

[0054] In this embodiment, when the server completes the update of the boot firmware (such as the first boot firmware or the second boot firmware) and the server enters the boot process, it obtains the parameter settings (such as the first parameter settings or the second parameter settings) of the boot firmware before the update from the BMC associated with the server (i.e., the BMC that stores the parameter settings of the boot firmware before the update) through the boot firmware. The parameter settings before the update are sent to the BMC by the boot firmware before the update.

[0055] The server can send a request to the BMC using the updated boot firmware when it first enters the boot process after the boot firmware has been updated. In response to receiving the server's request for the parameter settings (such as the first parameter settings or the second parameter settings) before the boot firmware (such as the first boot firmware or the second boot firmware) is updated, the BMC sends the parameter settings to the boot firmware.

[0056] Scenario 2: While BMC passes its own retained BIOS parameter settings from before the update to the updated BIOS image, the BIOS also passes its own version information (i.e., the updated version information) to the BMC firmware.

[0057] In this embodiment, when the server completes the update of the boot firmware (such as the first boot firmware or the second boot firmware) and the server enters the boot process, it will automatically send information (such as the first information or the second information) used to indicate the completion of the boot firmware update to the BMC through the boot firmware, so as to inform the BMC server in a timely manner that the boot firmware has been updated.

[0058] After receiving the first or second information, BMC can display the first or second information to the user through its own service page (such as BMC web).

[0059] As one possible implementation, the first information may include at least the version information of the first boot firmware (i.e., the updated BIOS version), and the second information may include at least the version information of the second boot firmware. By displaying the updated BIOS version, the BMC can promptly inform the user that the relevant boot firmware update is complete, and at the same time, facilitate the user to confirm whether the BIOS version is correct.

[0060] Implementation Method 2

[0061] This implementation describes an example of initiating automatic firmware switching during the update process.

[0062] In this embodiment, to achieve automatic updates to the server's primary and backup BIOS, after the server completes the data interaction with the BMC as described in Embodiment 1 (such as the transfer of parameter settings before the firmware update) through the updated boot firmware, it will automatically send a notification message to inform the BMC that the data interaction is complete. This allows the BMC to promptly control the server to automatically switch boot firmware. For example, the BMC can control the server to shut down and switch the server's BIOS Serial Peripheral Interface (SPI) signal (also known as the chip select signal) from the primary BIOS to the backup BIOS. After completing the automatic update of the server's primary and backup BIOS, the BMC can control the server to switch the boot firmware back to the first boot firmware, thereby completing the automatic update operation of the primary and backup BIOS in the server.

[0063] In practical implementation, the server can send a first notification message to the BMC through the first boot firmware to indicate the completion of data interaction between the first boot firmware and the BMC, so that the BMC controls the server to shut down and switches the boot firmware to be started in the server from the first boot firmware to the second boot firmware, so as to automatically retain and update the configuration of the second boot firmware.

[0064] After the data interaction between the second boot firmware and the BMC is completed, the server can send a second notification message to the BMC through the second boot firmware to indicate that the data interaction between the second boot firmware and the BMC is complete, so that the BMC controls the server to shut down and switches the boot firmware to be booted in the server from the second boot firmware back to the first boot firmware, thereby completing the automatic update operation of the primary and backup BIOS.

[0065] Implementation Method 3

[0066] This embodiment describes an example of a boot firmware version update. In this embodiment, the boot firmware (such as a first boot firmware or a second boot firmware) can be managed out of band or in band.

[0067] Taking in-band management as an example, when the server is in a state of no running business (i.e. no business to be processed), the server can update itself in the in-band management mode according to the startup firmware update file, and after the version update is completed, the server is restarted to make the update take effect.

[0068] Considering that it is difficult to update the boot firmware version through in-band management when the boot firmware malfunctions, the boot firmware version can also be updated through out-of-band management via BMC according to the boot firmware update file when the server is powered off. After the boot firmware version update is completed, the server is started through BMC to make the update effective.

[0069] Based on the above implementation method, this application automatically performs update operations through the primary and backup BIOS in the BMC control server. The BIOS and BMC exchange parameter settings with each other through interactive protocols such as Intelligent Platform Management Interface (IPMI) to ensure that the parameter settings of the updated BIOS are consistent with those of the BIOS before the update. This improves the stability and reliability of the data center server, minimizes the impact of firmware update on the services of the server before the update, realizes the server's autonomous update and maintenance function, and can meet the actual business needs of the customer's data center.

[0070] The following is combined Figure 2 The diagram shown illustrates the implementation process of automatic firmware updates, and explains the above implementation method.

[0071] In this embodiment, regardless of whether the server is currently powered on or powered off, the user can upload the BIOS image (i.e., the boot firmware update file) that needs to be updated through the BMC.

[0072] When the server is in a powered-off state, BMC updates without retaining the configuration.

[0073] After the BMC updates the main BIOS image, the BMC control server enters the power-on startup state. During the startup process, the BMC and BIOS use an interaction protocol to pass the original BIOS parameter settings stored in the BMC to the BIOS. The BIOS restores the updated BIOS parameter settings based on the obtained parameter settings. After restoring the parameter settings, the BIOS passes the BIOS version information to the BMC. The BMC then records the BIOS image version for this startup and displays it on the relevant interface so that the user can confirm that the main BIOS image has been updated.

[0074] After transmitting the BIOS version information (i.e., the BMC completes the primary BIOS image update), the BIOS notifies the BMC to automatically shut down the server. The BMC then switches the primary BIOS to the backup BIOS image (at this point, the primary BIOS refers to the BIOS currently awaiting boot from the server) and updates the backup BIOS image using the same update process as the primary BIOS. Once both the primary and backup BIOS images are updated and booted once (i.e., the update takes effect), the BMC shuts down the server, switches the server to the primary BIOS image, and waits for boot. It's understandable that "booting" and "waiting to boot" refer to the two operating states of the boot firmware selected by the server's chip select signal (i.e., the boot firmware used by the server). Boot firmware not selected by the server's chip select signal (i.e., the boot firmware not used by the server) does not have these two operating states.

[0075] Based on the above embodiments, this application controls the automatic update of the primary and backup BIOS images via the BMC, transferring the BIOS parameter settings retained by the BMC to the updated BIOS, and obtaining the BIOS version information transmitted by the BIOS to promptly confirm the completion of the update. This allows the BIOS parameter settings from before the update to be restored one by one after the update, ensuring the security and stability of the server, and the entire firmware update process requires no manual intervention. It is understood that the aforementioned primary and backup BIOS update process based on data interaction between the BMC and the primary and backup BIOS can also be migrated to updating the primary and backup BMCs. In this case, the BIOS can retain the parameter settings of the primary and backup BMCs before the update, and thus, through data interaction between the updated primary and backup BMCs and the BIOS, the parameter settings of the primary and backup BMCs can be automatically restored to the parameter settings before the update.

[0076] The firmware update method provided in this application is not limited by architecture or platform and can be widely applied to server products of various architectures, effectively reducing the workload of data center server maintenance personnel and the operation and maintenance costs.

[0077] Secondly, see Figure 3 The diagram shown is an implementation flowchart of another firmware update startup method provided in this application embodiment. This firmware update startup method is applied to a baseboard management controller and may include the following steps:

[0078] Step S201: In response to receiving a first request from the server for obtaining the first parameter settings before the first boot firmware update, the first parameter settings are sent to the first boot firmware so that the server adjusts the parameter settings of the first boot firmware according to the first parameter settings.

[0079] Wherein, the first boot firmware is the boot firmware started in the server, the first parameter setting is sent to the baseboard management controller by the first boot firmware before the update, and the first acquisition request is issued by the server after the update of the first boot firmware is completed and the server enters the boot process.

[0080] As one possible implementation, the method further includes:

[0081] The server receives first information from the first boot firmware. The first information is sent by the server after it has completed updating the first boot firmware and the server has entered the boot process. The first information is used to indicate that the update of the first boot firmware is complete.

[0082] Display the first information.

[0083] As one possible implementation, the method further includes:

[0084] In response to receiving a first notification message from the first boot firmware, the server is controlled to shut down, and the boot firmware to be started in the server is switched from the first boot firmware to the second boot firmware. The first notification message is used to indicate that the data interaction between the first boot firmware and the baseboard management controller is completed.

[0085] In response to receiving a second request from the server for the second parameter settings before the second boot firmware update, the server sends the second parameter settings to the second boot firmware so that the server adjusts the parameter settings of the second boot firmware according to the second parameter settings;

[0086] The second parameter setting is sent to the baseboard management controller by the second boot firmware before the update, and the second acquisition request is issued by the server after the update of the second boot firmware is completed and the server enters the boot process.

[0087] As one possible implementation, the method further includes:

[0088] The server receives second information from the second boot firmware. The second information is sent by the server after it has completed updating the second boot firmware and the server has entered the boot process. The second information is used to indicate that the update of the second boot firmware is complete.

[0089] Display the second information.

[0090] As one possible implementation, the method further includes:

[0091] In response to receiving a second notification message from the second boot firmware, the server is powered off, and the boot firmware to be started in the server is switched from the second boot firmware to the first boot firmware. The second notification message is used to indicate that the data interaction between the second boot firmware and the baseboard management controller is completed.

[0092] As one possible implementation, the first boot firmware in the server is updated through the following steps:

[0093] Send the startup firmware update file to the server;

[0094] When the server is powered off, the first boot firmware is updated in out-of-band management according to the boot firmware update file;

[0095] After completing the update of the first boot firmware, the server is started.

[0096] As can be seen from the above technical solution, after the server's boot firmware is updated, the parameter settings before the boot firmware update can be transferred to the updated boot firmware through data interaction between the boot firmware and the baseboard management controller. This allows the updated boot firmware to restore the parameter settings, thereby achieving automatic retention and configuration updates of the boot firmware. This reduces manual intervention during the boot firmware update process, enabling the updated boot firmware to support the services provided before the boot firmware update, thus improving the stability and reliability of the server.

[0097] Thirdly, embodiments of this application provide a firmware update initiation device, applied to a server, such as... Figure 4 As shown, the device includes:

[0098] The first update module 11 is used to update the first boot firmware in the server according to the boot firmware update file, wherein the first boot firmware is the boot firmware that is started in the server.

[0099] The first acquisition module 12 is used to acquire, when the update of the first boot firmware is completed and the server enters the boot process, the first parameter settings before the update of the first boot firmware are obtained from the baseboard management controller associated with the server through the first boot firmware. The first parameter settings are sent to the baseboard management controller by the first boot firmware before the update.

[0100] The first setting module 13 is used to adjust the parameter settings of the first boot firmware according to the first parameter settings.

[0101] Optionally, the device further includes:

[0102] The first information sending module is used to send first information to the baseboard management controller through the first boot firmware when the update of the first boot firmware is completed and the server enters the boot process, so that the baseboard management controller displays the first information, the first information being used to indicate that the update of the first boot firmware is complete.

[0103] Optionally, the first information includes at least: the version information of the first boot firmware.

[0104] Optionally, the device further includes:

[0105] The first notification information sending module is used to send a first notification information to the baseboard management controller through the first boot firmware, so that the baseboard management controller controls the server to shut down and switches the boot firmware to be started in the server from the first boot firmware to the second boot firmware. The first notification information is used to indicate that the data interaction between the first boot firmware and the baseboard management controller is completed.

[0106] The second update module is used to update the second boot firmware according to the boot firmware update file;

[0107] The second acquisition module is used to acquire, when the update of the second boot firmware is completed and the server enters the boot process, the second parameter settings before the update of the second boot firmware from the baseboard management controller through the second boot firmware. The second parameter settings are sent to the baseboard management controller by the second boot firmware before the update.

[0108] The second setting module is used to adjust the parameter settings of the second boot firmware according to the second parameter settings.

[0109] Optionally, the device further includes:

[0110] The second information sending module is used to send second information to the baseboard management controller through the second boot firmware when the update of the second boot firmware is completed and the server enters the boot process, so that the baseboard management controller displays the second information, which is used to indicate that the update of the second boot firmware is complete.

[0111] Optionally, the second information includes at least the version information of the second boot firmware.

[0112] Optionally, the device further includes:

[0113] The second notification information sending module is used to send a second notification information to the baseboard management controller through the second boot firmware, so that the baseboard management controller controls the server to shut down and switches the boot firmware to be started in the server from the second boot firmware to the first boot firmware. The second notification information is used to indicate that the data interaction between the second boot firmware and the baseboard management controller is completed.

[0114] Optionally, the first update module 11 includes:

[0115] The first update submodule is used to update the first boot firmware in an out-of-band management manner through the baseboard management controller according to the boot firmware update file when the server is in a powered-off state.

[0116] A startup module is used to start the server via the baseboard management controller after the update of the first startup firmware is completed.

[0117] Optionally, the first update module 11 includes:

[0118] The second update submodule is used to update the first startup firmware in an in-band management manner according to the startup firmware update file when the server is in a state of no running services.

[0119] The restart module is used to restart the server after the update of the first boot firmware is completed.

[0120] As can be seen from the above technical solution, after the server's boot firmware is updated, the parameter settings before the boot firmware update can be transferred to the updated boot firmware through data interaction between the boot firmware and the baseboard management controller. This allows the updated boot firmware to restore the parameter settings, thereby achieving automatic retention and configuration updates of the boot firmware. This reduces manual intervention during the boot firmware update process, enabling the updated boot firmware to support the services provided before the boot firmware update, thus improving the stability and reliability of the server.

[0121] Fourthly, embodiments of this application provide another firmware update device for use in a baseboard management controller, such as... Figure 5 As shown, the device includes:

[0122] The first sending module 21 is configured to, in response to receiving a first request from the server for obtaining the first parameter settings before the first boot firmware update, send the first parameter settings to the first boot firmware so that the server adjusts the parameter settings of the first boot firmware according to the first parameter settings.

[0123] Wherein, the first boot firmware is the boot firmware started in the server, the first parameter setting is sent to the baseboard management controller by the first boot firmware before the update, and the first acquisition request is issued by the server after the update of the first boot firmware is completed and the server enters the boot process.

[0124] Optionally, the device further includes:

[0125] The first receiving module is used to receive first information from the first boot firmware. The first information is sent by the server when it has completed updating the first boot firmware and the server has entered the boot process. The first information is used to indicate that the update of the first boot firmware is complete.

[0126] The first display module is used to display the first information.

[0127] Optionally, the device further includes:

[0128] The first control module is used to control the server to shut down in response to receiving a first notification information from the first boot firmware, and to switch the boot firmware to be started in the server from the first boot firmware to the second boot firmware. The first notification information is used to indicate that the data interaction between the first boot firmware and the baseboard management controller is completed.

[0129] The second sending module is configured to, in response to receiving a second request from the server for the second parameter settings prior to the update of the second boot firmware, send the second parameter settings to the second boot firmware so that the server adjusts the parameter settings of the second boot firmware according to the second parameter settings;

[0130] The second parameter setting is sent to the baseboard management controller by the second boot firmware before the update, and the second acquisition request is issued by the server after the update of the second boot firmware is completed and the server enters the boot process.

[0131] Optionally, the device further includes:

[0132] The second receiving module is used to receive second information from the second boot firmware. The second information is sent by the server after it has completed updating the second boot firmware and the server has entered the boot process. The second information is used to indicate that the update of the second boot firmware is complete.

[0133] The second display module is used to display the second information.

[0134] Optionally, the device further includes:

[0135] The second control module is used to control the server to shut down in response to receiving a second notification message from the second boot firmware, and to switch the boot firmware to be started in the server from the second boot firmware to the first boot firmware. The second notification message is used to indicate that the data interaction between the second boot firmware and the baseboard management controller is completed.

[0136] Optionally, the device further includes:

[0137] The third sending module is used to send the startup firmware update file to the server;

[0138] The firmware update module is used to update the first boot firmware in an out-of-band management manner according to the boot firmware update file when the server is in a powered-off state.

[0139] The third control module is used to start the server after the update of the first boot firmware is completed.

[0140] As can be seen from the above technical solution, after the server's boot firmware is updated, the parameter settings before the boot firmware update can be transferred to the updated boot firmware through data interaction between the boot firmware and the baseboard management controller. This allows the updated boot firmware to restore the parameter settings, thereby achieving automatic retention and configuration updates of the boot firmware. This reduces manual intervention during the boot firmware update process, enabling the updated boot firmware to support the services provided before the boot firmware update, thus improving the stability and reliability of the server.

[0141] It should be noted that the device embodiments are similar to the method embodiments, so the description is relatively simple. For relevant details, please refer to the method embodiments.

[0142] This application also provides an electronic device, which is described in reference to... Figure 6 , Figure 6 This is a schematic diagram of the electronic device proposed in an embodiment of this application. Figure 6 As shown, the electronic device 100 includes a memory 110 and a processor 120. The memory 110 and the processor 120 are connected via a bus for communication. The memory 110 stores a computer program that can run on the processor 120 to implement the steps in the firmware update startup method disclosed in the embodiments of this application.

[0143] This application also provides a computer-readable storage medium, see [link to relevant documentation]. Figure 7 , Figure 7 This is a schematic diagram of a computer-readable storage medium proposed in an embodiment of this application. Figure 7As shown, a computer-readable storage medium 200 stores a computer program / instructions 210, which, when executed by a processor, implements the steps in the firmware update startup method disclosed in the embodiments of this application.

[0144] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps in the firmware update startup method disclosed in this application.

[0145] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0146] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0147] This application describes embodiments of methods, systems, devices, storage media, and program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0148] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0150] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.

[0151] Finally, 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 terminal device 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 terminal device. 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 terminal device that includes said element.

[0152] The above provides a detailed description of a firmware update method, apparatus, device, and medium for initiating an update. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for initiating a firmware update, characterized in that, Applied to a server, the method includes: Update the first boot firmware in the server according to the boot firmware update file. The first boot firmware is the boot firmware that is started in the server. When the update of the first boot firmware is completed and the server enters the boot process, the first parameter settings before the update are obtained from the baseboard management controller (BMC) associated with the server through the first boot firmware. This includes: during the server boot process, the server's basic input / output system (BIOS) and the BMC interact with each other to enable the BMC to pass the BIOS parameter settings before the update, which are retained in the BMC image, to the updated BIOS image. The first parameter settings are sent to the baseboard management controller by the first boot firmware before the update. Adjusting the parameter settings of the first boot firmware according to the first parameter settings includes: restoring the parameter settings of the first boot firmware to the first parameter settings; The firmware update initiation method further includes: The first boot firmware sends a first notification message to the baseboard management controller so that the baseboard management controller controls the server to shut down and switches the boot firmware to be started in the server from the first boot firmware to the second boot firmware. The first notification message is used to indicate that the data interaction between the first boot firmware and the baseboard management controller is completed. Update the second boot firmware according to the boot firmware update file; When the update of the second boot firmware is completed and the server enters the boot process, the second parameter settings before the update of the second boot firmware are obtained from the baseboard management controller through the second boot firmware. The second parameter settings are sent to the baseboard management controller by the second boot firmware before the update. Adjust the parameter settings of the second boot firmware according to the second parameter settings; The first boot firmware in the server is updated through the following steps: When the server is powered off, the first boot firmware is updated in out-of-band management mode via the baseboard management controller according to the boot firmware update file. After the update of the first boot firmware is completed, the server is started through the baseboard management controller; The first boot firmware in the server is updated through the following steps, including: When the server is in a state of no running services, the first startup firmware is updated in an in-band management manner according to the startup firmware update file. After completing the update of the first boot firmware, the server is restarted.

2. The method according to claim 1, characterized in that, The method further includes: When the update of the first boot firmware is completed and the server enters the boot process, the first information is sent to the baseboard management controller through the first boot firmware so that the baseboard management controller displays the first information, which is used to indicate that the update of the first boot firmware is complete.

3. The method according to claim 2, characterized in that, The first information includes at least the version information of the first boot firmware.

4. The method according to claim 1, characterized in that, The method further includes: Upon completion of the second boot firmware update and the server entering the boot process, the second boot firmware sends second information to the baseboard management controller, causing the baseboard management controller to display the second information, which indicates that the second boot firmware update is complete.

5. The method according to claim 4, characterized in that, The second information includes at least the version information of the second boot firmware.

6. The method according to claim 1, characterized in that, The method further includes: The second boot firmware sends a second notification message to the baseboard management controller, so that the baseboard management controller controls the server to shut down and switches the boot firmware to be started in the server from the second boot firmware to the first boot firmware. The second notification message is used to indicate that the data interaction between the second boot firmware and the baseboard management controller is completed.

7. A method for initiating a firmware update, characterized in that, Applied to a baseboard management controller, the method includes: In response to receiving a first request from the server for obtaining the first parameter settings before the first boot firmware update, sending the first parameter settings to the first boot firmware includes: passing the BIOS parameter settings before the update retained in the BMC image to the updated BIOS image, so that the server adjusts the parameter settings of the first boot firmware according to the first parameter settings, wherein adjusting the parameter settings of the first boot firmware means: restoring the parameter settings of the first boot firmware to the first parameter settings. Wherein, the first boot firmware is the boot firmware that is started in the server, the first parameter setting is sent to the baseboard management controller by the first boot firmware before the update, and the first acquisition request is issued by the server after the update of the first boot firmware is completed and the server enters the boot process. The firmware update initiation method further includes: In response to receiving a first notification message from the first boot firmware, the server is controlled to shut down, and the boot firmware to be started in the server is switched from the first boot firmware to the second boot firmware. The first notification message is used to indicate that the data interaction between the first boot firmware and the baseboard management controller is completed. In response to receiving a second request from the server for the second parameter settings before the second boot firmware update, the server sends the second parameter settings to the second boot firmware so that the server adjusts the parameter settings of the second boot firmware according to the second parameter settings; The second parameter setting is sent to the baseboard management controller by the second boot firmware before the update, and the second acquisition request is issued by the server after the update of the second boot firmware is completed and the server enters the boot process. The first boot firmware in the server is updated through the following steps: Send the startup firmware update file to the server; When the server is powered off, the first boot firmware is updated in out-of-band management according to the boot firmware update file; After completing the update of the first boot firmware, the server is started.

8. The method according to claim 7, characterized in that, The method further includes: The server receives first information from the first boot firmware. The first information is sent by the server after it has completed updating the first boot firmware and the server has entered the boot process. The first information is used to indicate that the update of the first boot firmware is complete. Display the first information.

9. The method according to claim 7, characterized in that, The method further includes: The server receives second information from the second boot firmware. The second information is sent by the server after it has completed updating the second boot firmware and the server has entered the boot process. The second information is used to indicate that the update of the second boot firmware is complete. Display the second information.

10. The method according to claim 7, characterized in that, The method further includes: In response to receiving a second notification message from the second boot firmware, the server is powered off, and the boot firmware to be started in the server is switched from the second boot firmware to the first boot firmware. The second notification message is used to indicate that the data interaction between the second boot firmware and the baseboard management controller is completed.

11. A firmware update device, characterized in that, Applied to a server, the device includes: The first update module is used to update the first boot firmware in the server according to the boot firmware update file, wherein the first boot firmware is the boot firmware that is started in the server. The first acquisition module is used to acquire, when the update of the first boot firmware is completed and the server enters the boot process, the first parameter settings before the update of the first boot firmware are obtained from the baseboard management controller (BMC) associated with the server through the first boot firmware. This includes: during the server boot process, the server's basic input / output system (BIOS) and the BMC interact with each other to enable the BMC to pass the BIOS parameter settings before the update, which are retained in the BMC image, to the updated BIOS image. The first parameter settings are sent to the baseboard management controller by the first boot firmware before the update. The first setting module is used to adjust the parameter settings of the first boot firmware according to the first parameter settings, including: restoring the parameter settings of the first boot firmware to the first parameter settings; The firmware update device is further configured to: The first boot firmware sends a first notification message to the baseboard management controller so that the baseboard management controller controls the server to shut down and switches the boot firmware to be started in the server from the first boot firmware to the second boot firmware. The first notification message is used to indicate that the data interaction between the first boot firmware and the baseboard management controller is completed. Update the second boot firmware according to the boot firmware update file; When the update of the second boot firmware is completed and the server enters the boot process, the second parameter settings before the update of the second boot firmware are obtained from the baseboard management controller through the second boot firmware. The second parameter settings are sent to the baseboard management controller by the second boot firmware before the update. Adjust the parameter settings of the second boot firmware according to the second parameter settings; The first boot firmware in the server is updated through the following steps: When the server is powered off, the first boot firmware is updated in out-of-band management mode via the baseboard management controller according to the boot firmware update file. After the update of the first boot firmware is completed, the server is started through the baseboard management controller; The first boot firmware in the server is updated through the following steps, including: When the server is in a state of no running services, the first startup firmware is updated in an in-band management manner according to the startup firmware update file. After completing the update of the first boot firmware, the server is restarted.

12. A firmware update device, characterized in that, The device, applied to a substrate management controller, includes: The first sending module is configured to respond to receiving a first request from the server for obtaining the first parameter settings before the first boot firmware update, and send the first parameter settings to the first boot firmware, including: passing the BIOS parameter settings before the update retained in the BMC image to the updated BIOS image, so that the server adjusts the parameter settings of the first boot firmware according to the first parameter settings, wherein adjusting the parameter settings of the first boot firmware means: restoring the parameter settings of the first boot firmware to the first parameter settings. Wherein, the first boot firmware is the boot firmware that is started in the server, the first parameter setting is sent to the baseboard management controller by the first boot firmware before the update, and the first acquisition request is issued by the server after the update of the first boot firmware is completed and the server enters the boot process. The firmware update device is further configured to: In response to receiving a first notification message from the first boot firmware, the server is controlled to shut down, and the boot firmware to be started in the server is switched from the first boot firmware to the second boot firmware. The first notification message is used to indicate that the data interaction between the first boot firmware and the baseboard management controller is completed. In response to receiving a second request from the server for the second parameter settings before the second boot firmware update, the server sends the second parameter settings to the second boot firmware so that the server adjusts the parameter settings of the second boot firmware according to the second parameter settings; The second parameter setting is sent to the baseboard management controller by the second boot firmware before the update, and the second acquisition request is issued by the server after the update of the second boot firmware is completed and the server enters the boot process. The first boot firmware in the server is updated through the following steps: Send the startup firmware update file to the server; When the server is powered off, the first boot firmware is updated in out-of-band management according to the boot firmware update file; After completing the update of the first boot firmware, the server is started.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the boot firmware update method as described in any one of claims 1 to 6 or to implement the boot firmware update method as described in any one of claims 7 to 10.

14. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instruction is executed by the processor, it implements the boot firmware update method as described in any one of claims 1 to 6 or the boot firmware update method as described in any one of claims 7 to 10.

Citation Information

Patent Citations

  • BIOS firmware refreshing test method and device, electronic equipment and storage medium

    CN113220332A

  • Server starting method and device, equipment and storage medium

    CN114428963A