Movatterモバイル変換


[0]ホーム

URL:


CN108306959A - A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares - Google Patents

A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares
Download PDF

Info

Publication number
CN108306959A
CN108306959ACN201810083139.5ACN201810083139ACN108306959ACN 108306959 ACN108306959 ACN 108306959ACN 201810083139 ACN201810083139 ACN 201810083139ACN 108306959 ACN108306959 ACN 108306959A
Authority
CN
China
Prior art keywords
cpld
image file
target data
user terminal
firmware
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
Application number
CN201810083139.5A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co LtdfiledCriticalZhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810083139.5ApriorityCriticalpatent/CN108306959A/en
Publication of CN108306959ApublicationCriticalpatent/CN108306959A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种远程升级CPLD固件的方法、装置和计算机可读存储介质,BMC接收用户终端传输的镜像文件;对所述镜像文件进行解析,得到目标数据;该目标数据是完成CPLD固件升级所需使用的数据,BMC将所述目标数据发送给CPLD,CPLD依据接收到的目标数据,便可以实现CPLD固件的升级。BMC和CPLD之间具有通信连接,用户终端通过向BMC传输镜像文件的方式,来实现CPLD固件的升级,达到了通过远程操作实现CPLD固件升级的目的。相比于通过治具进行CPLD固件升级的方式,在实际应用中通过远程操作的方式能够更加方便的维护CPLD固件升级。

The embodiment of the present invention discloses a method, device and computer-readable storage medium for remotely upgrading CPLD firmware. BMC receives the image file transmitted by the user terminal; analyzes the image file to obtain target data; the target data is to complete the CPLD For the data used for firmware upgrade, the BMC sends the target data to the CPLD, and the CPLD can upgrade the CPLD firmware according to the received target data. There is a communication connection between the BMC and the CPLD, and the user terminal realizes the upgrade of the CPLD firmware by transmitting the image file to the BMC, and achieves the purpose of realizing the upgrade of the CPLD firmware through remote operation. Compared with the method of upgrading the CPLD firmware through a fixture, in practical applications, it is more convenient to maintain the CPLD firmware upgrade through remote operation.

Description

Translated fromChinese
一种远程升级CPLD固件的方法、装置和存储介质A method, device and storage medium for remotely upgrading CPLD firmware

技术领域technical field

本发明涉及服务器技术领域,特别是涉及一种远程升级CPLD固件的方法、装置和计算机可读存储介质。The invention relates to the technical field of servers, in particular to a method, device and computer-readable storage medium for remotely upgrading CPLD firmware.

背景技术Background technique

服务器主板上的复杂可编程逻辑器件(Complex Programmable Logic Device,CPLD)对系统功能实现和状态控制方面起着非常重要的作用。当前实现服务器主板CPLD固件升级只能通过治具进行本地升级,如果想实现上百台甚至更多服务器主板CPLD固件的升级会耗费大量的时间,对于系统维护性方面带来很大的挑战。The complex programmable logic device (Complex Programmable Logic Device, CPLD) on the server motherboard plays a very important role in system function realization and state control. Currently, the CPLD firmware upgrade of the server motherboard can only be upgraded locally through fixtures. If you want to upgrade the CPLD firmware of hundreds or more server motherboards, it will take a lot of time and bring great challenges to system maintainability.

如果能够对各服务器主板CPLD固件进行远程控制,实现CPLD固件的升级,将极大的简化CPLD升级的操作流程,并且有效的提升CPLD固件升级的效率。If it is possible to remotely control the CPLD firmware of each server main board to realize the upgrade of the CPLD firmware, the operation process of the CPLD upgrade will be greatly simplified, and the efficiency of the CPLD firmware upgrade will be effectively improved.

可见,如何通过远程控制实现CPLD固件的升级,是本领域技术人员亟待解决的问题。It can be seen that how to realize the upgrade of CPLD firmware through remote control is a problem to be solved urgently by those skilled in the art.

发明内容Contents of the invention

本发明实施例的目的是提供一种远程升级CPLD固件的方法、装置和计算机可读存储介质,可以通过远程控制实现CPLD固件的升级。The purpose of the embodiments of the present invention is to provide a method, device and computer-readable storage medium for remotely upgrading CPLD firmware, which can realize the upgrading of CPLD firmware through remote control.

为解决上述技术问题,本发明实施例提供一种远程升级CPLD固件的方法,包括:In order to solve the problems of the technologies described above, the embodiment of the present invention provides a method for remotely upgrading CPLD firmware, including:

接收用户终端传输的镜像文件;Receive the image file transmitted by the user terminal;

对所述镜像文件进行解析,得到目标数据;Analyzing the image file to obtain target data;

将所述目标数据发送给CPLD,以实现CPLD固件的升级。Send the target data to the CPLD, so as to realize the upgrading of the CPLD firmware.

可选的,在所述对所述镜像文件进行解析之前,还包括:Optionally, before parsing the image file, it also includes:

对所述镜像文件进行校验,并将通过校验的镜像文件保存至预设位置;Verifying the image file, and saving the image file that has passed the verification to a preset location;

相应的,所述对所述镜像文件进行解析包括:Correspondingly, the parsing of the image file includes:

对通过校验的镜像文件进行解析。Parse the image file that has passed the verification.

可选的,还包括:Optionally, also include:

当所述镜像文件未通过校验时,向所述用户终端发送反馈信息。When the image file fails the verification, send feedback information to the user terminal.

可选的,还包括:Optionally, also include:

接收所述CPLD发送的数据获取请求;receiving the data acquisition request sent by the CPLD;

依据所述数据获取请求中携带的标识符,向所述CPLD发送相应的目标数据。and sending corresponding target data to the CPLD according to the identifier carried in the data acquisition request.

可选的,还包括:Optionally, also include:

接收所述CPLD发送的用于表示完成所述CPLD固件升级的响应信息;并将所述响应信息发送至所述用户终端。receiving response information sent by the CPLD for indicating completion of the CPLD firmware upgrade; and sending the response information to the user terminal.

本发明实施例还提供了一种远程升级CPLD固件的装置,包括接收单元、解析单元和发送单元;The embodiment of the present invention also provides a device for remotely upgrading CPLD firmware, including a receiving unit, an analyzing unit and a sending unit;

所述接收单元,用于接收用户终端传输的镜像文件;The receiving unit is configured to receive the image file transmitted by the user terminal;

所述解析单元,用于对所述镜像文件进行解析,得到目标数据;The parsing unit is configured to parse the image file to obtain target data;

所述发送单元,用于将所述目标数据发送给CPLD,以实现CPLD固件的升级。The sending unit is configured to send the target data to the CPLD, so as to upgrade the firmware of the CPLD.

可选的,还包括校验单元;Optionally, a verification unit is also included;

所述校验单元,用于对所述镜像文件进行校验,并将通过校验的镜像文件保存至预设位置;The verification unit is configured to verify the image file, and save the image file that passes the verification to a preset location;

相应的,所述解析单元具体用于对通过校验的镜像文件进行解析。Correspondingly, the parsing unit is specifically configured to parse the image file that has passed the verification.

可选的,所述发送单元还用于当所述镜像文件未通过校验时,向所述用户终端发送反馈信息。Optionally, the sending unit is further configured to send feedback information to the user terminal when the image file fails the verification.

可选的,所述接收单元还用于接收所述CPLD发送的数据获取请求;Optionally, the receiving unit is further configured to receive a data acquisition request sent by the CPLD;

相应的,所述发送单元还用于依据所述数据获取请求中携带的标识符,向所述CPLD发送相应的目标数据。Correspondingly, the sending unit is further configured to send corresponding target data to the CPLD according to the identifier carried in the data acquisition request.

可选的,所述接收单元还用于接收所述CPLD发送的用于表示完成所述CPLD固件升级的响应信息;Optionally, the receiving unit is further configured to receive response information sent by the CPLD to indicate completion of the CPLD firmware upgrade;

相应的,所述发送单元还用于将所述响应信息发送至所述用户终端。Correspondingly, the sending unit is further configured to send the response information to the user terminal.

本发明实施例还提供了一种远程升级CPLD固件的装置,包括:Embodiments of the present invention also provide a device for remotely upgrading CPLD firmware, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序以实现如上述远程升级CPLD固件的方法的步骤。The processor is used to execute the computer program to realize the steps of the method for remotely upgrading CPLD firmware as described above.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述远程升级CPLD固件的方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for remotely upgrading CPLD firmware are realized.

由上述技术方案可以看出,BMC接收用户终端传输的镜像文件;对所述镜像文件进行解析,得到目标数据;该目标数据是完成CPLD固件升级所需使用的数据,BMC将所述目标数据发送给CPLD,CPLD依据接收到的目标数据,便可以实现CPLD固件的升级。BMC和CPLD之间具有通信连接,用户终端通过向BMC传输镜像文件的方式,来实现CPLD固件的升级,达到了通过远程操作实现CPLD固件升级的目的。相比于通过治具进行CPLD固件升级的方式,在实际应用中通过远程操作的方式能够更加方便的维护CPLD固件升级。As can be seen from the above technical scheme, the BMC receives the image file transmitted by the user terminal; the image file is analyzed to obtain the target data; the target data is the data required to complete the CPLD firmware upgrade, and the BMC sends the target data To the CPLD, the CPLD can upgrade the CPLD firmware according to the received target data. There is a communication connection between the BMC and the CPLD, and the user terminal realizes the upgrade of the CPLD firmware by transmitting the image file to the BMC, and achieves the purpose of realizing the upgrade of the CPLD firmware through remote operation. Compared with the method of upgrading CPLD firmware through fixtures, in practical applications, it is more convenient to maintain CPLD firmware upgrades through remote operation.

附图说明Description of drawings

为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. 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为本发明实施例提供的一种远程升级CPLD固件的方法的流程图;Fig. 1 is a flow chart of a method for remotely upgrading CPLD firmware provided by an embodiment of the present invention;

图2为本发明实施例提供的一种远程升级CPLD固件的装置的结构示意图;Fig. 2 is a schematic structural representation of a device for remotely upgrading CPLD firmware provided by an embodiment of the present invention;

图3为本发明实施例提供的一种远程升级CPLD固件的装置的硬件结构示意图。FIG. 3 is a schematic diagram of the hardware structure of a device for remotely upgrading CPLD firmware provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

接下来,详细介绍本发明实施例所提供的一种远程升级CPLD固件的方法。图1为本发明实施例提供的一种远程升级CPLD固件的方法的流程图,该方法包括:Next, a method for remotely upgrading CPLD firmware provided by an embodiment of the present invention is introduced in detail. Fig. 1 is a flow chart of a method for remotely upgrading CPLD firmware provided by an embodiment of the present invention, the method comprising:

S101:接收用户终端传输的镜像文件。S101: Receive the image file transmitted by the user terminal.

基板管理控制器(Baseboard Management Controller,BMC),可以实现服务器的远程管理控制。BMC和服务器上的CPLD可以进行通信。A baseboard management controller (Baseboard Management Controller, BMC) can implement remote management and control of the server. The BMC and the CPLD on the server can communicate.

在本发明实施例中,用户终端利用BMC实现对CPLD固件的远程升级控制。In the embodiment of the present invention, the user terminal uses the BMC to implement remote upgrade control of the CPLD firmware.

在本地系统即用户终端上通过文件传输工具,例如CURL命令行工具获取远端BMC的登录权限。用户终端获取BMC的登录权限后,便可以与该BMC进行信息的交互。On the local system, that is, the user terminal, use a file transfer tool, such as the CURL command-line tool, to obtain the login permission of the remote BMC. After obtaining the login authority of the BMC, the user terminal can exchange information with the BMC.

在具体实现中,用户终端依据BMC对应的IP地址,实现与BMC的交互。每个BMC有其对应的IP地址,在CURL命令行中输入不同的IP地址,便可以与该IP地址对应的BMC实现通信。In a specific implementation, the user terminal realizes the interaction with the BMC according to the IP address corresponding to the BMC. Each BMC has its corresponding IP address. Enter a different IP address in the CURL command line to communicate with the BMC corresponding to the IP address.

用户在CURL命令行中输入多个IP地址,便可以获取相应的多个BMC的登录权限,实现用户终端和多个BMC的交互。每个BMC和其对应的一个CPLD具有通信连接,故此,用户终端可以实现对多个CPLD的远程控制,从而可以实现对多台服务器主板CPLD固件的批量升级。为了便于介绍,后续内容中均以用户终端和一个BMC通信为例展开说明。By entering multiple IP addresses in the CURL command line, the user can obtain the login authority of the corresponding multiple BMCs, realizing the interaction between the user terminal and multiple BMCs. Each BMC has a communication connection with its corresponding CPLD. Therefore, the user terminal can realize remote control of multiple CPLDs, thereby realizing batch upgrade of CPLD firmware of multiple server motherboards. For ease of introduction, the communication between a user terminal and a BMC is taken as an example in the following content.

用户终端存储有用于实现CPLD固件升级的镜像文件,用户终端可以通过CURL命令行工具将镜像文件上传至BMC。The user terminal stores an image file for upgrading the CPLD firmware, and the user terminal can upload the image file to the BMC through the CURL command line tool.

S102:对所述镜像文件进行解析,得到目标数据。S102: Analyzing the image file to obtain target data.

在镜像文件中包含有实现CPLD固件升级所需使用的数据,为方便介绍,可以将这些数据称作目标数据。在镜像文件中除了包含有目标数据外,还包含有一些其它的数据,为了实现CPLD固件的升级,需要从镜像文件中提取出目标数据。在本发明实施例中,BMC对镜像文件进行解析,从而获取所需的目标数据。The image file contains the data needed to implement the CPLD firmware upgrade. For the convenience of introduction, these data can be called target data. In addition to the target data, the image file also contains some other data. In order to upgrade the CPLD firmware, the target data needs to be extracted from the image file. In the embodiment of the present invention, the BMC parses the image file, so as to obtain the required target data.

举例说明,BMC可以在接收到用户终端传输的镜像文件时,直接对该镜像文件进行解析。BMC也可以在接收到用户终端发送的CPLD升级指令后,对镜像文件进行解析。For example, when the BMC receives the image file transmitted by the user terminal, it can directly analyze the image file. The BMC can also analyze the image file after receiving the CPLD upgrade instruction sent by the user terminal.

其中,用户终端可以通过CURL命令行工具向BMC发送CPLD升级指令。Wherein, the user terminal can send the CPLD upgrade command to the BMC through the CURL command line tool.

以用户终端向BMC发送CPLD升级指令为例,在具体实现中,用户终端通过CURL命令行工具向BMC发送镜像文件,此时BMC可以保存接收到的镜像文件。当需要对服务器主板CPLD固件进行升级时,用户终端再通过CURL命令行工具向BMC发送CPLD升级指令,BMC接收到CPLD升级指令时,对保存的镜像文件进行解析。Taking the user terminal sending a CPLD upgrade command to the BMC as an example, in a specific implementation, the user terminal sends the image file to the BMC through the CURL command line tool, and the BMC can save the received image file at this time. When the CPLD firmware of the server mainboard needs to be upgraded, the user terminal sends the CPLD upgrade command to the BMC through the CURL command line tool, and the BMC analyzes the saved image file when receiving the CPLD upgrade command.

S103:将所述目标数据发送给CPLD,以实现CPLD固件的升级。S103: Send the target data to the CPLD, so as to upgrade the firmware of the CPLD.

BMC获取到目标数据后,可以利用通用输入/输出口(General Purpose InputOutput,GPIO)模拟国际标准测试协议(Joint Test Action Group,JTAG)的方式进行数据的传输,将目标数据传输给CPLD。CPLD依据接收到的目标数据,便可以完成CPLD固件的升级。After the BMC acquires the target data, it can use the general purpose input/output port (General Purpose Input Output, GPIO) to simulate the international standard test protocol (Joint Test Action Group, JTAG) to transmit the data, and transmit the target data to the CPLD. The CPLD can complete the upgrade of the CPLD firmware according to the received target data.

由上述技术方案可以看出,BMC接收用户终端传输的镜像文件;对所述镜像文件进行解析,得到目标数据;该目标数据是完成CPLD固件升级所需使用的数据,BMC将所述目标数据发送给CPLD,CPLD依据接收到的目标数据,便可以实现CPLD固件的升级。BMC和CPLD之间具有通信连接,用户终端通过向BMC传输镜像文件的方式,来实现CPLD固件的升级,达到了通过远程操作实现CPLD固件升级的目的。相比于通过治具进行CPLD固件升级的方式,在实际应用中通过远程操作的方式能够更加方便的维护CPLD固件升级。As can be seen from the above technical scheme, the BMC receives the image file transmitted by the user terminal; the image file is analyzed to obtain the target data; the target data is the data required to complete the CPLD firmware upgrade, and the BMC sends the target data To the CPLD, the CPLD can upgrade the CPLD firmware according to the received target data. There is a communication connection between the BMC and the CPLD, and the user terminal realizes the upgrade of the CPLD firmware by transmitting the image file to the BMC, and achieves the purpose of realizing the upgrade of the CPLD firmware through remote operation. Compared with the method of upgrading CPLD firmware through fixtures, in practical applications, it is more convenient to maintain CPLD firmware upgrades through remote operation.

在将镜像文件由用户终端传输至BMC的过程中,由于网络不稳定等原因,可能会存在镜像文件传输不完整的情况,当镜像文件出现损坏时会直接影响后续CPLD固件的升级。During the process of transferring the image file from the user terminal to the BMC, due to network instability and other reasons, the transfer of the image file may be incomplete. When the image file is damaged, it will directly affect the subsequent upgrade of the CPLD firmware.

为了保证镜像文件的完整性和正确性,在对镜像文件进行解析之前,可以先对其进行校验。当镜像文件通过校验后,可以该镜像文件保存至预设位置,例如存储到BMC的文件系统下,以便后续对通过校验的镜像文件进行解析。In order to ensure the integrity and correctness of the image file, before parsing the image file, it can be verified first. After the image file passes the verification, the image file can be saved to a preset location, for example, stored in the file system of the BMC, so that the image file that passes the verification can be analyzed later.

其中,对镜像文件的校验可以采用MD5校验工具,对镜像文件的完整性进行校验。Wherein, the verification of the mirror image file may use an MD5 verification tool to verify the integrity of the mirror image file.

考虑到不同产品类型其对应的镜像文件不尽相同,在校验过程中,可以对镜像文件的产品类型进行判断,为了区分不同的产品类型所对应的镜像文件,可以对镜像文件设置标识符。Considering that different product types correspond to different image files, during the verification process, the product type of the image file can be judged. In order to distinguish the image files corresponding to different product types, an identifier can be set for the image file.

例如,可以用数字进行标识,产品A对应的镜像文件,标识符设置为01,产品B对应的镜像文件,标识符设置为02,依次类推,对于不同的产品类型对应的镜像文件设置不同的标识符。For example, it can be identified by numbers. For the image file corresponding to product A, the identifier is set to 01, for the image file corresponding to product B, the identifier is set to 02, and so on. Set different identifiers for image files corresponding to different product types symbol.

在BMC对镜像文件的校验过程中,可能会存在未通过校验的镜像文件。当镜像文件未通过校验时则说明该镜像文件存在问题,为了保证顺利完成后续CPLD固件的升级,BMC需要重新获取该镜像文件。具体的,当所述镜像文件未通过校验时,BMC可以向所述用户终端发送反馈信息。During the verification process of the image file by the BMC, there may be some image files that fail the verification. If the image file fails to pass the verification, it means that there is a problem with the image file. In order to ensure the smooth completion of the subsequent CPLD firmware upgrade, the BMC needs to obtain the image file again. Specifically, when the image file fails the verification, the BMC may send feedback information to the user terminal.

反馈信息用于表示BMC接收到的镜像文件存在问题,用户终端接收到该反馈信息后,可以将相应的镜像文件重新发送给BMC。The feedback information is used to indicate that there is a problem with the image file received by the BMC. After receiving the feedback information, the user terminal can resend the corresponding image file to the BMC.

每个镜像文件有其对应的标识符,因此在反馈信息中可以携带有相应的标识符,以便于用户终端可以获知具体是哪种产品类型对应的镜像文件存在问题,从而有针对性的重新向BMC发送所需的镜像文件。Each image file has its corresponding identifier, so the corresponding identifier can be carried in the feedback information, so that the user terminal can know which product type corresponds to the image file that has a problem, so as to redirect the targeted BMC sends the required image files.

与用户终端向BMC传输镜像文件类似,由BMC向CPLD传输目标数据的过程中也可能存在目标数据损坏的问题。当目标数据存在问题时,CPLD将无法顺利完成CPLD固件的升级,故此,当CPLD依据目标数据无法完成CPLD固件的升级或者CPLD检测到目标数据存在问题时,CPLD可以向BMC发送数据获取请求,BMC接收到该数据获取请求时,可以依据所述数据获取请求中携带的标识符,向所述CPLD发送相应的目标数据。Similar to the transmission of the image file from the user terminal to the BMC, there may also be a problem of damage to the target data during the process of transmitting the target data from the BMC to the CPLD. When there is a problem with the target data, the CPLD will not be able to successfully upgrade the CPLD firmware. Therefore, when the CPLD cannot complete the upgrade of the CPLD firmware based on the target data or the CPLD detects a problem with the target data, the CPLD can send a data acquisition request to the BMC, and the BMC When the data acquisition request is received, corresponding target data may be sent to the CPLD according to the identifier carried in the data acquisition request.

对一个镜像文件进行解析后,可以获取相应的目标数据。不同类型的镜像文件,其对应的目标数据不尽相同。BMC依据标识符可以获知是哪个镜像文件的目标数据存在问题,以便于具有针对性的向CPLD传输所需的目标数据。After parsing an image file, the corresponding target data can be obtained. Different types of image files have different corresponding target data. According to the identifier, the BMC can know which image file has a problem with the target data, so as to transmit the required target data to the CPLD in a targeted manner.

当服务器主板的CPLD完成CPLD固件的升级后,为了便于用户终端获知CPLD固件升级的完成情况,CPLD可以向BMC发送响应信息,BMC可以将接收到的响应信息转发至用户终端。该响应信息用于表示CPLD已经完成CPLD固件的升级。After the CPLD on the server main board completes the upgrade of the CPLD firmware, in order for the user terminal to know the completion of the CPLD firmware upgrade, the CPLD can send a response message to the BMC, and the BMC can forward the received response message to the user terminal. The response information is used to indicate that the CPLD has completed upgrading the CPLD firmware.

图2为本发明实施例提供的一种远程升级CPLD固件的装置的结构示意图,所述装置包括接收单元21、解析单元22和发送单元23;Fig. 2 is a schematic structural diagram of a device for remotely upgrading CPLD firmware provided by an embodiment of the present invention, the device includes a receiving unit 21, an analysis unit 22 and a sending unit 23;

所述接收单元21,用于接收用户终端传输的镜像文件;The receiving unit 21 is configured to receive the image file transmitted by the user terminal;

所述解析单元22,用于对所述镜像文件进行解析,得到目标数据;The parsing unit 22 is configured to parse the image file to obtain target data;

所述发送单元23,用于将所述目标数据发送给CPLD,以实现CPLD固件的升级。The sending unit 23 is configured to send the target data to the CPLD, so as to upgrade the firmware of the CPLD.

可选的,还包括校验单元;Optionally, a verification unit is also included;

所述校验单元,用于对所述镜像文件进行校验,并将通过校验的镜像文件保存至预设位置;The verification unit is configured to verify the image file, and save the image file that passes the verification to a preset location;

相应的,所述解析单元具体用于对通过校验的镜像文件进行解析。Correspondingly, the parsing unit is specifically configured to parse the image file that has passed the verification.

可选的,所述发送单元还用于当所述镜像文件未通过校验时,向所述用户终端发送反馈信息。Optionally, the sending unit is further configured to send feedback information to the user terminal when the image file fails the verification.

可选的,所述接收单元还用于接收所述CPLD发送的数据获取请求;Optionally, the receiving unit is further configured to receive a data acquisition request sent by the CPLD;

相应的,所述发送单元还用于依据所述数据获取请求中携带的标识符,向所述CPLD发送相应的目标数据。Correspondingly, the sending unit is further configured to send corresponding target data to the CPLD according to the identifier carried in the data acquisition request.

可选的,所述接收单元还用于接收所述CPLD发送的用于表示完成所述CPLD固件升级的响应信息;Optionally, the receiving unit is further configured to receive response information sent by the CPLD to indicate completion of the CPLD firmware upgrade;

相应的,所述发送单元还用于将所述响应信息发送至所述用户终端。Correspondingly, the sending unit is further configured to send the response information to the user terminal.

图2所对应实施例中特征的说明可以参见图1所对应实施例的相关说明,这里不再一一赘述。For descriptions of features in the embodiment corresponding to FIG. 2 , reference may be made to relevant descriptions of the embodiment corresponding to FIG. 1 , and details will not be repeated here.

由上述技术方案可以看出,BMC接收用户终端传输的镜像文件;对所述镜像文件进行解析,得到目标数据;该目标数据是完成CPLD固件升级所需使用的数据,BMC将所述目标数据发送给CPLD,CPLD依据接收到的目标数据,便可以实现CPLD固件的升级。BMC和CPLD之间具有通信连接,用户终端通过向BMC传输镜像文件的方式,来实现CPLD固件的升级,达到了通过远程操作实现CPLD固件升级的目的。相比于通过治具进行CPLD固件升级的方式,在实际应用中通过远程操作的方式能够更加方便的维护CPLD固件升级。As can be seen from the above technical scheme, the BMC receives the image file transmitted by the user terminal; the image file is analyzed to obtain the target data; the target data is the data required to complete the CPLD firmware upgrade, and the BMC sends the target data To the CPLD, the CPLD can upgrade the CPLD firmware according to the received target data. There is a communication connection between the BMC and the CPLD, and the user terminal realizes the upgrade of the CPLD firmware by transmitting the image file to the BMC, and achieves the purpose of realizing the upgrade of the CPLD firmware through remote operation. Compared with the method of upgrading CPLD firmware through fixtures, in practical applications, it is more convenient to maintain CPLD firmware upgrades through remote operation.

图3为本发明实施例提供的一种远程升级CPLD固件的装置30的结构示意图,包括:存储器31,用于存储计算机程序;处理器32,用于执行所述计算机程序以实现如上述远程升级CPLD固件的方法的步骤。Fig. 3 is a schematic structural diagram of a device 30 for remotely upgrading CPLD firmware provided by an embodiment of the present invention, including: a memory 31 for storing a computer program; a processor 32 for executing the computer program to realize the above-mentioned remote upgrade The steps of a method of CPLD firmware.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述远程升级CPLD固件的方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for remotely upgrading CPLD firmware are realized.

以上对本发明实施例所提供的一种远程升级CPLD固件的方法、装置和计算机可读存储介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。A method, device, and computer-readable storage medium for remotely upgrading CPLD firmware provided by the embodiments of the present invention have been described above in detail. Each embodiment in the description 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. 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 the related information, please refer to the description of the method part. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。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 invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(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.

Claims (10)

CN201810083139.5A2018-01-292018-01-29A kind of method, apparatus and storage medium of remote upgrade CPLD firmwaresPendingCN108306959A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810083139.5ACN108306959A (en)2018-01-292018-01-29A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810083139.5ACN108306959A (en)2018-01-292018-01-29A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares

Publications (1)

Publication NumberPublication Date
CN108306959Atrue CN108306959A (en)2018-07-20

Family

ID=62866982

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810083139.5APendingCN108306959A (en)2018-01-292018-01-29A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares

Country Status (1)

CountryLink
CN (1)CN108306959A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109002318A (en)*2018-07-252018-12-14郑州云海信息技术有限公司A kind of firmware update of CPLD, device, equipment and medium
CN109491685A (en)*2018-11-012019-03-19郑州云海信息技术有限公司Method, apparatus, equipment and the storage medium of CPLD version are brushed under server
CN110502250A (en)*2019-07-122019-11-26苏州浪潮智能科技有限公司A kind of upgrade method and baseboard management controller
CN112068869A (en)*2020-09-102020-12-11浪潮商用机器有限公司 A kind of CPLD upgrade method, apparatus and equipment
CN112130876A (en)*2020-08-282020-12-25浪潮电子信息产业股份有限公司 A kind of remote upgrade method, system and device of BMC firmware
CN113591141A (en)*2021-05-282021-11-02山东英信计算机技术有限公司Firmware image file flash verification method, system and terminal based on fuzzy test
CN114217832A (en)*2021-11-302022-03-22浪潮(北京)电子信息产业有限公司BMC upgrading method, device, equipment and medium
CN114861190A (en)*2022-04-222022-08-05浪潮商用机器有限公司Method for upgrading firmware program of external component by BMC and related component
CN115729640A (en)*2022-11-072023-03-03超聚变数字技术有限公司 Firmware upgrade method, upgrade tool and computing device of programmable logic device
CN114500280B (en)*2022-01-062023-12-26新华三信息技术有限公司Firmware upgrading method and device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101593120A (en)*2009-06-292009-12-02成都市华为赛门铁克科技有限公司Be with outer upgrade method and system
CN102130951A (en)*2011-03-142011-07-20浪潮(北京)电子信息产业有限公司 A remote upgrade method for server and its programmable logic device
CN102662701A (en)*2012-03-282012-09-12中兴通讯股份有限公司Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN105468389A (en)*2014-09-042016-04-06中兴通讯股份有限公司CPLD-based remote upgrading control method and apparatus
CN107066305A (en)*2017-05-112017-08-18北京百度网讯科技有限公司Method and apparatus and server for the server firmware that updates server
CN107632846A (en)*2017-09-252018-01-26华为技术有限公司Firmware upgrade method and device, Shelf management module

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101593120A (en)*2009-06-292009-12-02成都市华为赛门铁克科技有限公司Be with outer upgrade method and system
CN102130951A (en)*2011-03-142011-07-20浪潮(北京)电子信息产业有限公司 A remote upgrade method for server and its programmable logic device
CN102662701A (en)*2012-03-282012-09-12中兴通讯股份有限公司Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN105468389A (en)*2014-09-042016-04-06中兴通讯股份有限公司CPLD-based remote upgrading control method and apparatus
CN107066305A (en)*2017-05-112017-08-18北京百度网讯科技有限公司Method and apparatus and server for the server firmware that updates server
CN107632846A (en)*2017-09-252018-01-26华为技术有限公司Firmware upgrade method and device, Shelf management module

Cited By (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109002318A (en)*2018-07-252018-12-14郑州云海信息技术有限公司A kind of firmware update of CPLD, device, equipment and medium
CN109491685A (en)*2018-11-012019-03-19郑州云海信息技术有限公司Method, apparatus, equipment and the storage medium of CPLD version are brushed under server
CN110502250A (en)*2019-07-122019-11-26苏州浪潮智能科技有限公司A kind of upgrade method and baseboard management controller
CN112130876A (en)*2020-08-282020-12-25浪潮电子信息产业股份有限公司 A kind of remote upgrade method, system and device of BMC firmware
CN112068869A (en)*2020-09-102020-12-11浪潮商用机器有限公司 A kind of CPLD upgrade method, apparatus and equipment
CN113591141A (en)*2021-05-282021-11-02山东英信计算机技术有限公司Firmware image file flash verification method, system and terminal based on fuzzy test
CN113591141B (en)*2021-05-282023-09-26山东英信计算机技术有限公司 Firmware image file flash verification method, system and terminal based on fuzz testing
CN114217832A (en)*2021-11-302022-03-22浪潮(北京)电子信息产业有限公司BMC upgrading method, device, equipment and medium
CN114500280B (en)*2022-01-062023-12-26新华三信息技术有限公司Firmware upgrading method and device and computer readable storage medium
CN114861190A (en)*2022-04-222022-08-05浪潮商用机器有限公司Method for upgrading firmware program of external component by BMC and related component
CN115729640A (en)*2022-11-072023-03-03超聚变数字技术有限公司 Firmware upgrade method, upgrade tool and computing device of programmable logic device

Similar Documents

PublicationPublication DateTitle
CN108306959A (en)A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares
CN108549580B (en)Method for automatically deploying Kubernets slave nodes and terminal equipment
CN110851471B (en) Distributed log data processing method, device and system
CN110032507A (en)Applied program testing method, device, system, electronic equipment and storage medium
CN106027644B (en)Service verification method and system
CN105262608B (en)Monitoring method and device for network service
CN111104139A (en) A firmware upgrade method, device, device and storage medium
CN106919485A (en)A kind of system based on configuration hardware testing instrument on server
CN104079571A (en)Method and device for recognizing Android simulator
CN109660391B (en) A pooled server system firmware upgrade method, system and related device
CN106528415A (en)Software compatibility test method, business platform and system
CN108875368A (en)A kind of safety detection method, apparatus and system
CN113722211B (en) A BMC debugging method, device, system and embedded device
CN107479917A (en)A kind of batch refresh PSU FW method
CN119363822A (en) A firmware upgrade method, system, computer device and storage medium
CN114221866A (en) Method, device and medium for terminal upgrade
CN114189553A (en)Flow playback method, system and computing equipment
CN103220170B (en)Method and device for automatically configuring and managing equipment
CN114489750A (en)Remote upgrading method and device
WO2024217338A1 (en)Gateway, and gateway hot upgrade method and system
CN103685405A (en)Network service system and firmware updating method
US9189370B2 (en)Smart terminal fuzzing apparatus and method using multi-node structure
CN116700751A (en)Upgrading method of server firmware and computing device
CN109286692A (en)A kind of method of configuration server IPMI static ip address
CN116860440A (en) A server management method, device, equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20180720

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp