CN104484205B - A kind of update device and method of I/O device firmware - Google Patents
A kind of update device and method of I/O device firmware Download PDFInfo
- Publication number
- CN104484205B CN104484205B CN201410787764.XA CN201410787764A CN104484205B CN 104484205 B CN104484205 B CN 104484205B CN 201410787764 A CN201410787764 A CN 201410787764A CN 104484205 B CN104484205 B CN 104484205B
- Authority
- CN
- China
- Prior art keywords
- firmware upgrade
- message
- firmware
- sequence number
- upgrade
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000005540 biological transmission Effects 0.000 claims abstract description 29
- CQIZBIFTOGBKDB-UHFFFAOYSA-N 4-cyclohexyl-1-methyl-3,6-dihydro-2h-pyridine Chemical compound C1N(C)CCC(C2CCCCC2)=C1 CQIZBIFTOGBKDB-UHFFFAOYSA-N 0.000 claims description 34
- 101100076239 Drosophila melanogaster Mctp gene Proteins 0.000 claims description 34
- 238000004891 communication Methods 0.000 claims description 30
- 238000012546 transfer Methods 0.000 claims description 22
- 238000010586 diagram Methods 0.000 description 25
- 238000009434 installation Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000004913 activation Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
本发明提供了一种IO设备固件的升级文件传输装置及方法,和一种IO设备固件的升级装置及方法,用以实现IO设备固件升级。本发明方法包括:固件升级系统确定输入输出IO设备支持固件升级,以及IO设备支持的报文长度;固件升级系统根据IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文;固件升级系统向IO设备传输携带有顺序号的IO设备固件升级报文。
The present invention provides an upgrade file transmission device and method for IO device firmware, and an upgrade device and method for IO device firmware, which are used to realize IO device firmware upgrade. The method of the present invention includes: the firmware upgrade system determines that the input and output IO devices support firmware upgrade, and the message length supported by the IO device; the firmware upgrade system divides the IO device firmware upgrade file according to the message length supported by the IO device, and obtains multiple An IO device firmware upgrade message carrying a sequence number; the firmware upgrade system transmits the IO device firmware upgrade message carrying a sequence number to the IO device.
Description
技术领域technical field
本发明涉及通信领域,尤其涉及一种IO设备固件的升级文件传输装置及方法,和一种IO设备固件的升级装置及方法。The present invention relates to the field of communications, in particular to an upgrade file transmission device and method for IO device firmware, and an upgrade device and method for IO device firmware.
背景技术Background technique
由于输入输出(Input Output,IO)设备存在功能方面的升级或漏洞(Bug)修订,因此需要对IO设备的固件(Firmware)进行升级处理,IO设备的固件是指IO设备内部处理器为完成设备功能运行的固件。Due to the functional upgrade or bug revision of the input and output (Input Output, IO) device, it is necessary to upgrade the firmware (Firmware) of the IO device. The firmware that the function runs on.
以X86服务器系统为例,如图1所示的X86服务器系统结构示意图,X86服务器系统主要由X86系统主机、带外管理模块(Board Management Controller,BMC)以及IO设备组成,其中,IO设备包括网卡、独立硬盘冗余阵列(Redundant Array of Independent Disks,RAID)控制器、图像处理单元(Graphic Processing Unit,GPU)、存储器等。对IO设备固件进行升级处理是指,将新的固件版本写入到IO设备中,代替现有的固件版本。具体操作如下:Taking the X86 server system as an example, the structural diagram of the X86 server system is shown in Figure 1. The X86 server system is mainly composed of an X86 system host, an out-of-band management module (Board Management Controller, BMC) and IO devices, wherein the IO devices include network cards , Redundant Array of Independent Disks (Redundant Array of Independent Disks, RAID) controller, Graphic Processing Unit (Graphic Processing Unit, GPU), memory, etc. Upgrading the firmware of the IO device refers to writing a new firmware version into the IO device to replace the existing firmware version. The specific operation is as follows:
如图2所示的IO设备固件升级时X86服务器系统结构示意图,通过外部管理设备或人工将新的固件版本发送到X86系统主机的操作系统(Operation System,OS)上,OS通过驱动调用升级工具将新的固件版本写入IO设备的存储器中,代替IO设备的存储器中现有的固件版本,以实现IO设备固件升级。As shown in Figure 2, the schematic diagram of the X86 server system structure when the IO device firmware is upgraded, the new firmware version is sent to the operating system (Operation System, OS) of the X86 system host through an external management device or manually, and the OS calls the upgrade tool through the driver Write the new firmware version into the memory of the IO device to replace the existing firmware version in the memory of the IO device, so as to realize the firmware upgrade of the IO device.
上述IO设备固件的升级方案主要依赖于X86系统主机的OS、升级工具及驱动。在现有的IO设备固件升级方案中,若人工操作IO设备固件升级,由于不同人安装的OS不同,不同的OS安装有不同的升级工具和驱动,导致人工操作的IO设备固件升级操作不统一;若远程管理软件操作IO设备固件升级,OS需要安装有引擎(Agent)和升级工具,使得IO设备固件升级方案操作复杂。The upgrade solution of the above-mentioned IO device firmware mainly depends on the OS, upgrade tools and drivers of the X86 system host. In the existing IO device firmware upgrade solution, if the IO device firmware upgrade is performed manually, because different people install different OSs, different OS installations have different upgrade tools and drivers, resulting in inconsistent IO device firmware upgrade operations manually. ; If the remote management software operates the IO device firmware upgrade, the OS needs to be equipped with an engine (Agent) and an upgrade tool, which makes the operation of the IO device firmware upgrade solution complicated.
综上所述,采用依赖于OS、升级工具及驱动对IO设备固件进行升级的方案,存在由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题。To sum up, the solution of upgrading the firmware of IO devices relying on OS, upgrade tools and drivers has the problem of inconsistency in manual IO device firmware upgrade operations due to different OSs, or due to remote management software operating IO device firmware. The upgrade makes the operation of the IO device firmware upgrade solution complicated and the realizability is low.
发明内容Contents of the invention
本发明实施例提供了一种IO设备固件的升级文件传输装置及方法,和一种IO设备固件的升级装置及方法,用以实现IO设备固件升级。Embodiments of the present invention provide an IO device firmware upgrade file transmission device and method, and an IO device firmware upgrade device and method, so as to realize IO device firmware upgrade.
第一方面,本发明实施例提供的一种IO设备固件的升级文件传输装置,包括:In the first aspect, an IO device firmware upgrade file transmission device provided by an embodiment of the present invention includes:
信息确定单元,用于确定输入输出IO设备支持固件升级,以及IO设备支持的报文长度;An information determination unit, configured to determine that the input and output IO devices support firmware upgrades, and the length of messages supported by the IO devices;
报文生成单元,用于根据信息确定单元确定的IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,生成多个携带有顺序号的IO设备固件升级报文;The message generation unit is used to divide and process the IO device firmware upgrade file according to the message length supported by the IO device determined by the information determination unit, and generate a plurality of IO device firmware upgrade messages carrying sequence numbers;
报文传输单元,用于向IO设备传输报文生成单元生成的携带有顺序号的IO设备固件升级报文。The message transmission unit is configured to transmit to the IO device the firmware upgrade message of the IO device, which is generated by the message generating unit and carries the sequence number.
结合第一方面,在第一种可能的实现方式中,所述装置与IO设备直接相连,所述装置直接向IO设备传输携带有顺序号的IO设备固件升级报文。With reference to the first aspect, in a first possible implementation manner, the apparatus is directly connected to the IO device, and the apparatus directly transmits an IO device firmware upgrade message carrying a sequence number to the IO device.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述装置与IO设备的连接基于控制元件传输协议(Management Component TransportProtocol,MCTP)。With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the connection between the apparatus and the IO device is based on a management component transport protocol (Management Component Transport Protocol, MCTP).
结合第一方面、第一方面的第一种或第二种任一可能的实现方式,在第一方面的第三种可能的实现方式中,信息确定单元具体用于:In combination with the first aspect, the first or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the information determination unit is specifically configured to:
向IO设备发送固件升级请求控制消息;Send a firmware upgrade request control message to the IO device;
接收IO设备根据固件升级请求控制消息发送的固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度。The firmware upgrade information sent by the IO device according to the firmware upgrade request control message is received. The firmware upgrade information includes the firmware upgrade supported by the IO device and the packet length supported by the IO device.
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,报文生成单元具体用于:In combination with the third possible implementation of the first aspect, in the fourth possible implementation of the first aspect, the message generating unit is specifically configured to:
以IO设备支持的报文长度为单位,将IO设备固件升级文件分割为多个IO设备固件升级报文,并根据每个IO设备固件升级报文在IO设备固件升级文件中的先后顺序,确定每个IO设备固件升级报文携带的顺序号。Taking the message length supported by the IO device as the unit, divide the IO device firmware upgrade file into multiple IO device firmware upgrade messages, and determine the order of each IO device firmware upgrade message in the IO device firmware upgrade file. The sequence number carried in the firmware upgrade message of each IO device.
第一方面中,通过信息确定单元、报文生成单元以及报文传输单元,具体的,报文生成单元根据信息确定单元确定的IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文,报文传输单元向IO设备传输报文生成单元生成的携带有顺序号的IO设备固件升级报文,使得IO设备可以根据接收的全部携带有顺序号的IO设备固件升级报文进行固件升级,实现了IO设备固件的升级。In the first aspect, through the information determination unit, the message generation unit and the message transmission unit, specifically, the message generation unit performs segmentation processing on the IO device firmware upgrade file according to the message length supported by the IO device determined by the information determination unit , to obtain a plurality of IO device firmware upgrade messages carrying sequence numbers, and the message transmission unit transmits the IO device firmware upgrade messages carrying sequence numbers generated by the message generation unit to the IO device, so that the IO device can The IO device firmware upgrade message carrying the sequence number is used for firmware upgrade, which realizes the upgrade of the IO device firmware.
第二方面,本发明实施例提供的一种IO设备固件的升级装置,包括:In a second aspect, an apparatus for upgrading firmware of an IO device provided in an embodiment of the present invention includes:
信息发送单元,用于向固件升级系统发送固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度;The information sending unit is used to send firmware upgrade information to the firmware upgrade system, the firmware upgrade information includes the firmware upgrade supported by the IO device, and the length of the message supported by the IO device;
报文接收单元,用于接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,IO设备固件升级报文是固件升级系统根据信息发送单元发送的固件升级信息,对IO设备固件升级文件进行分割处理得到的;The message receiving unit is used to receive the IO device firmware upgrade message with the sequence number transmitted by the firmware upgrade system. The IO device firmware upgrade message is the firmware upgrade information sent by the firmware upgrade system according to the information sending unit, and upgrades the IO device firmware. obtained by splitting the file;
固件升级单元,用于当确定报文接收单元成功接收固件升级系统传输的全部携带有顺序号的IO设备固件升级报文时,根据全部携带有顺序号的IO设备固件升级报文进行固件升级。The firmware upgrade unit is used to perform firmware upgrade according to all the IO device firmware upgrade messages carrying the sequence number when it is determined that the message receiving unit has successfully received all the IO device firmware upgrade messages carrying the sequence number transmitted by the firmware upgrade system.
结合第二方面,在第一种可能的实现方式中,所述装置与固件升级系统直接相连,所述装置直接接收固件升级系统传输的携带有顺序号的IO设备固件升级报文。With reference to the second aspect, in a first possible implementation manner, the device is directly connected to a firmware upgrade system, and the device directly receives an IO device firmware upgrade message carrying a sequence number transmitted by the firmware upgrade system.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述装置与固件升级系统的连接基于控制元件传输协议MCTP。With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the connection between the device and the firmware upgrade system is based on the control element transfer protocol MCTP.
结合第二方面、第二方面的第一种或第二种任一可能的实现方式,在第二方面的第三种可能的实现方式中,报文接收单元还用于:In combination with the second aspect, the first or the second possible implementation of the second aspect, in a third possible implementation of the second aspect, the message receiving unit is further configured to:
针对固件升级系统传输的每个携带有顺序号的IO设备固件升级报文执行:Execute for each IO device firmware upgrade message carrying a sequence number transmitted by the firmware upgrade system:
当接收固件升级系统传输的IO设备固件升级报文成功时,向固件升级系统发送报文接收成功消息,报文接收成功消息包括成功接收的IO设备固件升级报文的顺序号;When the IO device firmware upgrade message transmitted by the firmware upgrade system is received successfully, a message receiving success message is sent to the firmware upgrade system, and the message reception success message includes the sequence number of the successfully received IO device firmware upgrade message;
当接收固件升级系统传输的IO设备固件升级报文失败时,接收固件升级系统重传的携带有顺序号的IO设备固件升级报文。When receiving the IO device firmware upgrade message transmitted by the firmware upgrade system fails, the IO device firmware upgrade message carrying the sequence number retransmitted by the firmware upgrade system is received.
第二方面中,通过信息发送单元、报文接收单元以及固件升级单元,具体的,通过信息发送单元向固件升级系统发送固件升级信息,使得固件升级系统可以根据固件升级信息,对IO设备固件升级文件进行分割处理得到携带有顺序号的IO设备固件升级报文,报文接收单元接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,固件升级单元根据全部携带有顺序号的IO设备固件升级报文进行固件升级,实现了IO设备固件的升级。In the second aspect, through the information sending unit, the message receiving unit and the firmware upgrading unit, specifically, the firmware upgrading information is sent to the firmware upgrading system through the information sending unit, so that the firmware upgrading system can upgrade the firmware of the IO device according to the firmware upgrading information The file is divided and processed to obtain the IO device firmware upgrade message with the sequence number. The message receiving unit receives the IO device firmware upgrade message with the sequence number transmitted by the firmware upgrade system. The device firmware upgrade message is used for firmware upgrade, which realizes the upgrade of IO device firmware.
第三方面,本发明实施例提供的一种IO设备固件的升级文件传输方法,包括:In a third aspect, a method for transferring an upgrade file of an IO device firmware provided by an embodiment of the present invention includes:
固件升级系统确定输入输出IO设备支持固件升级,以及IO设备支持的报文长度;The firmware upgrade system determines that the input and output IO devices support firmware upgrades, as well as the message length supported by the IO devices;
固件升级系统根据IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文;The firmware upgrade system divides the IO device firmware upgrade file according to the message length supported by the IO device, and obtains multiple IO device firmware upgrade messages with sequence numbers;
固件升级系统向IO设备传输携带有顺序号的IO设备固件升级报文。The firmware upgrade system transmits an IO device firmware upgrade message carrying a sequence number to the IO device.
结合第三方面,在第一种可能的实现方式中,固件升级系统与IO设备直接相连,固件升级系统直接向IO设备传输携带有顺序号的IO设备固件升级报文。In combination with the third aspect, in the first possible implementation manner, the firmware upgrade system is directly connected to the IO device, and the firmware upgrade system directly transmits the IO device firmware upgrade message carrying the sequence number to the IO device.
结合第三方面的第一种可能的实现方式,在第三方面的的第二种可能的实现方式中,固件升级系统与IO设备的连接基于控制元件传输协议MCTP。With reference to the first possible implementation of the third aspect, in a second possible implementation of the third aspect, the connection between the firmware upgrade system and the IO device is based on the control element transfer protocol MCTP.
结合第三方面、第三面的第一种或第二种任一可能的实现方式,在第三方面的第三种可能的实现方式中,固件升级系统确定IO设备支持固件升级,以及IO设备支持的报文长度,包括:In combination with the third aspect, any of the first or second possible implementations of the third aspect, in the third possible implementation of the third aspect, the firmware upgrade system determines that the IO device supports firmware upgrades, and the IO device Supported packet lengths, including:
固件升级系统通过通讯通道向IO设备发送固件升级请求控制消息;The firmware upgrade system sends a firmware upgrade request control message to the IO device through the communication channel;
固件升级系统接收IO设备根据固件升级请求控制消息发送的固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度。The firmware upgrade system receives the firmware upgrade information sent by the IO device according to the firmware upgrade request control message. The firmware upgrade information includes the firmware upgrade supported by the IO device and the length of the message supported by the IO device.
结合第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,固件升级系统根据IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文,包括:In combination with the third possible implementation of the third aspect, in the fourth possible implementation of the third aspect, the firmware upgrade system divides the firmware upgrade file of the IO device according to the length of the message supported by the IO device, and obtains Multiple IO device firmware upgrade messages with sequence numbers, including:
固件升级系统以IO设备支持的报文长度为单位,将IO设备固件升级文件分割为多个IO设备固件升级报文,并根据每个IO设备固件升级报文在IO设备固件升级文件中的先后顺序,确定每个IO设备固件升级报文携带的顺序号。The firmware upgrade system divides the IO device firmware upgrade file into multiple IO device firmware upgrade messages based on the length of the message supported by the IO device, and according to the sequence of each IO device firmware upgrade message in the IO device firmware upgrade file Sequence, to determine the sequence number carried in each IO device firmware upgrade message.
第三方面中,通过固件升级系统根据IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文,向IO设备传输携带有顺序号的IO设备固件升级报文,使得IO设备可以根据接收的全部携带有顺序号的IO设备固件升级报文进行固件升级,实现了IO设备固件的升级。In the third aspect, the IO device firmware upgrade file is divided and processed through the firmware upgrade system according to the length of the message supported by the IO device, and a plurality of IO device firmware upgrade messages carrying sequence numbers are obtained, which are transmitted to the IO device with sequence numbers. No. IO device firmware upgrade message, so that the IO device can perform firmware upgrade according to all received IO device firmware upgrade messages carrying the sequence number, and realize the upgrade of the IO device firmware.
第四方面,本发明实施例提供的一种IO设备固件的升级方法,包括:In a fourth aspect, a method for upgrading firmware of an IO device provided by an embodiment of the present invention includes:
输入输出IO设备向固件升级系统发送固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度;The input and output IO devices send firmware upgrade information to the firmware upgrade system. The firmware upgrade information includes the firmware upgrade supported by the IO device and the length of the message supported by the IO device;
IO设备接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,IO设备固件升级报文是固件升级系统根据IO设备支持固件升级,以及IO设备支持的报文长度,对IO设备固件升级文件进行分割处理得到的;The IO device receives the IO device firmware upgrade message with the sequence number transmitted by the firmware upgrade system. The IO device firmware upgrade message is the IO device firmware upgrade system based on the IO device firmware upgrade and the length of the message supported by the IO device. The upgrade file is obtained by splitting;
当确定成功接收固件升级系统传输的全部携带有顺序号的IO设备固件升级报文时,IO设备根据全部携带有顺序号的IO设备固件升级报文进行固件升级。When it is determined that all IO device firmware upgrade messages carrying sequence numbers transmitted by the firmware upgrade system are successfully received, the IO device performs firmware upgrade according to all IO device firmware upgrade messages carrying sequence numbers.
结合第四方面,在第一种可能的实现方式中,IO设备与固件升级系统直接相连,IO设备直接接收固件升级系统传输的携带有顺序号的IO设备固件升级报文。In combination with the fourth aspect, in a first possible implementation manner, the IO device is directly connected to the firmware upgrade system, and the IO device directly receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system.
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,IO设备与固件升级系统的连接基于控制元件传输协议MCTP。With reference to the first possible implementation of the fourth aspect, in a second possible implementation of the fourth aspect, the connection between the IO device and the firmware upgrade system is based on the control element transfer protocol MCTP.
结合第四方面、第四方面的第一种或第二种任一可能的实现方式,在第四方面第三种可能的实现方式中,IO设备接收固件升级系统传输的携带有顺序号的IO设备固件升级报文之后,该方法还包括:In combination with the fourth aspect, the first or second possible implementation of the fourth aspect, in the third possible implementation of the fourth aspect, the IO device receives the IO with the sequence number transmitted by the firmware upgrade system. After the device firmware upgrade message, the method also includes:
IO设备针对固件升级系统传输的每个携带有顺序号的IO设备固件升级报文执行:The IO device executes for each IO device firmware upgrade message carrying a sequence number transmitted by the firmware upgrade system:
当接收固件升级系统传输的该IO设备固件升级报文成功时,IO设备向固件升级系统发送报文接收成功消息,报文接收成功消息包括成功接收的IO设备固件升级报文的顺序号;When the IO device firmware upgrade message transmitted by the firmware upgrade system is received successfully, the IO device sends a message reception success message to the firmware upgrade system, and the message reception success message includes the sequence number of the successfully received IO device firmware upgrade message;
当接收固件升级系统传输的IO设备固件升级报文失败时,IO设备接收固件升级系统重传的携带有顺序号的该IO设备固件升级报文。When receiving the IO device firmware upgrade message transmitted by the firmware upgrade system fails, the IO device receives the IO device firmware upgrade message carrying the sequence number retransmitted by the firmware upgrade system.
第四方面中,通过IO设备向固件升级系统发送固件升级信息,使得固件升级系统可以根据固件升级信息,对IO设备固件升级文件进行分割处理得到携带有顺序号的IO设备固件升级报文,IO设备接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,并根据全部携带有顺序号的IO设备固件升级报文进行固件升级,实现了IO设备固件的升级。In the fourth aspect, the firmware upgrade information is sent to the firmware upgrade system through the IO device, so that the firmware upgrade system can divide the IO device firmware upgrade file according to the firmware upgrade information to obtain the IO device firmware upgrade message carrying the sequence number, the IO device The device receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system, and performs firmware upgrade according to all the IO device firmware upgrade messages carrying the sequence number, realizing the upgrade of the IO device firmware.
附图说明Description of drawings
图1为X86服务器系统结构示意图;Fig. 1 is a schematic structural diagram of an X86 server system;
图2为IO设备固件升级时X86服务器系统结构示意图;Fig. 2 is a schematic structural diagram of the X86 server system when the IO device firmware is upgraded;
图3为本发明实施例提供的一种IO设备固件的升级文件传输装置结构示意图;3 is a schematic structural diagram of an upgrade file transmission device for IO device firmware provided by an embodiment of the present invention;
图4为本发明实施例提供的一种IO设备固件的升级装置结构示意图;4 is a schematic structural diagram of an upgrade device for IO device firmware provided by an embodiment of the present invention;
图5为本发明实施例提供的一种IO设备固件的升级文件传输方法流程示意图;FIG. 5 is a schematic flowchart of a method for transferring an upgrade file of an IO device firmware provided by an embodiment of the present invention;
图6为本发明实施例提供的X86服务器系统结构示意图;FIG. 6 is a schematic structural diagram of an X86 server system provided by an embodiment of the present invention;
图7为本发明实施例提供的X86服务器系统结构示意图;FIG. 7 is a schematic structural diagram of an X86 server system provided by an embodiment of the present invention;
图8a为本发明实施例提供的IO设备固件升级报文传输示意图;FIG. 8a is a schematic diagram of IO device firmware upgrade message transmission provided by an embodiment of the present invention;
图8b为本发明实施例提供的IO设备固件升级报文传输示意图;FIG. 8b is a schematic diagram of IO device firmware upgrade message transmission provided by the embodiment of the present invention;
图9为本发明实施例提供的一种IO设备固件的升级方法流程示意图;FIG. 9 is a schematic flowchart of a method for upgrading firmware of an IO device provided by an embodiment of the present invention;
图10为本发明实施例提供的一种IO设备固件的升级方法流程示意图;FIG. 10 is a schematic flowchart of a method for upgrading firmware of an IO device provided by an embodiment of the present invention;
图11为本发明实施例提供的一种IO设备固件的升级方法流程示意图;FIG. 11 is a schematic flowchart of a method for upgrading firmware of an IO device provided by an embodiment of the present invention;
图12为本发明实施例提供的X86服务器系统结构示意图;FIG. 12 is a schematic structural diagram of an X86 server system provided by an embodiment of the present invention;
图13为本发明实施例提供的X86服务器系统结构示意图;FIG. 13 is a schematic structural diagram of an X86 server system provided by an embodiment of the present invention;
图14为本发明实施例提供的一种IO设备固件的升级文件传输装置结构示意图;14 is a schematic structural diagram of an upgrade file transmission device for IO device firmware provided by an embodiment of the present invention;
图15为本发明实施例提供的一种IO设备固件的升级装置结构示意图。FIG. 15 is a schematic structural diagram of an upgrade device for firmware of an IO device provided by an embodiment of the present invention.
具体实施方式detailed description
现有的IO设备固件的升级方案主要依赖于OS、升级工具及驱动。若人工操作IO设备固件升级,由于不同人安装的OS不同,不同的OS安装有不同的升级工具和驱动,导致人工操作的IO设备固件升级操作不统一;若远程管理软件操作IO设备固件升级,OS需要安装引擎(Agent)和升级工具,使得IO设备固件升级方案操作复杂。Existing upgrade solutions for IO device firmware mainly depend on OS, upgrade tools and drivers. If the IO device firmware is upgraded manually, because different OSs are installed by different people, different OS installations have different upgrade tools and drivers, resulting in inconsistent IO device firmware upgrade operations by manual operation; if the remote management software operates the IO device firmware upgrade, The OS requires an installation engine (Agent) and an upgrade tool, which complicates the operation of the IO device firmware upgrade solution.
通过本发明实施例提供的一种IO设备固件的升级文件传输方法及装置,和一种IO设备固件的升级方法及装置,实现了IO设备固件的升级。由于本发明实施例中固件升级系统与IO设备直接相连,即无需依赖OS,固件升级系统可直接向IO设备传输IO设备固件的升级文件,进而IO设备实现固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题,本发明实施例中不需要OS下载安装引擎和升级工具。The upgrade of IO device firmware is realized through the method and device for upgrading file transmission of IO device firmware provided by the embodiments of the present invention, and the method and device for upgrading IO device firmware. Because the firmware upgrade system in the embodiment of the present invention is directly connected with the IO device, that is, without relying on the OS, the firmware upgrade system can directly transmit the upgrade file of the IO device firmware to the IO device, and then the IO device realizes firmware upgrade, avoiding the IO device upgrade in the prior art. The device firmware upgrade solution mainly depends on the OS. Due to different OSs, manual operation of the IO device firmware upgrade operation is not uniform, or because the remote management software operates the IO device firmware upgrade, the operation of the IO device firmware upgrade solution is complicated and feasible. Lower problem, in the embodiment of the present invention, there is no need for an OS download and installation engine and an upgrade tool.
以下实施例的序号仅代表实施例的先后顺序,并不代表实施例的优异。The serial numbers of the following embodiments only represent the sequence of the embodiments, and do not represent the excellence of the embodiments.
实施例一Embodiment one
如图3所示,本发明实施例提供的一种IO设备固件的升级文件传输装置,包括:As shown in FIG. 3, an upgrade file transmission device for IO device firmware provided by an embodiment of the present invention includes:
信息确定单元31,用于确定输入输出IO设备支持固件升级,以及IO设备支持的报文长度;An information determining unit 31, configured to determine that the input and output IO devices support firmware upgrades, and the length of messages supported by the IO devices;
报文生成单元32,用于根据信息确定单元31确定的IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,生成多个携带有顺序号的IO设备固件升级报文;The message generation unit 32 is used to divide and process the IO device firmware upgrade file according to the message length supported by the IO device determined by the information determination unit 31, and generate a plurality of IO device firmware upgrade messages carrying sequence numbers;
报文传输单元33,用于向IO设备传输报文生成单元32生成的携带有顺序号的IO设备固件升级报文。The message transmission unit 33 is configured to transmit the firmware upgrade message of the IO device generated by the message generation unit 32 and carrying the sequence number to the IO device.
较佳地,图3所述装置与IO设备直接相连,所述装置直接向IO设备传输携带有顺序号的IO设备固件升级报文。Preferably, the device described in FIG. 3 is directly connected to the IO device, and the device directly transmits an IO device firmware upgrade message carrying a sequence number to the IO device.
较佳地,图3所述装置与所述IO设备的连接基于控制元件传输协议MCTP。Preferably, the connection between the apparatus in FIG. 3 and the IO device is based on the control element transfer protocol MCTP.
具体的,图3所述装置与IO设备直接相连是指,图3所述装置与IO设备之间的连接无需通过任何装置(例如OS),图3所述装置可直接向IO设备传输IO设备固件升级文件,进而实现IO设备固件升级。实现图3所述装置与IO设备直接相连的方法有如下四种方式:Specifically, the direct connection between the device described in Figure 3 and the IO device means that the connection between the device described in Figure 3 and the IO device does not need to pass through any device (such as an OS), and the device described in Figure 3 can directly transmit the IO device to the IO device Firmware upgrade file, and then realize IO device firmware upgrade. There are four ways to realize the direct connection between the device described in Figure 3 and the IO device:
方式一:图3所述装置安装在基板管理控制器BMC上,图3所述装置与IO设备的连接基于MCTP。Mode 1: The device described in FIG. 3 is installed on the baseboard management controller BMC, and the connection between the device described in FIG. 3 and the IO device is based on MCTP.
方式二:图3所述装置安装在X86服务系统的外部设备上,图3所述装置与IO设备的连接基于MCTP,此时可实现X86服务系统的IO设备固件升级。Mode 2: The device described in Figure 3 is installed on the external equipment of the X86 service system, and the connection between the device described in Figure 3 and the IO device is based on MCTP, at this time, the firmware upgrade of the IO device of the X86 service system can be realized.
方式三:图3所述装置安装在BMC上,图3所述装置通过通讯通道与IO设备相连。Mode 3: The device described in Figure 3 is installed on the BMC, and the device described in Figure 3 is connected to the IO device through a communication channel.
方式四:图3所述装置安装在X86服务系统的外部设备上,图3所述装置通过通讯通道与IO设备相连,此时可实现X86服务系统的IO设备固件升级。Method 4: The device described in Figure 3 is installed on the external equipment of the X86 service system, and the device described in Figure 3 is connected to the IO device through a communication channel, at this time, the firmware upgrade of the IO device of the X86 service system can be realized.
较佳地,信息确定单元31具体用于:Preferably, the information determining unit 31 is specifically used for:
向IO设备发送固件升级请求控制消息;Send a firmware upgrade request control message to the IO device;
接收IO设备根据固件升级请求控制消息发送的固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度。The firmware upgrade information sent by the IO device according to the firmware upgrade request control message is received. The firmware upgrade information includes the firmware upgrade supported by the IO device and the packet length supported by the IO device.
较佳地,报文生成单元32具体用于:Preferably, the message generating unit 32 is specifically used for:
以IO设备支持的报文长度为单位,将IO设备固件升级文件分割为多个IO设备固件升级报文,并根据每个IO设备固件升级报文在IO设备固件升级文件中的先后顺序,确定每个IO设备固件升级报文携带的顺序号。Taking the message length supported by the IO device as the unit, divide the IO device firmware upgrade file into multiple IO device firmware upgrade messages, and determine the order of each IO device firmware upgrade message in the IO device firmware upgrade file. The sequence number carried in the firmware upgrade message of each IO device.
实施例一中,通过信息确定单元31、报文生成单元32以及报文传输单元33,具体的,报文生成单元32根据信息确定单元31确定的IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文,报文传输单元33向IO设备传输报文生成单元32生成的携带有顺序号的IO设备固件升级报文,使得IO设备可以根据接收的全部携带有顺序号的IO设备固件升级报文进行固件升级,实现了IO设备固件的升级。由于本发明实施例中图3所示装置与IO设备直接相连,即无需依赖OS,图3所示装置可直接向IO设备传输IO设备固件的升级文件,进而IO设备实现固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题。In the first embodiment, through the information determination unit 31, the message generation unit 32 and the message transmission unit 33, specifically, the message generation unit 32 determines the length of the message supported by the IO device according to the information determination unit 31, and the IO device firmware The upgrade file is divided and processed to obtain a plurality of IO device firmware upgrade messages that carry the sequence number, and the message transmission unit 33 transmits the IO device firmware upgrade message that the message generation unit 32 generates to the IO device, so that The IO device can perform firmware upgrade according to all received IO device firmware upgrade messages carrying sequence numbers, thereby realizing the upgrade of the IO device firmware. Since the device shown in Figure 3 in the embodiment of the present invention is directly connected to the IO device, that is, without relying on the OS, the device shown in Figure 3 can directly transmit the upgrade file of the IO device firmware to the IO device, and then the IO device can implement firmware upgrade, avoiding the current In the existing technology, the upgrade solution of IO device firmware mainly depends on the OS. Due to different OSs, the manual operation of IO device firmware upgrade operations is not uniform, or because the remote management software operates the IO device firmware upgrade, the operation of the IO device firmware upgrade solution is complicated. , a problem of low realizability.
实施例二Embodiment two
如图4所示,本发明实施例提供的一种IO设备固件的升级装置,包括:As shown in Figure 4, an IO device firmware upgrade device provided by an embodiment of the present invention includes:
信息发送单元41,用于向固件升级系统发送固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度;The information sending unit 41 is used to send firmware upgrade information to the firmware upgrade system, and the firmware upgrade information includes the firmware upgrade supported by the IO device and the message length supported by the IO device;
报文接收单元42,用于接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,IO设备固件升级报文是固件升级系统根据信息发送单元41发送的固件升级信息,对IO设备固件升级文件进行分割处理得到的;The message receiving unit 42 is used to receive the IO device firmware upgrade message with the sequence number transmitted by the firmware upgrade system. The IO device firmware upgrade message is the firmware upgrade information sent by the firmware upgrade system according to the information sending unit 41. For the IO device The firmware upgrade file is divided and processed;
固件升级单元43,用于当确定报文接收单元42成功接收固件升级系统传输的全部携带有顺序号的IO设备固件升级报文时,根据全部携带有顺序号的IO设备固件升级报文进行固件升级。The firmware upgrade unit 43 is used to perform firmware upgrade according to all the IO device firmware upgrade messages carrying the sequence number when it is determined that the message receiving unit 42 successfully receives all the IO device firmware upgrade messages transmitted by the firmware upgrade system. upgrade.
较佳地,图4所述装置与固件升级系统直接相连,图4所述装置直接接收固件升级系统传输的携带有顺序号的IO设备固件升级报文。Preferably, the device described in FIG. 4 is directly connected to the firmware upgrade system, and the device described in FIG. 4 directly receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system.
较佳地,图4所述装置与固件升级系统的连接基于控制元件传输协议MCTP。Preferably, the connection between the device described in FIG. 4 and the firmware upgrade system is based on the control element transfer protocol MCTP.
较佳地,报文接收单元42还用于:Preferably, the message receiving unit 42 is also used for:
针对固件升级系统传输的每个携带有顺序号的IO设备固件升级报文执行:Execute for each IO device firmware upgrade message carrying a sequence number transmitted by the firmware upgrade system:
当接收固件升级系统传输的该IO设备固件升级报文成功时,向固件升级系统发送报文接收成功消息,报文接收成功消息包括成功接收的IO设备固件升级报文的顺序号;When the IO device firmware upgrade message transmitted by the firmware upgrade system is received successfully, a message receiving success message is sent to the firmware upgrade system, and the message reception success message includes the sequence number of the successfully received IO device firmware upgrade message;
当接收固件升级系统传输的IO设备固件升级报文失败时,接收固件升级系统重传的携带有顺序号的该IO设备固件升级报文。When receiving the IO device firmware upgrade message transmitted by the firmware upgrade system fails, the IO device firmware upgrade message carrying the sequence number retransmitted by the firmware upgrade system is received.
实施例二中,通过信息发送单元41、报文接收单元42以及固件升级单元43,具体的,通过信息发送单元41向固件升级系统发送固件升级信息,使得固件升级系统可以根据固件升级信息,对IO设备固件升级文件进行分割处理得到携带有顺序号的IO设备固件升级报文,报文接收单元42接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,固件升级单元43根据全部携带有顺序号的IO设备固件升级报文进行固件升级,实现了IO设备固件的升级。由于本发明实施例中图4所示装置与固件升级系统直接相连,即无需依赖OS,图4所示装置可直接接收固件升级系统传输的IO设备固件的升级文件,进而实现IO设备固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题。In the second embodiment, through the information sending unit 41, the message receiving unit 42 and the firmware upgrading unit 43, specifically, the firmware upgrading information is sent to the firmware upgrading system through the information sending unit 41, so that the firmware upgrading system can update the firmware according to the firmware upgrading information. The IO device firmware upgrade file is divided and processed to obtain the IO device firmware upgrade message carrying the sequence number, the message receiving unit 42 receives the IO device firmware upgrade message that the firmware upgrade system transmits and carries the sequence number, and the firmware upgrade unit 43 according to all The IO device firmware upgrade message carrying the sequence number is used for firmware upgrade, which realizes the upgrade of the IO device firmware. Since the device shown in FIG. 4 in the embodiment of the present invention is directly connected to the firmware upgrade system, that is, without relying on the OS, the device shown in FIG. 4 can directly receive the upgrade file of the IO device firmware transmitted by the firmware upgrade system, and then realize the upgrade of the IO device firmware. It avoids the problem that the IO device firmware upgrade scheme in the prior art mainly depends on the OS, and the manual IO device firmware upgrade operation is not uniform due to different OSs, or the IO device firmware is upgraded due to the remote management software operating the IO device firmware upgrade. The scheme operation is complicated and the realizability is low.
实施例三Embodiment three
如图5所示,本发明实施例提供的一种IO设备固件的升级文件传输方法,包括:As shown in Fig. 5, a kind of IO device firmware upgrade file transmission method provided by the embodiment of the present invention includes:
S501、固件升级系统确定输入输出IO设备支持固件升级,以及IO设备支持的报文长度;S501. The firmware upgrade system determines that the input and output IO devices support firmware upgrades, and the length of messages supported by the IO devices;
S502、固件升级系统根据IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文;S502. The firmware upgrade system divides the IO device firmware upgrade file according to the message length supported by the IO device, and obtains a plurality of IO device firmware upgrade messages carrying sequence numbers;
S503、固件升级系统向IO设备传输携带有顺序号的IO设备固件升级报文。S503. The firmware upgrade system transmits the IO device firmware upgrade message carrying the sequence number to the IO device.
较佳地,固件升级系统与IO设备直接相连,固件升级系统直接向IO设备传输携带有顺序号的IO设备固件升级报文。Preferably, the firmware upgrade system is directly connected to the IO device, and the firmware upgrade system directly transmits the IO device firmware upgrade message carrying the sequence number to the IO device.
较佳地,固件升级系统与IO设备的连接基于控制元件传输协议MCTP。Preferably, the connection between the firmware upgrade system and the IO device is based on the control element transfer protocol MCTP.
具体的,固件升级系统与IO设备直接相连是指,固件升级系统与IO设备之间的连接无需通过任何装置(例如OS),固件升级系统可直接向IO设备传输IO设备固件升级文件,进而实现IO设备固件升级。实现固件升级系统与IO设备直接相连的方法有如下四种方式:Specifically, the direct connection between the firmware upgrade system and the IO device means that the connection between the firmware upgrade system and the IO device does not need to pass through any device (such as an OS), and the firmware upgrade system can directly transmit the IO device firmware upgrade file to the IO device, thereby realizing IO device firmware upgrade. There are four ways to realize the direct connection between the firmware upgrade system and the IO device:
方式一:固件升级系统安装在基板管理控制器BMC上,固件升级系统与IO设备的连接基于MCTP。Method 1: The firmware upgrade system is installed on the baseboard management controller BMC, and the connection between the firmware upgrade system and the IO device is based on MCTP.
以X86服务系统为例,当固件升级系统安装在X86服务系统的基板管理控制器BMC上时,X86服务系统的结构示意图如图6所示,固件升级系统与IO设备之间的连接支持总线承载MCTP协议(Management Component Transport Protocol,MCTP over PCIe),固件升级系统与IO设备之间通过总线承载PCIe通讯通道直接进行文件传输。Taking the X86 service system as an example, when the firmware upgrade system is installed on the baseboard management controller (BMC) of the X86 service system, the structural diagram of the X86 service system is shown in Figure 6. The connection between the firmware upgrade system and the IO device supports bus carrying MCTP protocol (Management Component Transport Protocol, MCTP over PCIe), between the firmware upgrade system and the IO device, the bus carries the PCIe communication channel for direct file transfer.
方式二:固件升级系统安装在X86服务系统的外部设备上,固件升级系统与IO设备的连接基于MCTP,此时可实现X86服务系统的IO设备固件升级。Method 2: The firmware upgrade system is installed on the external device of the X86 service system. The connection between the firmware upgrade system and the IO device is based on MCTP. At this time, the firmware upgrade of the IO device of the X86 service system can be realized.
当固件升级系统安装在X86服务系统的外部设备上时,IO设备与固件升级系统的连接结构示意图如图7所示,IO设备与固件升级系统之间的连接支持MCTP over PCIe,固件升级系统与IO设备之间通过PCIe通讯通道直接进行文件传输。When the firmware upgrade system is installed on the external device of the X86 service system, the connection structure diagram of the IO device and the firmware upgrade system is shown in Figure 7. The connection between the IO device and the firmware upgrade system supports MCTP over PCIe, and the firmware upgrade system and Direct file transfer between IO devices through the PCIe communication channel.
方式三:固件升级系统安装在BMC上,固件升级系统通过通讯通道与IO设备相连。Method 3: The firmware upgrade system is installed on the BMC, and the firmware upgrade system is connected to the IO device through the communication channel.
以X86服务系统为例,当固件升级系统安装在X86服务系统的基板管理控制器BMC上时,X86服务系统的结构示意图如图12所示,固件升级系统与IO设备通过通讯通道直接进行协议通讯。通讯通道物理上是IO设备的管理通道,可以是两线式串行总线(I2C,Inter-Integrated Circuit)或以太Ethernet等其他网口,通过此通讯通道,固件升级系统可以与IO设备进行协议通讯,直接传递固件升级文件。Taking the X86 service system as an example, when the firmware upgrade system is installed on the baseboard management controller BMC of the X86 service system, the structural diagram of the X86 service system is shown in Figure 12. The firmware upgrade system and the IO device directly communicate with each other through the communication channel. . The communication channel is physically the management channel of the IO device. It can be a two-wire serial bus (I2C, Inter-Integrated Circuit) or other network ports such as Ethernet. Through this communication channel, the firmware upgrade system can communicate with the IO device. , directly transfer the firmware upgrade file.
方式四:固件升级系统安装在X86服务系统的外部设备上,固件升级系统通过通讯通道与IO设备相连,此时可实现X86服务系统的IO设备固件升级。Method 4: The firmware upgrade system is installed on the external device of the X86 service system, and the firmware upgrade system is connected to the IO device through the communication channel. At this time, the firmware upgrade of the IO device of the X86 service system can be realized.
当固件升级系统安装在X86服务系统的外部设备上时,X86服务系统与固件升级系统的连接结构示意图如图13所示,固件升级系统与IO设备通过通讯通道直接进行协议通讯。When the firmware upgrade system is installed on the external device of the X86 service system, the schematic diagram of the connection structure between the X86 service system and the firmware upgrade system is shown in Figure 13. The firmware upgrade system and the IO device directly communicate with each other through the communication channel.
其中,方式一与方式二中固件升级系统与IO设备的连接基于MCTP,固件升级系统与IO设备之间进行文件传输需通过PCIe通讯通道,PCIe通讯通道是固件升级系统与IO设备之间固有的;而方式三与方式四中,在固件升级系统与IO设备之间进行文件传输之前,需建立固件升级系统与IO设备之间的通讯通道,此通讯通道并非PCIe通讯通道,可以是两线式串行总线(I2C,Inter-Integrated Circuit)或以太Ethernet等其他网口,进而固件升级系统与IO设备可以通过建立的通讯通道直接进行文件传输。Among them, the connection between the firmware upgrade system and the IO device in method 1 and method 2 is based on MCTP, and the file transfer between the firmware upgrade system and the IO device needs to pass through the PCIe communication channel, which is an inherent connection between the firmware upgrade system and the IO device. ; In methods 3 and 4, before the file transfer between the firmware upgrade system and the IO device, a communication channel between the firmware upgrade system and the IO device needs to be established. This communication channel is not a PCIe communication channel, and can be a two-wire type Serial bus (I2C, Inter-Integrated Circuit) or Ethernet and other network ports, and then the firmware upgrade system and IO devices can directly transfer files through the established communication channel.
针对上述方式一中固件升级系统与IO设备的连接方式或方式二中固件升级系统与IO设备的连接方式,本发明实施例中IO设备固件的升级文件传输方法如下:For the connection mode between the firmware upgrade system and the IO device in the above mode 1 or the connection mode between the firmware upgrade system and the IO device in the mode 2, the upgrade file transmission method of the IO device firmware in the embodiment of the present invention is as follows:
较佳地,S501中固件升级系统确定IO设备支持固件升级,以及IO设备支持的报文长度,包括:Preferably, the firmware upgrade system in S501 determines that the IO device supports firmware upgrade, and the length of the message supported by the IO device, including:
固件升级系统向IO设备发送固件升级请求控制消息;The firmware upgrade system sends a firmware upgrade request control message to the IO device;
固件升级系统接收IO设备根据固件升级请求控制消息发送的固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的MCTP报文长度。The firmware upgrade system receives the firmware upgrade information sent by the IO device according to the firmware upgrade request control message. The firmware upgrade information includes the firmware upgrade supported by the IO device and the length of the MCTP message supported by the IO device.
本发明实施例中,要求IO设备支持固件升级,即固件升级系统与X86服务系统的主机之间的连接支持MCTP over PCIe。In the embodiment of the present invention, the IO device is required to support firmware upgrade, that is, the connection between the firmware upgrade system and the host of the X86 service system supports MCTP over PCIe.
较佳地,S502中固件升级系统根据IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文,包括:Preferably, the firmware upgrade system in S502 splits the IO device firmware upgrade file according to the message length supported by the IO device, and obtains a plurality of IO device firmware upgrade messages carrying sequence numbers, including:
固件升级系统以IO设备支持的MCTP报文长度为单位,将IO设备固件升级文件分割为符合MCTP报文格式的多个IO设备固件升级报文,并根据每个IO设备固件升级报文在IO设备固件升级文件中的先后顺序,确定每个IO设备固件升级报文携带的顺序号。The firmware upgrade system divides the IO device firmware upgrade file into multiple IO device firmware upgrade messages conforming to the MCTP message format based on the length of the MCTP message supported by the IO device. The sequence in the device firmware upgrade file determines the sequence number carried in each IO device firmware upgrade message.
标准MCTP报文格式如表1所示:The standard MCTP message format is shown in Table 1:
表1Table 1
本发明实施例中,继承标准MCTP头部外,扩展信息消息体(Message Body)的详细定义如表2a和表2b所示:In the embodiment of the present invention, in addition to inheriting the standard MCTP header, the detailed definition of the extended information message body (Message Body) is as shown in Table 2a and Table 2b:
表2aTable 2a
表2bTable 2b
本发明实施例中,固件升级系统和IO设备在交互过程中需要保留的参数至少包括表2b中的报文顺序号、偏置以及数据长度。In the embodiment of the present invention, the parameters that need to be retained during the interaction process between the firmware upgrade system and the IO device include at least the message sequence number, offset and data length in Table 2b.
较佳地,S503中固件升级系统向IO设备传输携带有顺序号的IO设备固件升级报文的方法包括:Preferably, the method for the firmware upgrade system in S503 to transmit the IO device firmware upgrade message carrying the sequence number to the IO device includes:
固件升级系统按顺序号向IO设备连续传输指定数目的IO设备固件升级报文,连续传输的IO设备固件升级报文的数目与用于传输IO设备固件升级报文的窗口数目相同;The firmware upgrade system continuously transmits a specified number of IO device firmware upgrade messages to the IO device according to the sequence number, and the number of continuously transmitted IO device firmware upgrade messages is the same as the number of windows used to transmit the IO device firmware upgrade messages;
当确定传输的当前一个IO设备固件升级报文被IO设备接收成功时,固件升级系统按顺序号向IO设备传输下一个IO设备固件升级报文;或者当在规定时间内没有确定当前传输的一个IO设备固件升级报文被IO设备接收成功时,固件升级系统向IO设备重传该IO设备固件升级报文。When it is determined that the current IO device firmware upgrade message transmitted is successfully received by the IO device, the firmware upgrade system transmits the next IO device firmware upgrade message to the IO device according to the sequence number; or when the currently transmitted IO device firmware upgrade message is not determined within the specified time When the IO device firmware upgrade message is successfully received by the IO device, the firmware upgrade system retransmits the IO device firmware upgrade message to the IO device.
例如:如图8a所示的IO设备固件升级报文传输示意图,用于传输IO设备固件升级报文的窗口数目为4,窗口当前传输的IO设备固件升级报文的顺序号分别是1、2、3、4。当固件升级系统确定顺序号为1的IO设备固件升级报文被IO设备接收成功时,固件升级系统向IO设备传输顺序号为5的IO设备固件升级报文。具体的,固件升级系统可以通过图8b所示的窗口向后滑动的方式,向IO设备传输顺序号为5的IO设备固件升级报文;或者,固件升级系统可以利用传输顺序号为1的IO设备固件升级报文对应的窗口(如图8a所示),向IO设备传输顺序号为5的IO设备固件升级报文。当固件升级系统不能确定顺序号为1的IO设备固件升级报文被IO设备接收成功时,固件升级系统利用原窗口向IO设备重传顺序号为1的IO设备固件升级报文。For example: as shown in Figure 8a, the schematic diagram of IO device firmware upgrade message transmission, the number of windows used to transmit IO device firmware upgrade messages is 4, and the sequence numbers of the IO device firmware upgrade messages currently transmitted by the windows are 1 and 2 respectively , 3, 4. When the firmware upgrade system determines that the IO device firmware upgrade message with sequence number 1 is successfully received by the IO device, the firmware upgrade system transmits the IO device firmware upgrade message with sequence number 5 to the IO device. Specifically, the firmware upgrade system can slide the window shown in Figure 8b backwards to transmit the firmware upgrade message of the IO device with the sequence number 5 to the IO device; or, the firmware upgrade system can use the IO device with the sequence number 1. The window corresponding to the device firmware upgrade message (as shown in FIG. 8a ) transmits the IO device firmware upgrade message with sequence number 5 to the IO device. When the firmware upgrade system cannot determine that the IO device firmware upgrade message with sequence number 1 is successfully received by the IO device, the firmware upgrade system uses the original window to retransmit the IO device firmware upgrade message with sequence number 1 to the IO device.
本发明实施例中,固件升级系统向IO设备发送携带有顺序号的IO设备固件升级报文可以有多种方式,例如可以按顺序号的前后顺序向IO设备发送IO设备固件升级报文,也可以按随机顺序向IO设备发送IO设备固件升级报文。In the embodiment of the present invention, there are many ways for the firmware upgrade system to send the IO device firmware upgrade message carrying the sequence number to the IO device. For example, the IO device firmware upgrade message can be sent to the IO device in the order of the sequence number. IO device firmware upgrade messages can be sent to the IO device in random order.
针对上述方式三中固件升级系统与IO设备的连接方式或方式四中固件升级系统与IO设备的连接方式,本发明实施例中IO设备固件的升级文件传输方法如下:For the connection mode between the firmware upgrade system and the IO device in the third mode above or the connection mode between the firmware upgrade system and the IO device in the mode four, the upgrade file transmission method of the IO device firmware in the embodiment of the present invention is as follows:
较佳地,S501中固件升级系统确定IO设备支持固件升级,以及IO设备支持的报文长度,包括:Preferably, the firmware upgrade system in S501 determines that the IO device supports firmware upgrade, and the length of the message supported by the IO device, including:
固件升级系统通过通讯通道向IO设备发送固件升级请求控制消息;The firmware upgrade system sends a firmware upgrade request control message to the IO device through the communication channel;
固件升级系统接收IO设备根据固件升级请求控制消息发送的固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度。The firmware upgrade system receives the firmware upgrade information sent by the IO device according to the firmware upgrade request control message. The firmware upgrade information includes the firmware upgrade supported by the IO device and the length of the message supported by the IO device.
较佳地,S502中固件升级系统根据IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文,包括:Preferably, the firmware upgrade system in S502 splits the IO device firmware upgrade file according to the message length supported by the IO device, and obtains a plurality of IO device firmware upgrade messages carrying sequence numbers, including:
固件升级系统以IO设备支持的报文长度为单位,将IO设备固件升级文件分割为多个IO设备固件升级报文,并根据每个IO设备固件升级报文在IO设备固件升级文件中的先后顺序,确定每个IO设备固件升级报文携带的顺序号。The firmware upgrade system divides the IO device firmware upgrade file into multiple IO device firmware upgrade messages based on the length of the message supported by the IO device, and according to the sequence of each IO device firmware upgrade message in the IO device firmware upgrade file Sequence, to determine the sequence number carried in each IO device firmware upgrade message.
较佳地,S503中固件升级系统向IO设备传输携带有顺序号的IO设备固件升级报文的方法包括:Preferably, the method for the firmware upgrade system in S503 to transmit the IO device firmware upgrade message carrying the sequence number to the IO device includes:
固件升级系统按顺序号向IO设备连续传输指定数目的IO设备固件升级报文,连续传输的IO设备固件升级报文的数目与用于传输IO设备固件升级报文的窗口数目相同;The firmware upgrade system continuously transmits a specified number of IO device firmware upgrade messages to the IO device according to the sequence number, and the number of continuously transmitted IO device firmware upgrade messages is the same as the number of windows used to transmit the IO device firmware upgrade messages;
当确定传输的当前一个IO设备固件升级报文被IO设备接收成功时,固件升级系统按顺序号向IO设备传输下一个IO设备固件升级报文;或者当在规定时间内没有确定当前传输的一个IO设备固件升级报文被IO设备接收成功时,固件升级系统向IO设备重传该IO设备固件升级报文。When it is determined that the current IO device firmware upgrade message transmitted is successfully received by the IO device, the firmware upgrade system transmits the next IO device firmware upgrade message to the IO device according to the sequence number; or when the currently transmitted IO device firmware upgrade message is not determined within the specified time When the IO device firmware upgrade message is successfully received by the IO device, the firmware upgrade system retransmits the IO device firmware upgrade message to the IO device.
较佳地,若固件升级系统向IO设备传输全部携带有顺序号的IO设备固件升级报文结束,在S503固件升级系统向IO设备传输携带有顺序号的IO设备固件升级报文之后,该方法包括:Preferably, if the firmware upgrade system transmits all the IO device firmware upgrade messages carrying the sequence number to the IO device, after the S503 firmware upgrade system transmits the IO device firmware upgrade message carrying the sequence number to the IO device, the method include:
固件升级系统向IO设备发送IO设备固件升级报文传输结束消息,使得IO设备知晓IO设备固件升级报文传输结束,进而IO设备根据IO设备固件升级报文的顺序号,将接收的全部IO设备固件升级报文组成IO设备固件升级文件,IO设备再利用IO设备固件升级文件进行IO设备固件升级。The firmware upgrade system sends the IO device firmware upgrade message transmission end message to the IO device, so that the IO device knows the end of the IO device firmware upgrade message transmission, and then the IO device sends all the received IO devices according to the sequence number of the IO device firmware upgrade message. The firmware upgrade message forms an IO device firmware upgrade file, and the IO device uses the IO device firmware upgrade file to upgrade the IO device firmware.
本发明实施例三中,通过固件升级系统在确定IO设备支持固件升级后,根据IO设备支持的报文长度,对IO设备固件升级文件进行处理,得到多个携带有顺序号的IO设备固件升级报文,向IO设备传输携带有顺序号的IO设备固件升级报文,使得IO设备可以根据IO设备固件升级报文的顺序号,将接收的全部IO设备固件升级报文组成IO设备固件升级文件,IO设备再利用IO设备固件升级文件进行IO设备固件升级。通过本发明实施例三,可以实现IO设备固件的升级,此外,由于本发明实施例中固件升级系统与IO设备直接相连,即无需依赖OS,固件升级系统可直接向IO设备传输IO设备固件的升级文件,进而实现IO设备固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题,本发明实施例中不需要OS下载安装引擎和升级工具。In Embodiment 3 of the present invention, after the firmware upgrade system determines that the IO device supports firmware upgrade, the IO device firmware upgrade file is processed according to the message length supported by the IO device, and multiple IO device firmware upgrades with sequence numbers are obtained. message, and transmit the IO device firmware upgrade message with the serial number to the IO device, so that the IO device can compose all the received IO device firmware upgrade messages into the IO device firmware upgrade file according to the sequence number of the IO device firmware upgrade message , the IO device then uses the IO device firmware upgrade file to upgrade the IO device firmware. Through the third embodiment of the present invention, the upgrade of the IO device firmware can be realized. In addition, since the firmware upgrade system in the embodiment of the present invention is directly connected to the IO device, that is, without relying on the OS, the firmware upgrade system can directly transmit the IO device firmware to the IO device. Upgrade the file, and then realize the upgrade of the IO device firmware, avoiding the problem that the upgrade scheme of the IO device firmware in the prior art mainly depends on the OS, and the manual operation of the IO device firmware upgrade operation is not uniform due to different OS, or due to the remote management software operation The IO device firmware upgrade makes the operation of the IO device firmware upgrade solution complicated and less realizable. In the embodiment of the present invention, an OS download and installation engine and an upgrade tool are not required.
实施例四Embodiment four
如图9所示,本发明实施例提供的一种IO设备固件的升级方法,该方法包括:As shown in FIG. 9, a method for upgrading firmware of an IO device provided by an embodiment of the present invention includes:
S901、输入输出IO设备向固件升级系统发送固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度;S901. The input and output IO device sends firmware upgrade information to the firmware upgrade system, and the firmware upgrade information includes the firmware upgrade supported by the IO device and the length of the message supported by the IO device;
S902、IO设备接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,IO设备固件升级报文是固件升级系统根据IO设备支持固件升级,以及IO设备支持的报文长度,对IO设备固件升级文件进行分割处理得到的;S902, the IO device receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system, the IO device firmware upgrade message is the firmware upgrade system supports firmware upgrade according to the IO device, and the length of the message supported by the IO device. It is obtained by splitting the device firmware upgrade file;
S903、当成功接收固件升级系统传输的全部携带有顺序号的IO设备固件升级报文时,IO设备根据全部携带有顺序号的IO设备固件升级报文进行固件升级。S903. When all IO device firmware upgrade messages carrying sequence numbers transmitted by the firmware upgrade system are successfully received, the IO device performs firmware upgrade according to all IO device firmware upgrade messages carrying sequence numbers.
较佳地,IO设备与固件升级系统直接相连,IO设备直接接收固件升级系统传输的携带有顺序号的IO设备固件升级报文。Preferably, the IO device is directly connected to the firmware upgrade system, and the IO device directly receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system.
较佳地,IO设备与固件升级系统的连接基于MCTP。Preferably, the connection between the IO device and the firmware upgrade system is based on MCTP.
较佳地,S901中IO设备向固件升级系统发送固件升级信息的方法包括:Preferably, the method for the IO device in S901 to send firmware upgrade information to the firmware upgrade system includes:
当IO设备接收到固件升级系统发送的固件升级请求控制消息时,IO设备向固件升级系统发送固件升级信息。When the IO device receives the firmware upgrade request control message sent by the firmware upgrade system, the IO device sends firmware upgrade information to the firmware upgrade system.
较佳地,S902中IO设备接收固件升级系统传输的携带有顺序号的IO设备固件升级报文之后,该方法还包括:Preferably, after the IO device in S902 receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system, the method further includes:
IO设备针对固件升级系统传输的每个携带有顺序号的IO设备固件升级报文执行;其中,IO设备固件升级报文的顺序号代表IO设备固件升级报文在IO设备固件升级文件中的先后顺序;The IO device executes each IO device firmware upgrade message carrying a sequence number transmitted by the firmware upgrade system; where the sequence number of the IO device firmware upgrade message represents the sequence of the IO device firmware upgrade message in the IO device firmware upgrade file order;
当接收固件升级系统传输的该IO设备固件升级报文成功时,IO设备向固件升级系统发送报文接收成功消息,报文接收成功消息包括成功接收的IO设备固件升级报文的顺序号;When the IO device firmware upgrade message transmitted by the firmware upgrade system is received successfully, the IO device sends a message reception success message to the firmware upgrade system, and the message reception success message includes the sequence number of the successfully received IO device firmware upgrade message;
当接收固件升级系统传输的IO设备固件升级报文失败时,IO设备接收固件升级系统重传的携带有顺序号的该IO设备固件升级报文;具体的,IO设备可以通过向固件升级系统发送报文接收失败消息,报文接收失败消息包括IO设备接收失败的IO设备固件升级报文的顺序号,以达到通知固件升级系统接收IO设备固件升级报文失败的目的,进而固件升级系统向IO设备重传携带有顺序号的IO设备固件升级报文。When receiving the IO device firmware upgrade message transmitted by the firmware upgrade system fails, the IO device receives the IO device firmware upgrade message retransmitted by the firmware upgrade system with the sequence number; specifically, the IO device can send the firmware upgrade message to the firmware upgrade system. message receiving failure message, the message receiving failure message includes the sequence number of the IO device firmware upgrade message that the IO device fails to receive, to achieve the purpose of notifying the firmware upgrade system to receive the failure of the IO device firmware upgrade message, and then the firmware upgrade system sends the IO device firmware upgrade message The device retransmits the IO device firmware upgrade message carrying the sequence number.
较佳地,S903中IO设备根据全部携带有顺序号的IO设备固件升级报文进行固件升级的方法包括:Preferably, the method for the IO device in S903 to perform firmware upgrade according to all IO device firmware upgrade messages carrying sequence numbers includes:
IO设备将全部IO设备固件升级报文按照其顺序号组成IO设备固件升级文件,IO设备固件升级报文的顺序号表示IO设备固件升级报文在IO设备固件升级文件中的先后顺序;The IO device forms the IO device firmware upgrade file according to its sequence number of all the IO device firmware upgrade messages, and the sequence number of the IO device firmware upgrade message indicates the sequence of the IO device firmware upgrade message in the IO device firmware upgrade file;
IO设备利用组成的IO设备固件升级文件进行固件升级,具体的,IO设备存储IO设备固件升级文件,在IO设备的下次启动的区域,以便下次启动IO设备时IO设备固件升级文件激活生效,以达到IO设备固件升级的目的。The IO device uses the composed IO device firmware upgrade file to perform firmware upgrade. Specifically, the IO device stores the IO device firmware upgrade file in the next startup area of the IO device, so that the activation of the IO device firmware upgrade file will take effect when the IO device is started next time. , to achieve the purpose of IO device firmware upgrade.
本发明实施例四中,通过IO设备向固件升级系统发送固件升级信息,IO设备接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,当成功接收固件升级系统传输的全部携带有顺序号的IO设备固件升级报文时,IO设备根据全部携带有顺序号的IO设备固件升级报文进行固件升级。通过本发明实施例四,可以实现IO设备固件的升级,此外,由于本发明实施例中IO设备与固件升级系统直接相连,即无需依赖OS,IO设备可直接接收固件升级系统传输的IO设备固件的升级文件,进而实现IO设备固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题,本发明实施例中不需要OS下载安装引擎和升级工具。In Embodiment 4 of the present invention, the firmware upgrade information is sent to the firmware upgrade system through the IO device, and the IO device receives the IO device firmware upgrade message with the sequence number transmitted by the firmware upgrade system. When the IO device firmware upgrade message with the sequence number is sent, the IO device performs firmware upgrade according to all the IO device firmware upgrade messages carrying the sequence number. Through the fourth embodiment of the present invention, the upgrade of the IO device firmware can be realized. In addition, since the IO device in the embodiment of the present invention is directly connected to the firmware upgrade system, that is, without relying on the OS, the IO device can directly receive the IO device firmware transmitted by the firmware upgrade system. The upgrade file of the IO device, and then realize the upgrade of the IO device firmware, avoiding the problem that the upgrade solution of the IO device firmware in the prior art mainly depends on the OS. Operating the IO device firmware upgrade makes the operation of the IO device firmware upgrade solution complicated and less realizable. In the embodiment of the present invention, an OS download and installation engine and an upgrade tool are not required.
实施例五Embodiment five
当固件升级系统与IO设备的连接基于MCTP时,与图8所示的一种IO设备固件的升级方法对应的,如图10所示,本发明实施例提供的一种IO设备固件的升级方法,固件升级系统与IO设备的交互过程如下:When the connection between the firmware upgrade system and the IO device is based on MCTP, corresponding to a method for upgrading the firmware of an IO device shown in Figure 8, as shown in Figure 10, a method for upgrading the firmware of an IO device provided by an embodiment of the present invention , the interaction process between the firmware upgrade system and the IO device is as follows:
S1001、固件升级系统向IO设备发送固件升级请求控制消息;S1001. The firmware upgrade system sends a firmware upgrade request control message to the IO device;
S1002、IO设备根据固件升级请求控制消息向固件升级系统发送固件升级响应消息,固件升级响应消息包括IO设备支持固件升级,以及IO设备支持的MCTP报文长度;S1002. The IO device sends a firmware upgrade response message to the firmware upgrade system according to the firmware upgrade request control message. The firmware upgrade response message includes the firmware upgrade supported by the IO device and the MCTP packet length supported by the IO device;
S1003、固件升级系统确定IO设备支持固件升级后,根据IO设备支持的MCTP报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文;S1003. After the firmware upgrade system determines that the IO device supports firmware upgrade, according to the length of the MCTP message supported by the IO device, the IO device firmware upgrade file is segmented to obtain a plurality of IO device firmware upgrade messages carrying sequence numbers;
具体的,固件升级系统以IO设备支持的MCTP报文长度为单位,对IO设备固件升级文件进行分割处理,得到多个IO设备固件升级报文;Specifically, the firmware upgrade system divides the IO device firmware upgrade file in units of MCTP message length supported by the IO device, and obtains multiple IO device firmware upgrade messages;
固件升级系统将IO设备固件升级报文封装成MCTP报文格式的IO设备固件升级报文,并根据IO设备固件升级报文在IO设备固件升级文件中的先后顺序,确定每个IO设备固件升级报文的顺序号。The firmware upgrade system encapsulates the IO device firmware upgrade message into an IO device firmware upgrade message in MCTP message format, and determines the firmware upgrade status of each IO device according to the sequence of the IO device firmware upgrade message in the IO device firmware upgrade file. The sequence number of the message.
S1004、固件升级系统向IO设备传输携带有顺序号的IO设备固件升级报文;S1004. The firmware upgrade system transmits an IO device firmware upgrade message carrying a sequence number to the IO device;
具体地,固件升级系统按顺序号向IO设备连续传输指定数目的IO设备固件升级报文,连续传输的IO设备固件升级报文的数目与用于传输IO设备固件升级报文的窗口数目相同;Specifically, the firmware upgrade system continuously transmits a specified number of IO device firmware upgrade messages to the IO device according to the sequence number, and the number of continuously transmitted IO device firmware upgrade messages is the same as the number of windows used to transmit the IO device firmware upgrade messages;
当确定传输的当前一个IO设备固件升级报文被IO设备接收成功时,固件升级系统按顺序号向IO设备传输下一个IO设备固件升级报文;或者当在规定时间内没有确定当前传输的一个IO设备固件升级报文被IO设备接收成功时,固件升级系统向IO设备重传该IO设备固件升级报文。When it is determined that the current IO device firmware upgrade message transmitted is successfully received by the IO device, the firmware upgrade system transmits the next IO device firmware upgrade message to the IO device according to the sequence number; or when the currently transmitted IO device firmware upgrade message is not determined within the specified time When the IO device firmware upgrade message is successfully received by the IO device, the firmware upgrade system retransmits the IO device firmware upgrade message to the IO device.
本发明实施例中,固件升级系统向IO设备发送携带有顺序号的IO设备固件升级报文可以有多种方式,例如可以按顺序号的前后顺序向IO设备发送IO设备固件升级报文,也可以随机顺序向IO设备发送IO设备固件升级报文。In the embodiment of the present invention, there are many ways for the firmware upgrade system to send the IO device firmware upgrade message carrying the sequence number to the IO device. For example, the IO device firmware upgrade message can be sent to the IO device in the order of the sequence number. IO device firmware upgrade messages can be sent to the IO device in random order.
S1005、IO设备接收固件升级系统传输的携带有顺序号的IO设备固件升级报文;S1005. The IO device receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system;
IO设备针对固件升级系统传输的每个携带有顺序号的IO设备固件升级报文执行;The IO device executes for each IO device firmware upgrade message carrying a sequence number transmitted by the firmware upgrade system;
当接收固件升级系统传输的该IO设备固件升级报文成功时,IO设备向固件升级系统发送报文接收成功消息,报文接收成功消息包括成功接收的IO设备固件升级报文的顺序号,进而通知固件升级系统传输下一个IO设备固件升级报文;When the IO device firmware upgrade message transmitted by the firmware upgrade system is received successfully, the IO device sends a message reception success message to the firmware upgrade system, and the message reception success message includes the sequence number of the successfully received IO device firmware upgrade message, and then Notify the firmware upgrade system to transmit the next IO device firmware upgrade message;
当接收固件升级系统传输的IO设备固件升级报文失败时,IO设备接收固件升级系统重传的携带有顺序号的该IO设备固件升级报文;具体的,IO设备可以通过向固件升级系统发送报文接收失败消息,报文接收失败消息包括IO设备接收失败的IO设备固件升级报文的顺序号,以达到通知固件升级系统接收IO设备固件升级报文失败的目的,进而固件升级系统向IO设备重传携带有顺序号的IO设备固件升级报文。When receiving the IO device firmware upgrade message transmitted by the firmware upgrade system fails, the IO device receives the IO device firmware upgrade message retransmitted by the firmware upgrade system with the sequence number; specifically, the IO device can send the firmware upgrade message to the firmware upgrade system. message receiving failure message, the message receiving failure message includes the sequence number of the IO device firmware upgrade message that the IO device fails to receive, to achieve the purpose of notifying the firmware upgrade system to receive the failure of the IO device firmware upgrade message, and then the firmware upgrade system sends the IO device firmware upgrade message The device retransmits the IO device firmware upgrade message carrying the sequence number.
S1006、固件升级系统确认向IO设备传输全部携带有顺序号的IO设备固件升级报文结束;S1006. The firmware upgrade system confirms that the transmission of all the IO device firmware upgrade messages carrying the sequence number to the IO device is completed;
S1007、固件升级系统向IO设备发送IO设备固件升级报文传输结束消息;S1007. The firmware upgrade system sends an IO device firmware upgrade message transmission end message to the IO device;
S1008、IO设备接收固件升级系统发送的IO设备固件升级报文传输结束消息;S1008. The IO device receives the IO device firmware upgrade message transmission end message sent by the firmware upgrade system;
S1009、IO设备根据全部携带有顺序号的IO设备固件升级报文进行固件升级。S1009. The IO device performs firmware upgrade according to all IO device firmware upgrade messages carrying sequence numbers.
具体的,IO设备将全部IO设备固件升级报文按照其顺序号组成IO设备固件升级文件,IO设备固件升级报文的顺序号表示IO设备固件升级报文在IO设备固件升级文件中的先后顺序;Specifically, the IO device composes all IO device firmware upgrade messages according to their sequence numbers to form an IO device firmware upgrade file, and the sequence number of the IO device firmware upgrade message indicates the sequence of the IO device firmware upgrade messages in the IO device firmware upgrade file ;
IO设备利用组成的IO设备固件升级文件进行固件升级,具体的,IO设备存储IO设备固件升级文件,在IO设备的下次启动的区域,以便下次启动IO设备时IO设备固件升级文件激活生效,以达到IO设备固件升级的目的。The IO device uses the composed IO device firmware upgrade file to perform firmware upgrade. Specifically, the IO device stores the IO device firmware upgrade file in the next startup area of the IO device, so that the activation of the IO device firmware upgrade file will take effect when the IO device is started next time. , to achieve the purpose of IO device firmware upgrade.
本发明实施例五中,固件升级系统安装在单板管理控制器BMC上,或者固件升级系统安装在X86服务系统的外部设备上。In the fifth embodiment of the present invention, the firmware upgrade system is installed on the single board management controller BMC, or the firmware upgrade system is installed on the external equipment of the X86 service system.
本发明实施例五中,固件升级系统与IO设备的连接基于MCTP,使得固件升级系统与IO设备之间的连接无需通过任何装置(例如OS),固件升级系统可与IO设备直接进行交互,进而实现IO设备固件的升级。由于本发明实施例中固件升级系统与IO设备直接相连,即无需依赖OS,固件升级系统可直接向IO设备传输IO设备固件的升级文件,进而实现IO设备固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题,本发明实施例中不需要OS下载安装引擎和升级工具。In Embodiment 5 of the present invention, the connection between the firmware upgrade system and the IO device is based on MCTP, so that the connection between the firmware upgrade system and the IO device does not need to pass through any device (such as an OS), and the firmware upgrade system can directly interact with the IO device, and then Realize the upgrade of IO device firmware. Because the firmware upgrade system in the embodiment of the present invention is directly connected with the IO device, that is, without relying on the OS, the firmware upgrade system can directly transmit the upgrade file of the IO device firmware to the IO device, thereby realizing the upgrade of the IO device firmware, avoiding the IO device firmware upgrade in the prior art. The device firmware upgrade solution mainly depends on the OS. Due to different OSs, manual operation of the IO device firmware upgrade operation is not uniform, or because the remote management software operates the IO device firmware upgrade, the operation of the IO device firmware upgrade solution is complicated and feasible. Lower problem, in the embodiment of the present invention, there is no need for an OS download and installation engine and an upgrade tool.
实施例六Embodiment six
当固件升级系统通过通讯通道与IO设备相连时,与图8所示的一种IO设备固件的升级方法对应的,如图11所示,本发明实施例提供的一种IO设备固件的升级方法,固件升级系统与IO设备的交互过程如下:When the firmware upgrade system is connected to the IO device through the communication channel, corresponding to a method for upgrading the firmware of the IO device shown in Figure 8, as shown in Figure 11, a method for upgrading the firmware of the IO device provided by the embodiment of the present invention , the interaction process between the firmware upgrade system and the IO device is as follows:
S1101、固件升级系统与IO设备建立通讯通道;S1101. The firmware upgrade system establishes a communication channel with the IO device;
通讯通道物理上是IO设备的管理通道,可以是I2C或以太Ethernet等其他网口,通过此通讯通道,固件升级系统可以与IO设备进行协议通讯,直接传递固件升级文件。The communication channel is physically the management channel of the IO device, which can be other network ports such as I2C or Ethernet. Through this communication channel, the firmware upgrade system can communicate with the IO device by protocol and directly transfer the firmware upgrade file.
S1102、固件升级系统通过通讯通道向IO设备发送固件升级请求控制消息;S1102. The firmware upgrade system sends a firmware upgrade request control message to the IO device through the communication channel;
S1103、IO设备根据固件升级请求控制消息通过通讯通道向固件升级系统发送固件升级响应消息,固件升级响应消息包括IO设备支持固件升级,以及IO设备支持的报文长度;S1103. The IO device sends a firmware upgrade response message to the firmware upgrade system through the communication channel according to the firmware upgrade request control message. The firmware upgrade response message includes the firmware upgrade supported by the IO device and the length of the message supported by the IO device;
S1104、固件升级系统确定IO设备支持固件升级后,根据IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,得到多个携带有顺序号的IO设备固件升级报文;S1104. After the firmware upgrade system determines that the IO device supports firmware upgrade, it divides the IO device firmware upgrade file according to the message length supported by the IO device, and obtains a plurality of IO device firmware upgrade messages carrying sequence numbers;
S1105、固件升级系统通过通讯通道向IO设备传输携带有顺序号的IO设备固件升级报文;S1105. The firmware upgrade system transmits the IO device firmware upgrade message carrying the sequence number to the IO device through the communication channel;
具体地,固件升级系统按顺序号向IO设备连续传输指定数目的IO设备固件升级报文,连续传输的IO设备固件升级报文的数目与用于传输IO设备固件升级报文的窗口数目相同;Specifically, the firmware upgrade system continuously transmits a specified number of IO device firmware upgrade messages to the IO device according to the sequence number, and the number of continuously transmitted IO device firmware upgrade messages is the same as the number of windows used to transmit the IO device firmware upgrade messages;
当确定传输的当前一个IO设备固件升级报文被IO设备接收成功时,固件升级系统按顺序号向IO设备传输下一个IO设备固件升级报文;或者当在规定时间内没有确定当前传输的一个IO设备固件升级报文被IO设备接收成功时,固件升级系统向IO设备重传该IO设备固件升级报文。When it is determined that the current IO device firmware upgrade message transmitted is successfully received by the IO device, the firmware upgrade system transmits the next IO device firmware upgrade message to the IO device according to the sequence number; or when the currently transmitted IO device firmware upgrade message is not determined within the specified time When the IO device firmware upgrade message is successfully received by the IO device, the firmware upgrade system retransmits the IO device firmware upgrade message to the IO device.
本发明实施例中,固件升级系统向IO设备发送携带有顺序号的IO设备固件升级报文可以有多种方式,例如可以按顺序号的前后顺序向IO设备发送IO设备固件升级报文,也可以随机顺序向IO设备发送IO设备固件升级报文。In the embodiment of the present invention, there are many ways for the firmware upgrade system to send the IO device firmware upgrade message carrying the sequence number to the IO device. For example, the IO device firmware upgrade message can be sent to the IO device in the order of the sequence number. IO device firmware upgrade messages can be sent to the IO device in random order.
S1106、IO设备通过通讯通道接收固件升级系统传输的携带有顺序号的IO设备固件升级报文;S1106. The IO device receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system through the communication channel;
IO设备针对固件升级系统传输的每个携带有顺序号的IO设备固件升级报文执行;The IO device executes for each IO device firmware upgrade message carrying a sequence number transmitted by the firmware upgrade system;
当接收固件升级系统传输的该IO设备固件升级报文成功时,IO设备向固件升级系统发送报文接收成功消息,报文接收成功消息包括成功接收的IO设备固件升级报文的顺序号,进而通知固件升级系统传输下一个IO设备固件升级报文;When the IO device firmware upgrade message transmitted by the firmware upgrade system is received successfully, the IO device sends a message reception success message to the firmware upgrade system, and the message reception success message includes the sequence number of the successfully received IO device firmware upgrade message, and then Notify the firmware upgrade system to transmit the next IO device firmware upgrade message;
当接收固件升级系统传输的IO设备固件升级报文失败时,IO设备接收固件升级系统重传的携带有顺序号的该IO设备固件升级报文;具体的,IO设备可以通过向固件升级系统发送报文接收失败消息,报文接收失败消息包括IO设备接收失败的IO设备固件升级报文的顺序号,以达到通知固件升级系统接收IO设备固件升级报文失败的目的,进而固件升级系统向IO设备重传携带有顺序号的IO设备固件升级报文。When receiving the IO device firmware upgrade message transmitted by the firmware upgrade system fails, the IO device receives the IO device firmware upgrade message retransmitted by the firmware upgrade system with the sequence number; specifically, the IO device can send the firmware upgrade message to the firmware upgrade system. message receiving failure message, the message receiving failure message includes the sequence number of the IO device firmware upgrade message that the IO device fails to receive, to achieve the purpose of notifying the firmware upgrade system to receive the failure of the IO device firmware upgrade message, and then the firmware upgrade system sends the IO device firmware upgrade message The device retransmits the IO device firmware upgrade message carrying the sequence number.
S1107、固件升级系统确认向IO设备传输全部携带有顺序号的IO设备固件升级报文结束;S1107. The firmware upgrade system confirms that the transmission of all IO device firmware upgrade messages carrying sequence numbers to the IO device is completed;
S1108、固件升级系统通过通讯通道向IO设备发送IO设备固件升级报文传输结束消息;S1108. The firmware upgrade system sends an IO device firmware upgrade message transmission end message to the IO device through the communication channel;
S1109、IO设备通过通讯通道接收固件升级系统发送的IO设备固件升级报文传输结束消息;S1109. The IO device receives the IO device firmware upgrade message transmission end message sent by the firmware upgrade system through the communication channel;
S1110、IO设备根据全部携带有顺序号的IO设备固件升级报文进行固件升级。S1110. The IO device performs firmware upgrade according to all IO device firmware upgrade messages carrying sequence numbers.
具体的,IO设备将全部IO设备固件升级报文按照其顺序号组成IO设备固件升级文件,IO设备固件升级报文的顺序号表示IO设备固件升级报文在IO设备固件升级文件中的先后顺序;Specifically, the IO device composes all IO device firmware upgrade messages according to their sequence numbers to form an IO device firmware upgrade file, and the sequence number of the IO device firmware upgrade message indicates the sequence of the IO device firmware upgrade messages in the IO device firmware upgrade file ;
IO设备利用组成的IO设备固件升级文件进行固件升级,具体的,IO设备存储IO设备固件升级文件,在IO设备的下次启动的区域,以便下次启动IO设备时IO设备固件升级文件激活生效,以达到IO设备固件升级的目的。The IO device uses the composed IO device firmware upgrade file to perform firmware upgrade. Specifically, the IO device stores the IO device firmware upgrade file in the next startup area of the IO device, so that the activation of the IO device firmware upgrade file will take effect when the IO device is started next time. , to achieve the purpose of IO device firmware upgrade.
在本发明实施例中,固件升级系统安装在BMC上,或者固件升级系统安装在X86服务系统的外部设备上。In the embodiment of the present invention, the firmware upgrade system is installed on the BMC, or the firmware upgrade system is installed on an external device of the X86 service system.
本发明实施例六中,固件升级系统通过通讯通道与IO设备直接连接,使得固件升级系统与IO设备之间的连接无需通过任何装置(例如OS),固件升级系统可与IO设备直接进行交互,进而实现IO设备固件的升级。由于本发明实施例中固件升级系统与IO设备直接相连,即无需依赖OS,固件升级系统可直接向IO设备传输IO设备固件的升级文件,进而实现IO设备固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题,本发明实施例中不需要OS下载安装引擎和升级工具。In Embodiment 6 of the present invention, the firmware upgrade system is directly connected to the IO device through a communication channel, so that the connection between the firmware upgrade system and the IO device does not need to pass through any device (such as an OS), and the firmware upgrade system can directly interact with the IO device. Then, the upgrade of the firmware of the IO device is realized. Because the firmware upgrade system in the embodiment of the present invention is directly connected with the IO device, that is, without relying on the OS, the firmware upgrade system can directly transmit the upgrade file of the IO device firmware to the IO device, thereby realizing the upgrade of the IO device firmware, avoiding the IO device firmware upgrade in the prior art. The device firmware upgrade solution mainly depends on the OS. Due to different OSs, manual operation of the IO device firmware upgrade operation is not uniform, or because the remote management software operates the IO device firmware upgrade, the operation of the IO device firmware upgrade solution is complicated and feasible. Lower problem, in the embodiment of the present invention, there is no need for an OS download and installation engine and an upgrade tool.
实施例七Embodiment seven
如图14所示,本发明实施例提供的一种IO设备固件的升级文件传输装置,包括:As shown in FIG. 14, an upgrade file transfer device for IO device firmware provided by an embodiment of the present invention includes:
处理器141,用于确定输入输出IO设备支持固件升级,以及IO设备支持的报文长度;根据确定的IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,生成多个携带有顺序号的IO设备固件升级报文;The processor 141 is configured to determine that the input and output IO devices support firmware upgrades, and the length of messages supported by the IO devices; according to the determined message lengths supported by the IO devices, the firmware upgrade files of the IO devices are segmented to generate multiple IO device firmware upgrade message with sequence number;
存储器142,用于存储所述处理器141生成的携带有顺序号的IO设备固件升级报文;The memory 142 is configured to store the IO device firmware upgrade message carrying the sequence number generated by the processor 141;
收发器143,用于向IO设备传输所述存储器142存储的携带有顺序号的IO设备固件升级报文。The transceiver 143 is configured to transmit the IO device firmware upgrade message carrying the sequence number stored in the memory 142 to the IO device.
较佳地,图14所述装置与IO设备直接相连,图14所述装置直接向IO设备传输携带有顺序号的IO设备固件升级报文。Preferably, the device described in FIG. 14 is directly connected to the IO device, and the device described in FIG. 14 directly transmits an IO device firmware upgrade message carrying a sequence number to the IO device.
较佳地,图14所述装置与IO设备的连接基于控制元件传输协议MCTP。Preferably, the connection between the apparatus in FIG. 14 and the IO device is based on the control element transfer protocol MCTP.
较佳地,所述处理器141在确定输入输出IO设备支持固件升级,以及IO设备支持的报文长度时,还用于:Preferably, the processor 141 is also used to:
触发所述收发器143向IO设备发送固件升级请求控制消息;Trigger the transceiver 143 to send a firmware upgrade request control message to the IO device;
所述收发器143还用于:The transceiver 143 is also used for:
向IO设备发送固件升级请求控制消息;Send a firmware upgrade request control message to the IO device;
接收IO设备根据固件升级请求控制消息发送的固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度。The firmware upgrade information sent by the IO device according to the firmware upgrade request control message is received. The firmware upgrade information includes the firmware upgrade supported by the IO device and the packet length supported by the IO device.
较佳地,所述处理器141在根据确定的IO设备支持的报文长度,对IO设备固件升级文件进行分割处理,生成多个携带有顺序号的IO设备固件升级报文时,具体用于:Preferably, when the processor 141 splits the IO device firmware upgrade file according to the determined message length supported by the IO device, and generates a plurality of IO device firmware upgrade messages carrying sequence numbers, it is specifically used for :
以IO设备支持的报文长度为单位,将IO设备固件升级文件分割为多个IO设备固件升级报文,并根据每个IO设备固件升级报文在IO设备固件升级文件中的先后顺序,确定每个IO设备固件升级报文携带的顺序号。Taking the message length supported by the IO device as the unit, divide the IO device firmware upgrade file into multiple IO device firmware upgrade messages, and determine the order of each IO device firmware upgrade message in the IO device firmware upgrade file. The sequence number carried in the firmware upgrade message of each IO device.
实施例七中,通过所述处理器141、所述存储器142以及所述收发器143,实现了IO设备固件的升级。由于本发明实施例中图14所示装置与IO设备直接相连,即无需依赖OS,图14所示装置可直接向IO设备传输IO设备固件的升级文件,进而IO设备实现固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题。In the seventh embodiment, through the processor 141 , the memory 142 and the transceiver 143 , the firmware of the IO device can be upgraded. Since the device shown in Figure 14 in the embodiment of the present invention is directly connected to the IO device, that is, without relying on the OS, the device shown in Figure 14 can directly transmit the upgrade file of the IO device firmware to the IO device, and then the IO device can upgrade the firmware, avoiding the current situation. In the existing technology, the upgrade solution of IO device firmware mainly depends on the OS. Due to different OSs, the manual operation of IO device firmware upgrade operations is not uniform, or because the remote management software operates the IO device firmware upgrade, the operation of the IO device firmware upgrade solution is complicated. , a problem of low realizability.
实施例八Embodiment Eight
如图15所示,本发明实施例提供的一种IO设备固件的升级装置,包括:As shown in Figure 15, an IO device firmware upgrade device provided by an embodiment of the present invention includes:
收发器151,用于向固件升级系统发送固件升级信息,固件升级信息包括IO设备支持固件升级,以及IO设备支持的报文长度;接收固件升级系统传输的携带有顺序号的IO设备固件升级报文,IO设备固件升级报文是固件升级系统根据所述收发器151发送的固件升级信息,对IO设备固件升级文件进行分割处理得到的;The transceiver 151 is used to send firmware upgrade information to the firmware upgrade system. The firmware upgrade information includes the firmware upgrade supported by the IO device and the length of the message supported by the IO device; the IO device firmware upgrade report carrying the sequence number transmitted by the firmware upgrade system is received. In the text, the IO device firmware upgrade message is obtained by the firmware upgrade system by dividing the IO device firmware upgrade file according to the firmware upgrade information sent by the transceiver 151;
存储器152,用于存储所述收发器151接收的携带有顺序号的IO设备固件升级报文;The memory 152 is used to store the IO device firmware upgrade message carrying the sequence number received by the transceiver 151;
处理器153,用于当确定所述收发器151成功接收固件升级系统传输的全部携带有顺序号的IO设备固件升级报文时,根据所述存储器152存储的全部携带有顺序号的IO设备固件升级报文进行固件升级。The processor 153 is configured to, when it is determined that the transceiver 151 has successfully received all the IO device firmware upgrade messages carrying the sequence numbers transmitted by the firmware upgrade system, according to all the IO device firmware carrying the sequence numbers stored in the memory 152 Upgrade message for firmware upgrade.
较佳地,图15所述装置与固件升级系统直接相连,所述装置直接接收固件升级系统传输的携带有顺序号的IO设备固件升级报文。Preferably, the device described in FIG. 15 is directly connected to the firmware upgrade system, and the device directly receives the IO device firmware upgrade message carrying the sequence number transmitted by the firmware upgrade system.
较佳地,图15所述装置与固件升级系统的连接基于控制元件传输协议MCTP。Preferably, the connection between the device described in FIG. 15 and the firmware upgrade system is based on the control element transfer protocol MCTP.
较佳地,所述收发器151在收固件升级系统传输的携带有顺序号的IO设备固件升级报文之后,还用于:Preferably, the transceiver 151 is further used to:
针对固件升级系统传输的每个携带有顺序号的IO设备固件升级报文执行:Execute for each IO device firmware upgrade message carrying a sequence number transmitted by the firmware upgrade system:
当接收固件升级系统传输的该IO设备固件升级报文成功时,向固件升级系统发送报文接收成功消息,报文接收成功消息包括成功接收的IO设备固件升级报文的顺序号;When the IO device firmware upgrade message transmitted by the firmware upgrade system is received successfully, a message receiving success message is sent to the firmware upgrade system, and the message reception success message includes the sequence number of the successfully received IO device firmware upgrade message;
当接收固件升级系统传输的IO设备固件升级报文失败时,接收固件升级系统重传的携带有顺序号的该IO设备固件升级报文。When receiving the IO device firmware upgrade message transmitted by the firmware upgrade system fails, the IO device firmware upgrade message carrying the sequence number retransmitted by the firmware upgrade system is received.
实施例八中,通过所述收发器151、所述存储器152以及所述处理器153,实现了IO设备固件的升级,由于本发明实施例中图15所示装置与固件升级系统直接相连,即无需依赖OS,图15所示装置可直接接收固件升级系统传输的IO设备固件的升级文件,进而实现IO设备固件升级,避免了现有技术中IO设备固件的升级方案主要依赖于OS,由于OS不同导致人工操作的IO设备固件升级操作不统一的问题,或者由于远程管理软件操作IO设备固件升级,使得IO设备固件升级方案操作复杂,可实现性较低的问题。In the eighth embodiment, through the transceiver 151, the memory 152 and the processor 153, the upgrade of the IO device firmware is realized. Since the device shown in FIG. 15 in the embodiment of the present invention is directly connected to the firmware upgrade system, that is No need to rely on the OS, the device shown in Figure 15 can directly receive the upgrade file of the IO device firmware transmitted by the firmware upgrade system, and then realize the upgrade of the IO device firmware, avoiding that the upgrade solution of the IO device firmware in the prior art mainly depends on the OS, because the OS Different IO device firmware upgrade operations caused by manual operations are inconsistent, or due to remote management software operating IO device firmware upgrades, the IO device firmware upgrade solution is complicated to operate and has low realizability.
本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, apparatuses, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(装置)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (apparatus), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410787764.XA CN104484205B (en) | 2014-12-17 | 2014-12-17 | A kind of update device and method of I/O device firmware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410787764.XA CN104484205B (en) | 2014-12-17 | 2014-12-17 | A kind of update device and method of I/O device firmware |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104484205A CN104484205A (en) | 2015-04-01 |
CN104484205B true CN104484205B (en) | 2017-12-12 |
Family
ID=52758749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410787764.XA Active CN104484205B (en) | 2014-12-17 | 2014-12-17 | A kind of update device and method of I/O device firmware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104484205B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3429128B1 (en) * | 2017-05-15 | 2022-04-06 | xFusion Digital Technologies Co., Ltd. | Hard drive operation method and hard drive manager |
CN107977222A (en) * | 2017-12-21 | 2018-05-01 | 北京京存技术有限公司 | Suitable for the conversion of the upgrade file of eMMC, generation method and device |
CN109302456A (en) * | 2018-09-10 | 2019-02-01 | 海信集团有限公司 | A kind of document transmission method and device based on aerial downloading OTA technology |
CN111352889B (en) * | 2020-02-29 | 2021-10-19 | 苏州浪潮智能科技有限公司 | A device management method, device, device and medium based on MCTP protocol |
CN114579163A (en) * | 2020-11-30 | 2022-06-03 | 超聚变数字技术有限公司 | A disk firmware upgrade method, computing device and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1686468A1 (en) * | 2005-01-26 | 2006-08-02 | Intervideo Inc | Computer architecture with multiple operating systems using a common disc partition |
CN101030140A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Device and method for on-line updating fastener programm |
CN101094165A (en) * | 2006-06-19 | 2007-12-26 | 大唐移动通信设备有限公司 | Method, system, and device for controlling implementation of data transmission in local area network |
CN101295253A (en) * | 2007-04-28 | 2008-10-29 | 佛山市顺德区顺达电脑厂有限公司 | Method for updating firmware |
CN102279756A (en) * | 2010-06-11 | 2011-12-14 | 英业达股份有限公司 | CPLD firmware update method |
-
2014
- 2014-12-17 CN CN201410787764.XA patent/CN104484205B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1686468A1 (en) * | 2005-01-26 | 2006-08-02 | Intervideo Inc | Computer architecture with multiple operating systems using a common disc partition |
CN101030140A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Device and method for on-line updating fastener programm |
CN101094165A (en) * | 2006-06-19 | 2007-12-26 | 大唐移动通信设备有限公司 | Method, system, and device for controlling implementation of data transmission in local area network |
CN101295253A (en) * | 2007-04-28 | 2008-10-29 | 佛山市顺德区顺达电脑厂有限公司 | Method for updating firmware |
CN102279756A (en) * | 2010-06-11 | 2011-12-14 | 英业达股份有限公司 | CPLD firmware update method |
Also Published As
Publication number | Publication date |
---|---|
CN104484205A (en) | 2015-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104484205B (en) | A kind of update device and method of I/O device firmware | |
US9875206B2 (en) | Methods and devices for extending USB 3.0-compliant communication | |
CN105071976A (en) | Data transmission method and device | |
US9129064B2 (en) | USB 3.0 link layer timer adjustment to extend distance | |
CN104144073A (en) | Master-slave device environment deployment method and master-slave device environment deployment system | |
CN109218356B (en) | Method and apparatus for managing stateful applications on a server | |
CN104615455A (en) | Remote upgrading method and device for IPMC program of ATCA structure | |
CN107181634A (en) | A kind of server Explore of Unified Management Ideas and system | |
CN103729234A (en) | Method and device for clustering management of virtual machines | |
US20210103271A1 (en) | Electronic tool and method for copying a plurality of settings from a mechanical tool to another mechanical tool | |
US10853302B2 (en) | Data routing by a driver installed from a computing device | |
CN112416505A (en) | Remote control system, method and computing equipment | |
JP2018041448A5 (en) | ||
CN104750524A (en) | Transmission method and device for upgrading data package, method and device for upgrading data package | |
CN107817962B (en) | Remote control method, device, control server and storage medium | |
CN104081369A (en) | Establishing connectivity of modular nodes in a pre-boot environment | |
CN113434089B (en) | Data moving method and device and PCIE system | |
CN114968862B (en) | Graphics processor management method, device and storage medium | |
CN106649161B (en) | Data transmission device between computers | |
CN113542097B (en) | Server deployment method and device, electronic equipment, storage medium and product | |
CN108848182A (en) | A kind of update method, relevant device and the system of BMC firmware | |
CN114416132A (en) | Equipment upgrading method, device, equipment and storage medium | |
WO2015188483A1 (en) | Method for serial-parallel port mapping, cloud terminal and virtual machine | |
US11520728B2 (en) | Techniques for configuring endpoints within a USB extension environment | |
KR101268677B1 (en) | Apparatus and method for reprogramming a plurality of ECUs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211231 Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province Patentee after: xFusion Digital Technologies Co., Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |
Effective date of registration: 20250306 Address after: 450046, 10th Floor, North Chuangzhi Tiandi Building, Dongshigeng Street, Longzihu Wisdom Island Middle Road East, Zhengdong New District, Zhengzhou City, Henan Province Patentee after: Henan Kunlun Technology Co.,Ltd. Country or region after: China Patentee after: xFusion Digital Technologies Co., Ltd. Address before: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province Patentee before: xFusion Digital Technologies Co., Ltd. Country or region before: China |