Disclosure of Invention
The embodiment of the invention provides a control mainboard, and a device and a method for burning codes into the control mainboard, which can directly burn target codes into an operating system of the control mainboard.
In a first aspect, an embodiment of the present invention provides a control motherboard, including:
a control main board main body and a conversion unit;
the control main board main body comprises: a processor, an ICH (input/output controller hub), a JTAG interface, and a USB interface;
the conversion unit is connected with an external upper computer through the JTAG interface;
the ICH is coupled to the processor;
the ICH is connected with the conversion unit through the USB interface;
the conversion unit is used for receiving a first target code of a JTAG protocol sent by the upper computer through the JTAG interface, converting the first target code of the JTAG protocol into a second target code of a USB protocol, and sending the second target code to the ICH through the USB interface;
the ICH is used for receiving the second target code and burning the second target code into the processor.
Further, the air conditioner is provided with a fan,
the conversion unit includes: ARM (Acorn RISC machine) processors.
Further, the air conditioner is provided with a fan,
the ICH is connected to the processor through a PCIE (peripheral component interconnect express).
Further, the air conditioner is provided with a fan,
the processor to transmit a first burn signal to the ICH,
the ICH is further configured to send the first burning signal to the conversion unit through the USB interface according to a USB protocol;
the conversion unit is further used for converting the first burning signal of the USB protocol into a second burning signal of the JTAG protocol and sending the second burning signal to the upper computer through the JTAG interface;
the recording signal includes: the first burning signal and the second burning signal;
the recording signal comprises: and informing the upper computer of information about starting burning, or informing the upper computer of information about successful burning, or informing the upper computer of information about failed burning.
In a second aspect, an embodiment of the present invention provides an apparatus for burning codes into a control motherboard, including:
the device to be burned and the upper computer;
the device to be burned comprises a control mainboard;
the control main board includes: a control main board main body and a conversion unit;
the control main board main body comprises: the system comprises a processor, an ICH, a JTAG interface and a USB interface;
the conversion unit is connected with the upper computer through the JTAG interface;
the ICH is coupled to the processor;
the ICH is connected with the conversion unit through the USB interface;
the upper computer is used for sending a first target code of a JTAG protocol to a JTAG interface of the control mainboard;
the conversion unit is used for receiving the first target code of the JTAG protocol sent by the upper computer through the JTAG interface, converting the first target code of the JTAG protocol into a second target code of a USB protocol, and sending the second target code to the ICH through the USB interface;
the ICH is used for receiving the second target code and burning the second target code into the processor.
Further, the air conditioner is provided with a fan,
the conversion unit includes: an ARM processor.
Further, the air conditioner is provided with a fan,
the ICH is coupled to the processor via PCIE.
Further, the air conditioner is provided with a fan,
the processor to transmit a first burn signal to the ICH,
the ICH is further configured to send the first burning signal to the conversion unit through the USB interface according to a USB protocol;
the conversion unit is further used for converting the first burning signal of the USB protocol into a second burning signal of the JTAG protocol and sending the second burning signal to the upper computer through the JTAG interface;
the recording signal includes: the first burning signal and the second burning signal;
the recording signal comprises: and informing the upper computer of information about starting burning, or informing the upper computer of information about successful burning, or informing the upper computer of information about failed burning.
Further, the air conditioner is provided with a fan,
the device to be burned comprises: a back plate;
the JTAG interface is connected with the back plate;
the JTAG interface is connected with the upper computer through the backboard.
In a third aspect, an embodiment of the present invention provides a method for burning a code into a control motherboard based on the control motherboard in any one of the claims in the first aspect, including:
a conversion unit of the control mainboard receives a first target code of a JTAG protocol sent by an external upper computer through a JTAG interface;
the conversion unit converts the first target code of the JTAG protocol into a second target code of the USB protocol, and sends the second target code to the ICH of the control mainboard through a USB interface;
and the ICH receives the second target code and burns the second target code into a processor of the control mainboard.
In the embodiment of the invention, the upper computer sends the first target code of the JTAG protocol to the conversion unit through the JTAG interface, and the conversion unit converts the first target code into the second target code of the USB protocol which can be identified by the ICH, so that the ICH can burn the second target code into the processor, and further directly burn the second target code into the operating system of the control mainboard.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a control motherboard, including:
a control main board main body 101 and a conversion unit 102;
the control main board main body 101 includes: a processor 1011, an ICH 1012, a JTAG interface 1013, and a USB interface 1014;
the conversion unit 102 is connected to an external upper computer through the JTAG interface 1013;
the ICH 1012 is coupled to the processor 1011;
the ICH 1012 is connected to the conversion unit 102 through the USB interface 1014;
the conversion unit 102 is configured to receive a first target code of a JTAG protocol sent from the upper computer through the JTAG interface 1013, convert the first target code of the JTAG protocol into a second target code of a USB protocol, and send the second target code to the ICH 1012 through the USB interface 1014;
the ICH 1012 is configured to receive the second target code and burn the second target code into the processor 1011.
In the embodiment of the invention, the upper computer sends the first target code of the JTAG protocol to the conversion unit through the JTAG interface, and the conversion unit converts the first target code into the second target code of the USB protocol which can be identified by the ICH, so that the ICH can burn the second target code into the processor, and further directly burn the second target code into the operating system of the control mainboard.
In an embodiment of the present invention, the conversion unit includes: an ARM processor.
As shown in fig. 2, an embodiment of the present invention provides a control motherboard, including:
the main board main body 101 and the ARM processor 201 are controlled;
the control main board main body 101 includes: a processor 1011, an ICH 1012, a JTAG interface 1013, and a USB interface 1014;
the ARM processor 201 is connected to an external upper computer through the JTAG interface 1013;
the ICH 1012 is coupled to the processor 1011;
the ICH 1012 is connected to the ARM processor 201 through the USB interface 1014;
the ARM processor 201 is configured to receive a first target code of a JTAG protocol sent from the upper computer through the JTAG interface 1013, convert the first target code of the JTAG protocol into a second target code of a USB protocol, and send the second target code to the ICH 1012 through the USB interface 1014;
the ICH 1012 is configured to receive the second target code and burn the second target code into the processor 1011.
In an embodiment of the present invention, the ICH is connected to the processor via PCIE.
Specifically, the ICH is connected to the processor via a PCIE bus.
In an embodiment of the present invention, the processor is configured to transmit a first burn signal to the ICH,
the ICH is further configured to send the first burning signal to the conversion unit through the USB interface according to a USB protocol;
the conversion unit is further used for converting the first burning signal of the USB protocol into a second burning signal of the JTAG protocol and sending the second burning signal to the upper computer through the JTAG interface;
the recording signal includes: the first burning signal and the second burning signal;
the recording signal comprises: and informing the upper computer of information about starting burning, or informing the upper computer of information about successful burning, or informing the upper computer of information about failed burning.
In the embodiment of the invention, the conversion unit can realize the mutual conversion of the USB protocol and the JTAG protocol, so that an external upper computer can directly interact with the processor, and the burning efficiency is improved. The processor sends the burning signal to the upper computer, so that the upper computer can know the condition of the control mainboard in time. For example: when the upper computer receives information informing the upper computer to start burning, the upper computer can start burning and send out a first target code; when the upper computer receives the information informing the upper computer of successful burning, the upper computer can end the burning process; when the upper computer receives the information informing the upper computer of the failed burning, the upper computer can burn again and send the first target code again, or the upper computer sends a fault alarm so as to search the failure reason and repair the failure reason.
In one embodiment of the invention, the processor may be a Shenwei processor.
The ARM processor can be a small ARM processor, is convenient to deploy on a control mainboard, and reduces occupied space.
In the embodiment of the invention, the upper computer sends the first target code of the JTAG protocol to the conversion unit through the JTAG interface, the conversion unit converts the first target code into the second target code of the USB protocol which can be identified by the ICH, so that the ICH can burn the second target code into the processor, and further the second target code is directly burned into the operating system of the control mainboard, so that the equipment where the control mainboard is located can meet various requirements of users, and the maintainability and the stability of the equipment where the control mainboard is located are improved.
In this embodiment of the present invention, the main control board body of the control main board may further include: the system comprises a memory, an FPGA maintenance module and a network card module.
The memory can be a DDR3 memory and is realized by a surface-mounted DDR3 memory particle mode.
The FPGA (Field-Programmable Gate Array) maintenance module can be used for controlling debugging and maintenance of the mainboard.
The network card module can realize the interconnection of the network and the rest modules on the backboard, and the network card module can be realized by a network card INTE L82574 module.
The ICH may also support a VGA (Video Graphics Array, Video transmission standard) interface, a USB interface, and a PCIE interface, and these interfaces are output to the backplane together with the PCIE integrated by the processor, so as to implement expansion of the entire device and other additional functions.
The ICH may be connected to the network card module via PCIE.
As shown in fig. 3, an embodiment of the present invention provides a device for burning codes into a control motherboard, including:
a device to be burned 31 and an upper computer 32;
the device to be burned 31 comprises a control main board 311;
the control main board 311 includes: a control main board body 3111 and a conversion unit 3112;
the control main board body 3111 includes: a processor 31111, an ICH 31112, and JTAG interface 31113 and USB interface 31114;
the conversion unit 3112 is connected with the upper computer 32 through the JTAG interface 31113;
the ICH 31112 is coupled to the processor 31111;
the ICH 31112 is connected to the conversion unit 3112 through the USB interface 31114;
the upper computer 32 is configured to send a first target code of a JTAG protocol to the JTAG interface 31113 of the control motherboard 311;
the conversion unit 3112 is configured to receive the first object code of the JTAG protocol sent from the host through the JTAG interface 31113, convert the first object code of the JTAG protocol into a second object code of a USB protocol, and send the second object code to the ICH 31112 through the USB interface 31114;
the ICH 31112 is configured to receive the second object code, and burn the second object code into the processor 31111.
Of course, the device to be burned may include a hard disk, a power supply, an input/output device, and the like, besides the control motherboard. The device to be burned can be a computer, a server and the like.
In an embodiment of the present invention, the conversion unit includes: an ARM processor.
In an embodiment of the present invention, the ICH is connected to the processor via PCIE.
In an embodiment of the present invention, the processor is configured to transmit a first burn signal to the ICH,
the ICH is further configured to send the first burning signal to the conversion unit through the USB interface according to a USB protocol;
the conversion unit is further used for converting the first burning signal of the USB protocol into a second burning signal of the JTAG protocol and sending the second burning signal to the upper computer through the JTAG interface;
the recording signal includes: the first burning signal and the second burning signal;
the recording signal comprises: and informing the upper computer of information about starting burning, or informing the upper computer of information about successful burning, or informing the upper computer of information about failed burning.
In an embodiment of the present invention, the device to be burned includes: a back plate;
the JTAG interface is connected with the back plate;
the JTAG interface is connected with the upper computer through the backboard.
As shown in fig. 4, an embodiment of the present invention provides a method for burning a code into a control motherboard based on any one of the control motherboards in the embodiments of the present invention, including:
step 401: a conversion unit of the control mainboard receives a first target code of a JTAG protocol sent by an external upper computer through a JTAG interface;
step 402: the conversion unit converts the first target code of the JTAG protocol into a second target code of the USB protocol, and sends the second target code to the ICH of the control mainboard through a USB interface;
step 403: and the ICH receives the second target code and burns the second target code into a processor of the control mainboard.
The embodiments of the invention have at least the following beneficial effects:
1. in the embodiment of the invention, the upper computer sends the first target code of the JTAG protocol to the conversion unit through the JTAG interface, and the conversion unit converts the first target code into the second target code of the USB protocol which can be identified by the ICH, so that the ICH can burn the second target code into the processor, and further directly burn the second target code into the operating system of the control mainboard.
2. In the embodiment of the invention, the upper computer sends the first target code of the JTAG protocol to the conversion unit through the JTAG interface, the conversion unit converts the first target code into the second target code of the USB protocol which can be identified by the ICH, so that the ICH can burn the second target code into the processor, and further the second target code is directly burned into the operating system of the control mainboard, so that the equipment where the control mainboard is located can meet various requirements of users, and the maintainability and the stability of the equipment where the control mainboard is located are improved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.