CN107870776B - IPMC online upgrading method and device - Google Patents

IPMC online upgrading method and device Download PDF

Info

Publication number
CN107870776B
CN107870776B CN201711069386.1A CN201711069386A CN107870776B CN 107870776 B CN107870776 B CN 107870776B CN 201711069386 A CN201711069386 A CN 201711069386A CN 107870776 B CN107870776 B CN 107870776B
Authority
CN
China
Prior art keywords
ipmc
upgraded
upgrading
board card
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711069386.1A
Other languages
Chinese (zh)
Other versions
CN107870776A (en
Inventor
牛跃华
万月亮
王梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201711069386.1A priority Critical patent/CN107870776B/en
Publication of CN107870776A publication Critical patent/CN107870776A/en
Application granted granted Critical
Publication of CN107870776B publication Critical patent/CN107870776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses an IPMC online upgrading method and device. The method comprises the following steps: the main controller acquires an IPMC upgrading program from the server and sends an upgrading instruction to the programmable logic device; the programmable logic device enters an upgrading mode according to the upgrading instruction and controls the board card to be upgraded to enter a system programming mode; the main controller sends the IPMC upgrading program to the board card to be upgraded; and the board card to be upgraded is upgraded according to the IPMC upgrading program. The embodiment of the invention solves the problem that an IPMC upgrading operation in the prior art needs to have an operator present, realizes automatic remote online upgrading of the board card to be upgraded in the ATCA case, and improves the intellectualization of equipment.

Description

IPMC online upgrading method and device
Technical Field
The embodiment of the invention relates to computer technology, in particular to an IPMC online upgrading method and device.
Background
An Advanced Telecom Computing Architecture (ATCA) is an open and interoperable telecom industry standard, mainly aiming at telecom operation level application, and is composed of a series of specifications, wherein a mechanical structure, heat dissipation management, power distribution and system management are defined, and flexible development and configuration reuse are supported. The ATCA adopts an open and universal platform architecture, provides a hardware framework with high cost performance, modularization, strong compatibility and expandability for communication and data network application, and is the main direction of development of telecommunication equipment.
The ATCA chassis can perform Intelligent regulation and Management on units such as a single board, a power supply, a fan, a temperature sensor and the like in the chassis through an Intelligent Platform Management Controller (IPMC) system. With the increase of the occupancy of the ATCA architecture in the telecommunication industry and the reasons of system function upgrade, the upgrade and update of the PMC program of the single board in the chassis are more frequent.
The upgrading mode of the IPMC mainly includes the following two in the current technology:
one is to upgrade the IPMC by using a JTAG (Joint Test Action Group) writer, and in this upgrade method, the board to be upgraded needs to be pulled out from the chassis, and the upgrade is completed online by using the JTAG link board IPMC programming interface. And after the upgrade is finished, the board card is inserted into the case, and the power is supplied again. In the method, the upgrading of the IPMC card needs the plugging and unplugging operation of the single board and also needs the insertion of the JTAG writer for upgrading, the operation is complicated, and the upgrading cannot be finished on the single board deployed on the site without the presence of maintenance personnel. The second upgrade method is to upgrade the IPMC online using an external Personal Computer (PC). Under the upgrading mode, an IPMC serial UART (Universal Asynchronous Receiver/Transmitter) interface is connected with a PC (personal computer), an operator opens upgrading software and a corresponding upgrading program on the PC, an upgrading loading instruction is sent to the IPMC, and the upgrading program is sent to the IPMC for upgrading. However, in the above upgrading method, although the single board does not need to be plugged or unplugged, an operator is still required to connect the PC and the IPMC communication interface, and upgrading cannot be completed similarly in response to the situation that no operator is on site.
Disclosure of Invention
The invention provides an IPMC online upgrading method and device, which aim to automatically carry out IPMC online upgrading on a board card to be upgraded under the condition of no operator.
In a first aspect, an embodiment of the present invention provides an IPMC online upgrade method, where the method includes:
the main controller acquires an IPMC upgrading program from the server and sends an upgrading instruction to the programmable logic device;
the programmable logic device enters an upgrading mode according to the upgrading instruction and controls the board card to be upgraded to enter a system programming mode;
the main controller sends the IPMC upgrading program to the board card to be upgraded;
and the board card to be upgraded is upgraded according to the IPMC upgrading program.
Further, after the programmable logic device enters the upgrade mode, the method further includes:
the programmable logic device acquires the control authority of a preset function according to the upgrading instruction;
correspondingly, after the board card to be upgraded is upgraded according to the IPMC upgrade program, the method further includes:
the main controller sends an upgrading completion instruction to the programmable logic device;
the programmable logic device resets the upgraded board card according to the upgrade completion instruction;
the main controller detects whether the upgraded board card is upgraded successfully;
if yes, starting the upgraded board card, and controlling the programmable logic device to exit the upgrade mode;
if not, the main controller sends an upgrading instruction to the programmable logic device so as to upgrade the upgraded board card again.
Further, detecting whether the upgraded board card is upgraded successfully includes:
the main controller acquires a first IPMC version number of the upgraded board card, and compares the IPMC version number with a second IPMC version number of the IPMC upgrading program;
if the first IPMC version number is the same as the second IPMC version number, determining that the upgraded board card is upgraded successfully;
and if the first IPMC version number is different from the second IPMC version number or the first IPMC version number cannot be acquired, determining that the upgraded board card fails to be upgraded.
Further, the sending, by the main controller, the IPMC upgrade program to the board card to be upgraded to upgrade the board card to be upgraded according to the IPMC upgrade program includes:
the main controller performs handshake communication with the board card to be upgraded based on a preset communication interface, and determines an information transmission rule;
the main controller initializes the preset communication interface and sends the IPMC upgrading program to the board card to be upgraded according to the information transmission rule based on the initialized preset communication interface;
and the board card to be upgraded receives the IPMC upgrading program, stores the IPMC upgrading program into a preset memory, and writes the IPMC upgrading program in the preset memory into a flash area.
Further, after writing the IPMC upgrade program in the preset memory into a flash area, the method further includes:
determining upgrading verification information according to each IPMC upgrading program written into the flash area;
matching the upgrade verification information with standard verification information;
if the matching is successful, determining that the command written into the flash area is correct, and continuously writing the next IPMC upgrading program into the flash area;
and if the matching fails, the board card to be upgraded receives the IPMC upgrading program again.
In a second aspect, an embodiment of the present invention further provides an IPMC online upgrade apparatus, where the apparatus includes:
the main controller is respectively electrically connected with the programmable logic device and the board card to be upgraded and is used for acquiring an IPMC upgrading program from the server, sending an upgrading instruction to the programmable logic device and sending the IPMC upgrading program to the board card to be upgraded after the board card to be upgraded enters a system programming mode;
the programmable logic device is respectively adjacent to the main controller and electrically connected with the board card to be upgraded, and is used for entering an upgrading mode according to an upgrading instruction sent by the main controller and controlling the board card to be upgraded to enter a system programming mode;
and the board card to be upgraded is used for upgrading according to the IPMC upgrading program.
Further, the programmable logic device is configured to, after entering an upgrade mode, obtain a control permission of a preset function according to an upgrade instruction, and further configured to, after the board to be upgraded is upgraded according to the IPMC upgrade program, reset the upgraded board according to the upgrade completion instruction sent by the main controller;
the main controller is used for detecting whether the upgraded board card is upgraded successfully or not after the upgraded board card is reset, if so, starting the upgraded board card and controlling the programmable logic device to exit the upgrading mode; if not, sending an upgrading instruction to the programmable logic device so as to upgrade the upgraded board card again.
Further, the main controller is specifically configured to:
after the board card to be upgraded is upgraded, acquiring a first IPMC version number of the upgraded board card, and comparing the first IPMC version number with a second IPMC version number of the IPMC upgrading program; if the first IPMC version number is the same as the second IPMC version number, determining that the upgraded board card is upgraded successfully; and if the first IPMC version number is different from the second IPMC version number or the first IPMC version number cannot be acquired, determining that the upgraded board card fails to be upgraded.
Further, the main controller is specifically configured to:
performing handshake communication with the board card to be upgraded based on a preset communication interface, and determining an information transmission rule;
initializing the preset communication interface, and sending the IPMC upgrading program to the board card to be upgraded according to the information transmission rule based on the initialized preset communication interface;
correspondingly, the board card to be upgraded is used for receiving the IPMC upgrading program, storing the IPMC upgrading program into a preset memory, and writing the IPMC upgrading program in the preset memory into a flash area.
Further, the board card to be upgraded is specifically configured to:
after the IPMC upgrading programs in the preset memory are written into a flash area, determining upgrading verification information according to each IPMC upgrading program written into the flash area;
matching the upgrade verification information with standard verification information;
if the matching is successful, determining that the command written into the flash area is correct, and continuously writing the next IPMC upgrading program into the flash area;
and if the matching fails, re-receiving the IPMC upgrading program.
According to the embodiment of the invention, the IPMC upgrading program is obtained from the server through the network interface by the main controller, the upgrading instruction is sent to the programmable logic device, and after the board card to be upgraded is controlled to enter the system programming mode, the IPMC upgrading program is sent to the board card to be upgraded by the main controller, so that the board card to be upgraded receives the IPMC upgrading program and is upgraded without disassembling the board card to be upgraded or assisting other external equipment, the problem that an operating person needs to be in the field in the IPMC upgrading operation in the prior art is solved, the automatic remote online upgrading of the board card to be upgraded in the ATCA case is realized, and the intelligence of the equipment is improved.
Drawings
FIG. 1 is a flowchart illustrating an IPMC online upgrade method according to an embodiment of the present invention;
FIG. 2A is a diagram of a control word according to an embodiment of the present invention;
fig. 2B is a schematic diagram of handshake communication between a host controller and a board card to be upgraded according to an embodiment of the present invention;
fig. 2C is a schematic diagram of a connection in an ATCA chassis according to an embodiment of the present invention;
FIG. 3A is a flowchart of a IPMC online upgrade method according to a second embodiment of the present invention;
fig. 3B is a control timing diagram of a programmable logic device according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an IPMC online upgrade apparatus according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an IPMC online upgrade method according to an embodiment of the present invention, where this embodiment is applicable to a situation where an IPMC online upgrade is performed on a board card to be upgraded in an ATCA chassis without intervention of an operator, and the method may be executed by an IPMC online upgrade apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner. Referring to fig. 1, the method specifically includes:
s110, the main controller obtains the IPMC upgrading program from the server and sends an upgrading instruction to the programmable logic device.
In this embodiment, a Central Processing Unit (CPU) main controller in an ATCA chassis, a Programmable Logic Device, and a board card burned with an IPMC program, where an IPMC upgrade Logic code has been burned in the Programmable Logic Device, and the Programmable Logic Device may be, for example, but not limited to, a PLD (Programmable Logic Device) and a CPLD (Complex Programmable Logic Device).
The main controller can be preset with upgrade information, wherein the upgrade information can include upgrade time and upgrade version, the main controller automatically obtains an IPMC upgrade program corresponding to the upgrade version from the server through the internet access according to the upgrade time, and automatically upgrades the board card to be upgraded according to the IPMC upgrade program. The main controller can also periodically detect whether the IPMC program is updated, if so, the IPMC upgrading program of the latest version is automatically acquired from the server through the network port, and the board card to be upgraded is automatically upgraded according to the IPMC upgrading program of the latest version. The main controller can also receive the remote instruction information, and according to the remote instruction information, the IPMC upgrading program corresponding to the upgrading version contained in the remote instruction information is acquired from the server through the internet access, or the IPMC upgrading program of the latest version is acquired, and the board card to be upgraded is upgraded.
The programmable logic device is a digital integrated circuit which can independently construct logic functions according to requirements, and the programmable logic device can be internally composed of a programming macro-cell matrix and connected by using metal wires with fixed length.
The main controller may send an upgrade instruction to the programmable logic device through a channel bus (local bus), where optionally, the upgrade instruction includes at least one control word.
And S120, the programmable logic device enters an upgrading mode according to the upgrading instruction and controls the board card to be upgraded to enter a system programming mode.
The programmable logic device receives an upgrade instruction sent by the main controller, enters an upgrade mode according to a control word In the upgrade instruction, and further controls a board card to be upgraded to enter an In System Programming (ISP) mode. For example, referring to fig. 2A, fig. 2A is a schematic diagram of a control word according to an embodiment of the present invention. The control word in fig. 2A includes control bits, where 4 control bits in the control word are used to control whether the programmable logic device enters the upgrade mode, and 1 control bit in the control word is used to control whether the board card to be upgraded enters the system programming mode. Illustratively, if the control position of 4 in the control word is 1, the programmable logic device enters an upgrade mode; and if the control position of 4 in the control word is 0, the programmable logic device exits the upgrading mode. When the control position of 1 in the control word is 0, the programmable logic device controls the board card to be upgraded to enter a system programming mode; and when the control position of 1 in the control word is 1, the programmable logic device controls the board card to be upgraded to exit the system programming mode.
S130, the main controller sends the IPMC upgrading program to the board card to be upgraded.
In this embodiment, when the main controller detects that the board card to be upgraded enters the system programming mode, the IPMC upgrade program is sent to the board card to be upgraded.
Optionally, the sending, by the main controller, the IPMC upgrade program to the board card to be upgraded to upgrade the board card to be upgraded according to the IPMC upgrade program includes: the main controller performs handshake communication with the board card to be upgraded based on a preset communication interface, and determines an information transmission rule; the main controller initializes a preset communication interface and sends an IPMC upgrading program to the board card to be upgraded based on the initialized preset communication interface; and the board card to be upgraded receives the IPMC upgrading program, stores the IPMC upgrading program into a preset memory and writes the IPMC upgrading program in the preset memory into a flash area.
The transmission of any actual application information between the communication devices is always accompanied by the transmission of control information, and the control information works according to a given communication protocol to safely, reliably and efficiently transmit the application information to a destination. The handshake communication is that two devices need to know each other before communicating, and can not transmit each other after determining the information transmission rule. For example, referring to fig. 2B, fig. 2B is a schematic diagram of handshake communication between a main controller and a board to be upgraded according to an embodiment of the present invention.
For example, the information transmission rule determined by the master controller performing handshake communication with the board to be upgraded may include the size of each data transmission, for example, 1K. The main controller and the board card to be upgraded are based on a UART (Universal Asynchronous Receiver/Transmitter) interface to transmit information. For example, referring to fig. 2C, fig. 2C is a schematic diagram of connection in an ATCA chassis according to an embodiment of the present invention. The UART2 interface of the main controller is connected with the UART0 interface of the board card to be upgraded.
After the main controller performs handshake communication with the board card to be upgraded, the main controller initializes a preset communication interface, which is a UART2 interface in this embodiment.
And the main controller sends the IPMC upgrading program to the board card to be upgraded based on the preset communication interface according to the information transmission rule. For example, the main controller sends data of 1K size to the board card to be upgraded each time, and the board card to be upgraded stores the data in a Random Access Memory (RAM), and further writes the data in the RAM into a designated flash area. After the data are written into the designated flash area, the main controller sends the next 1K-size data to the board card to be upgraded, and the writing operation is executed in a circulating mode until all IPMC upgrading programs are written into the designated flash area of the board card to be upgraded.
Optionally, after writing the IPMC upgrade program in the preset memory into the flash area, the method further includes: determining upgrading verification information according to each IPMC upgrading program written into the flash area; matching the upgrade verification information with the standard verification information; if the matching is successful, determining that the command written into the flash area is correct, and continuously writing the next IPMC upgrading program into the flash area; and if the matching fails, the board card to be upgraded receives the IPMC upgrading program again.
In this embodiment, the IPMC upgrade program acquired by the main controller includes standard verification information corresponding to each program, which may be, for example, a check value. And after each program is written into the flash area by the board card to be upgraded, calculating upgrade verification information of each written program, wherein the upgrade verification information and the standard verification information can be determined based on the same calculation mode. Matching the upgrade verification information with the standard verification information, if the upgrade verification information is the same as the standard verification information, determining that the matching is successful, determining that the command written into the flash area is correct, and continuously writing the next IPMC upgrade program into the flash area; and if the upgrading verification information is different from the standard verification information, determining that the matching fails, and receiving the IPMC upgrading program again by the board card to be upgraded.
In this embodiment, by determining that each program written into the flash area is verified, the correctness of the IPMC upgrade program written into the board card to be upgraded is improved, and the failure of upgrading the board card to be upgraded due to a write error is avoided.
And S140, upgrading the board card to be upgraded according to the IPMC upgrading program.
In this embodiment, the board card to be upgraded is upgraded by writing the IPMC upgrade program into the designated flash area in the board card to be upgraded.
According to the technical scheme, the IPMC upgrading program is obtained from the server through the network interface through the main controller, the upgrading instruction is sent to the programmable logic device, the board card to be upgraded is controlled to enter the system programming mode, the IPMC upgrading program is sent to the board card to be upgraded by the main controller, the IPMC upgrading program is received by the board card to be upgraded and is upgraded, the board card to be upgraded does not need to be disassembled or other external equipment is not needed to assist, the problem that an operator needs to be on site in IPMC upgrading operation in the prior art is solved, automatic remote online upgrading of the board card to be upgraded in the ATCA case is achieved, and the intelligence of equipment is improved.
Example two
Fig. 3A is a flowchart of an IPMC online upgrade method according to a second embodiment of the present invention, where the IPMC online upgrade method is optimized based on the second embodiment. Correspondingly, the method specifically comprises the following steps:
s210, the main controller obtains the IPMC upgrading program from the server and sends an upgrading instruction to the programmable logic device.
In this embodiment, the board card with the IPMC program burned therein is used in the ATCA chassis to control key information such as a power supply, a clock, and the like of the ATCA chassis, and cannot be used normally if the board card with the IPMC program burned therein fails to be upgraded and fails to be powered on the ATCA chassis. And after the board card to be upgraded enters the ISP mode, the board card cannot have the control functions of a power supply, a clock and the like, and the main controller cannot read any information of the board card to be upgraded in the ISP mode.
Optionally, before sending the upgrade instruction to the programmable logic device, the main controller includes: and the main controller acquires and stores the initial IPMC version number of the board card to be upgraded. The initial IPMC version number refers to the version number of the IPMC program of the board card to be upgraded before upgrading.
And S220, the programmable logic device enters an upgrading mode according to the upgrading instruction, acquires the control authority of the preset function, and controls the board card to be upgraded to enter a system programming mode.
In this embodiment, the preset functions include, but are not limited to, a power supply, a clock, an IPMC reset of the board to be upgraded, an ISP pin of the board to be upgraded, and the like. Optionally, the programmable logic device receives different main controllers to send different control words to implement control combination of different GPIO (General Purpose Input/Output) interfaces.
Referring to fig. 3B, fig. 3B is a control timing diagram of the programmable logic device according to the second embodiment of the present invention. Illustratively, the programmable logic device enters an upgrade mode after executing an "11" command, and the board card to be upgraded enters a system programming mode. In this embodiment, when the command is converted into the control word, each character in the command is converted into a binary number, and the binary numbers are combined in the original order to form the control word. For example, the "13" command includes a character "1" converted into a binary number "0001", a character "3" converted into a binary number "0011", and the binary numbers "00010011" are obtained by combining the corresponding binary numbers according to the order of "1" and "3" in the "13" command.
And S230, the main controller sends the IPMC upgrading program to the board card to be upgraded.
And S240, upgrading the board card to be upgraded according to the IPMC upgrading program.
And S250, the main controller sends an upgrading completion instruction to the programmable logic device.
Optionally, after the IPMC upgrade program is transmitted, the main controller sends a print instruction to the board to be upgraded, and after detecting that the board to be upgraded executes the print instruction, the main controller determines that the board to be upgraded is upgraded, and sends an upgrade completion instruction to the programmable logic device.
And S260, resetting the upgraded board card by the programmable logic device according to the upgrade completion instruction.
And the programmable logic device resets the board card to be upgraded according to the control word in the upgrading instruction.
And S270, after the upgraded board card is reset, the main controller detects whether the upgraded board card is upgraded successfully. If yes, go to step S280, otherwise, go back to step S210.
Optionally, detecting whether the upgraded board card is upgraded successfully includes:
the main controller acquires a first IPMC version number of the upgraded board card, and compares the IPMC version number with a second IPMC version number of an IPMC upgrading program; if the first IPMC version number is the same as the second IPMC version number, determining that the upgraded board card is upgraded successfully; and if the first IPMC version number is different from the second IPMC version number or the first IPMC version number cannot be acquired, determining that the upgraded board card fails to be upgraded. In this embodiment, the main controller automatically obtains and compares the first IPMC version number of the upgraded board card with the second IPMC version number of the IPMC upgrading program, and determines whether the upgrade of the upgraded board card is successful, thereby avoiding the situation that an operator manually checks the upgraded board card, reducing the labor cost, and realizing the remote upgrade of the board card to be upgraded automatically. And if the first IPMC version number is the same as the initial IPMC version number, determining that the IPMC upgrading program written into the board card to be upgraded fails.
And S280, starting the upgraded board card and controlling the programmable logic device to exit the upgrading mode.
In this embodiment, whether the board card is successfully upgraded is judged according to the IPMC version number of the upgraded board card, the upgraded board card is restarted only after the board card is successfully upgraded, and the control authority of the programmable logic device on the preset function is cancelled, otherwise, the programmable logic device continues to have the control authority of the preset function, and the board card which is unsuccessfully upgraded is restarted until the board card is successfully upgraded, so that the problem that the ATCA chassis cannot normally work due to the fact that the IPMC board card cannot be started when the board card which is unsuccessfully upgraded cannot control functions such as a power supply and a clock is avoided, and the reliability of the IPMC upgrade is improved.
In an alternative embodiment, the main controller obtains the IPMC upgrading program from the internet access; sending an upgrading instruction containing control words 13, 12, 10 and 11 to the programmable logic device, controlling the programmable logic device to enter an upgrading mode, acquiring control authority of a preset function, and further controlling a board card to be upgraded to enter an ISP mode; the main controller transmits an IPMC upgrading program to the board card to be upgraded through a UART interface, so that the board card to be upgraded is upgraded; after upgrading is completed, the main controller sends an upgrading completion instruction containing control words 10, 12 and 13 to the programmable logic device, so that the programmable logic device resets the upgraded board card according to the control words and records a first IPMC version number of the upgraded board card; judging whether the board card after upgrading is upgraded successfully by comparing the first IPMC version number with the second IPMC version number of the IPMC upgrading program; if the upgrading fails, the main controller sends the upgrading instruction containing the control words 13, 12, 10 and 11 to the programmable logic device again, and circularly executes the operation to upgrade the board card failed in upgrading until the board card is upgraded successfully; if the upgrading is successful, the main controller sends an instruction of exiting the upgrading mode to the programmable logic device, the control authority of the programmable logic device on the preset function is cancelled, and the upgraded board card controls the functions of a power supply, a clock and the like of the ATCA case.
In the technical scheme of the embodiment, before the board card to be upgraded is upgraded, the programmable logic device acquires the control authority of the preset function, and detecting whether the board card is successfully upgraded according to the first IPMC version number after the board card is upgraded and the second IPMC version number of the IPMC upgrading program, if the board card is unsuccessfully upgraded, re-upgrading the board card until the board card is successfully upgraded, after the board card is successfully upgraded, the main controller controls the programmable logic device to exit the upgrading mode, starts the upgraded board card, and the control authority of the preset function is cancelled, so that the programmable logic device controls the normal operation of the preset function in the board card upgrading process, the problem that the ATCA case cannot be normally used due to board card upgrading or board card upgrading failure is solved, the waste of the ATCA case due to upgrading failure is reduced, the engineering cost is saved, and the upgrading reliability and the industrial intelligence of the IPMC are improved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of an IPMC online upgrade apparatus provided by the third embodiment of the present invention, where the apparatus specifically includes:
the main controller 310 is electrically connected with the programmable logic device and the board card to be upgraded respectively, and is used for acquiring the IPMC upgrading program from the server, sending an upgrading instruction to the programmable logic device, and sending the IPMC upgrading program to the board card to be upgraded after the board card to be upgraded enters a system programming mode;
the programmable logic device 320 is respectively adjacent to the main controller and electrically connected with the board card to be upgraded and is used for entering an upgrading mode according to an upgrading instruction sent by the main controller and controlling the board card to be upgraded to enter a system programming mode;
and the board card to be upgraded 330 is used for upgrading according to the IPMC upgrading program.
Optionally, the programmable logic device 320 is configured to, after entering the upgrade mode, obtain the control permission of the preset function according to the upgrade instruction, and further configured to, after the board to be upgraded is upgraded according to the IPMC upgrade program, reset the upgraded board according to an upgrade completion instruction sent by the main controller;
the main controller 310 is configured to detect whether the upgraded board card is upgraded successfully after the upgraded board card is reset, and if so, start the upgraded board card and control the programmable logic device to exit the upgrade mode; if not, sending an upgrading instruction to the programmable logic device so as to upgrade the upgraded board card again.
Optionally, the main controller 310 is specifically configured to:
after the board card to be upgraded is upgraded, acquiring a first IPMC version number of the upgraded board card, and comparing the first IPMC version number with a second IPMC version number of an IPMC upgrading program; if the first IPMC version number is the same as the second IPMC version number, determining that the upgraded board card is upgraded successfully; and if the first IPMC version number is different from the second IPMC version number or the first IPMC version number cannot be acquired, determining that the upgraded board card fails to be upgraded.
Optionally, the main controller 310 is specifically configured to:
handshake communication is carried out on the board card to be upgraded based on a preset communication interface, and an information transmission rule is determined;
initializing a preset communication interface, and sending an IPMC upgrading program to a board card to be upgraded according to an information transmission rule based on the initialized preset communication interface;
correspondingly, the board card to be upgraded is used for receiving the IPMC upgrading program, storing the IPMC upgrading program into the preset memory and writing the IPMC upgrading program in the preset memory into the flash area.
Optionally, the board card 330 to be upgraded is specifically configured to:
after the IPMC upgrading programs in the preset memory are written into the flash area, determining upgrading verification information according to each IPMC upgrading program written into the flash area;
matching the upgrade verification information with the standard verification information;
if the matching is successful, determining that the command written into the flash area is correct, and continuously writing the next IPMC upgrading program into the flash area;
and if the matching fails, the IPMC upgrading program is received again.
The IPMC online upgrading device provided by the embodiment of the invention can execute the IPMC online upgrading method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the IPMC online upgrading method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. An IPMC online upgrading method is characterized by comprising the following steps:
the main controller acquires an IPMC upgrading program from the server and sends an upgrading instruction to the programmable logic device; the main controller is a CPU main controller in an ATCA (advanced telecom computing architecture) chassis, the main controller is internally provided with upgrading information in advance, the upgrading information comprises upgrading time and upgrading version, and the main controller acquires an IPMC upgrading program from a server and can realize the IPMC upgrading program in the following mode: automatically acquiring an upgrading IPMC program corresponding to the upgrading version from the server through a network port according to the upgrading time; or periodically detecting whether the IPMC program needs to be updated, and if so, automatically acquiring the IPMC upgrading program of the latest version from the server through the internet access; or receiving remote instruction information, and acquiring an IPMC upgrading program corresponding to an upgrading version contained in the remote instruction information from the server through a network port according to the remote instruction information;
the programmable logic device enters an upgrading mode according to the upgrading instruction, acquires the control authority of a preset function according to the upgrading instruction, and controls the board card to be upgraded to enter a system programming mode; the control authority of the preset function comprises a power supply, a clock, IPMC reset of the board card to be upgraded and control of an ISP pin of the board card to be upgraded;
the main controller sends the IPMC upgrading program to the board card to be upgraded;
the board card to be upgraded is upgraded according to the IPMC upgrading program;
the main controller sends an upgrading completion instruction to the programmable logic device;
the programmable logic device resets the upgraded board card according to the upgrade completion instruction;
the main controller detects whether the upgraded board card is upgraded successfully;
if yes, starting the upgraded board card, and controlling the programmable logic device to exit the upgrade mode;
if not, the main controller sends an upgrading instruction to the programmable logic device so as to upgrade the upgraded board card again.
2. The method of claim 1, wherein detecting whether the board card after the upgrade is successfully upgraded comprises:
the main controller acquires a first IPMC version number of the upgraded board card, and compares the IPMC version number with a second IPMC version number of the IPMC upgrading program;
if the first IPMC version number is the same as the second IPMC version number, determining that the upgraded board card is upgraded successfully;
and if the first IPMC version number is different from the second IPMC version number or the first IPMC version number cannot be acquired, determining that the upgraded board card fails to be upgraded.
3. The method according to any of claims 1-2, wherein the sending, by the host controller, the IPMC upgrade program to the board to be upgraded, so that the board to be upgraded is upgraded according to the IPMC upgrade program, comprises:
the main controller performs handshake communication with the board card to be upgraded based on a preset communication interface, and determines an information transmission rule;
the main controller initializes the preset communication interface and sends the IPMC upgrading program to the board card to be upgraded according to the information transmission rule based on the initialized preset communication interface;
and the board card to be upgraded receives the IPMC upgrading program, stores the IPMC upgrading program into a preset memory, and writes the IPMC upgrading program in the preset memory into a flash area.
4. The method of claim 3, further comprising, after writing the IPMC upgrade program in the default memory to a flash region:
determining upgrading verification information according to each IPMC upgrading program written into the flash area;
matching the upgrade verification information with standard verification information;
if the matching is successful, determining that the command written into the flash area is correct, and continuously writing the next IPMC upgrading program into the flash area;
and if the matching fails, the board card to be upgraded receives the IPMC upgrading program again.
5. An IPMC online upgrade apparatus, comprising:
the main controller is respectively electrically connected with the programmable logic device and the board card to be upgraded and is used for acquiring an IPMC upgrading program from the server, sending an upgrading instruction to the programmable logic device and sending the IPMC upgrading program to the board card to be upgraded after the board card to be upgraded enters a system programming mode, wherein the main controller is a CPU main controller in an ATCA case, upgrading information is preset in the main controller and comprises upgrading time and an upgrading version, and the main controller can acquire the IPMC upgrading program from the server by the following modes: automatically acquiring an upgrading IPMC program corresponding to the upgrading version from the server through a network port according to the upgrading time; or periodically detecting whether the IPMC program needs to be updated, and if so, automatically acquiring the IPMC upgrading program of the latest version from the server through the internet access; or receiving remote instruction information, and acquiring an IPMC upgrading program corresponding to an upgrading version contained in the remote instruction information from the server through a network port according to the remote instruction information;
the programmable logic device is respectively adjacent to the main controller and electrically connected with the board card to be upgraded and is used for entering an upgrading mode according to an upgrading instruction sent by the main controller, acquiring control authority of a preset function according to the upgrading instruction and controlling the board card to be upgraded to enter a system programming mode; the control authority of the preset function comprises a power supply, a clock, IPMC reset of the board card to be upgraded and control of an ISP pin of the board card to be upgraded;
the board card to be upgraded is used for upgrading according to the IPMC upgrading program;
the main controller is also used for sending an upgrade completion instruction to the programmable logic device;
the programmable logic device is also used for resetting the board card after upgrading according to the upgrading finishing instruction sent by the main controller after the board card to be upgraded is upgraded according to the IPMC upgrading program;
the main controller is used for detecting whether the upgraded board card is upgraded successfully or not after the upgraded board card is reset, if so, starting the upgraded board card and controlling the programmable logic device to exit the upgrading mode; if not, sending an upgrading instruction to the programmable logic device so as to upgrade the upgraded board card again.
6. The apparatus of claim 5, wherein the master controller is specifically configured to:
after the board card to be upgraded is upgraded, acquiring a first IPMC version number of the upgraded board card, and comparing the first IPMC version number with a second IPMC version number of the IPMC upgrading program; if the first IPMC version number is the same as the second IPMC version number, determining that the upgraded board card is upgraded successfully; and if the first IPMC version number is different from the second IPMC version number or the first IPMC version number cannot be acquired, determining that the upgraded board card fails to be upgraded.
7. The apparatus of any of claims 5-6, wherein the master controller is specifically configured to:
performing handshake communication with the board card to be upgraded based on a preset communication interface, and determining an information transmission rule;
initializing the preset communication interface, and sending the IPMC upgrading program to the board card to be upgraded according to the information transmission rule based on the initialized preset communication interface;
correspondingly, the board card to be upgraded is used for receiving the IPMC upgrading program, storing the IPMC upgrading program into a preset memory, and writing the IPMC upgrading program in the preset memory into a flash area.
8. The apparatus according to claim 7, wherein the board to be upgraded is specifically configured to:
after the IPMC upgrading programs in the preset memory are written into a flash area, determining upgrading verification information according to each IPMC upgrading program written into the flash area;
matching the upgrade verification information with standard verification information;
if the matching is successful, determining that the command written into the flash area is correct, and continuously writing the next IPMC upgrading program into the flash area;
and if the matching fails, re-receiving the IPMC upgrading program.
CN201711069386.1A 2017-11-03 2017-11-03 IPMC online upgrading method and device Active CN107870776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711069386.1A CN107870776B (en) 2017-11-03 2017-11-03 IPMC online upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711069386.1A CN107870776B (en) 2017-11-03 2017-11-03 IPMC online upgrading method and device

Publications (2)

Publication Number Publication Date
CN107870776A CN107870776A (en) 2018-04-03
CN107870776B true CN107870776B (en) 2021-01-12

Family

ID=61752627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711069386.1A Active CN107870776B (en) 2017-11-03 2017-11-03 IPMC online upgrading method and device

Country Status (1)

Country Link
CN (1) CN107870776B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032639A (en) * 2018-07-19 2018-12-18 郑州云海信息技术有限公司 A kind of complete machine flogic system upgrade method, system and independent logical device
CN111427602B (en) * 2020-04-10 2021-08-06 扬州万方电子技术有限责任公司 Method for upgrading firmware on line of intelligent platform management controller of VPX case

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858706A (en) * 2006-04-12 2006-11-08 华为技术有限公司 Method and system for 51 one-chip computer on-system upgrading
CN101493778A (en) * 2009-02-27 2009-07-29 华为技术有限公司 Programmable logic device upgrading method, apparatus and system
CN101782857A (en) * 2010-01-19 2010-07-21 福建三元达软件有限公司 Payment terminal, software upgrading method and system thereof
CN101894029A (en) * 2010-06-21 2010-11-24 中兴通讯股份有限公司 Method and device for upgrading complex programmable logic device on line
CN104881286A (en) * 2015-05-28 2015-09-02 烽火通信科技股份有限公司 Programmable device configuration system and method
CN105224345A (en) * 2014-05-28 2016-01-06 株洲变流技术国家工程研究中心有限公司 A kind of programmable logic device (PLD) remote update system and method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100472442C (en) * 2006-03-02 2009-03-25 中兴通讯股份有限公司 Device and method for on-line updating fastener programm
KR100848316B1 (en) * 2006-12-05 2008-07-24 한국전자통신연구원 Method and Apparatus for providing the board status to the main processor by using IPMI messages over the AdvancedTCA system
CN101605189B (en) * 2008-06-13 2012-05-23 大唐移动通信设备有限公司 System and method for upgrading intelligent platform management controller (IPMC) on line
CN101448050B (en) * 2008-12-29 2011-01-05 华为技术有限公司 Firmware update device of ATCA system and method thereof
US8892837B2 (en) * 2011-02-22 2014-11-18 Altera Corporation Integrated circuit with tamper-detection and self-erase mechanisms
CN103226334B (en) * 2013-04-28 2015-11-18 东方电气集团东方汽轮机有限公司 Hardware security chain control method in a kind of wind turbine control system escalation process

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858706A (en) * 2006-04-12 2006-11-08 华为技术有限公司 Method and system for 51 one-chip computer on-system upgrading
CN101493778A (en) * 2009-02-27 2009-07-29 华为技术有限公司 Programmable logic device upgrading method, apparatus and system
CN101782857A (en) * 2010-01-19 2010-07-21 福建三元达软件有限公司 Payment terminal, software upgrading method and system thereof
CN101894029A (en) * 2010-06-21 2010-11-24 中兴通讯股份有限公司 Method and device for upgrading complex programmable logic device on line
CN105224345A (en) * 2014-05-28 2016-01-06 株洲变流技术国家工程研究中心有限公司 A kind of programmable logic device (PLD) remote update system and method thereof
CN104881286A (en) * 2015-05-28 2015-09-02 烽火通信科技股份有限公司 Programmable device configuration system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
税控收款机专用微型打印机研制;王庆;《中国优秀博硕士学位论文全文数据库 (硕士) 工程科技Ⅱ辑》;20050615(第 02 期);C029-116 *

Also Published As

Publication number Publication date
CN107870776A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
US8386764B2 (en) BIOS architecture
EP0241678B1 (en) Method for self-configuring terminals in a data processing system
TWI633487B (en) Method and computer system for automatically recovering the bios image file
CN101673202A (en) Program writing method and system, pre-writing device and writing device
RU2614569C2 (en) Rack with automatic recovery function and method of automatic recovery for this rack
CN101330399A (en) Method for upgrading built-in equipment
US7038798B2 (en) Method and apparatus for multi-function processing capable of performing a program downloading using a common single connection, and a medium storing the method
US10037170B2 (en) Motherboard and a method for boot-up
CN107870776B (en) IPMC online upgrading method and device
JP2013164842A (en) Electronic device having restoration function of bmc firmware and restoration method of the same
US20180357193A1 (en) Computing device and operation method
CN110896372B (en) I2C link switching method, terminal and storage medium
CN102081526B (en) Basic input/output system architecture
CN113127264A (en) Data storage device repairing method
CN108153548A (en) A kind of EMMC firmware upgrade methods and device
CN107396185B (en) Upgrading method and system
CN110908733B (en) Working mode determining method and device, and control method and device
CN111857303B (en) FPGA (field programmable Gate array) resetting method, device and system and electronic equipment
JP7147525B2 (en) Communication device and control method
CN116541026A (en) Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
CN116301972A (en) Micro control unit firmware upgrading method and system
CN113377425B (en) BMC firmware generation method and device, BMC starting method and device and storage medium
CN106445571B (en) Mainboard and starting method
CN112771497A (en) Method and device for upgrading equipment and storage medium
JP2007094470A (en) Method of hotplugging information processing apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant