CN113849432B - Server firmware data storage method, startup method, device, equipment and medium - Google Patents

Server firmware data storage method, startup method, device, equipment and medium Download PDF

Info

Publication number
CN113849432B
CN113849432B CN202111062571.4A CN202111062571A CN113849432B CN 113849432 B CN113849432 B CN 113849432B CN 202111062571 A CN202111062571 A CN 202111062571A CN 113849432 B CN113849432 B CN 113849432B
Authority
CN
China
Prior art keywords
data
server
target
firmware data
area
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.)
Active
Application number
CN202111062571.4A
Other languages
Chinese (zh)
Other versions
CN113849432A (en
Inventor
李洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111062571.4A priority Critical patent/CN113849432B/en
Publication of CN113849432A publication Critical patent/CN113849432A/en
Application granted granted Critical
Publication of CN113849432B publication Critical patent/CN113849432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a server firmware data storage method, a starting method, a device, equipment and a medium, comprising the following steps: creating a communication connection link between a target component of the server and an external storage chip; the target component is a component supporting a platform firmware protection recovery function in the server; acquiring target firmware data stored in a temporary storage area in the target component; and transmitting the target firmware data to the external storage chip through the communication connection link for storage, so that the target component acquires the target firmware data in a mode of reading data from the external storage chip after the data loss event occurs in the temporary storage area. According to the application, the firmware data of the temporary storage area of the target component is stored into the external storage chip through the communication connection link established between the standard interface provided by the external storage chip and the target component of the server, so that the reliability of storing the firmware data is improved, and the stability of the performance of the server is ensured.

Description

服务器固件数据存储方法、启动方法、装置、设备及介质Server firmware data storage method, startup method, device, equipment and medium

技术领域technical field

本申请涉及服务器技术领域,特别涉及一种服务器固件数据存储方法、启动方法、装置、设备及介质。The present application relates to the technical field of servers, and in particular to a server firmware data storage method, startup method, device, equipment and media.

背景技术Background technique

目前,服务器在运行的过程中,通常需要利用组件中的固件数据对服务器进行相应的操作,如果在服务器运行过程中出现故障,如突然断电或死机,将会导致数据丢失,进而影响服务器的正常使用。At present, during the operation of the server, it is usually necessary to use the firmware data in the components to perform corresponding operations on the server. If a failure occurs during the operation of the server, such as a sudden power failure or crash, data will be lost, which in turn will affect the performance of the server. Normal use.

例如,BMC(Baseboard Manager Controller,基板管理控制器)作为服务器上的基板管理系统,主要负责服务器的资产信息显示、硬件监控、散热调控、系统配置、远程监控、日志收集、故障诊断、系统维护等重要功能。具有PFR(Platform Firmware Resilience,平台固件恢复)功能的服务器BMC分为活动区域(即active区域)、恢复区域(即recovery区域)和暂存区域(即staging区域),并且BMC从活动区域开始启动。当活动区域损坏,服务器会使用恢复区域恢复活动区域。当恢复区域和活动区域同时损坏时,服务器会使用暂存区域恢复恢复区域,再利用恢复区域恢复活动区域,所以暂存区域是BMC可以正常启动的最后保障。For example, BMC (Baseboard Manager Controller, Baseboard Management Controller), as the baseboard management system on the server, is mainly responsible for server asset information display, hardware monitoring, heat dissipation control, system configuration, remote monitoring, log collection, fault diagnosis, system maintenance, etc. important function. The server BMC with PFR (Platform Firmware Resilience, platform firmware recovery) function is divided into active area (ie active area), recovery area (ie recovery area) and staging area (ie staging area), and the BMC starts from the active area. When the active area is damaged, the server restores the active area using the recovery area. When the recovery area and the active area are damaged at the same time, the server will use the temporary storage area to restore the recovery area, and then use the recovery area to restore the active area. Therefore, the temporary storage area is the final guarantee for the BMC to start normally.

然而,BMC的暂存区域和活动区域通常存放在同一个flash芯片上,当活动区域被破坏时,很难保证暂存区域不被破坏,而此时如果恢复区域也被破坏,服务器将无法启动。并且,在每次通过烧录芯片的方式更新BMC时,暂存区域都会被清空。因此,BMC的区域数据的正常可用决定BMC是否可以正常启动。However, the temporary storage area and the active area of the BMC are usually stored on the same flash chip. When the active area is damaged, it is difficult to ensure that the temporary storage area is not damaged. At this time, if the recovery area is also damaged, the server will not start. . And, every time the BMC is updated by burning the chip, the temporary storage area will be cleared. Therefore, the normal availability of the area data of the BMC determines whether the BMC can be started normally.

综上所述,如何提高服务器组件中固件数据存储的可靠性,确保服务器性能的稳定是本领域有待解决的问题。To sum up, how to improve the reliability of firmware data storage in server components and ensure the stability of server performance is a problem to be solved in this field.

发明内容Contents of the invention

有鉴于此,本申请的目的在于提供一种服务器固件数据存储方法、启动方法、装置、设备及介质,能够对服务器中的固件数据进行外部存储,确保服务器性能的稳定。其具体方案如下:In view of this, the purpose of this application is to provide a server firmware data storage method, startup method, device, equipment and medium, which can store firmware data in the server externally and ensure the stability of server performance. The specific plan is as follows:

第一方面,本申请公开了一种服务器固件数据存储方法,应用于服务器,包括:In the first aspect, the present application discloses a server firmware data storage method, which is applied to the server, including:

创建所述服务器的目标组件与外部存储芯片之间的通信连接链路;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件;Create a communication connection link between the target component of the server and the external storage chip; the target component is a component in the server that supports the platform firmware protection recovery function;

获取所述目标组件中暂存区域上保存的目标固件数据;Obtaining target firmware data stored in the temporary storage area in the target component;

通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据。The target firmware data is transmitted to the external storage chip through the communication connection link for storage, so that the target component can read from the external storage chip after a data loss event occurs in the temporary storage area. Data way to get the target firmware data.

可选的,所述创建所述服务器的目标组件与外部存储芯片之间的通信连接链路,包括:Optionally, the creating a communication connection link between the target component of the server and the external memory chip includes:

创建所述服务器的基板管理控制器与嵌入式多媒体卡之间的通信连接链路;Establishing a communication connection link between the baseboard management controller of the server and the embedded multimedia card;

相应的,所述获取所述目标组件中暂存区域上保存的目标固件数据,包括:Correspondingly, the acquiring the target firmware data stored in the temporary storage area in the target component includes:

获取所述基板管理控制器中暂存区域上保存的目标固件数据。Obtain target firmware data stored in the temporary storage area in the baseboard management controller.

可选的,所述通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据,包括:Optionally, the target firmware data is transmitted to the external storage chip through the communication connection link for storage, so that after a data loss event occurs in the temporary storage area, the target component, through the The target firmware data is obtained by reading data from an external memory chip, including:

通过所述通信连接链路将所述目标固件数据传输至所述嵌入式多媒体卡进行保存,以便所述基板管理控制器在所述暂存区域、恢复区域和活动区域均发生数据丢失事件后,通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据。Transmitting the target firmware data to the embedded multimedia card for storage through the communication connection link, so that after a data loss event occurs in the temporary storage area, recovery area, and active area, the baseboard management controller, The target firmware data is obtained by reading data from the embedded multimedia card.

可选的,所述通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据之后,还包括:Optionally, after acquiring the target firmware data by reading data from the embedded multimedia card, further comprising:

利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器中的所述暂存区域、所述恢复区域和所述活动区域进行数据恢复。performing data recovery on the temporary storage area, the recovery area and the active area in the baseboard management controller by using the target firmware data read from the embedded multimedia card.

可选的,所述利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器中的所述暂存区域、所述恢复区域和所述活动区域进行数据恢复,包括:Optionally, using the target firmware data read from the embedded multimedia card to perform data processing on the temporary storage area, the recovery area and the active area in the baseboard management controller recovery, including:

利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器的暂存区域进行数据恢复;performing data restoration on the temporary storage area of the baseboard management controller by using the target firmware data read from the embedded multimedia card;

利用恢复后的所述暂存区域对所述基板管理控制器的恢复区域进行恢复;Restoring the restoration area of the baseboard management controller by using the restored temporary storage area;

利用恢复后的所述恢复区域对所述基板管理控制器的活动区域进行恢复,以便利用恢复后的所述活动区域启动所述基板管理控制器。Restoring the active area of the baseboard management controller by using the restored restoration area, so as to start the baseboard management controller by using the restored active area.

可选的,所述创建所述服务器的目标组件与外部存储芯片之间的通信连接链路,包括:Optionally, the creating a communication connection link between the target component of the server and the external memory chip includes:

在所述目标组件启动之后,获取外部存储芯片的驱动程序,并通过所述目标组件加载所述驱动程序;After the target component is started, obtain the driver program of the external storage chip, and load the driver program through the target component;

在所述驱动程序加载完毕后,将所述外部存储芯片挂载至所述目标组件,以搭建所述服务器的目标组件与外部存储芯片之间的通信连接链路。After the driver program is loaded, mount the external storage chip to the target component, so as to build a communication connection link between the target component of the server and the external storage chip.

第二方面,本申请公开了一种服务器组件启动方法,应用于服务器,包括:In the second aspect, the present application discloses a method for starting a server component, applied to a server, including:

判断所述服务器中目标组件的活动区域是否出现损坏;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件;Judging whether the active area of the target component in the server is damaged; the target component is a component in the server that supports the platform firmware protection recovery function;

若所述活动区域出现损坏,则判断所述目标组件的恢复区域和暂存区域是否出现损坏;If the active area is damaged, it is judged whether the recovery area and the temporary storage area of the target component are damaged;

若所述暂存区域和所述恢复区域均出现损坏,则从外部存储芯片中读取预先保存的目标固件数据,并利用所述目标固件数据启动所述目标组件;所述目标固件数据为预先在所述暂存区域未出现损坏时从所述暂存区域传输至所述外部存储芯片中进行保存的固件数据。If both the temporary storage area and the recovery area are damaged, read the pre-saved target firmware data from the external memory chip, and use the target firmware data to start the target component; Firmware data transmitted from the temporary storage area to the external memory chip for storage when the temporary storage area is not damaged.

第三方面,本申请公开了一种服务器固件数据存储装置,应用于服务器,包括:In a third aspect, the present application discloses a server firmware data storage device, which is applied to a server, including:

链路创建模块,用于创建所述服务器的目标组件与外部存储芯片之间的通信连接链路;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件;A link creation module, configured to create a communication connection link between the target component of the server and the external storage chip; the target component is a component in the server that supports the protection and recovery function of platform firmware;

数据获取模块,用于获取所述目标组件中暂存区域上保存的目标固件数据;A data acquisition module, configured to acquire the target firmware data stored in the temporary storage area of the target component;

数据保存模块,用于通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据。A data storage module, configured to transmit the target firmware data to the external storage chip for storage through the communication connection link, so that the target component, after a data loss event occurs in the temporary storage area, can pass from the The target firmware data is obtained by reading data from an external memory chip.

第四方面,本申请公开了一种电子设备,包括处理器和存储器;其中,所述处理器执行所述存储器中保存的计算机程序时实现前述的服务器固件数据存储方法。In a fourth aspect, the present application discloses an electronic device, including a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the aforementioned server firmware data storage method is realized.

第五方面,本申请公开了一种计算机可读存储介质,用于存储计算机程序;其中,所述计算机程序被处理器执行时实现前述的服务器固件数据存储方法。In a fifth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned server firmware data storage method is realized.

可见,本申请先创建所述服务器的目标组件与外部存储芯片之间的通信连接链路;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件,然后获取所述目标组件中暂存区域上保存的目标固件数据,并通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据。可见,本申请在外部存储芯片提供与服务器的目标组件之间建立通信连接链路,并通过上述通信连接链路将目标组件暂存区域的数据保存至上述外部存储芯片,从而实现了固件数据的外部存储,提高了固件数据存储的可靠性,进而保障了服务器性能的稳定。It can be seen that the present application first establishes a communication connection link between the target component of the server and the external storage chip; the target component is a component in the server that supports the platform firmware protection recovery function, and then obtains the temporary the target firmware data stored in the storage area, and transmit the target firmware data to the external storage chip through the communication connection link for storage, so that after a data loss event occurs in the temporary storage area, the target component, The target firmware data is acquired by reading data from the external memory chip. It can be seen that this application establishes a communication connection link between the external storage chip and the target component of the server, and saves the data in the temporary storage area of the target component to the above external storage chip through the above communication connection link, thereby realizing the storage of firmware data. External storage improves the reliability of firmware data storage, thereby ensuring the stability of server performance.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本申请公开的一种服务器固件数据存储方法流程图;FIG. 1 is a flowchart of a server firmware data storage method disclosed in the present application;

图2为本申请公开的一种具体的服务器固件数据存储方法流程图;FIG. 2 is a flow chart of a specific server firmware data storage method disclosed in the present application;

图3为本申请公开的一种BMC与嵌入式多媒体卡硬件连接结构示意图;Fig. 3 is a kind of BMC disclosed by the application and the embedded multimedia card hardware connection structure schematic diagram;

图4为本申请公开的一种基板管理控制器数据存储方法处理流程图;FIG. 4 is a processing flowchart of a data storage method for a baseboard management controller disclosed in the present application;

图5为本申请公开的一种嵌入式多媒体卡挂载应用代码示意图;Fig. 5 is a schematic diagram of an embedded multimedia card mounting application code disclosed in the present application;

图6为本申请公开的一种服务器组件启动方法流程图;FIG. 6 is a flowchart of a method for starting a server component disclosed in the present application;

图7为本申请公开的一种服务器固件数据存储装置结构示意图;FIG. 7 is a schematic structural diagram of a server firmware data storage device disclosed in the present application;

图8为本申请公开的一种电子设备结构图。FIG. 8 is a structural diagram of an electronic device disclosed in the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the 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 scope of protection of this application.

本申请实施例公开了一种服务器固件数据存储方法,应用于服务器,参见图1所示,该方法包括:The embodiment of the present application discloses a server firmware data storage method, which is applied to the server, as shown in Figure 1, the method includes:

步骤S11:创建服务器的目标组件与外部存储芯片之间的通信连接链路;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件。Step S11: Create a communication link between the target component of the server and the external storage chip; the target component is a component in the server that supports the protection and recovery function of platform firmware.

本实施例中,通过外部存储芯片提供的标准接口可以与服务器中支持平台固件保护恢复功能的组件之间建立通信连接链路。其中,所述组件包括但不限于BIOS(BasicInput Output System,基本输入输出系统)、CPLD(Complex Programmable logic device,复杂可编程逻辑器件)和BMC等。In this embodiment, the standard interface provided by the external memory chip can establish a communication connection link with the components in the server that support the protection and recovery function of the platform firmware. Wherein, the components include but not limited to BIOS (Basic Input Output System, basic input output system), CPLD (Complex Programmable logic device, complex programmable logic device), BMC and so on.

本实施例中,所述创建服务器的目标组件与外部存储芯片之间的通信连接链路,具体可以包括:在所述目标组件启动之后,获取外部存储芯片的驱动程序,并通过所述目标组件加载所述驱动程序;在所述驱动程序加载完毕后,将所述外部存储芯片挂载至所述目标组件,以搭建所述服务器的目标组件与外部存储芯片之间的通信连接链路。可以理解的是,通常情况下在目标组件启动之后,首先会获取外部存储芯片对应的驱动程序,然后通过上述目标组件加载上述驱动程序,并在上述驱动程序加载完成之后,将所述外部存储芯片挂载到上述目标组件上,即搭建了服务器的目标组件与外部存储芯片之间的通信连接链路,进而可以实现服务器的目标组件与外部存储芯片之间数据通信。In this embodiment, the creating the communication connection link between the target component of the server and the external storage chip may specifically include: after the target component is started, obtaining the driver program of the external storage chip, and using the target component to Loading the driver program; after the driver program is loaded, mount the external storage chip to the target component, so as to build a communication connection link between the target component of the server and the external storage chip. It can be understood that, usually, after the target component is started, the driver program corresponding to the external storage chip will be obtained first, and then the above-mentioned driver program will be loaded through the above-mentioned target component, and after the above-mentioned driver program is loaded, the external memory chip will be Mounting on the above-mentioned target component means building a communication connection link between the target component of the server and the external memory chip, and then realizing data communication between the target component of the server and the external memory chip.

步骤S12:获取所述目标组件中暂存区域上保存的目标固件数据。Step S12: Obtain the target firmware data stored in the temporary storage area of the target component.

本实施例中,在创建服务器的目标组件与外部存储芯片之间的通信连接链路之后,进一步的,获取上述目标组件中暂存区域上预先保存的固件数据,即目标固件数据。In this embodiment, after the communication connection link between the target component of the server and the external storage chip is established, further, the firmware data pre-saved in the temporary storage area of the target component, that is, the target firmware data, is acquired.

步骤S13:通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据。Step S13: Transfer the target firmware data to the external memory chip for storage through the communication connection link, so that the target component can pass the data from the external memory chip after a data loss event occurs in the temporary storage area. The target firmware data is obtained by reading data in the method.

本实施例中,在获取到所述目标组件中暂存区域上保存的目标固件数据之后,可以通过上述通信连接链路将上述目标固件数据发送到上述外部存储芯片进行保存,当上述目标组件的暂存区域的固件数据丢失之后,能够从上述外部存储芯片中获取到预先保存的目标固件数据,并利用获取到的上述目标固件数据对服务器进行相应的操作。例如,当通过烧录芯片的方式刷新BMC时,暂存区域通常会被清空,此时可以从预先创建通信连接链路的外部嵌入式多媒体卡上获取预先保存在本地的与所述暂存区域对应的目标固件数据,并利用获取到的所述目标固件数据对上述暂存区域进行恢复。In this embodiment, after acquiring the target firmware data stored in the temporary storage area of the target component, the target firmware data may be sent to the external storage chip through the communication link for storage. After the firmware data in the temporary storage area is lost, the pre-saved target firmware data can be obtained from the external memory chip, and the server can be operated correspondingly by using the obtained target firmware data. For example, when the BMC is refreshed by burning a chip, the temporary storage area will usually be emptied. At this time, the external embedded multimedia card that pre-creates the communication connection link can be obtained from the external embedded multimedia card that is pre-saved in the local area and the temporary storage area. corresponding target firmware data, and use the acquired target firmware data to restore the temporary storage area.

可见,本申请实施例先创建所述服务器的目标组件与外部存储芯片之间的通信连接链路;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件,然后获取所述目标组件中暂存区域上保存的目标固件数据,并通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据。可见,本申请实施例通过外部存储芯片提供的标准接口与服务器的目标组件之间建立通信连接链路,并通过上述通信连接链路将目标组件暂存区域的目标固件数据保存到上述外部存储芯片,能够实现固件数据的外部存储,提高了固件数据存储的可靠性,进而保障了服务器性能的稳定。It can be seen that in the embodiment of the present application, the communication connection link between the target component of the server and the external storage chip is created first; the target component is a component in the server that supports the platform firmware protection recovery function, and then the target component is obtained The target firmware data saved on the intermediate storage area, and the target firmware data is transmitted to the external memory chip through the communication connection link for storage, so that the target component has a data loss event in the temporary storage area Afterwards, the target firmware data is obtained by reading data from the external memory chip. It can be seen that the embodiment of the present application establishes a communication connection link between the standard interface provided by the external memory chip and the target component of the server, and saves the target firmware data in the temporary storage area of the target component to the above-mentioned external memory chip through the above communication connection link , can realize the external storage of firmware data, improve the reliability of firmware data storage, and then ensure the stability of server performance.

本申请实施例公开了一种具体的服务器固件数据存储方法,参见图2所示,该方法包括:The embodiment of the present application discloses a specific server firmware data storage method, as shown in Figure 2, the method includes:

步骤S21:创建服务器的基板管理控制器与嵌入式多媒体卡之间的通信连接链路;所述基板管理控制器支持平台固件保护恢复功能。Step S21: Create a communication connection link between the baseboard management controller of the server and the embedded multimedia card; the baseboard management controller supports the platform firmware protection recovery function.

本实施例中,可以通过嵌入式多媒体卡提供的标准接口与支持平台固件保护恢复功能服务器的基板管理控制器之间建立通信连接链路。具体的,参见图3所示,图3示出了一种服务器的BMC与嵌入式多媒体卡(eMMC,即Embedded Multi Media Card)存储芯片之间的通信连接链路,图3中BMC通过CLK、Date Strobe、CMD、DAT0-7这四条通信链路与嵌入式多媒体卡实现硬件联通,并且接口速度高达每秒400Mbytes,可以保证BMC的日志文件快速准确的存储在嵌入式多媒体卡中。In this embodiment, a communication connection link can be established between the baseboard management controller of the server supporting the platform firmware protection and recovery function through the standard interface provided by the embedded multimedia card. Specifically, referring to shown in Fig. 3, Fig. 3 shows the communication connection link between the BMC of a kind of server and the embedded multimedia card (eMMC, namely Embedded Multi Media Card) memory chip, BMC among Fig. 3 passes CLK, The four communication links, Date Strobe, CMD, and DAT0-7, realize hardware communication with the embedded multimedia card, and the interface speed is as high as 400Mbytes per second, which can ensure that the log files of the BMC are stored in the embedded multimedia card quickly and accurately.

步骤S22:获取所述基板管理控制器中暂存区域上保存的目标固件数据。Step S22: Obtain the target firmware data stored in the temporary storage area of the baseboard management controller.

本实施例中,在创建服务器的基板管理控制器与嵌入式多媒体卡之间的通信连接链路之后,进一步的,对上述基板管理控制器中暂存区域上预先保存的固件数据进行提取,得到目标固件数据。In this embodiment, after the communication connection link between the baseboard management controller of the server and the embedded multimedia card is established, further, the firmware data pre-saved in the temporary storage area of the above-mentioned baseboard management controller is extracted to obtain Target firmware data.

步骤S23:通过所述通信连接链路将所述目标固件数据传输至所述嵌入式多媒体卡进行保存,以便所述基板管理控制器在所述暂存区域、恢复区域和活动区域均发生数据丢失事件后,通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据。Step S23: Transmitting the target firmware data to the embedded multimedia card for storage through the communication connection link, so that data loss occurs in the temporary storage area, recovery area and active area of the baseboard management controller After the event, the target firmware data is acquired by reading data from the embedded multimedia card.

本实施例中,在获取到所述基板管理控制器中暂存区域上保存的目标固件数据之后,可以通过上述通信连接链路将上述目标固件数据发送到上述嵌入式多媒体卡中进行保存,当上述基板管理控制器的暂存区域、恢复区域和活动区域均发生数据丢失事件之后,可以从上述嵌入式多媒体卡中读取到预先保存在本地的与上述暂存区域对应的所述目标固件数据。In this embodiment, after acquiring the target firmware data stored in the temporary storage area of the baseboard management controller, the target firmware data may be sent to the embedded multimedia card for storage through the communication connection link. After a data loss event occurs in the temporary storage area, recovery area, and active area of the above-mentioned baseboard management controller, the target firmware data corresponding to the above-mentioned temporary storage area previously stored locally can be read from the above-mentioned embedded multimedia card .

具体的,参见图4所示,图4示出了一种基板管理控制器暂存区域固件数据存储方法的处理流程图,图4中当服务器上电启动基板管理控制器之后,通过预先基于服务器的基板管理控制器与嵌入式多媒体卡之间创建的通信连接链路加载嵌入式多媒体卡,以便将所述基板管理控制器挂载到所述嵌入式多媒体卡上。进一步的,在将上述嵌入式多媒体卡挂载至所述基板管理控制器上之后,所述基板管理控制器会进一步地检测上述挂载是否成功,参见图5所示,可以通过预设的程序指令检测嵌入式多媒体卡是否与基板管理控制器挂载成功,并在上述通信连接链路连接不成功时显示出“Disk not exist,please checkhardware”的日志告警提示信息;若挂载成功,则继续执行是否存在用于保存固件数据的暂存分区的判断指令,若显示出“Partition not exist now,create it”,则表明不存在暂存分区并需要创建相应的暂存分区。Specifically, refer to FIG. 4, which shows a processing flowchart of a method for storing firmware data in the temporary storage area of a baseboard management controller. In FIG. 4, after the server is powered on and the baseboard management The communication connection link created between the baseboard management controller and the embedded multimedia card loads the embedded multimedia card, so as to mount the baseboard management controller on the embedded multimedia card. Further, after mounting the above-mentioned embedded multimedia card on the baseboard management controller, the baseboard management controller will further detect whether the above-mentioned mounting is successful, as shown in FIG. 5 , the preset program can The command detects whether the embedded multimedia card is successfully mounted with the baseboard management controller, and displays the log warning message "Disk not exist, please checkhardware" when the above-mentioned communication connection link fails; if the mount is successful, continue Execute the command to determine whether there is a temporary storage partition for saving firmware data. If "Partition not exist now, create it" is displayed, it means that there is no temporary storage partition and a corresponding temporary storage partition needs to be created.

具体的,本实施例中,所述通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据之后,还可以包括:利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器中的所述暂存区域、所述恢复区域和所述活动区域进行数据恢复。可以理解的是,支持平台固件保护恢复功能的基板管理控制器通常包括活动区域、恢复区域和暂存区域,并且所述基板管理控制器上电时是从活动区域启动的。由于活动区域和暂存区域保存在同一个flash芯片上,当活动区域发生损坏后,通常情况下,暂存区域也会被损坏,此时可以通过恢复区域对活动区域进行恢复,但当恢复区域也会被损坏,则可以通过从嵌入式多媒体卡中读取到预先保存在本地的目标固件数据,并利用读取到的所述目标固件数据对所述基板管理控制器中的暂存区域、恢复区域和活动区域进行恢复。其中,所述目标固件数据为预先在所述基板管理控制器的暂存区域未出现损坏时从所述暂存区域发送到所述嵌入式多媒体卡中进行保存的固件数据。Specifically, in this embodiment, after acquiring the target firmware data by reading data from the embedded multimedia card, it may also include: using the data read from the embedded multimedia card performing data restoration on the temporary storage area, the restoration area and the active area in the baseboard management controller using the target firmware data. It can be understood that the baseboard management controller supporting the platform firmware protection recovery function usually includes an active area, a recovery area and a temporary storage area, and the baseboard management controller is started from the active area when powered on. Since the active area and the temporary storage area are stored on the same flash chip, when the active area is damaged, usually the temporary storage area will also be damaged. At this time, the active area can be restored through the recovery area, but when the recovery area will also be damaged, you can read the target firmware data pre-saved locally from the embedded multimedia card, and use the read target firmware data to update the temporary storage area, Recovery area and active area for recovery. Wherein, the target firmware data is the firmware data sent from the temporary storage area to the embedded multimedia card for storage in advance when the temporary storage area of the baseboard management controller is not damaged.

本实施例中,所述利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器中的所述暂存区域、所述恢复区域和所述活动区域进行数据恢复,具体可以包括:利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器的暂存区域进行数据恢复;利用恢复后的所述暂存区域对所述基板管理控制器的恢复区域进行恢复;利用恢复后的所述恢复区域对所述基板管理控制器的活动区域进行恢复,以便利用恢复后的所述活动区域启动所述基板管理控制器。可以理解的是,所述基板管理控制器在所述暂存区域、恢复区域和活动区域均发生数据丢失事件之后,通过从嵌入式多媒体卡中读取数据的方式可以获取到目标固件数据,进而可以利用读取到的上述目标固件数据对上述基板管理控制器的暂存区域进行恢复,然后利用恢复后的暂存区域对所述基板管理控制器的恢复区域进行恢复,并利用恢复后的恢复区域对所述基板管理控制器的活动区域进行恢复,再利用恢复后的所述活动区域启动所述基板管理控制器。In this embodiment, using the target firmware data read from the embedded multimedia card to perform the temporary storage area, the recovery area, and the active area in the baseboard management controller Data recovery may specifically include: using the target firmware data read from the embedded multimedia card to restore data to the temporary storage area of the baseboard management controller; using the restored temporary storage area to The restoration area of the BMC is restored; the active area of the BMC is restored by using the restored restoration area, so as to start the BMC by using the restored active area. It can be understood that, after a data loss event occurs in the temporary storage area, recovery area, and active area, the baseboard management controller can obtain the target firmware data by reading data from the embedded multimedia card, and then The temporary storage area of the above-mentioned baseboard management controller can be restored by using the above-mentioned read target firmware data, and then the recovery area of the baseboard management controller can be restored by using the restored temporary storage area, and the restored The zone recovers the active zone of the baseboard management controller, and then uses the recovered active zone to start the baseboard management controller.

其中,关于上述步骤S21、S22更加具体的处理过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。Wherein, for more specific processing procedures of the above-mentioned steps S21 and S22, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.

可见,本申请实施例先创建服务器的基板管理控制器与嵌入式多媒体卡之间的通信连接链路,然后获取所述基板管理控制器中暂存区域上保存的目标固件数据,再通过所述通信连接链路将所述目标固件数据传输至所述嵌入式多媒体卡进行保存,以便所述基板管理控制器在所述暂存区域、恢复区域和活动区域均发生数据丢失事件后,通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据。本申请实施例通过服务器的基板管理控制器与嵌入式多媒体卡之间预先创建的通信连接链路,将上述基板管理控制器暂存区域的目标固件数据保存到上述嵌入式多媒体卡中,实现了基板管理控制器的固件数据的外部存储,并在所述基板管理控制器的暂存区域、恢复区域和活动区域均发生数据丢失事件后,通过从所述嵌入式多媒体卡中获取到上述目标固件数据,并利用上述目标固件数据对上述基板管理控制器暂存区域进行恢复,从而提高了基板管理控制器固件数据存储的可靠性,保障了服务器性能的稳定。It can be seen that in the embodiment of the present application, the communication connection link between the baseboard management controller of the server and the embedded multimedia card is firstly created, and then the target firmware data stored in the temporary storage area of the baseboard management controller is obtained, and then through the The communication connection link transmits the target firmware data to the embedded multimedia card for storage, so that after a data loss event occurs in the temporary storage area, recovery area, and active area, the baseboard management controller, through The target firmware data is obtained by reading data from the embedded multimedia card. In this embodiment of the present application, the target firmware data in the temporary storage area of the above-mentioned baseboard management controller is saved in the above-mentioned embedded multimedia card through the pre-created communication connection link between the baseboard management controller of the server and the embedded multimedia card, realizing The firmware data of the baseboard management controller is stored externally, and after a data loss event occurs in the temporary storage area, recovery area, and active area of the baseboard management controller, the above-mentioned target firmware is acquired from the embedded multimedia card data, and use the target firmware data to restore the temporary storage area of the baseboard management controller, thereby improving the reliability of firmware data storage of the baseboard management controller and ensuring the stability of server performance.

本申请实施例公开了一种服务器组件启动方法,应用于服务器,参见图6所示,该方法包括:The embodiment of the present application discloses a method for starting a server component, which is applied to a server, as shown in FIG. 6. The method includes:

步骤S31:判断服务器中目标组件的活动区域是否出现损坏;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件。Step S31: Determine whether the active area of the target component in the server is damaged; the target component is a component in the server that supports the platform firmware protection recovery function.

本实施例中,当服务器上电之后,启动上述服务器中支持平台固件保护恢复功能的目标组件,并判断上述目标组件中的活动区域是否遭到损坏。例如,当服务器上电启动后,先判断用于启动的服务器基板管理控制器的活动区域是否出现损坏。In this embodiment, after the server is powered on, start the target component in the server that supports the platform firmware protection and recovery function, and determine whether the active area in the target component is damaged. For example, after the server is powered on and started, it is first determined whether the active area of the server BMC used for starting is damaged.

步骤S32:若所述活动区域出现损坏,则判断所述目标组件的恢复区域和暂存区域是否出现损坏。Step S32: If the active area is damaged, it is judged whether the recovery area and temporary storage area of the target component are damaged.

本实施例中,在判断服务器中目标组件的活动区域是否出现损坏之后,若上述活动区域出现损坏,则继续判断上述目标组件中的恢复区域和暂存区域是否出现损坏。在一种具体的实施方式中,若服务器中基板管理控制器活动区域出现损坏,则判断所述基板管理控制器中的恢复区域是否出现损坏,若所述基板管理控制器中的恢复区域未出现损坏,则可以利用上述恢复区域对上述活动区域进行恢复,并利用恢复后的活动区域启动所述基板管理控制器。In this embodiment, after determining whether the active area of the target component in the server is damaged, if the active area is damaged, continue to determine whether the recovery area and the temporary storage area in the target component are damaged. In a specific implementation manner, if the active area of the baseboard management controller in the server is damaged, it is judged whether the restoration area in the baseboard management controller is damaged; if the restoration area in the baseboard management controller is not damaged, the recovery area may be used to restore the active area, and the baseboard management controller may be started using the restored active area.

步骤S33:若所述暂存区域和所述恢复区域均出现损坏,则从外部存储芯片中读取预先保存的目标固件数据,并利用所述目标固件数据启动所述目标组件;所述目标固件数据为预先在所述暂存区域未出现损坏时从所述暂存区域传输至所述外部存储芯片中进行保存的固件数据。Step S33: If both the temporary storage area and the recovery area are damaged, read the pre-saved target firmware data from the external memory chip, and use the target firmware data to start the target component; the target firmware The data is firmware data that is transferred from the temporary storage area to the external memory chip for storage in advance when the temporary storage area is not damaged.

本实施例中,当所述活动区域出现损坏,并判断所述目标组件的恢复区域和暂存区域是否出现损坏之后,若上述暂存区域和上述恢复区域均出现损坏,则可以从外部存储芯片中获取到预先保存在本地的目标固件数据,并利用上述目标固件数据启动上述目标组件;其中,所述目标固件数据为在预先在上述暂存区域未出现损坏时,从上述暂存区域发送到上述外部存储芯片并进行保存的固件数据。进一步的,在获取到上述目标固件数据之后,可以利用上述目标固件数据启动上述目标组件。例如,当基板管理控制器的暂存区域、恢复区域和活动区域均出现损坏之后,可以利用从嵌入式多媒体卡中读取到预先保存的目标固件数据对所述基板管理控制器的暂存区域进行数据恢复,并利用恢复后的暂存区域对所述基板管理控制器的恢复区域进行恢复,再利用恢复后的恢复区域对所述基板管理控制器的活动区域进行恢复,并利用恢复后的活动区域启动所述基板管理控制器。In this embodiment, when the active area is damaged and it is determined whether the recovery area and the temporary storage area of the target component are damaged, if both the temporary storage area and the recovery area are damaged, the external memory chip can Obtain the target firmware data stored locally in advance, and use the target firmware data to start the target component; wherein, the target firmware data is sent from the temporary storage area to the The above external memory chip and save the firmware data. Further, after the target firmware data is acquired, the target component may be started by using the target firmware data. For example, when the temporary storage area, recovery area, and active area of the baseboard management controller are all damaged, the temporary storage area of the baseboard management controller can be updated by using the pre-saved target firmware data read from the embedded multimedia card. performing data recovery, using the restored temporary storage area to restore the recovery area of the baseboard management controller, and then using the restored recovery area to restore the active area of the baseboard management controller, and using the restored The active zone starts the baseboard management controller.

其中,关于上述步骤更加具体的处理过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。Wherein, for more specific processing procedures of the above steps, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.

可见,本申请实施例先判断服务器中目标组件的活动区域是否出现损坏,当所述活动区域出现损坏,则判断所述目标组件的恢复区域和暂存区域是否出现损坏,若所述暂存区域和所述恢复区域均出现损坏,则从外部存储芯片中读取预先保存的目标固件数据,并利用所述目标固件数据启动所述目标组件;所述目标固件数据为预先在所述暂存区域未出现损坏时从所述暂存区域传输至所述外部存储芯片中进行保存的固件数据。可见,本申请实施例在目标组件的活动区域、暂存区域和恢复区域均出现损坏时,可以通过从所述目标组件外部的存储芯片上,获取到预先保存的与所述目标组件暂存区域对应的目标固件数据,并利用上述目标固件数据启动所述目标组件,能够确保服务器固件的正常启动,进而保障服务器性能的稳定。It can be seen that in the embodiment of the present application, it is first judged whether the active area of the target component in the server is damaged. When the active area is damaged, it is judged whether the recovery area and the temporary storage area of the target component are damaged. If the temporary storage area and the recovery area are both damaged, then read the pre-saved target firmware data from the external memory chip, and use the target firmware data to start the target component; the target firmware data is pre-stored in the temporary storage area Firmware data transferred from the temporary storage area to the external memory chip for storage when no damage occurs. It can be seen that in the embodiment of the present application, when the active area, temporary storage area and recovery area of the target component are all damaged, the pre-saved temporary storage area of the target component can be obtained from the memory chip outside the target component. The corresponding target firmware data, and using the target firmware data to start the target component can ensure the normal startup of the server firmware, thereby ensuring the stability of the server performance.

相应的,本申请实施例还公开了一种服务器固件数据存储装置,应用于服务器,参见图7所示,该装置包括:Correspondingly, the embodiment of the present application also discloses a server firmware data storage device, which is applied to the server, as shown in Fig. 7, the device includes:

链路创建模块11,用于创建所述服务器的目标组件与外部存储芯片之间的通信连接链路;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件;A link creation module 11, configured to create a communication connection link between the target component of the server and the external memory chip; the target component is a component in the server that supports the platform firmware protection recovery function;

数据获取模块12,用于获取所述目标组件中暂存区域上保存的目标固件数据;A data acquisition module 12, configured to acquire the target firmware data stored on the temporary storage area in the target component;

数据保存模块13,用于通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据。The data storage module 13 is configured to transmit the target firmware data to the external memory chip for storage through the communication connection link, so that the target component, after a data loss event occurs in the temporary storage area, can The target firmware data is obtained by reading data from the external memory chip.

其中,关于上述各个模块的具体工作流程可以参考前述实施例中公开的相应内容,在此不再进行赘述。For the specific work flow of each of the above modules, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

可见,本申请实施例先创建所述服务器的目标组件与外部存储芯片之间的通信连接链路,然后获取所述目标组件中暂存区域上保存的目标固件数据,并通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据。可见,本申请实施例通过外部存储芯片提供的标准接口与服务器的目标组件之间建立通信连接链路,并通过上述通信连接链路将目标组件暂存区域的目标固件数据保存到上述外部存储芯片中,从而实现了固件数据的外部存储,提高了数据存储的可靠性,进而保障了服务器性能的稳定。It can be seen that in the embodiment of the present application, the communication connection link between the target component of the server and the external storage chip is first created, and then the target firmware data stored in the temporary storage area in the target component is obtained, and the communication link is passed through the communication connection link. transfer the target firmware data to the external memory chip for storage, so that the target component can obtain the Target firmware data. It can be seen that the embodiment of the present application establishes a communication connection link between the standard interface provided by the external memory chip and the target component of the server, and saves the target firmware data in the temporary storage area of the target component to the above-mentioned external memory chip through the above communication connection link In this way, the external storage of firmware data is realized, the reliability of data storage is improved, and the stability of server performance is guaranteed.

在一些具体实施例中,所述链路创建模块11,具体可以包括:In some specific embodiments, the link creation module 11 may specifically include:

第一链路创建单元,用于创建所述服务器的基板管理控制器与嵌入式多媒体卡之间的通信连接链路;a first link creation unit, configured to create a communication connection link between the baseboard management controller of the server and the embedded multimedia card;

相应的,所述数据获取模块12,具体可以包括:Correspondingly, the data acquisition module 12 may specifically include:

数据获取单元,用于获取所述基板管理控制器中暂存区域上保存的目标固件数据。The data acquisition unit is configured to acquire the target firmware data stored in the temporary storage area of the baseboard management controller.

在一些具体实施例中,所述数据保存模块13,具体可以包括:In some specific embodiments, the data storage module 13 may specifically include:

数据保存单元,用于通过所述通信连接链路将所述目标固件数据传输至所述嵌入式多媒体卡进行保存,以便所述基板管理控制器在所述暂存区域、恢复区域和活动区域均发生数据丢失事件后,通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据。A data storage unit, configured to transmit the target firmware data to the embedded multimedia card for storage through the communication connection link, so that the baseboard management controller can be stored in the temporary storage area, recovery area and active area After a data loss event occurs, the target firmware data is acquired by reading data from the embedded multimedia card.

在一些具体实施例中,所述数据保存单元之后,具体还可以包括:In some specific embodiments, after the data storage unit, it may further include:

第一数据恢复单元,用于利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器中的所述暂存区域、所述恢复区域和所述活动区域进行数据恢复。A first data restoration unit, configured to use the target firmware data read from the embedded multimedia card to restore the temporary storage area, the restoration area, and the active area in the baseboard management controller Perform data recovery.

在一些具体实施例中,所述第一数据恢复单元,具体可以包括:In some specific embodiments, the first data recovery unit may specifically include:

第二数据恢复单元,用于利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器的暂存区域进行数据恢复;A second data recovery unit, configured to recover data from the temporary storage area of the baseboard management controller by using the target firmware data read from the embedded multimedia card;

第三数据恢复单元,用于利用恢复后的所述暂存区域对所述基板管理控制器的恢复区域进行恢复;A third data recovery unit, configured to recover the recovery area of the baseboard management controller by using the recovered temporary storage area;

第四数据恢复单元,用于利用恢复后的所述恢复区域对所述基板管理控制器的活动区域进行恢复,以便利用恢复后的所述活动区域启动所述基板管理控制器。The fourth data recovery unit is configured to use the recovered recovery area to recover the active area of the baseboard management controller, so as to use the recovered active area to start the baseboard management controller.

在一些具体实施例中,所述链路创建模块11,具体可以包括:In some specific embodiments, the link creation module 11 may specifically include:

程序加载单元,用于在所述目标组件启动之后,获取外部存储芯片的驱动程序,并通过所述目标组件加载所述驱动程序;A program loading unit, configured to obtain the driver of the external memory chip after the target component is started, and load the driver through the target component;

第二链路创建单元,用于在所述驱动程序加载完毕后,将所述外部存储芯片挂载至所述目标组件,以搭建所述服务器的目标组件与外部存储芯片之间的通信连接链路。The second link creation unit is used to mount the external storage chip to the target component after the driver program is loaded, so as to build a communication connection chain between the target component of the server and the external storage chip road.

进一步的,本申请实施例还公开了一种电子设备,图8是根据一示例性实施例示出的电子设备20结构图,图中的内容不能认为是对本申请的使用范围的任何限制。Further, the embodiment of the present application also discloses an electronic device. FIG. 8 is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the figure should not be regarded as any limitation on the application scope of the present application.

图8为本申请实施例提供的一种电子设备20的结构示意图。该电子设备20,具体可以包括:至少一个处理器21、至少一个存储器22、电源23、通信接口24、输入输出接口25和通信总线26。其中,所述存储器22用于存储计算机程序,所述计算机程序由所述处理器21加载并执行,以实现前述任一实施例公开的服务器固件数据存储方法中的相关步骤。另外,本实施例中的电子设备20具体可以为电子计算机。FIG. 8 is a schematic structural diagram of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21 , at least one memory 22 , a power supply 23 , a communication interface 24 , an input/output interface 25 and a communication bus 26 . Wherein, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the server firmware data storage method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

本实施例中,电源23用于为电子设备20上的各硬件设备提供工作电压;通信接口24能够为电子设备20创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口25,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is applicable Any communication protocol in the technical solution of the present application is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the external, and its specific interface type can be selected according to specific application needs, here Not specifically limited.

另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源可以包括操作系统221、计算机程序222等,存储方式可以是短暂存储或者永久存储。In addition, the memory 22, as a resource storage carrier, can be a read-only memory, random access memory, magnetic disk or optical disk, etc., and the resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage. .

其中,操作系统221用于管理与控制电子设备20上的各硬件设备以及计算机程序222,其可以是Windows Server、Netware、Unix、Linux等。计算机程序222除了包括能够用于完成前述任一实施例公开的由电子设备20执行的服务器固件数据存储方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。Wherein, the operating system 221 is used to manage and control various hardware devices and computer programs 222 on the electronic device 20 , which may be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program 222 that can be used to complete the server firmware data storage method performed by the electronic device 20 disclosed in any of the foregoing embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

进一步的,本申请还公开了一种计算机可读存储介质,用于存储计算机程序;其中,所述计算机程序被处理器执行时实现前述公开的服务器固件数据存储方法。关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。Further, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the above-mentioned server firmware data storage method disclosed above is realized. Regarding the specific steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。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 apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. 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 apparatus comprising said element.

以上对本申请所提供的一种服务器固件数据存储方法、启动方法、装置、设备及介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above has introduced in detail a server firmware data storage method, startup method, device, equipment and media provided by this application. In this paper, specific examples have been used to illustrate the principle and implementation of this application. The description of the above embodiments It is only used to help understand the method of the present application and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, The contents of this specification should not be understood as limiting the application.

Claims (8)

1.一种服务器固件数据存储方法,其特征在于,应用于服务器,包括:1. A server firmware data storage method, characterized in that being applied to a server, comprising: 创建所述服务器的目标组件与外部存储芯片之间的通信连接链路;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件;Create a communication connection link between the target component of the server and the external storage chip; the target component is a component in the server that supports the platform firmware protection recovery function; 获取所述目标组件中暂存区域上保存的目标固件数据;Obtaining target firmware data stored in the temporary storage area in the target component; 通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据;The target firmware data is transmitted to the external storage chip through the communication connection link for storage, so that the target component can read from the external storage chip after a data loss event occurs in the temporary storage area. Obtain the target firmware data by means of data; 所述创建所述服务器的目标组件与外部存储芯片之间的通信连接链路,包括:创建所述服务器的基板管理控制器与嵌入式多媒体卡之间的通信连接链路;The creating the communication connection link between the target component of the server and the external memory chip includes: creating the communication connection link between the baseboard management controller of the server and the embedded multimedia card; 相应的,所述获取所述目标组件中暂存区域上保存的目标固件数据,包括:获取所述基板管理控制器中暂存区域上保存的目标固件数据;Correspondingly, the acquiring the target firmware data stored in the temporary storage area of the target component includes: acquiring the target firmware data stored in the temporary storage area of the baseboard management controller; 所述通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据,包括:The target firmware data is transmitted to the external storage chip through the communication connection link for storage, so that the target component can pass the data from the external storage chip after a data loss event occurs in the temporary storage area. The method of reading data to obtain the target firmware data includes: 通过所述通信连接链路将所述目标固件数据传输至所述嵌入式多媒体卡进行保存,以便所述基板管理控制器在所述暂存区域、恢复区域和活动区域均发生数据丢失事件后,通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据。Transmitting the target firmware data to the embedded multimedia card for storage through the communication connection link, so that after a data loss event occurs in the temporary storage area, recovery area, and active area, the baseboard management controller, The target firmware data is obtained by reading data from the embedded multimedia card. 2.根据权利要求1所述的服务器固件数据存储方法,其特征在于,所述通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据之后,还包括:2. server firmware data storage method according to claim 1, is characterized in that, after described acquisition described target firmware data by the mode of reading data from described embedded multimedia card, also comprise: 利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器中的所述暂存区域、所述恢复区域和所述活动区域进行数据恢复。performing data recovery on the temporary storage area, the recovery area and the active area in the baseboard management controller by using the target firmware data read from the embedded multimedia card. 3.根据权利要求2所述的服务器固件数据存储方法,其特征在于,所述利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器中的所述暂存区域、所述恢复区域和所述活动区域进行数据恢复,包括:3. The server firmware data storage method according to claim 2, characterized in that, said using said target firmware data read from said embedded multimedia card to said baseboard management controller Data recovery is performed in the staging area, the recovery area and the active area, including: 利用从所述嵌入式多媒体卡中读取到的所述目标固件数据对所述基板管理控制器的暂存区域进行数据恢复;performing data restoration on the temporary storage area of the baseboard management controller by using the target firmware data read from the embedded multimedia card; 利用恢复后的所述暂存区域对所述基板管理控制器的恢复区域进行恢复;Restoring the restoration area of the baseboard management controller by using the restored temporary storage area; 利用恢复后的所述恢复区域对所述基板管理控制器的活动区域进行恢复,以便利用恢复后的所述活动区域启动所述基板管理控制器。Restoring the active area of the baseboard management controller by using the restored restoration area, so as to start the baseboard management controller by using the restored active area. 4.根据权利要求1至3任一项所述的服务器固件数据存储方法,其特征在于,所述创建所述服务器的目标组件与外部存储芯片之间的通信连接链路,包括:4. The server firmware data storage method according to any one of claims 1 to 3, wherein the creating a communication connection link between the target component of the server and the external memory chip comprises: 在所述目标组件启动之后,获取外部存储芯片的驱动程序,并通过所述目标组件加载所述驱动程序;After the target component is started, obtain the driver program of the external storage chip, and load the driver program through the target component; 在所述驱动程序加载完毕后,将所述外部存储芯片挂载至所述目标组件,以搭建所述服务器的目标组件与外部存储芯片之间的通信连接链路。After the driver program is loaded, mount the external storage chip to the target component, so as to build a communication connection link between the target component of the server and the external storage chip. 5.一种服务器组件启动方法,其特征在于,应用于服务器,包括:5. A method for starting a server component, characterized in that being applied to a server, comprising: 判断所述服务器中目标组件的活动区域是否出现损坏;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件;所述目标组件为基板管理控制器;Judging whether the active area of the target component in the server is damaged; the target component is a component in the server that supports a platform firmware protection recovery function; the target component is a baseboard management controller; 若所述活动区域出现损坏,则判断所述基板管理控制器的恢复区域和暂存区域是否出现损坏;If the active area is damaged, determine whether the recovery area and the temporary storage area of the baseboard management controller are damaged; 若所述暂存区域和所述恢复区域均出现损坏,则从嵌入式多媒体卡中读取预先保存的目标固件数据,并利用所述目标固件数据启动所述基板管理控制器;所述目标固件数据为预先在所述暂存区域未出现损坏时,通过通信连接链路从所述暂存区域传输至所述嵌入式多媒体卡中进行保存的固件数据;所述通信连接链路为预先创建的所述基板管理控制器与所述嵌入式多媒体卡之间的通信连接链路。If both the temporary storage area and the recovery area are damaged, read the pre-saved target firmware data from the embedded multimedia card, and use the target firmware data to start the baseboard management controller; the target firmware The data is the firmware data that is transferred from the temporary storage area to the embedded multimedia card through the communication connection link when the temporary storage area is not damaged in advance; the communication connection link is pre-created A communication connection link between the baseboard management controller and the embedded multimedia card. 6.一种服务器固件数据存储装置,其特征在于,应用于服务器,包括:6. A server firmware data storage device, characterized in that it is applied to a server, comprising: 链路创建模块,用于创建所述服务器的目标组件与外部存储芯片之间的通信连接链路;所述目标组件为所述服务器中支持平台固件保护恢复功能的组件;A link creation module, configured to create a communication connection link between the target component of the server and the external storage chip; the target component is a component in the server that supports the protection and recovery function of platform firmware; 数据获取模块,用于获取所述目标组件中暂存区域上保存的目标固件数据;A data acquisition module, configured to acquire the target firmware data stored in the temporary storage area of the target component; 数据保存模块,用于通过所述通信连接链路将所述目标固件数据传输至所述外部存储芯片进行保存,以便所述目标组件在所述暂存区域发生数据丢失事件后,通过从所述外部存储芯片中读取数据的方式获取所述目标固件数据;A data storage module, configured to transmit the target firmware data to the external storage chip for storage through the communication connection link, so that the target component, after a data loss event occurs in the temporary storage area, can pass from the Obtain the target firmware data by reading data from an external memory chip; 其中,所述链路创建模块,具体用于:创建所述服务器的基板管理控制器与嵌入式多媒体卡之间的通信连接链路;Wherein, the link creation module is specifically used to: create a communication connection link between the baseboard management controller of the server and the embedded multimedia card; 相应的,所述数据获取模块,具体用于:获取所述基板管理控制器中暂存区域上保存的目标固件数据;Correspondingly, the data acquisition module is specifically configured to: acquire the target firmware data stored in the temporary storage area of the baseboard management controller; 所述数据保存模块,具体用于:通过所述通信连接链路将所述目标固件数据传输至所述嵌入式多媒体卡进行保存,以便所述基板管理控制器在所述暂存区域、恢复区域和活动区域均发生数据丢失事件后,通过从所述嵌入式多媒体卡中读取数据的方式获取所述目标固件数据。The data storage module is specifically configured to: transmit the target firmware data to the embedded multimedia card for storage through the communication connection link, so that the baseboard management controller can be stored in the temporary storage area and recovery area After a data loss event occurs in both the active area and the active area, the target firmware data is acquired by reading data from the embedded multimedia card. 7.一种电子设备,其特征在于,包括处理器和存储器;其中,所述处理器执行所述存储器中保存的计算机程序指令时实现如权利要求1至4任一项所述的服务器固件数据存储方法。7. An electronic device, characterized in that it includes a processor and a memory; wherein, when the processor executes the computer program instructions stored in the memory, it realizes the server firmware data according to any one of claims 1 to 4 storage method. 8.一种计算机可读存储介质,其特征在于,用于存储计算机程序指令;其中,所述计算机程序指令被处理器执行时实现如权利要求1至4任一项所述的服务器固件数据存储方法。8. A computer-readable storage medium, characterized in that it is used to store computer program instructions; wherein, when the computer program instructions are executed by a processor, the server firmware data storage according to any one of claims 1 to 4 is realized method.
CN202111062571.4A 2021-09-10 2021-09-10 Server firmware data storage method, startup method, device, equipment and medium Active CN113849432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111062571.4A CN113849432B (en) 2021-09-10 2021-09-10 Server firmware data storage method, startup method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111062571.4A CN113849432B (en) 2021-09-10 2021-09-10 Server firmware data storage method, startup method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113849432A CN113849432A (en) 2021-12-28
CN113849432B true CN113849432B (en) 2023-08-15

Family

ID=78973540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111062571.4A Active CN113849432B (en) 2021-09-10 2021-09-10 Server firmware data storage method, startup method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113849432B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN209821732U (en) * 2019-03-26 2019-12-20 南京铁道职业技术学院 Pull formula computer mainframe of convenient maintenance
CN112134448A (en) * 2020-08-04 2020-12-25 华为技术有限公司 Server and data center

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN209821732U (en) * 2019-03-26 2019-12-20 南京铁道职业技术学院 Pull formula computer mainframe of convenient maintenance
CN112134448A (en) * 2020-08-04 2020-12-25 华为技术有限公司 Server and data center

Also Published As

Publication number Publication date
CN113849432A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
CN110083374B (en) Upgrade rollback method, system and terminal equipment
US7421688B1 (en) Methods and systems for updating the firmware on a plurality of network-attached computing devices
CN103488498B (en) Computer booting method and computer
US7975030B2 (en) Remote configuration of devices using a secure connection
KR100941041B1 (en) Out-of-Memory and Seamless Shutdown Detection
US8266474B2 (en) Fast cluster failure detection
US20130067276A1 (en) Software and methods for recovering a network node that has experienced a fault
CN104866391B (en) A kind of end message backup method and device based on increment information system
TW201709081A (en) Automatic image recovery method and server system
JP5183542B2 (en) Computer system and setting management method
WO2022267407A1 (en) Automated operation and maintenance tool-based proxy deployment method and apparatus
CN111182033B (en) Method and equipment for restoring switch
CN106547645B (en) Method for automatically restoring image file and server system
CN108932249A (en) A kind of method and device managing file system
CN113672306B (en) Method, device, system and medium for recovery from abnormal self-checking of server components
CN107368384A (en) A kind of Linux server abnormal information dump system and method
CN109426514B (en) Service automation deployment method and device, electronic equipment and storage medium
WO2023109880A1 (en) Service recovery method, data processing unit and related device
CN113849432B (en) Server firmware data storage method, startup method, device, equipment and medium
CN110365839B (en) Shutdown method, shutdown device, shutdown medium and electronic equipment
US9880855B2 (en) Start-up control program, device, and method
TW201523447A (en) Server system and firmware update method
CN115048147B (en) A firmware upgrade method, device, equipment, and storage medium
CN114237982A (en) System disaster recovery switching method, device, equipment and storage medium
CN108845900A (en) A kind of method and device of test b BU data protection consistency

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
GR01 Patent grant
GR01 Patent grant