CN116610349A - Method, device, equipment and medium for starting firmware update - Google Patents
Method, device, equipment and medium for starting firmware update Download PDFInfo
- Publication number
- CN116610349A CN116610349A CN202310449611.3A CN202310449611A CN116610349A CN 116610349 A CN116610349 A CN 116610349A CN 202310449611 A CN202310449611 A CN 202310449611A CN 116610349 A CN116610349 A CN 116610349A
- Authority
- CN
- China
- Prior art keywords
- firmware
- server
- update
- boot
- startup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/656—Updates while running
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本申请实施例公开了一种启动固件更新方法、装置及设备和介质,涉及服务器技术领域,可以实现启动固件的自动保留配置更新。所述启动固件更新方法包括:根据启动固件更新文件,更新所述服务器中的第一启动固件,所述第一启动固件为所述服务器中启动的启动固件;在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下,通过所述第一启动固件从所述服务器关联的基板管理控制器中,获取所述第一启动固件更新前的第一参数设置,所述第一参数设置是所述第一启动固件在更新前发送给所述基板管理控制器的;根据所述第一参数设置,调整所述第一启动固件的参数设置。
The embodiment of the present application discloses a boot firmware update method, device, device and medium, which relate to the technical field of servers and can realize automatic retention configuration update of boot firmware. The method for updating the startup firmware includes: updating the first startup firmware in the server according to the startup firmware update file, the first startup firmware is the startup firmware started in the server; update, and the server enters the startup process, obtain the first parameter setting before the update of the first startup firmware from the baseboard management controller associated with the server through the first startup firmware, the The first parameter setting is sent by the first boot firmware to the baseboard management controller before updating; according to the first parameter setting, the parameter setting of the first boot firmware is adjusted.
Description
技术领域technical field
本申请涉及服务器技术领域,特别是涉及一种启动固件更新方法、装置及设备和介质。The present application relates to the technical field of servers, in particular to a method, device, device and medium for starting firmware update.
背景技术Background technique
为维护数据中心的各种架构服务器稳定运行,常常需要更新服务器中的启动固件,以解决启动固件的已知问题。In order to maintain the stable operation of servers with various architectures in the data center, it is often necessary to update the boot firmware in the server to solve known problems of the boot firmware.
然而,对于启动固件设置参数被修改的部分机器,该部分机器在启动固件更新后,无法支持启动固件更新前的业务,需要人工介入重新调整启动固件设置参数。However, for some machines whose startup firmware setting parameters have been modified, after starting the firmware update, these machines cannot support the business before starting the firmware update, and manual intervention is required to readjust the startup firmware setting parameters.
发明内容Contents of the invention
本申请实施例的目的是提供一种启动固件更新方法、装置及设备和介质,可以实现启动固件的自动保留配置更新。The purpose of the embodiments of the present application is to provide a boot firmware update method, device, device and medium, which can realize automatic retention configuration update of boot firmware.
为解决上述技术问题,第一方面,本申请实施例提供一种启动固件更新,应用于服务器,所述方法包括:In order to solve the above technical problems, in the first aspect, the embodiment of the present application provides a startup firmware update, which is applied to a server, and the method includes:
根据启动固件更新文件,更新所述服务器中的第一启动固件,所述第一启动固件为所述服务器中启动的启动固件;According to the startup firmware update file, update the first startup firmware in the server, where the first startup firmware is the startup firmware started in the server;
在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下,通过所述第一启动固件从所述服务器关联的基板管理控制器中,获取所述第一启动固件更新前的第一参数设置,所述第一参数设置是所述第一启动固件在更新前发送给所述基板管理控制器的;When the update of the first startup firmware is completed and the server enters a startup process, acquire an update of the first startup firmware from a baseboard management controller associated with the server through the first startup firmware The first parameter setting before the update, the first parameter setting is sent to the baseboard management controller by the first boot firmware before updating;
根据所述第一参数设置,调整所述第一启动固件的参数设置。According to the first parameter setting, adjust the parameter setting of the first boot firmware.
第二方面,本申请实施例还提供了一种启动固件更新方法,应用于基板管理控制器,所述方法包括:In the second aspect, the embodiment of the present application also provides a method for starting a firmware update, which is applied to a baseboard management controller, and the method includes:
响应于接收到服务器针对第一启动固件更新前的第一参数设置的第一获取请求,将所述第一参数设置发送至所述第一启动固件,以使所述服务器根据所述第一参数设置,调整所述第一启动固件的参数设置;In response to receiving a first acquisition request from the server for the first parameter setting before the update of the first boot firmware, sending the first parameter setting to the first boot firmware, so that the server according to the first parameter Setting, adjusting parameter settings of the first boot firmware;
其中,所述第一启动固件为所述服务器中启动的启动固件,所述第一参数设置是所述第一启动固件在更新前发送给所述基板管理控制器的,所述第一获取请求是所述服务器在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下发出的。Wherein, the first startup firmware is the startup firmware started in the server, the first parameter setting is sent to the baseboard management controller by the first startup firmware before updating, and the first acquisition request It is sent by the server when the update of the first boot firmware is completed and the server enters the boot process.
第三方面,本申请实施例还提供了一种启动固件更新装置,应用于服务器,所述装置包括:In the third aspect, the embodiment of the present application also provides a device for starting a firmware update, which is applied to a server, and the device includes:
第一更新模块,用于根据启动固件更新文件,更新所述服务器中的第一启动固件,所述第一启动固件为所述服务器中启动的启动固件;The first update module is configured to update the first startup firmware in the server according to the startup firmware update file, where the first startup firmware is the startup firmware started in the server;
第一获取模块,用于在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下,通过所述第一启动固件从所述服务器关联的基板管理控制器中,获取所述第一启动固件更新前的第一参数设置,所述第一参数设置是所述第一启动固件在更新前发送给所述基板管理控制器的;A first acquiring module, configured to acquire, through the first boot firmware, from a baseboard management controller associated with the server when the update of the first boot firmware is completed and the server enters a boot process. The first parameter setting before the first boot firmware is updated, the first parameter setting is sent to the baseboard management controller by the first boot firmware before the update;
第一设置模块,用于根据所述第一参数设置,调整所述第一启动固件的参数设置。A first setting module, configured to adjust parameter settings of the first boot firmware according to the first parameter settings.
第四方面,本申请实施例还提供了一种启动固件更新装置,应用于基板管理控制器,所述装置包括:In a fourth aspect, the embodiment of the present application also provides a device for starting firmware update, which is applied to a baseboard management controller, and the device includes:
第一发送模块,用于响应于接收到服务器针对第一启动固件更新前的第一参数设置的第一获取请求,将所述第一参数设置发送至所述第一启动固件,以使所述服务器根据所述第一参数设置,调整所述第一启动固件的参数设置;The first sending module is configured to send the first parameter setting to the first startup firmware in response to receiving a first acquisition request from the server for the first parameter setting before the first startup firmware is updated, so that the The server adjusts the parameter setting of the first startup firmware according to the first parameter setting;
其中,所述第一启动固件为所述服务器中启动的启动固件,所述第一参数设置是所述第一启动固件在更新前发送给所述基板管理控制器的,所述第一获取请求是所述服务器在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下发出的。Wherein, the first startup firmware is the startup firmware started in the server, the first parameter setting is sent to the baseboard management controller by the first startup firmware before updating, and the first acquisition request It is sent by the server when the update of the first boot firmware is completed and the server enters the boot process.
第五方面,本申请实施例还提供了一种电子设备,包括存储器、处理器及存储在所述存储器上的计算机程序,所述处理器执行所述计算机程序以实现如第一方面或第二方面所述的启动固件更新方法。In the fifth aspect, the embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the first aspect or the second The method for initiating a firmware update described in the aspect.
第六方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序/指令,该计算机程序/指令被处理器执行时实现如第一方面或第二方面所述的启动固件更新方法。In the sixth aspect, the embodiment of the present application also provides a computer-readable storage medium, on which a computer program/instruction is stored, and when the computer program/instruction is executed by a processor, the computer program/instruction as described in the first aspect or the second aspect is implemented. Start the firmware update method.
第七方面,本申请实施例还提供了一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现如第一方面或第二方面所述的启动固件更新方法。In a seventh aspect, the embodiment of the present application further provides a computer program product, including a computer program/instruction, and when the computer program/instruction is executed by a processor, implements the method for starting a firmware update as described in the first aspect or the second aspect.
由上述技术方案可以看出,在服务器的启动固件完成更新后,通过该启动固件与基板管理控制器之间的数据交互,可以将该启动固件更新前的参数设置传递至更新后的启动固件,以供更新后的启动固件完成参数设置还原,从而实现了启动固件的自动保留配置更新,可以减少启动固件更新过程中的人工介入,使得更新后的启动固件能够支持启动固件更新前的业务,进而提高了服务器的稳定性及可靠性。It can be seen from the above technical solution that after the boot firmware of the server is updated, through the data interaction between the boot firmware and the baseboard management controller, the parameter settings before the boot firmware update can be transferred to the updated boot firmware, The updated boot firmware is used to complete the parameter setting restoration, thereby realizing the automatic retention configuration update of the boot firmware, which can reduce the manual intervention in the boot firmware update process, so that the updated boot firmware can support the business before the boot firmware update, and then Improved server stability and reliability.
附图说明Description of drawings
为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.
图1为本申请实施例提供的一种启动固件更新方法的实施流程图;FIG. 1 is an implementation flowchart of a method for starting a firmware update provided by an embodiment of the present application;
图2为本申请实施例提供的一种启动固件自动更新的实现过程的示意图;FIG. 2 is a schematic diagram of an implementation process for starting firmware automatic update provided by an embodiment of the present application;
图3为本申请实施例提供的另一种启动固件更新方法的实施流程图;FIG. 3 is an implementation flowchart of another method for starting a firmware update provided by an embodiment of the present application;
图4为本申请实施例提供的一种启动固件更新装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for starting a firmware update provided by an embodiment of the present application;
图5为本申请实施例提供的另一种启动固件更新装置的结构示意图;FIG. 5 is a schematic structural diagram of another device for starting a firmware update provided by an embodiment of the present application;
图6为本申请实施例提供的一种电子设备的示意图;FIG. 6 is a schematic diagram of an electronic device provided by an embodiment of the present application;
图7为本申请实施例提供的一种计算机可读存储介质的示意图。FIG. 7 is a schematic diagram of a computer-readable storage medium provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本申请保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of this application.
本申请的说明书和权利要求书及上述附图中的术语“包括”和“具有”以及他们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可包括没有列出的步骤或单元。The terms "comprising" and "having" in the specification and claims of the present application and the above drawings and any variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device comprising a series of steps or units is not limited to the listed steps or units, but may include unlisted steps or units.
随着互联网技术的发展,数据中心的服务器数量已达到百万级别,如何维护数据中心的各种架构服务器稳定运行成为各个服务器厂商必须考虑的问题。With the development of Internet technology, the number of servers in the data center has reached millions. How to maintain the stable operation of servers with various architectures in the data center has become a problem that every server manufacturer must consider.
为保障服务器的稳定运行,通常会基于基本输入输出系统(BIOS,Basic InputOutput System,又可称作BIOS固件、BIOS镜像、启动固件或启动管理固件)的主备设置方式设计服务器主板。当主BIOS和备BIOS中任意一者出现故障时,可以通过复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)控制启动固件进行自动切换,从而可以保障服务器的安全可靠性,且提高了服务器的使用寿命。In order to ensure the stable operation of the server, the mainboard of the server is usually designed based on the primary and secondary settings of the Basic Input Output System (BIOS, also known as BIOS firmware, BIOS image, boot firmware, or boot management firmware). When any one of the main BIOS and the backup BIOS fails, the boot firmware can be controlled by a complex programmable logic device (CPLD, Complex Programmable Logic Device) to automatically switch, thereby ensuring the safety and reliability of the server and improving the use of the server. life.
在各个服务器厂商的研发过程中,常常会通过更新启动固件以解决数据中心发现的启动固件的问题或者解决服务器芯片厂商发现的已知问题。但通过工具批量升级启动固件时,服务器当前未启动的备BIOS无法进行更新,且启动固件更新完毕后服务器不能及时启动,以致用户无法及时知晓启动固件是否已经更新完毕、以及及时进行更新版本确认,同时,有些客户针对部分机器进行了BIOS的关键设置参数的修改,但启动固件更新完毕后无法自动保持更新前的参数设置,以致服务器难以满足启动固件更新前的业务需求。In the research and development process of various server manufacturers, the boot firmware is often updated to solve the problems of the boot firmware found in the data center or to solve the known problems found by the server chip manufacturers. However, when the startup firmware is upgraded in batches through tools, the standby BIOS of the server that is not currently started cannot be updated, and the server cannot be started in time after the startup firmware is updated, so that users cannot know whether the startup firmware has been updated in time, and confirm the updated version in time. At the same time, some customers have modified the key BIOS setting parameters for some machines, but after the firmware update is completed, the parameter settings before the update cannot be automatically maintained, so that it is difficult for the server to meet the business needs before the firmware update.
针对上述相关技术中存在的问题,本申请提出了一种启动固件的自动保留配置更新方法,通过BMC控制主备BIOS更新,在主备BIOS更新完毕后即会触发服务器进行启动,使得BMC能够将其保留的主备BIOS更新前的参数设置对应传递给更新后的主备BIOS,且同时BMC能够获取主备BIOS更新各自传递的BIOS版本信息,进而确认主备BIOS更新已完成。In view of the problems existing in the above-mentioned related technologies, the application proposes a method for automatically retaining the configuration update of the startup firmware. The update of the main and standby BIOS is controlled by the BMC. After the update of the main and standby BIOS is completed, the server will be triggered to start, so that the BMC can update the The reserved parameter settings before the update of the active and standby BIOS are correspondingly transmitted to the updated active and standby BIOS, and at the same time, the BMC can obtain the BIOS version information transmitted by the active and standby BIOS updates, thereby confirming that the active and standby BIOS updates have been completed.
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的一种启动固件更新方法进行详细地说明。A method for starting a firmware update provided by an embodiment of the present application will be described in detail below through some embodiments and application scenarios with reference to the accompanying drawings.
第一方面,参见图1所示,为本申请实施例所提供的一种启动固件更新方法的实施流程图,该启动固件更新方法应用于服务器,该方法可以包括以下步骤:In the first aspect, see FIG. 1 , which is an implementation flowchart of a method for starting a firmware update provided in an embodiment of the present application. The method for starting a firmware update is applied to a server, and the method may include the following steps:
步骤S101:根据启动固件更新文件,更新所述服务器中的第一启动固件。Step S101: Update the first boot firmware in the server according to the boot firmware update file.
可以理解的是,第一启动固件为服务器触发启动固件更新时已启动的启动固件,如该第一启动固件可以为服务器的主BIOS,而在服务器触发启动固件更新前若因固件异常而进行了主备BIOS切换的情况下,该第一启动固件即为服务器所切换的备BIOS。It can be understood 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 main BIOS of the server. In the case of active/standby BIOS switching, the first boot firmware is the standby BIOS switched by the server.
其中,启动固件为一组固化到服务器主板上的一个存储芯片中的系统程序,它对于计算机系统正常初始化、启动和操作系统引导起着不可或缺的作用,是实现计算机系统的安全性、可靠性等关键功能的关键环节。Among them, the startup firmware is a group of system programs solidified into a memory chip on the mainboard of the server, which plays an indispensable role in the normal initialization, startup and operating system guidance of the computer system, and is the key to realizing the security and reliability of the computer system. A key link in key functions such as sex.
在具体实施时,当服务器需要更新启动固件时,可以预先获取(如预先通过BMC获取)相关的启动固件更新文件。在获取到启动固件更新文件之后,服务器可以继续进行业务处理,直至服务器的当前状态满足启动固件更新条件(如服务器关机或服务器没有运行业务),再根据该启动固件更新文件,通过带内管理方式或带外管理方式,对自身已启动的启动固件进行版本更新。In a specific implementation, when the server needs to update the boot firmware, it can obtain (eg, obtain in advance through the BMC) the relevant boot firmware update file in advance. After obtaining the startup firmware update file, the server can continue to perform business processing until the current state of the server meets the startup firmware update conditions (such as the server is shut down or the server is not running business), and then according to the startup firmware update file, through the in-band management method Or out-of-band management to update the version of the startup firmware that has been started by itself.
作为一种可能的实施方式,服务器在接收到启动固件更新文件之后,即可通知BMC对服务器进行断电操作,以使服务器及时进行启动固件更新。As a possible implementation manner, after the server receives the startup firmware update file, it can notify the BMC to perform a power-off operation on the server, so that the server can update the startup firmware in time.
步骤S102:在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下,通过所述第一启动固件从所述服务器关联的基板管理控制器中,获取所述第一启动固件更新前的第一参数设置。Step S102: When the update of the first boot firmware is completed and the server enters the boot process, obtain the first boot firmware from the baseboard management controller associated with the server through the first boot firmware. First parameter setting before starting the firmware update.
其中,第一参数设置是第一启动固件在更新前发送给基板管理控制器的。Wherein, the first parameter setting is sent to the baseboard management controller by the first boot firmware before updating.
在具体实施时,第一启动固件可以在每次自身的参数设置被人为修改后,将该人为修改后的参数设置发送至基板管理控制器进行保存,以便后续进行固件更新时,基于该基板管理控制器保留的参数设置进行参数设置还原。考虑到启动固件在完成更新之后,会在服务器进行开机启动时使启动固件的更新生效,故服务器可以在启动固件完成更新之后初次进入启动过程时,通过该更新生效的启动固件与BMC进行数据交互,可以避免因使用更新生效前的启动固件(如更新前存在异常的启动固件)而导致对更新前的参数设置获取失败的情况,从而提高启动固件更新过程的可靠性。In specific implementation, the first boot firmware can send the artificially modified parameter settings to the baseboard management controller for storage every time its own parameter settings are artificially modified, so that when the firmware is updated in the future, based on the baseboard management The parameter settings reserved by the controller are restored to the parameter settings. Considering that after the boot firmware is updated, the update of the boot firmware will take effect when the server is powered on, so when the server enters the boot process for the first time after the boot firmware is updated, the updated boot firmware can interact with the BMC for data , it can avoid the failure to obtain the parameter settings before the update due to the use of the boot firmware before the update takes effect (such as the abnormal boot firmware before the update), thereby improving the reliability of the boot firmware update process.
步骤S103:根据所述第一参数设置,调整所述第一启动固件的参数设置。Step S103: Adjust parameter settings of the first startup firmware according to the first parameter settings.
在具体实施时,启动固件在获取到更新前的参数设置后,即可将获取到的参数设置配置到相应的选型,从而将更新后的启动固件的参数设置自动还原至更新前,实现对启动固件更新前的业务支持。In specific implementation, after the startup firmware obtains the parameter settings before the update, it can configure the obtained parameter settings to the corresponding model selection, so that the parameter settings of the updated startup firmware are automatically restored to those before the update, realizing the Business support before starting the firmware update.
可以理解的是,若服务器以主备方式部署了至少两个启动固件,则服务器在通过上述步骤完成对第一启动固件的自动保留配置更新后,即可自动切换使用服务器上部署的其它启动固件(即第二启动固件),在完成固件切换后,即可重复上述对第一启动固件的自动保留配置更新步骤,以实现对服务器上部署的其它启动固件(如服务器触发启动固件更新时未启动的备BIOS)的自动更新。It can be understood that if the server deploys at least two boot firmwares in active and standby mode, the server can automatically switch to use other boot firmware deployed on the server after completing the automatic retention configuration update of the first boot firmware through the above steps (i.e. the second boot firmware), after completing the firmware switch, you can repeat the above-mentioned steps of automatically retaining the configuration update for the first boot firmware, so as to implement other boot firmware deployed on the server (if the server does not start when the server triggers the boot firmware update). Automatic update of the standby BIOS).
由上述技术方案可以看出,在服务器的启动固件完成更新后,通过该启动固件与基板管理控制器之间的数据交互,可以将该启动固件更新前的参数设置传递至更新后的启动固件,以供更新后的启动固件完成参数设置还原,从而实现了启动固件的自动保留配置更新,可以减少启动固件更新过程中的人工介入,使得更新后的启动固件能够支持启动固件更新前的业务,进而提高了服务器的稳定性及可靠性。It can be seen from the above technical solution that after the boot firmware of the server is updated, through the data interaction between the boot firmware and the baseboard management controller, the parameter settings before the boot firmware update can be transferred to the updated boot firmware, The updated boot firmware is used to complete the parameter setting restoration, thereby realizing the automatic retention configuration update of the boot firmware, which can reduce the manual intervention in the boot firmware update process, so that the updated boot firmware can support the business before the boot firmware update, and then Improved server stability and reliability.
实施方式一Implementation Mode 1
本实施方式描述了更新生效的启动固件与BMC之间的数据交互的示例。根据启动固件与BMC之间所交互的数据类型,可以分为以下两种情况。This embodiment describes an example of data interaction between the updated boot firmware and the BMC. According to the type of data exchanged between the boot firmware and the BMC, it can be divided into the following two cases.
情况一:启动过程中BIOS将和BMC通过交互接口进行数据交互,BMC将BMC镜像中保留的更新前的BIOS参数设置传递给更新后的BIOS镜像。Case 1: During the startup process, the BIOS will exchange data with the BMC through the interactive interface, and the BMC will transfer the pre-updated BIOS parameter settings retained in the BMC image to the updated BIOS image.
在该实施例中,服务器在完成对启动固件(如第一启动固件或第二启动固件)的更新,且服务器进入启动过程的情况下,通过该启动固件从该服务器关联的BMC(即存储有该启动固件更新前参数设置的BMC)中,获取该启动固件更新前的参数设置(如第一参数设置或第二参数设置),其中,该更新前的参数设置是该启动固件在更新前发送给该BMC的。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, the boot firmware is used to download the boot firmware from the BMC associated with the server (that is, store the In the BMC of the parameter setting before the startup firmware update), the parameter setting (such as the first parameter setting or the second parameter setting) before the startup firmware update is obtained, wherein, the parameter setting before the update is that the startup firmware sends before the update to the BMC.
服务器可以在启动固件完成更新之后初次进入启动过程时,通过该更新生效的启动固件向BMC发送获取请求。BMC响应于接收到服务器针对启动固件(如第一启动固件或第二启动)更新前的参数设置(如第一参数设置或第二参数设置)的获取请求(如第一获取请求或第二获取请求),将该参数设置发送至该启动固件。When the server enters the boot process for the first time after the boot firmware is updated, the updated boot firmware sends an acquisition request to the BMC. The BMC responds to receiving an acquisition request (such as the first acquisition request or the second acquisition request) from the server for the parameter settings (such as the first parameter settings or the second parameter settings) before the startup firmware (such as the first startup firmware or the second startup) is updated. request), send the parameter setting to the boot firmware.
情况二:BMC将自身保留的更新前的BIOS参数设置传递给更新后的BIOS镜像的同时,BIOS将自身的版本信息(即更新后的版本信息)传递给BMC固件。Situation 2: While the BMC transmits the pre-update BIOS parameter settings retained by itself to the updated BIOS image, the BIOS transmits its own version information (ie, the updated version information) to the BMC firmware.
在该实施例中,服务器在完成对启动固件(如第一启动固件或第二启动固件)的更新,且该服务器进入启动过程的情况下,将自动通过该启动固件将用于表征启动固件更新完成的信息(如第一信息或第二信息)发送至BMC,以及时告知BMC服务器该启动固件已更新完毕。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 use the boot firmware to represent the boot firmware update. The completed information (such as the first information or the second information) is sent to the BMC, so as to inform the BMC server that the boot firmware has been updated in time.
BMC在接收到该第一信息或第二信息后,即可通过自身的服务页面(如BMC web)向用户显示该第一信息或第二信息。After receiving the first information or the second information, the BMC can display the first information or the second information to the user through its own service page (such as BMC web).
作为一种可能的实施方式,该第一信息可以至少包括第一启动固件的版本信息(即更新后的BIOS版本),该第二信息可以至少包括第二启动固件的版本信息,BMC通过显示该更新后的BIOS版本,从而在及时告知用户相关启动固件更新完毕的同时,可以方便用户确认BIOS版本是否有误。As a possible implementation manner, the first information may at least include the version information of the first boot firmware (that is, the updated BIOS version), and the second information may at least include the version information of the second boot firmware, and the BMC displays the The updated BIOS version, so as to inform the user in time that the relevant startup firmware has been updated, and at the same time facilitate the user to confirm whether the BIOS version is wrong.
实施方式二Implementation mode two
本实施方式描述了更新过程中启动固件自动切换的示例。This embodiment describes an example of starting firmware automatic switching during an update process.
在该实施例中,为实现对服务器的主备BIOS的自动更新,服务器通过更新后的启动固件与BMC完成如实施方式一所述的数据交互(如固件更新前的参数设置传递)之后,将自动发送通知信息以告知BMC数据交互完成,以便BMC及时控制服务器自动切换启动固件,如BMC可以控制服务器关机,并将服务器的BIOS串行外设接口(SPI,Serial PeripheralInterface)信号(又可称作片选信号)从主BIOS切换至备BIOS。其中,在完成对服务器的主备BIOS的自动更新之后,BMC可以控制服务器将启动固件切换回第一启动固件,从而完成对服务器中主备BIOS的自动更新操作。In this embodiment, in order to realize the automatic update of the active and standby BIOS of the server, after the server completes the data interaction as described in Embodiment 1 (such as the parameter setting transmission before the firmware update) through the updated startup firmware and the BMC, the Automatically send notification information to inform the BMC that the data interaction is complete, so that the BMC can control the server to automatically switch the startup firmware in time, such as the BMC can control the server to shut down, and send the server's BIOS Serial Peripheral Interface (SPI, Serial Peripheral Interface) signal (also known as chip select signal) to switch from the main BIOS to the standby BIOS. Wherein, after completing the automatic updating of the active and standby BIOS of the server, 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 active and standby BIOS in the server.
在具体实施时,服务器可以通过第一启动固件向BMC发送用于表征第一启动固件与BMC之间的数据交互完成的第一通知信息,以使BMC控制服务器关机,并将服务器中待启动的启动固件由第一启动固件切换至第二启动固件,以便对该第二启动固件进行自动保留配置更新。During specific implementation, the server can send to the BMC through the first boot firmware the first notification information that is used to represent the completion of data interaction between the first boot firmware and the BMC, so that the BMC can control the shutdown of the server and switch the server to be started The boot firmware is switched from the first boot firmware to the second boot firmware, so as to update the second boot firmware automatically with a reserved configuration.
在第二启动固件与BMC之间的数据交互完成之后,服务器即可通过该第二启动固件向BMC发送用于表征第二启动固件与BMC之间的数据交互完成的第二通知信息,以使BMC控制服务器关机,并将该服务器中待启动的启动固件由第二启动固件切换回第一启动固件,从而完成主备BIOS的自动更新操作。After the data interaction between the second boot firmware and the BMC is completed, the server can send the second notification information used to represent the completion of the data interaction between the second boot firmware and the BMC to the BMC through the second boot firmware, so that The BMC controls the shutdown of the server, and switches the boot firmware to be started in the server from the second boot firmware back to the first boot firmware, thereby completing the automatic update operation of the active and standby BIOS.
实施方式三Implementation Mode Three
本实施方式描述了启动固件版本更新的示例。在该实施例中,启动固件(如第一启动固件或第二启动固件)可以通过带外管理方式或带内管理方式。This embodiment describes an example of starting firmware version update. In this embodiment, the boot firmware (such as the first boot firmware or the second boot firmware) can be managed through out-of-band or in-band management.
以带内管理方式为例,在服务器处于无运行业务状态(即没有所需处理的业务)的情况下,服务器可以根据启动固件更新文件,通过该启动的启动固件以带内管理方式对自身进行版本更新,并在完成版本更新之后,重启服务器以使更新生效。Taking the in-band management method as an example, when the server is in a non-running business state (that is, there is no business to be processed), the server can update the file according to the startup firmware, and perform in-band management on itself through the startup firmware. After updating the version, restart the server for the update to take effect.
考虑到当启动固件出现异常时,难以通过带内管理方式实现启动固件的版本更新,故也可以在服务器处于关机状态的情况下,根据启动固件更新文件,通过BMC以带外管理方式对启动固件进行版本更新,并在完成对启动固件的版本更新之后,通过BMC启动服务器以使更新生效。Considering that when the boot firmware is abnormal, it is difficult to update the version of the boot firmware through in-band management. Therefore, when the server is powered off, the boot firmware can be updated through the BMC through out-of-band management according to the boot firmware update file. Perform a version update, and after completing the version update of the boot firmware, start the server through the BMC to make the update take effect.
基于上述实施方式,本申请通过BMC控制服务器中的主备BIOS自动执行更新操作,BIOS和BMC之间通过智能平台管理接口(IPMI,Intelligent Platform ManagementInterface)等交互协议传递彼此的参数设置,以实现更新后的BIOS的参数设置与更新前的BIOS参数设置一致,提高了数据中心服务器的稳定性及可靠性,最大限度地降低了启动固件更新对更新前服务器业务的影响,实现了服务器的自主更新维护功能,能够满足客户数据中心的实际业务需求。Based on the foregoing embodiments, the present application automatically performs an update operation through the active and standby BIOS in the BMC control server, and the BIOS and the BMC pass each other's parameter settings through interactive protocols such as Intelligent Platform Management Interface (IPMI, Intelligent Platform Management Interface) to realize the update. The parameter setting of the BIOS after the update is consistent with the BIOS parameter setting before the update, which improves the stability and reliability of the server in the data center, minimizes the impact of starting the firmware update on the server business before the update, and realizes the independent update and maintenance of the server functions to meet the actual business needs of the customer's data center.
下面结合图2所示的启动固件自动更新的实现过程的示意图,对上述实施方式进行说明。The above implementation manner will be described below with reference to the schematic diagram of the implementation process of starting firmware automatic update shown in FIG. 2 .
在该实施例中,无论服务器当前处于开机状态还是关机状态,用户均可以通过BMC上传需要更新的BIOS镜像(即启动固件更新文件);In this embodiment, no matter the server is currently in the power-on state or in the power-off state, the user can upload the BIOS mirror image (that is, start the firmware update file) that needs to be updated through the BMC;
当服务器工作状态处于关机状态时,BMC以不保留配置方式进行更新;When the working status of the server is off, the BMC is updated in a way that does not retain the configuration;
当BMC更新完主BIOS镜像后,BMC控制服务器工作状态为上电启动,在启动过程中,BMC和BIOS通过交互协议将BMC中保留的原BIOS参数设置传递给BIOS,BIOS根据获取到的参数设置对更新后的BIOS参数设置进行还原,BIOS在完成参数设置还原后,将BIOS版本信息传递给BMC,BMC随后记录本次启动的BIOS镜像版本并在相关界面予以显示,以便用户确认本次主BIOS镜像已完成更新。After the BMC finishes updating the main BIOS image, the BMC controls the server’s working state to power on and start. During the startup process, the BMC and the BIOS pass the original BIOS parameter settings retained in the BMC to the BIOS through an interactive protocol. Restore the updated BIOS parameter settings. After the BIOS restores the parameter settings, it will pass the BIOS version information to the BMC, and the BMC will then record the BIOS image version of this startup and display it on the relevant interface, so that the user can confirm the main BIOS of this time. The mirror has been updated.
在传递完BIOS版本信息(即BMC完成主BIOS镜像更新)之后,BIOS通知BMC控制服务器自动关机,随后BMC将主BIOS切换至备份BIOS镜像上(此时主BIOS指服务器当前待启动的BIOS),并以上述主BIOS的更新过程对该备份BIOS镜像进行版本更新及BIOS参数配置,当主备BIOS镜像均更新完毕且启动一次(即更新生效)后,BMC控制服务器关机,将服务器切换至主BIOS镜像上并等待启动。可以理解的是,启动和待启动为服务器的片选信号所选择的启动固件(即服务器所使用的启动固件)所具有的两种运行状态,服务器的片选信号未选择的启动固件(即服务器未使用的启动固件)不具有上述两种运行状态。After transferring the BIOS version information (that is, the BMC completes the main BIOS image update), the BIOS notifies the BMC to control the server to automatically shut down, and then the BMC switches the main BIOS to the backup BIOS image (at this time, the main BIOS refers to the BIOS that the server is currently waiting to start). And use the update process of the above-mentioned main BIOS to update the version of the backup BIOS image and configure the BIOS parameters. When the main and standby BIOS images are updated and started once (that is, the update takes effect), the BMC controls the server to shut down and switches the server to the main BIOS image. and wait for it to start. It can be understood that startup and to-be-started are two operating states of the boot firmware (ie, the boot firmware used by the server) selected by the chip select signal of the server, and the boot firmware (ie, the server boot firmware) not selected by the chip select signal of the server Unused boot firmware) does not have the above two operating states.
基于上述实施例,本申请通过BMC控制主备BIOS镜像自动更新,将BMC保留的BIOS参数设置传递给更新后的BIOS,并获取BIOS传递的BIOS版本信息以及时确认此次更新已完成,从而能够将更新前的BIOS参数设置在更新后一一进行还原,保障了服务器的安全稳定,且整个固件更新过程无需人为介入。可以理解的是,上述基于BMC与主备BIOS之间的数据交互的主备BIOS更新过程也可以迁移至对主备BMC的更新,此时可以由BIOS保留主备BMC更新前的参数设置,从而可以通过更新后的主备BMC与BIOS之间的数据交互,将该主备BMC的参数设置自动还原至更新前的参数设置。Based on the foregoing embodiments, the application controls the automatic update of the main and backup BIOS images through the BMC, passes the BIOS parameter settings retained by the BMC to the updated BIOS, and obtains the BIOS version information passed by the BIOS to confirm that the update has been completed in time, so that it can The BIOS parameter settings before the update are restored one by one after the update, which ensures the security and stability of the server, and the entire firmware update process does not require human intervention. It can be understood that the above-mentioned master-standby BIOS update process based on the data interaction between the BMC and the master-standby BIOS can also be migrated to the update of the master-standby BMC. At this time, the parameter settings before the master-standby BMC update can be retained by the BIOS, thereby Through data interaction between the updated active and standby BMCs and the BIOS, the parameter settings of the active and standby BMCs can be automatically restored to the parameter settings before the update.
本申请提供的启动固件更新方法不受架构及平台限制,可广泛应用于各个架构服务器产品中,能够有效降低数据中心服务器的运维人员工作量及运营维护成本。The startup firmware update method provided by this application is not limited by architecture and platform, and can be widely applied to server products of various architectures, and can effectively reduce the workload and operation and maintenance costs of operation and maintenance personnel of data center servers.
第二方面,参见图3所示,为本申请实施例所提供的另一种启动固件更新方法的实施流程图,该启动固件更新方法应用于基板管理控制器,该方法可以包括以下步骤:In the second aspect, see FIG. 3 , which is an implementation flowchart of another method for starting a firmware update provided by an embodiment of the present application. The method for starting a firmware update is applied to a baseboard management controller, and the method may include the following steps:
步骤S201:响应于接收到服务器针对第一启动固件更新前的第一参数设置的第一获取请求,将所述第一参数设置发送至所述第一启动固件,以使所述服务器根据所述第一参数设置,调整所述第一启动固件的参数设置;Step S201: In response to receiving the first acquisition request from the server for the first parameter setting before the update of the first boot firmware, send the first parameter setting to the first boot firmware, so that the server according to the First parameter setting, adjusting the parameter setting of the first boot firmware;
其中,所述第一启动固件为所述服务器中启动的启动固件,所述第一参数设置是所述第一启动固件在更新前发送给所述基板管理控制器的,所述第一获取请求是所述服务器在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下发出的。Wherein, the first startup firmware is the startup firmware started in the server, the first parameter setting is sent to the baseboard management controller by the first startup firmware before updating, and the first acquisition request It is sent by the server when the update of the first boot firmware is completed and the server enters the boot process.
作为一种可能的实施方式,所述方法还包括:As a possible implementation, the method also includes:
接收来自于所述第一启动固件的第一信息,所述第一信息是所述服务器在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下发出的,所述第一信息用于表征所述第一启动固件更新完成;receiving first information from the first boot firmware, the first information is sent by the server when the update of the first boot firmware is completed and the server enters a boot process, the The first information is used to represent the completion of the first startup firmware update;
显示所述第一信息。The first information is displayed.
作为一种可能的实施方式,所述方法还包括:As a possible implementation, the method also includes:
响应于接收到来自于所述第一启动固件的第一通知信息,控制所述服务器关机,并将所述服务器中待启动的启动固件由所述第一启动固件切换至第二启动固件,所述第一通知信息用于表征所述第一启动固件与所述基板管理控制器之间的数据交互完成;In response to receiving the first notification information from the first boot firmware, controlling the server to shut down, and switching the boot firmware to be started in the server from the first boot firmware to the second boot firmware, the The first notification information is used to represent the completion of data interaction between the first boot firmware and the baseboard management controller;
响应于接收到所述服务器针对所述第二启动固件更新前的第二参数设置的第二获取请求,将所述第二参数设置发送至所述第二启动固件,以使所述服务器根据所述第二参数设置,调整所述第二启动固件的参数设置;In response to receiving a second acquisition request from the server for a second parameter setting before the second boot firmware is updated, sending the second parameter setting to the second boot firmware, so that the server according to the The second parameter setting, adjusting the parameter setting of the second startup firmware;
其中,所述第二参数设置是所述第二启动固件在更新前发送给所述基板管理控制器的,所述第二获取请求是所述服务器在完成对所述第二启动固件的更新,且所述服务器进入启动过程的情况下发出的。Wherein, the second parameter setting is sent by the second boot firmware to the baseboard management controller before updating, and the second acquisition request is that the server completes the update of the second boot firmware, and the server enters the startup process.
作为一种可能的实施方式,所述方法还包括:As a possible implementation, the method also includes:
接收来自于所述第二启动固件的第二信息,所述第二信息是所述服务器在完成对所述第二启动固件的更新,且所述服务器进入启动过程的情况下发出的,所述第二信息用于表征所述第二启动固件更新完成;receiving second information from the second boot firmware, the second information is sent by the server when the update of the second boot firmware is completed and the server enters a boot process, the The second information is used to represent the completion of the second startup firmware update;
显示所述第二信息。The second information is displayed.
作为一种可能的实施方式,所述方法还包括:As a possible implementation, the method also includes:
响应于接收到来自于所述第二启动固件的第二通知信息,控制所述服务器关机,并将所述服务器中待启动的启动固件由所述第二启动固件切换至所述第一启动固件,所述第二通知信息用于表征所述第二启动固件与所述基板管理控制器之间的数据交互完成。In response to receiving the second notification information from the second boot firmware, controlling the server to shut down, and switching 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.
作为一种可能的实施方式,所述服务器中的第一启动固件通过以下步骤更新:As a possible implementation manner, the first boot firmware in the server is updated through the following steps:
向所述服务器发送启动固件更新文件;sending the boot firmware update file to the server;
在所述服务器处于关机状态的情况下,根据所述启动固件更新文件,以带外管理方式更新所述第一启动固件;When the server is in a shutdown state, update the first boot firmware in an out-of-band management manner according to the boot firmware update file;
在完成对所述第一启动固件的更新之后,启动所述服务器。After the updating of the first boot firmware is completed, the server is started.
由上述技术方案可以看出,在服务器的启动固件完成更新后,通过该启动固件与基板管理控制器之间的数据交互,可以将该启动固件更新前的参数设置传递至更新后的启动固件,以供更新后的启动固件完成参数设置还原,从而实现了启动固件的自动保留配置更新,可以减少启动固件更新过程中的人工介入,使得更新后的启动固件能够支持启动固件更新前的业务,进而提高了服务器的稳定性及可靠性。It can be seen from the above technical solution that after the boot firmware of the server is updated, through the data interaction between the boot firmware and the baseboard management controller, the parameter settings before the boot firmware update can be transferred to the updated boot firmware, The updated boot firmware is used to complete the parameter setting restoration, thereby realizing the automatic retention configuration update of the boot firmware, which can reduce the manual intervention in the boot firmware update process, so that the updated boot firmware can support the business before the boot firmware update, and then Improved server stability and reliability.
第三方面,本申请实施例提供了一种启动固件更新装置,应用于服务器,如图4所示,该装置包括:In a third aspect, the embodiment of the present application provides a device for starting a firmware update, which is applied to a server. As shown in FIG. 4 , the device includes:
第一更新模块11,用于根据启动固件更新文件,更新所述服务器中的第一启动固件,所述第一启动固件为所述服务器中启动的启动固件;The first update module 11 is configured to update the first startup firmware in the server according to the startup firmware update file, the first startup firmware is the startup firmware started in the server;
第一获取模块12,用于在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下,通过所述第一启动固件从所述服务器关联的基板管理控制器中,获取所述第一启动固件更新前的第一参数设置,所述第一参数设置是所述第一启动固件在更新前发送给所述基板管理控制器的;The first obtaining module 12 is configured to, when the update of the first startup firmware is completed and the server enters the startup process, obtain from the baseboard management controller associated with the server through the first startup firmware, Acquiring a first parameter setting before the update of the first boot firmware, where the first parameter setting is sent to the baseboard management controller by the first boot firmware before the update;
第一设置模块13,用于根据所述第一参数设置,调整所述第一启动固件的参数设置。The first setting module 13 is configured to adjust the parameter setting of the first startup firmware according to the first parameter setting.
可选地,所述装置还包括:Optionally, the device also includes:
第一信息发送模块,用于在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下,通过所述第一启动固件将第一信息发送至所述基板管理控制器,以使所述基板管理控制器显示所述第一信息,所述第一信息用于表征所述第一启动固件更新完成。A first information sending module, configured to send first information to the baseboard management controller through the first startup firmware when the update of the first startup firmware is completed and the server enters a startup process. , so that the baseboard management controller displays the first information, where the first information is used to indicate that the update of the first startup firmware is completed.
可选地,所述第一信息至少包括:所述第一启动固件的版本信息。Optionally, the first information includes at least: version information of the first boot firmware.
可选地,所述装置还包括:Optionally, the device also includes:
第一通知信息发送模块,用于通过所述第一启动固件向所述基板管理控制器发送第一通知信息,以使所述基板管理控制器控制所述服务器关机,并将所述服务器中待启动的启动固件由所述第一启动固件切换至第二启动固件,所述第一通知信息用于表征所述第一启动固件与所述基板管理控制器之间的数据交互完成;The first notification information sending module is configured to send the first notification information to the baseboard management controller through the first startup firmware, so that the baseboard management controller controls the shutdown of the server, and shuts down the standby server in the server. The started boot firmware is switched from the first boot firmware to the second boot firmware, and the first notification information is used to indicate that the data interaction between the first boot firmware and the baseboard management controller is completed;
第二更新模块,用于根据所述启动固件更新文件,更新所述第二启动固件;A second update module, configured to update the second boot firmware according to the boot firmware update file;
第二获取模块,用于在完成对所述第二启动固件的更新,且所述服务器进入启动过程的情况下,通过所述第二启动固件从所述基板管理控制器中,获取所述第二启动固件更新前的第二参数设置,所述第二参数设置是所述第二启动固件在更新前发送给所述基板管理控制器的;The second acquiring module is configured to acquire the second boot firmware from the baseboard management controller through the second boot firmware when the update of the second boot firmware is completed and the server enters a boot process. 2. The second parameter setting before the boot firmware is updated, the second parameter setting is sent to the baseboard management controller by the second boot firmware before the update;
第二设置模块,用于根据所述第二参数设置,调整所述第二启动固件的参数设置。The second setting module is configured to adjust the parameter setting of the second startup firmware according to the second parameter setting.
可选地,所述装置还包括:Optionally, the device also includes:
第二信息发送模块,用于在完成对所述第二启动固件的更新,且所述服务器进入启动过程的情况下,通过所述第二启动固件将第二信息发送至所述基板管理控制器,以使所述基板管理控制器显示所述第二信息,所述第二信息用于表征所述第二启动固件更新完成。A second information sending module, configured to send second information to the baseboard management controller through the second startup firmware when the update of the second startup firmware is completed and the server enters a startup process , so that the baseboard management controller displays the second information, where the second information is used to indicate that the update of the second startup firmware is completed.
可选地,所述第二信息至少包括:所述第二启动固件的版本信息。Optionally, the second information includes at least: version information of the second boot firmware.
可选地,所述装置还包括:Optionally, the device also includes:
第二通知信息发送模块,用于通过所述第二启动固件向所述基板管理控制器发送第二通知信息,以使所述基板管理控制器控制所述服务器关机,并将所述服务器中待启动的启动固件由所述第二启动固件切换至所述第一启动固件,所述第二通知信息用于表征所述第二启动固件与所述基板管理控制器之间的数据交互完成。The second notification information sending module is configured to send second notification information to the baseboard management controller through the second startup firmware, so that the baseboard management controller controls the shutdown of the server and shuts down the server in the server. The started boot firmware is switched from the second boot firmware to the first boot firmware, and the second notification information is used to represent the completion of data interaction between the second boot firmware and the BMC.
可选地,所述第一更新模块11包括:Optionally, the first update module 11 includes:
第一更新子模块,用于在所述服务器处于关机状态的情况下,根据所述启动固件更新文件,通过所述基板管理控制器以带外管理方式更新所述第一启动固件;The first update submodule is configured 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 shutdown state;
启动模块,用于在完成对所述第一启动固件的更新之后,通过所述基板管理控制器启动所述服务器。A startup module, configured to start the server through the baseboard management controller after the update of the first startup firmware is completed.
可选地,所述第一更新模块11包括:Optionally, the first update module 11 includes:
第二更新子模块,用于在所述服务器处于无运行业务状态的情况下,根据所述启动固件更新文件,通过所述第一启动固件以带内管理方式更新所述第一启动固件;The second update submodule is configured to update the first boot firmware through the first boot firmware in an in-band management manner according to the boot firmware update file when the server is in a non-running service state;
重启模块,用于在完成对所述第一启动固件的更新之后,重启所述服务器。A restart module, configured to restart the server after the update of the first boot firmware is completed.
由上述技术方案可以看出,在服务器的启动固件完成更新后,通过该启动固件与基板管理控制器之间的数据交互,可以将该启动固件更新前的参数设置传递至更新后的启动固件,以供更新后的启动固件完成参数设置还原,从而实现了启动固件的自动保留配置更新,可以减少启动固件更新过程中的人工介入,使得更新后的启动固件能够支持启动固件更新前的业务,进而提高了服务器的稳定性及可靠性。It can be seen from the above technical solution that after the boot firmware of the server 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, The updated boot firmware is used to complete the parameter setting restoration, thereby realizing the automatic retention configuration update of the boot firmware, which can reduce the manual intervention in the boot firmware update process, so that the updated boot firmware can support the business before the boot firmware update, and then Improved server stability and reliability.
第四方面,本申请实施例提供了另一种启动固件更新装置,应用于基板管理控制器,如图5所示,该装置包括:In the fourth aspect, the embodiment of the present application provides another device for starting a firmware update, which is applied to a baseboard management controller. As shown in FIG. 5 , the device includes:
第一发送模块21,用于响应于接收到服务器针对第一启动固件更新前的第一参数设置的第一获取请求,将所述第一参数设置发送至所述第一启动固件,以使所述服务器根据所述第一参数设置,调整所述第一启动固件的参数设置;The first sending module 21 is configured to send the first parameter setting to the first startup firmware in response to receiving a first acquisition request from the server for the first parameter setting before the update of the first startup firmware, so that all The server adjusts the parameter setting of the first startup firmware according to the first parameter setting;
其中,所述第一启动固件为所述服务器中启动的启动固件,所述第一参数设置是所述第一启动固件在更新前发送给所述基板管理控制器的,所述第一获取请求是所述服务器在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下发出的。Wherein, the first startup firmware is the startup firmware started in the server, the first parameter setting is sent to the baseboard management controller by the first startup firmware before updating, and the first acquisition request It is sent by the server when the update of the first boot firmware is completed and the server enters the boot process.
可选地,所述装置还包括:Optionally, the device also includes:
第一接收模块,用于接收来自于所述第一启动固件的第一信息,所述第一信息是所述服务器在完成对所述第一启动固件的更新,且所述服务器进入启动过程的情况下发出的,所述第一信息用于表征所述第一启动固件更新完成;The first receiving module is configured to receive first information from the first boot firmware, the first information is that the server is completing the update of the first boot firmware and the server enters the boot process issued under the above circumstances, the first information is used to represent the completion of the first startup firmware update;
第一显示模块,用于显示所述第一信息。A first display module, configured to display the first information.
可选地,所述装置还包括:Optionally, the device also includes:
第一控制模块,用于响应于接收到来自于所述第一启动固件的第一通知信息,控制所述服务器关机,并将所述服务器中待启动的启动固件由所述第一启动固件切换至第二启动固件,所述第一通知信息用于表征所述第一启动固件与所述基板管理控制器之间的数据交互完成;A first control module, configured to, in response to receiving first notification information from the first boot firmware, control the server to shut down, and 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 represent the completion of data interaction between the first boot firmware and the baseboard management controller;
第二发送模块,用于响应于接收到所述服务器针对所述第二启动固件更新前的第二参数设置的第二获取请求,将所述第二参数设置发送至所述第二启动固件,以使所述服务器根据所述第二参数设置,调整所述第二启动固件的参数设置;The second sending module is configured to send the second parameter setting to the second startup firmware in response to receiving a second acquisition request from the server for the second parameter setting before the second startup firmware is updated, making the server adjust the parameter setting of the second boot firmware according to the second parameter setting;
其中,所述第二参数设置是所述第二启动固件在更新前发送给所述基板管理控制器的,所述第二获取请求是所述服务器在完成对所述第二启动固件的更新,且所述服务器进入启动过程的情况下发出的。Wherein, the second parameter setting is sent by the second boot firmware to the baseboard management controller before updating, and the second acquisition request is that the server completes the update of the second boot firmware, and the server enters the startup process.
可选地,所述装置还包括:Optionally, the device also includes:
第二接收模块,用于接收来自于所述第二启动固件的第二信息,所述第二信息是所述服务器在完成对所述第二启动固件的更新,且所述服务器进入启动过程的情况下发出的,所述第二信息用于表征所述第二启动固件更新完成;The second receiving module is configured to receive second information from the second boot firmware, the second information is that the server is completing the update of the second boot firmware, and the server enters the boot process issued under the circumstances, the second information is used to represent the completion of the second startup firmware update;
第二显示模块,用于显示所述第二信息。The second display module is used to display the second information.
可选地,所述装置还包括:Optionally, the device also includes:
第二控制模块,用于响应于接收到来自于所述第二启动固件的第二通知信息,控制所述服务器关机,并将所述服务器中待启动的启动固件由所述第二启动固件切换至所述第一启动固件,所述第二通知信息用于表征所述第二启动固件与所述基板管理控制器之间的数据交互完成。The second control module is configured to control the server to shut down in response to receiving the second notification information from the second boot firmware, and switch the boot firmware to be started in the server to the second boot firmware. For the first boot firmware, the second notification information is used to represent the completion of data interaction between the second boot firmware and the baseboard management controller.
可选地,所述装置还包括:Optionally, the device also includes:
第三发送模块,用于向所述服务器发送启动固件更新文件;A third sending module, configured to send the startup firmware update file to the server;
固件更新模块,用于在所述服务器处于关机状态的情况下,根据所述启动固件更新文件,以带外管理方式更新所述第一启动固件;A firmware update module, configured to update the first boot firmware in an out-of-band management manner according to the boot firmware update file when the server is powered off;
第三控制模块,用于在完成对所述第一启动固件的更新之后,启动所述服务器。The third control module is configured to start the server after updating the first startup firmware.
由上述技术方案可以看出,在服务器的启动固件完成更新后,通过该启动固件与基板管理控制器之间的数据交互,可以将该启动固件更新前的参数设置传递至更新后的启动固件,以供更新后的启动固件完成参数设置还原,从而实现了启动固件的自动保留配置更新,可以减少启动固件更新过程中的人工介入,使得更新后的启动固件能够支持启动固件更新前的业务,进而提高了服务器的稳定性及可靠性。It can be seen from the above technical solution that after the boot firmware of the server is updated, through the data interaction between the boot firmware and the baseboard management controller, the parameter settings before the boot firmware update can be transferred to the updated boot firmware, The updated boot firmware is used to complete the parameter setting restoration, thereby realizing the automatic retention configuration update of the boot firmware, which can reduce the manual intervention in the boot firmware update process, so that the updated boot firmware can support the business before the boot firmware update, and then Improved server stability and reliability.
需要说明的是,装置实施例与方法实施例相近,故描述的较为简单,相关之处参见方法实施例即可。It should be noted that the device embodiment is similar to the method embodiment, so the description is relatively simple, and the relevant parts can be referred to the method embodiment.
本申请实施例还提供了一种电子设备,参照图6,图6是本申请实施例提出的电子设备的示意图。如图6所示,电子设备100包括:存储器110和处理器120,存储器110与处理器120之间通过总线通信连接,存储器110中存储有计算机程序,该计算机程序可在处理器120上运行,进而实现本申请实施例公开的所述启动固件更新方法中的步骤。The embodiment of the present application also provides an electronic device. Referring to FIG. 6 , FIG. 6 is a schematic diagram of the electronic device proposed in the embodiment of the present application. As shown in FIG. 6 , the electronic device 100 includes: a memory 110 and a processor 120, the memory 110 and the processor 120 are connected through a bus communication, and a computer program is stored in the memory 110, and the computer program can run on the processor 120, Further, the steps in the method for starting firmware update disclosed in the embodiment of the present application are implemented.
本申请实施例还提供了一种计算机可读存储介质,参见图7,图7是本申请实施例提出的计算机可读存储介质的示意图。如图7所示,计算机可读存储介质200上存储有计算机程序/指令210,该计算机程序/指令210被处理器执行时实现如本申请实施例公开的所述启动固件更新方法中的步骤。An embodiment of the present application further provides a computer-readable storage medium, see FIG. 7 , which is a schematic diagram of a computer-readable storage medium proposed in an embodiment of the present application. As shown in FIG. 7 , a computer readable storage medium 200 stores a computer program/instruction 210 , and when the computer program/instruction 210 is executed by a processor, the steps in the method for starting a firmware update as disclosed in the embodiment of the present application are implemented.
本申请实施例还提供了一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现如本申请实施例公开的所述启动固件更新方法中的步骤。The embodiment of the present application also provides a computer program product, including a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps in the method for starting a firmware update as disclosed in the embodiment of the present application are implemented.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the embodiments of the present application may be provided as methods, devices or computer program products. Therefore, the embodiment of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请实施例是参照根据本申请实施例的方法、系统、设备、存储介质及程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, systems, devices, storage media, and program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor or processor of other programmable data processing terminal equipment to produce a machine such that instructions executed by the computer or processor of other programmable data processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby The instructions executed above provide steps for implementing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。While the preferred embodiments of the embodiments of the present application have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is understood. Therefore, the appended claims are intended to be interpreted to cover the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or terminal equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.
以上对本申请所提供的一种启动固件更新方法、装置及设备和介质,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。Above, a method, device, device and medium for starting firmware update provided by this application have been introduced in detail. In this paper, specific examples are used to illustrate the principle and implementation of this application. The description of the above embodiments is only for To help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. In summary, the content of this specification It should not be construed as a limitation of the application.
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310449611.3A CN116610349A (en) | 2023-04-24 | 2023-04-24 | Method, device, equipment and medium for starting firmware update |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310449611.3A CN116610349A (en) | 2023-04-24 | 2023-04-24 | Method, device, equipment and medium for starting firmware update |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116610349A true CN116610349A (en) | 2023-08-18 |
Family
ID=87679062
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310449611.3A Pending CN116610349A (en) | 2023-04-24 | 2023-04-24 | Method, device, equipment and medium for starting firmware update |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116610349A (en) |
-
2023
- 2023-04-24 CN CN202310449611.3A patent/CN116610349A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6971095B2 (en) | Automatic firmware version upgrade system | |
| US8707290B2 (en) | Firmware update in an information handling system employing redundant management modules | |
| EP3407187B1 (en) | Optical line terminal, and method for upgrading master device and slave device | |
| WO2018095107A1 (en) | Bios program abnormal processing method and apparatus | |
| TW201843583A (en) | Method and computer system for automatically recovering the BIOS image file | |
| CN107315656A (en) | The Embedded PLC software rejuvenation method and PLC of many kernels | |
| TWI764454B (en) | Firmware corruption recovery | |
| CN117215859B (en) | Active and standby BIOS automatic switching method, automatic switching device and computer | |
| US20260119413A1 (en) | Dual bios system, system switching method and apparatus, device, and storage medium | |
| CN110109772B (en) | A CPU restart method, communication device and readable storage medium | |
| CN114461286B (en) | Server starting method and device, electronic equipment and readable storage medium | |
| CN114924776A (en) | Programmable logic device upgrading method, device, system, equipment and program product | |
| CN105049936B (en) | Method and device for switching on and off | |
| JP5056504B2 (en) | Control apparatus, information processing system, control method for information processing system, and control program for information processing system | |
| CN109634675A (en) | A kind of redundancy approach of BIOS, redundant system and relevant apparatus | |
| JP5387767B2 (en) | Update technology for running programs | |
| CN115794182A (en) | Firmware out-of-band upgrade method, device, electronic equipment and storage medium | |
| JPH117382A (en) | How to upgrade the firmware | |
| JP7063315B2 (en) | Information processing equipment, management programs, management methods, and information processing systems | |
| CN116610349A (en) | Method, device, equipment and medium for starting firmware update | |
| CN106301877A (en) | The upgrade method of a kind of Virtual NE and device | |
| CN116185459A (en) | Start firmware update method, device and equipment and medium | |
| JP3231561B2 (en) | Backup memory control method | |
| CN118132111A (en) | A software upgrade method for baseboard management controller BMC, BMC and computing device | |
| WO2024113995A1 (en) | Bmc heterogeneous upgrading method and system, device, and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Applicant after: Suzhou Yuannao Intelligent Technology Co.,Ltd. Address before: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Applicant before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |
|
| CB02 | Change of applicant information |