WO2025103003A1 - 一种固件烧录方法、主板、装置、设备、系统及存储介质 - Google Patents

一种固件烧录方法、主板、装置、设备、系统及存储介质 Download PDF

Info

Publication number
WO2025103003A1
WO2025103003A1 PCT/CN2024/122313 CN2024122313W WO2025103003A1 WO 2025103003 A1 WO2025103003 A1 WO 2025103003A1 CN 2024122313 W CN2024122313 W CN 2024122313W WO 2025103003 A1 WO2025103003 A1 WO 2025103003A1
Authority
WO
WIPO (PCT)
Prior art keywords
management controller
baseboard management
switch
line conversion
conversion switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/122313
Other languages
English (en)
French (fr)
Inventor
王焕超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Publication of WO2025103003A1 publication Critical patent/WO2025103003A1/zh
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application belongs to the field of data communication technology, and specifically relates to a firmware burning method, a mainboard, a device, a equipment, a system and a storage medium.
  • BMCs baseboard management controllers
  • BIOS basic input output system
  • CPLD complex programmable logic device
  • the baseboard management controller is mainly burned by disassembling the board for repair. First, the memory component of the baseboard management controller is removed from the mainboard, and then the burning tool is used to complete the burning, and then the burned memory component is re-soldered back to the mainboard to complete the repair.
  • the purpose of the embodiments of the present application is to provide a firmware burning method, motherboard, device, equipment, system and storage medium, which can solve the problem of high maintenance time cost and labor cost when the baseboard management controller memory component cannot be burned online in the related art.
  • some embodiments of the present application provide a firmware burning method, the method comprising:
  • the first line conversion switch is switched to connect the baseboard management controller and the baseboard management controller memory, so that the baseboard management controller calls the firmware file in the baseboard management controller memory.
  • a second line switch is provided on the connection line between the communication transmission interface and the baseboard management controller memory, and the first line switch of the mainboard is switched to connect the communication transmission interface of the mainboard and the baseboard management controller memory of the mainboard, including:
  • the first circuit conversion switch is switched to connect the baseboard management controller memory and the second circuit conversion switch; wherein the first circuit conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the second circuit conversion switch.
  • a second line switch is provided on the connection line between the communication transmission interface and the baseboard management controller memory, and switching the first line switch to connect the baseboard management controller and the baseboard management controller memory includes:
  • Switching the second line conversion switch to connect the communication transmission interface and the baseboard management controller wherein the second line conversion switch is used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface to connect to the first line conversion switch;
  • the first line conversion switch is switched to connect the baseboard management controller memory and the baseboard management controller; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the second line conversion switch.
  • the method further comprises:
  • first switch corresponding to the first power supply; wherein the first power supply and the first switch are located on the mainboard, and the first power supply is used to supply power to the baseboard management controller and the baseboard management controller memory through the first switch;
  • the second switch wherein the second switch is used for an external power source to supply power to the baseboard management controller memory via the communication transmission interface.
  • the method further comprises:
  • a first indication signal is sent to the baseboard management controller; wherein the first indication signal is used to light up a red indicator light corresponding to the baseboard management controller.
  • sending a first indication signal to a baseboard management controller includes:
  • connection state indicates that the second line transfer switch is connected to the communication transmission interface and the first line transfer switch
  • a first indication signal is sent to the baseboard management controller.
  • switching the first line switch to connect the baseboard management controller and the baseboard management controller memory includes:
  • a second indication signal is sent to the baseboard management controller, wherein the second indication signal is used to turn off a red indicator light corresponding to the baseboard management controller.
  • burning the firmware file into the memory of the baseboard management controller via the communication transmission interface and the first line conversion switch includes:
  • the firmware file is burned into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • burning the firmware file into the memory of the baseboard management controller via the communication transmission interface and the first line conversion switch includes:
  • the burning file is burned into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • some embodiments of the present application provide a mainboard, the mainboard comprising:
  • Baseboard management controller memory first line conversion switch, communication transmission interface, baseboard management controller
  • the first line switch is used to connect the communication transmission interface, the baseboard management controller and the baseboard management controller memory.
  • the mainboard further comprises:
  • the second line conversion switch wherein the three terminals of the second line conversion switch are respectively connected to the communication transmission interface, the first line conversion switch and the baseboard management controller.
  • the mainboard further comprises:
  • the first switch is connected to the first power source, the baseboard management controller and the baseboard management controller memory;
  • the second switch is connected to the communication transmission interface and the baseboard management controller.
  • some embodiments of the present application provide a firmware burning device, the device comprising:
  • a first switching module is used to switch a first line conversion switch of the mainboard to connect the communication transmission interface of the mainboard and the baseboard management controller memory of the mainboard; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the communication transmission interface;
  • a burning module used for burning the firmware file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch;
  • the second switching module is used to switch the first line conversion switch to connect the baseboard management controller and the baseboard management controller memory, so that the baseboard management controller calls the firmware file in the baseboard management controller memory.
  • a second line switch is provided on the connection line between the communication transmission interface and the baseboard management controller memory, and the first switching module includes:
  • a first switching submodule is used to switch the second line conversion switch of the mainboard to connect the communication transmission interface and the first line conversion switch; wherein the second line conversion switch is used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface to connect to the first line conversion switch;
  • the second switching submodule is used to switch the first line conversion switch to connect the baseboard management controller memory to the second line conversion switch; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the second line conversion switch.
  • a second line conversion switch is provided on the connection line between the communication transmission interface and the baseboard management controller memory, and the second switching module includes:
  • a third switching submodule is used to switch the second line conversion switch to connect the communication transmission interface and the baseboard management controller; wherein the second line conversion switch is used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface to connect to the first line conversion switch;
  • the fourth switching submodule is used to switch the first line conversion switch to connect the baseboard management controller memory and the baseboard management controller; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the second line conversion switch.
  • the apparatus further comprises:
  • a shutdown module used to shut down a first switch corresponding to a first power source; wherein the first power source and the first switch are located on the mainboard, and the first power source is used to supply power to a baseboard management controller and a baseboard management controller memory through the first switch;
  • the conduction module is used to conduct the second switch; wherein the second switch is used for an external power source to supply power to the baseboard management controller memory via the communication transmission interface.
  • the apparatus further comprises:
  • the first sending module is used to send a first indication signal to the baseboard management controller when the first line conversion switch is connected to the baseboard management controller memory and the second line conversion switch; wherein the first indication signal is used to light up a red indicator light corresponding to the baseboard management controller.
  • the first sending module includes:
  • An acquisition submodule used for acquiring the connectivity status of the second line transfer switch
  • the first sending submodule is used to send a first indication signal to the baseboard management controller when the connection state indicates that the second line conversion switch is connected to the communication transmission interface and the first line conversion switch.
  • the second switching module includes:
  • a fifth switching submodule used for switching the first line conversion switch to connect the baseboard management controller and the baseboard management controller memory
  • the second sending submodule sends a second indication signal to the baseboard management controller; wherein the second indication signal is used to turn off a red indicator light corresponding to the baseboard management controller.
  • the burning module includes:
  • a display submodule used for displaying first switching information of the first line switch; wherein the first switching information is used to prompt the user to connect the burner of the firmware file to the communication transmission interface;
  • the first burning submodule is used to burn the firmware file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch when the burner is connected to the communication transmission interface.
  • the burning module includes:
  • the format conversion submodule is used to convert the format of the firmware file to obtain the burning file corresponding to the firmware file;
  • the second burning submodule is used to burn the burning file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • the present application provides an electronic device, the electronic device comprising a processor and a memory, the memory storing programs or instructions that can be run on the processor, and the program or instructions, when executed by the processor, implements any of the above firmware burning methods.
  • some embodiments of the present application provide a firmware burning system, the system comprising a terminal device and any of the above mainboards, the terminal device comprising a processor and a memory, the memory storing programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, any of the above firmware burning methods are implemented on the mainboard.
  • some embodiments of the present application provide a non-volatile readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, a firmware burning method as described in any one of the above items is implemented.
  • Some embodiments of the present application provide a firmware burning method, including: switching a first line conversion switch of a mainboard to connect a communication transmission interface of the mainboard and a baseboard management controller memory of the mainboard; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory to connect to the communication transmission interface, burning the firmware file into the baseboard management controller memory through the communication transmission interface and the first line conversion switch, switching the first line conversion switch to connect the baseboard management controller and the baseboard management controller memory, so that the baseboard management controller calls the firmware file in the baseboard management controller memory, and the baseboard management controller memory can be burned directly through the communication transmission interface of the baseboard management controller, thereby avoiding the disassembly of the baseboard management controller memory and reducing the time cost and labor cost of repairing the baseboard management controller memory to a certain extent.
  • FIG1 is a flowchart of a firmware burning method provided by some embodiments of the present application.
  • FIG2 is a flowchart of another method for burning firmware provided by some embodiments of the present application.
  • FIG3 is a schematic diagram of the component structure of a firmware burning method provided in some embodiments of the present application.
  • FIG4 is a schematic diagram of a hardware structure of a mainboard provided in some embodiments of the present application.
  • FIG5 is a schematic diagram of a mainboard structure corresponding to a firmware burning method provided in some embodiments of the present application.
  • FIG6 is a logic block diagram of a firmware burning device provided in some embodiments of the present application.
  • FIG. 7 is a schematic diagram of the structure of an electronic device provided in some embodiments of the present application.
  • first, second, etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • FIG. 1 shows a flowchart of a method for burning firmware provided by some embodiments of the present application.
  • the method for burning firmware can be run on a terminal device such as a computer or a burner.
  • the method can specifically include the following steps:
  • Step 101 switch the first line conversion switch of the mainboard to connect the communication transmission interface of the mainboard and the baseboard management controller memory of the mainboard; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory to connect to the communication transmission interface.
  • the baseboard management controller may be equipped with a baseboard management controller memory component, and a programming file or a firmware file may be stored in the baseboard management controller memory component, so that the baseboard management controller can implement the functions specified by the programming file or the firmware file.
  • the baseboard management controller can communicate with an external device through a communication transmission interface, for example, a log file can be transmitted to an external device or a server device connected to the baseboard management controller can be operated in response to an instruction of an external device.
  • the programming file or the firmware file is transmitted to the baseboard management controller memory component in a burning manner to play a role. Burning is to transmit the target data to the programmable device in the form of a programming signal through special software and hardware devices.
  • the communication transmission interface may be an RS232 DB9 port interface having pins 1 to 9
  • the programming interface may be a serial peripheral interface (Serial Peripheral Interface, SPI) having 5 transmission lines.
  • SPI Serial Peripheral Interface
  • an SPI bus and a first line conversion switch can be added between the RS232 interface as a communication transmission interface and the baseboard management controller memory, wherein the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory to connect to the communication transmission interface.
  • the baseboard management controller can access the firmware file or programming file in the baseboard management controller memory to run the various functions of the baseboard management controller; when the baseboard management controller memory is connected to the communication transmission interface, the communication line between the baseboard management controller and the baseboard management controller memory is cut off, and the firmware file can be burned into the baseboard management controller memory from the communication transmission interface through the SPI bus.
  • the first terminal can switch the first line conversion switch so that the communication transmission interface and the baseboard management controller memory can be connected.
  • the first line conversion switch is switched to connect the communication transmission interface and the baseboard management controller memory
  • the baseboard management controller and the baseboard management controller memory can also be disconnected.
  • the communication transmission interface can be other integrated interfaces other than RS232, such as RS485 type interface, etc., which is not limited in the embodiments of the present application.
  • Step 102 Burn the firmware file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • the firmware file used for burning can be burned into the baseboard management controller memory through the communication transmission interface, the first line conversion switch and the corresponding transmission line through a burning tool.
  • Step 103 switch the first line conversion switch to connect the baseboard management controller and the baseboard management controller memory, so that the baseboard management controller calls the firmware file in the baseboard management controller memory.
  • the baseboard management controller and the baseboard management controller memory may be in a disconnected state, at which time the first line conversion switch may be switched to connect the baseboard management controller and the baseboard management controller memory, and the first line conversion switch may be switched to connect the baseboard management controller and the baseboard management controller memory.
  • the connection between the baseboard management controller memory and the communication transmission interface can be disconnected while the management controller memory is being managed.
  • the baseboard management controller can call the firmware file in the baseboard management controller memory, thereby realizing various functions of the baseboard management controller.
  • the communication transmission interface of the mainboard and the baseboard management controller memory of the mainboard are connected by switching the first line conversion switch of the mainboard; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory to connect to the communication transmission interface, and the firmware file is burned into the baseboard management controller memory through the communication transmission interface and the first line conversion switch, and the first line conversion switch is switched to connect the baseboard management controller and the baseboard management controller memory so that the baseboard management controller calls the firmware file in the baseboard management controller memory, and the baseboard management controller memory can be burned directly through the communication transmission interface of the baseboard management controller, thereby avoiding the disassembly of the baseboard management controller memory and reducing the time cost and labor cost of repairing the baseboard management controller memory to a certain extent.
  • FIG. 2 is a flowchart of another method for burning firmware provided in some embodiments of the present application.
  • the method may specifically include the following steps:
  • Step 201 switch the first line conversion switch of the mainboard to connect the communication transmission interface of the mainboard and the baseboard management controller memory of the mainboard; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory to connect to the communication transmission interface.
  • the implementation content of this step can refer to the implementation content of step 101 and will not be repeated here.
  • step 201 may include the following sub-steps:
  • Sub-step 2011 switching the second line conversion switch of the mainboard to connect the communication transmission interface and the first line conversion switch; wherein the second line conversion switch is used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface to connect to the first line conversion switch.
  • the second line conversion switch on the transmission line of the first line conversion switch and the communication transmission interface
  • the second line conversion switch can be used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface to connect to the first line conversion switch, that is, a second line conversion switch can be set on the transmission line of the communication transmission interface and the baseboard management controller, and a transmission line is established between the first line conversion switch and the second line conversion switch, so that the baseboard management controller memory can be connected to the communication transmission interface through the first line conversion switch and the second line conversion switch.
  • the second line conversion switch can connect the communication transmission interface and the baseboard management controller so that the baseboard management controller can communicate with external devices.
  • the second line conversion switch can be switched so that the communication transmission interface and the first line conversion switch can be connected and the connection between the communication transmission interface and the baseboard management controller can be disconnected.
  • Sub-step 2012 switching the first circuit conversion switch to connect the baseboard management controller memory and the second circuit conversion switch; wherein the first circuit conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory to connect to the second circuit conversion switch.
  • the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory to connect to the second line conversion switch.
  • the first line conversion switch can be switched so that the baseboard management controller memory can be connected to the second line conversion switch and the connection between the baseboard management controller and the baseboard management controller memory can be disconnected.
  • sub-step 2011 switches the second line switch
  • sub-step After the first line conversion switch is switched in 2012 the communication transmission interface and the baseboard management controller memory can be connected, so that the baseboard management controller memory can directly communicate with the external device.
  • FIG3 is a schematic diagram of the component structure of a firmware burning method provided by some embodiments of the present application.
  • the solid line may be a signal transmission line
  • the dotted line may be a power supply line.
  • the terminal device may be directly connected to the communication transmission interface, and the first line conversion switch and the second line conversion switch may be controlled through the communication transmission interface.
  • the baseboard management controller memory cannot be directly connected to the communication transmission interface, nor can it communicate directly with the terminal device through the communication transmission interface. Only when the second line conversion switch connects the communication transmission interface and the first line conversion switch, and the first line conversion switch connects the baseboard management controller memory and the second line conversion switch, can the baseboard management controller communicate directly with the terminal device through the communication transmission interface.
  • the communication transmission interface and the first line conversion switch are connected by switching the second line conversion switch of the mainboard; wherein the second line conversion switch is used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface is connected to the first line conversion switch, and the first line conversion switch is switched to connect the baseboard management controller memory and the second line conversion switch; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory is connected to the second line conversion switch, so that the baseboard management controller memory can be connected to the communication transmission interface through the first line conversion switch and the second line conversion switch, and the connection between the baseboard management controller memory and the communication transmission interface and the baseboard management controller is disconnected, thereby avoiding logical confusion and errors that may occur during the burning process, and improving the reliability and security of the firmware burning method.
  • Step 202 turning off a first switch corresponding to a first power source; wherein the first power source and the first switch are located on a mainboard, and the first power source is used to supply power to a baseboard management controller and a baseboard management controller memory through the first switch.
  • the first switch can connect the first power supply, the baseboard management controller and the baseboard management controller memory, and the first power supply can supply power to the baseboard management controller and the baseboard management controller memory when the first switch is connected.
  • the first power supply can be a DC regulated power supply, and the voltage value can be adjusted according to the rated voltage of the baseboard management controller.
  • the first switch can be turned off to stop the first power supply from supplying power to the baseboard management controller memory and the baseboard management controller.
  • Step 203 turning on the second switch; wherein the second switch is used for an external power source to supply power to the baseboard management controller memory via the communication transmission interface.
  • the terminal device connected to the communication transmission interface can be equipped with an external power supply, and power can be supplied to the baseboard management controller memory through the second switch.
  • the second switch can be turned on so that the external power supply on the terminal device supplies power to the baseboard management controller memory through the communication transmission interface. After power is supplied to the baseboard management controller memory, the terminal device can recognize the baseboard management controller memory.
  • the terminal device may control the first switch to be disconnected, and then control the second switch to be connected, so that the terminal device may supply power to the baseboard management controller memory.
  • the power supply of the system can be replaced before the firmware file is burned, thereby avoiding the power supply risk of the internal power supply of the system and improving the availability and stability of the firmware burning method.
  • Step 204 when the first line transfer switch is in the state of connecting the baseboard management controller memory and the second line transfer switch, a first indication signal is sent to the baseboard management controller; wherein the first indication signal is used to light up the baseboard management controller The corresponding red indicator light.
  • a red indicator light may be mounted on the baseboard management controller.
  • a first indication signal may be sent to the baseboard management controller to light up the red indicator light on the baseboard management controller.
  • step 204 may include the following sub-steps:
  • Sub-step 2041 obtaining the connectivity status of the second line transfer switch.
  • the connectivity status of the second line conversion switch can be obtained to determine whether the second line conversion switch is in a state of connecting the communication transmission interface and the baseboard management controller or in a state of connecting the communication transmission interface and the first line conversion switch.
  • Sub-step 2042 sending a first indication signal to a baseboard management controller when the connection state indicates that the second line transfer switch is connected to the communication transmission interface and the first line transfer switch.
  • a first indication signal may be sent to the baseboard management controller, so that a red indicator light may be turned on.
  • a first indication signal is sent to the baseboard management controller, and the corresponding indicator light can be lit when the baseboard management controller memory is directly connected to the communication transmission interface through the first line conversion switch and the second line conversion switch, thereby further improving the practicality of the firmware burning method.
  • the corresponding indicator light can be lit when the baseboard management controller is directly connected to the communication transmission interface, thereby improving the practicality of the firmware burning method.
  • Step 205 Burn the firmware file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • the implementation content of this step can refer to the implementation content of step 102, which will not be repeated here.
  • step 205 may include the following sub-steps:
  • Sub-step 2051 displaying first switching information of the first line switch; wherein the first switching information is used to prompt the user to connect the burner of the firmware file to the communication transmission interface.
  • first switching information of the first line conversion switch can be generated and displayed to show the user the connectivity state after the first line conversion switch is switched and prompt the user to connect the burner to the communication transmission interface.
  • Sub-step 2052 When the burner is connected to the communication transmission interface, the firmware file is burned into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • the burner after the user connects the burner to the communication transmission interface, the burner can be used to burn the firmware file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • the firmware file is burned to the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • the user can be prompted to connect the burner for burning, which improves the usability of the firmware burning method.
  • Sub-step 2053 converting the format of the firmware file to obtain a burning file corresponding to the firmware file.
  • the firmware file may be a program file formed based on a certain programming language, used to drive a baseboard management controller, or to upgrade the driver of the baseboard management controller.
  • the code in such a firmware file cannot be directly recognized by a machine, and needs to be converted into a burning file that can be directly recognized by the machine.
  • the firmware file can be converted in format, so that a burning file corresponding to the firmware file and directly recognized by the machine can be obtained.
  • the firmware file format is ".c”
  • the file obtained after the format conversion is the burning file.
  • Sub-step 2054 burning the burning file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • the burning file can be burned into the baseboard management controller memory through the communication transmission interface and the first line conversion switch by a terminal device or a burner connected to the communication transmission interface.
  • the firmware file by converting the format of the firmware file to obtain a burning file corresponding to the firmware file, and burning the burning file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch, the firmware file can be converted into a burning file that can be directly recognized by the hardware device, thereby improving the availability of the firmware file.
  • Step 206 switch the first line conversion switch to connect the baseboard management controller and the baseboard management controller memory, so that the baseboard management controller calls the firmware file in the baseboard management controller memory.
  • the implementation content of this step can refer to the implementation content of step 103, which will not be repeated here.
  • step 206 may include the following sub-steps:
  • Sub-step 2061 switching the second line conversion switch to connect the communication transmission interface and the baseboard management controller; wherein the second line conversion switch is used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface to connect to the first line conversion switch.
  • connection relationship of the second line conversion switch may be the same as the connection relationship of the second line conversion switch in step 2011.
  • the connection relationship of the second line conversion switch may refer to the embodiment content in step 2011.
  • the second line conversion switch may be switched to reconnect the pipe communication transmission interface and the baseboard management controller, so that the communication between the baseboard management controller and the external device can be restored.
  • Sub-step 2062 switching the first line conversion switch to connect the baseboard management controller memory and the baseboard management controller; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory to connect to the second line conversion switch.
  • connection relationship of the first line transfer switch may be the same as the connection relationship of the first line transfer switch in step 2012, and the relevant content may refer to the embodiment content of step 2012.
  • the first line transfer switch may be switched to connect the baseboard management controller memory and the baseboard management controller, so that the communication between the baseboard management controller and the baseboard management controller memory may be restored.
  • the second line switch can be switched to connect the communication transmission interface and the baseboard management controller, and the first line switch can be switched to connect the baseboard management controller and the baseboard management controller memory.
  • the second line conversion switch and the first line conversion switch are in a disconnected state, and the terminal device can directly access the baseboard management controller through the communication transmission interface, but cannot directly access the baseboard management controller memory through the communication transmission interface.
  • the second line conversion switch by switching the second line conversion switch to connect the communication transmission interface and the baseboard management controller, wherein the second line conversion switch is used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface is connected to the first line conversion switch, the first line conversion switch is switched to connect the baseboard management controller memory and the baseboard management controller, wherein the first line conversion switch is used to switch the baseboard management controller memory to connect to the baseboard management controller, or the baseboard management controller memory is connected to the second line conversion switch, the second line conversion switch and the first line conversion switch can be switched after the burning is completed, so that the normal communication of the baseboard management controller can be restored, thereby improving the practicality of the firmware burning method.
  • Step 207 When the baseboard management controller and the baseboard management controller memory are connected, a second indication signal is sent to the baseboard management controller; wherein the second indication signal is used to turn off a red indicator light corresponding to the baseboard management controller.
  • a second indication signal may be sent to the baseboard management controller, wherein the second indication signal may be used to turn off a red indicator light corresponding to the baseboard management controller.
  • the connectivity status of the first line switching switch can be confirmed by turning off the red indicator light, thereby improving the practicality of the firmware burning method.
  • a computer may be connected to a communication transmission interface, and then a burning tool may be run in the computer.
  • the burning tool may identify various hardware connected to the computer, and may control various hardware to perform various actions.
  • the burning tool may control the second line conversion switch to connect the communication transmission interface and the first line conversion switch, and may control the first line conversion switch to connect the baseboard management controller memory and the second line conversion switch.
  • the burning tool may identify the baseboard management controller memory, including the identifier and memory size corresponding to the memory.
  • the burning tool may erase the original data in the baseboard management controller memory, and perform formatting. After formatting, the firmware file may be burned into the baseboard management controller memory to complete the burning.
  • the burning tool may control the first line conversion switch and the second line conversion switch to restore the initial state, thereby disconnecting the connection with the baseboard management controller memory.
  • the baseboard management controller memory may be burned without disassembling the baseboard management controller memory.
  • FIG. 4 is a schematic diagram of the structure of a mainboard provided in some embodiments of the present application, the mainboard comprising:
  • Baseboard management controller memory first line conversion switch, communication transmission interface, baseboard management controller
  • the first line switch is used to connect the communication transmission interface, the baseboard management controller and the baseboard management controller memory.
  • the mainboard provided in some embodiments of the present application can apply the firmware burning method of the embodiments of steps 101 to 103, switch the first line conversion switch, so that the communication transmission interface and the baseboard management controller memory can be connected, and then the baseboard management controller memory can be burned through the terminal device. After the burning is completed, the first line conversion switch can be switched, so that the baseboard management controller and the baseboard management controller memory can be connected.
  • the mainboard further comprises:
  • the second line conversion switch wherein the three terminals of the second line conversion switch are respectively connected to the communication transmission interface, the first line conversion switch and the baseboard management controller.
  • the mainboard further comprises:
  • the first switch is connected to the first power source, the baseboard management controller and the baseboard management controller memory;
  • the second switch is connected to the communication transmission interface and the baseboard management controller.
  • some embodiments of the present application provide a mainboard, including a baseboard management controller memory, a first line conversion switch, a communication transmission interface, and a baseboard management controller, which can implement the various processes implemented by the method embodiments of Figures 1 to 2. To avoid repetition, they will not be repeated here.
  • Fig. 5 is a schematic diagram of the mainboard structure corresponding to a firmware burning method provided by some embodiments of the present application.
  • the RS232 interface can be welded with the SPI bus
  • the CPLD can be connected to the BMC
  • the line switch 1 the line switch 2
  • the indicator light 1 the indicator light 2
  • the indicator light 3 the switch 1 and the switch 2
  • the CPLD can communicate with the BMC through the system serial port and the BMC serial port.
  • the indicator light 1 is always on, and the indicator light 2 and the indicator light 3 are off.
  • the external device can send a burning indication signal to the CPLD through the RS232 interface through the UART line, and the CPLD can respond to the burning indication signal, and the line switch 1 is switched by the control signal 1 line so that the BMC memory is connected to the line switch 2 through the SPI bus, and the indicator light 1 can be turned off at this time, and the indicator light 2 can be turned on, and then the RS232 interface can be connected to the line switch 1 through the SPI bus by switching the line switch 2 of the control signal 2 line, and the indicator light 2 can be turned off at this time, and the indicator light 3 can be turned on, indicating that the switching of the line switch 1 and the line switch 2 is completed, and the burning can be performed.
  • CPLD can also disconnect switch 1 through power control line 1 and connect switch 2 through power control line 2 to switch the system power supply from the first power supply to the external power supply.
  • CPLD can control line switch 1 and line switch 2 to restore the initial state.
  • indicator light 3 is off and indicator light 1 is on.
  • CPLD can also disconnect switch 2 and connect switch 1 to switch the system power supply from the external device to the first power supply. In this way, the burning process of the BMC memory is completed.
  • FIG. 6 is a logic block diagram of a firmware burning device provided in some embodiments of the present application, and the firmware burning device 600 includes:
  • the first switching module 601 is used to switch the first line conversion switch of the mainboard to connect the communication transmission interface of the mainboard and the baseboard management controller memory of the mainboard; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the communication transmission interface;
  • the burning module 602 is used to burn the firmware file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch;
  • the second switching module 603 is used to switch the first line conversion switch to connect the baseboard management controller and the baseboard management controller memory, so that the baseboard management controller calls the firmware file in the baseboard management controller memory.
  • a second line switch is provided on the connection line between the communication transmission interface and the baseboard management controller memory, and the first switching module 601 includes:
  • the second switching submodule is used to switch the first line conversion switch to connect the baseboard management controller memory to the second line conversion switch; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the second line conversion switch.
  • a second line switch is provided on the connection line between the communication transmission interface and the baseboard management controller memory, and the second switching module 603 includes:
  • a third switching submodule is used to switch the second line conversion switch to connect the communication transmission interface and the baseboard management controller; wherein the second line conversion switch is used to switch the communication transmission interface to connect to the baseboard management controller, or the communication transmission interface to connect to the first line conversion switch;
  • the fourth switching submodule is used to switch the first line conversion switch to connect the baseboard management controller memory and the baseboard management controller; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the second line conversion switch.
  • the apparatus 600 further includes:
  • a shutdown module used to shut down a first switch corresponding to a first power source; wherein the first power source and the first switch are located on the mainboard, and the first power source is used to supply power to a baseboard management controller and a baseboard management controller memory through the first switch;
  • the conduction module is used to conduct the second switch; wherein the second switch is used for an external power source to supply power to the baseboard management controller memory via the communication transmission interface.
  • the apparatus 600 further includes:
  • the first sending module is used to send a first indication signal to the baseboard management controller when the first line conversion switch is connected to the baseboard management controller memory and the second line conversion switch; wherein the first indication signal is used to light up a red indicator light corresponding to the baseboard management controller.
  • the first sending module includes:
  • An acquisition submodule used for acquiring the connectivity status of the second line transfer switch
  • the first sending submodule is used to send a first indication signal to the baseboard management controller when the connection state indicates that the second line conversion switch is connected to the communication transmission interface and the first line conversion switch.
  • the second switching module 603 includes:
  • a fifth switching submodule used for switching the first line conversion switch to connect the baseboard management controller and the baseboard management controller memory
  • the second sending submodule sends a second indication signal to the baseboard management controller; wherein the second indication signal is used to turn off a red indicator light corresponding to the baseboard management controller.
  • the burning module 602 includes:
  • a display submodule used for displaying first switching information of the first line switch; wherein the first switching information is used to prompt the user to connect the burner of the firmware file to the communication transmission interface;
  • the first burning submodule is used to burn the firmware file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch when the burner is connected to the communication transmission interface.
  • the burning module 602 includes:
  • the format conversion submodule is used to convert the format of the firmware file to obtain the burning file corresponding to the firmware file;
  • the second burning submodule is used to burn the burning file into the memory of the baseboard management controller through the communication transmission interface and the first line conversion switch.
  • some embodiments of the present application provide a firmware burning device, including: a first switching module, used to switch the first line conversion switch of the mainboard to connect the communication transmission interface of the mainboard and the baseboard management controller memory of the mainboard; wherein the first line conversion switch is used to switch the baseboard management controller memory to connect the baseboard management controller, or the baseboard management controller memory to connect the communication transmission interface; a burning module, used to burn the firmware file into the baseboard management controller memory through the communication transmission interface and the first line conversion switch; a second switching module, used to switch the first line conversion switch to connect the baseboard management controller and the baseboard management controller memory, so that the baseboard management controller calls the firmware file in the baseboard management controller memory, which can
  • the baseboard management controller memory is directly burned through the communication transmission interface of the baseboard management controller, thereby avoiding the disassembly of the baseboard management controller memory and reducing the time cost and labor cost of repairing the baseboard management controller memory to a certain extent.
  • the firmware burning device in some embodiments of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit.
  • the electronic device can be a terminal or other devices other than a terminal.
  • the electronic device can be a GPU BOX, a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiments of the present application are not specifically limited.
  • Network Attached Storage NAS
  • PC personal computer
  • TV television
  • teller machine a self-service machine
  • the firmware burning device in some embodiments of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, a Linux operating system, a Windows operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the firmware burning device provided in some embodiments of the present application can implement each process implemented by the method embodiments of Figures 1 to 2, and will not be described again here to avoid repetition.
  • some embodiments of the present application also provide an electronic device M00, including a processor M01 and a memory M02, the memory M02 stores a program or instruction that can be run on the processor M01, and when the program or instruction is executed by the processor M01, the various steps of the above-mentioned firmware burning method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the electronic devices in some embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • Some embodiments of the present application also provide a firmware burning system, the system includes a terminal device and a mainboard as above, the terminal device includes a processor and a memory, the memory stores programs or instructions that can be run on the processor, and when the program or instruction is executed by the processor, the various steps of the above-mentioned firmware burning method embodiment are implemented on the mainboard, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
  • Some embodiments of the present application also provide a non-volatile readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the various processes of the above-mentioned firmware burning method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device in the above embodiment.
  • the non-volatile readable storage medium includes a computer non-volatile readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
  • Some embodiments of the present application provide a computer program product, which is stored in a storage medium.
  • the program product is executed by at least one processor to implement the various processes of the above-mentioned firmware burning method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

本申请公开了一种固件烧录方法,包括:切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中,切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件,可以在直接通过基板管理控制器的通信传输接口对基板管理控制器内存进行烧录,避免了对基板管理控制器内存的拆卸,一定程度上降低了维修基板管理控制器内存的时间成本和人力成本。

Description

一种固件烧录方法、主板、装置、设备、系统及存储介质
相关申请的交叉引用
本申请要求于2023年11月16日提交中国专利局,申请号为202311531841.0,申请名称为“一种固件烧录方法、主板、装置、设备、系统及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于数据通信技术领域,具体涉及一种固件烧录方法、主板、装置、设备、系统及存储介质。
背景技术
随着对服务器管理和维护的需求日益高涨,基板管理控制器(Baseboard Management Controller,BMC)已经越来越多地被应用于服务器中。在服务器产品开发后期及服务器量产之后,对基板管理控制器、服务器内部的基本输入输出系统(Basic Input Output System,BIOS)以及复杂可编程逻辑器件(Complex Programmable logic device,CPLD)均是通过BMC WEB中的固件烧录功能,以在线方式进行烧录的,出现BMC固件损坏或者升级BMC固件升级失败且无法回退时,基板管理控制器就无法正常使用,从而影响服务器的正常运行。
相关技术中,主要通过拆板维修的方法完成对基板管理控制器的烧录。首先将基板管理控制器的内存组件从主板上取下,然后使用烧录工具完成烧录,再将烧录好的内存组件重新焊回主板,完成维修。
但是上述方法中,拆卸内存组件以及重新焊接,耗费的时间成本和人力成本较高。
发明内容
本申请实施例的目的是提供一种固件烧录方法、主板、装置、设备、系统及存储介质,能够解决相关技术中基板管理控制器内存组件无法在线烧录时维修时间成本和人力成本过高的问题。
第一方面,本申请一些实施例提供了一种固件烧录方法,方法包括:
切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于在基板管理控制器内存连通基板管理控制器和基板管理控制器内存连通通信传输接口之间进行切换;
将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中;
切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件。
在一些实施例中,通信传输接口和基板管理控制器内存的连通线路上设有第二线路转换开关,切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存,包括:
切换主板的第二线路转换开关以连通通信传输接口和第一线路转换开关;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关;
切换第一线路转换开关以连通基板管理控制器内存和第二线路转换开关;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。
在一些实施例中,通信传输接口和基板管理控制器内存的连通线路上设有第二线路转换开关,切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,包括:
切换第二线路转换开关以连通通信传输接口和基板管理控制器;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关;
切换第一线路转换开关以连通基板管理控制器内存和基板管理控制器;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。
在一些实施例中,方法还包括:
关闭第一电源对应的第一开关;其中,第一电源和第一开关位于主板上,第一电源用于经过第一开关向基板管理控制器和基板管理控制器内存供电;
导通第二开关;其中,第二开关用于外部电源经过通信传输接口向基板管理控制器内存供电。
在一些实施例中,方法还包括:
在第一线路转换开关处于连通基板管理控制器内存和第二线路转换开关的情况下,向基板管理控制器发送第一指示信号;其中,第一指示信号用于点亮基板管理控制器对应的红色指示灯。
在一些实施例中,向基板管理控制器发送第一指示信号,包括:
获取第二线路转换开关的连通状态;
在连通状态指示第二线路转换开关连通通信传输接口和第一线路转换开关的情况下,向基板管理控制器发送第一指示信号。
在一些实施例中,切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,包括:
切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存;
向基板管理控制器发送第二指示信号;其中,第二指示信号用于熄灭基板管理控制器对应的红色指示灯。
在一些实施例中,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中,包括:
显示第一线路转换开关的第一切换信息;其中,第一切换信息用于提示用户将固件文件的烧录器与通信传输接口进行连接;
在烧录器与通信传输接口连接的情况下,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
在一些实施例中,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中,包括:
对固件文件进行格式转换,得到固件文件对应的烧录文件;
将烧录文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
第二方面,本申请一些实施例提供一种主板,主板包括:
基板管理控制器内存、第一线路转换开关、通信传输接口、基板管理控制器;
第一线路切换开关用于连接通信传输接口、基板管理控制器和基板管理控制器内存。
在一些实施例中,主板还包括:
第二线路转换开关;其中,第二线路转换开关的三个端子分别与通信传输接口、第一线路转换开关和基板管理控制器相连接。
在一些实施例中,主板还包括:
第一开关、第二开关、第一电源;
第一开关与第一电源、基板管理控制器和基板管理控制器内存相连接;
第二开关与通信传输接口和基板管理控制器相连接。
第三方面,本申请一些实施例提供一种固件烧录装置,装置包括:
第一切换模块,用于切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口;
烧录模块,用于将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中;
第二切换模块,用于切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件。
在一些实施例中,通信传输接口和基板管理控制器内存的连通线路上设有第二线路转换开关,第一切换模块,包括:
第一切换子模块,用于切换主板的第二线路转换开关以连通通信传输接口和第一线路转换开关;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关;
第二切换子模块,用于切换第一线路转换开关以连通基板管理控制器内存和第二线路转换开关;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。
在一些实施例中,通信传输接口和基板管理控制器内存的连通线路上设有第二线路转换开关,第二切换模块,包括:
第三切换子模块,用于切换第二线路转换开关以连通通信传输接口和基板管理控制器;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关;
第四切换子模块,用于切换第一线路转换开关以连通基板管理控制器内存和基板管理控制器;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。
在一些实施例中,装置还包括:
关闭模块,用于关闭第一电源对应的第一开关;其中,第一电源和第一开关位于主板上,第一电源用于经过第一开关向基板管理控制器和基板管理控制器内存供电;
导通模块,用于导通第二开关;其中,第二开关用于外部电源经过通信传输接口向基板管理控制器内存供电。
在一些实施例中,装置还包括:
第一发送模块,用于在第一线路转换开关处于连通基板管理控制器内存和第二线路转换开关的情况下,向基板管理控制器发送第一指示信号;其中,第一指示信号用于点亮基板管理控制器对应的红色指示灯。
在一些实施例中,第一发送模块,包括:
获取子模块,用于获取第二线路转换开关的连通状态;
第一发送子模块,用于在连通状态指示第二线路转换开关连通通信传输接口和第一线路转换开关的情况下,向基板管理控制器发送第一指示信号。
在一些实施例中,第二切换模块,包括:
第五切换子模块,用于切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存;
第二发送子模块向基板管理控制器发送第二指示信号;其中,第二指示信号用于熄灭基板管理控制器对应的红色指示灯。
在一些实施例中,烧录模块,包括:
显示子模块,用于显示第一线路转换开关的第一切换信息;其中,第一切换信息用于提示用户将固件文件的烧录器与通信传输接口进行连接;
第一烧录子模块,用于在烧录器与通信传输接口连接的情况下,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
在一些实施例中,烧录模块,包括:
格式转换子模块,用于对固件文件进行格式转换,得到固件文件对应的烧录文件;
第二烧录子模块,用于将烧录文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
第四方面,本申请提供一种电子设备,电子设备包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如上任一项的固件烧录方法。
第五方面,本申请一些实施例提供一种固件烧录系统,系统包括终端设备和如上任一的主板,终端设备包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时在主板上实现如上任一项的固件烧录方法。
第六方面,本申请一些实施例提供一种非易失性可读存储介质,非易失性可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如上任一项的固件烧录方法。
本申请一些实施例提供的一种固件烧录方法,包括:切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中,切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件,可以在直接通过基板管理控制器的通信传输接口对基板管理控制器内存进行烧录,避免了对基板管理控制器内存的拆卸,一定程度上降低了维修基板管理控制器内存的时间成本和人力成本。
附图说明
图1是本申请一些实施例提供的一种固件烧录方法的步骤流程图;
图2是本申请一些实施例提供的另一种固件烧录方法的步骤流程图;
图3是本申请一些实施例提供的一种固件烧录方法的部件结构示意图;
图4是本申请一些实施例提供的一种主板的硬件结构示意图;
图5是本申请一些实施例提供的一种固件烧录方法对应的主板结构示意图;
图6是本申请一些实施例提供的一种固件烧录装置的逻辑框图;
图7是本申请一些实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将结合本申请一些实施例中的附图,对本申请一些实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的一些实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请一些实施例提供的固件烧录方法进行详细地说明。
参照图1,图1示出了本申请一些实施例提供的一种固件烧录方法的步骤流程图,该固件烧录方法可以运行在计算机、烧录器等终端设备,该方法具体可以包括以下步骤:
步骤101,切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口。
在本申请的一些实施例中,基板管理控制器可以搭载基板管理控制器内存组件,基板管理控制器内存组件中可以存储编程文件或固件文件,可以使基板管理控制器实现编程文件或固件文件规定的功能。基板管理控制器可以通过通信传输接口和外部设备进行通信,例如,可以向外部设备传输日志文件或响应外部设备的指令对与基板管理控制器相连的服务器设备进行操作。通常情况下,编程文件或固件文件要以烧录的方式被传输进基板管理控制器内存组件从而发挥作用。烧录是通过专门的软件和硬件设备,将目标数据以编程信号的形式传输到可编程器件上。这些编程信号可以改变可编程器件内部的电子状态,从而写入或修改特定的数据。在烧录的过程中,通常会使用编程固件或软件工具与目标器件进行交互。编程固件或软件工具会将目标数据转换为特定的编程信号,并通过通信接口将其传输给目标器件。接收到编程信号的目标器件会根据信号的指令,将数据写入到器件内部的存储单元中,以实现数据的更新或修改。不同的烧录技术和编程接口有不同的工作原理。在本申请的一些实施例中,通信传输接口可以是RS232 DB9孔接口,具备管脚1至9,编程接口可以是串行外设接口(Serial Peripheral Interface,SPI),具备5条传输线路。可以将串行外设接口的5条传输线路焊接在DB9孔接口的管脚1至管脚5。RS232管脚和串行外设接口传输线路的对应关系如下表所示:
表1 RS232和SPI管脚对应表
在本申请的一些实施例中,为了使RS232接口原本的通信功能和串行外设接口的烧录功能不发生混乱和错误,可以在作为通信传输接口的RS232接口和基板管理控制器内存之间添加SPI总线和第一线路转换开关,其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口。在基板管理控制器内存连通基板管理控制器时,基板管理控制器可以访问基板管理控制器内存中的固件文件或编程文件,以运行基板管理控制器的各项功能;在基板管理控制器内存连通通信传输接口时,基板管理控制器和基板管理控制器内存之间的通信线路被切断,固件文件可以从通信传输接口通过SPI总线烧录进基板管理控制器内存中。
在本申请的一些实施例中,第一终端可以切换第一线路转换开关,从而可以连通通信传输接口和基板管理控制器内存,在切换第一线路转换开关连通通信传输接口和基板管理控制器内存的同时,也可以断开基板管理控制器与基板管理控制器内存的连接。此外,通信传输接口可以是除了RS232之外的其他集成性接口,如RS485类型接口等,本申请实施例对此不作限定。
步骤102,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
在本申请的一些实施例中,在切换第一线路转换开关使得基板管理控制器内存和通信传输接口处于连通状态后,可以通过烧录工具将用于烧录的固件文件经过通信传输接口和第一线路转换开关以及对应的传输线路烧录进基板管理控制器内存中。
步骤103,切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件。
在本申请的一些实施例中,根据步骤101的实施例内容可知,烧录完成后,基板管理控制器和基板管理控制器内存可以处于断开状态,此时可以切换第一线路转换开关,以连通基板管理控制器和基板管理控制器内存,在切换第一线路转换开关连通基板管理控制器和基板 管理控制器内存的同时可以断开基板管理控制器内存和通信传输接口之间的连接。在恢复基板管理控制器内存和基板管理控制器之间的连接之后,基板管理控制器可以调用基板管理控制器内存中的固件文件,从而可以实现基板管理控制器的各项功能。
在本申请的一些实施例中,通过切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中,切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件,可以直接通过基板管理控制器的通信传输接口对基板管理控制器内存进行烧录,避免了对基板管理控制器内存的拆卸,一定程度上降低了维修基板管理控制器内存的时间成本和人力成本。
参照图2,图2为本申请一些实施例提供的另一种固件烧录方法的步骤流程图,该方法具体可以包括以下步骤:
步骤201,切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口。
在本申请的一些实施例中,本步骤的实施内容可参考步骤101的实施例内容,此处不再赘述。
在一些实施例中,步骤201中,可以包括以下子步骤:
子步骤2011,切换主板的第二线路转换开关以连通通信传输接口和第一线路转换开关;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关。
在本申请的一些实施例中,第一线路转换开关和通信传输接口的传输线路上可以有第二线路转换开关,第二线路转换开关可以用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关,即,在通信传输接口和基板管理控制器的传输线路上可以设置第二线路转换开关,并在第一线路转换开关和第二线路转换开关之间建立传输线路,这样,基板管理控制器内存可以经过第一线路转换开关和第二线路转换开关与通信传输接口连通。在基板管理控制器的正常使用过程中,第二线路转换开关可以连通通信传输接口和基板管理控制器,以使基板管理控制器可以与外部设备进行通信。在本申请的一些实施例中,可以切换第二线路转换开关,从而可以连通通信传输接口和第一线路转换开关并断开通信传输接口和基板管理控制器之间的连接。
子步骤2012,切换第一线路转换开关以连通基板管理控制器内存和第二线路转换开关;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。
在本申请的一些实施例中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。在本申请的一些实施例中,可以切换第一线路转换开关,从而可以连通基板管理控制器内存和第二线路转换开关并断开基板管理控制器和基板管理控制器内存之间的连接。
在本申请的一些实施例中,经过子步骤2011对第二线路转换开关的切换,以及子步骤 2012中对第一线路转换开关的切换之后,可以连通通信传输接口和基板管理控制器内存,从而可以使基板管理控制器内存直接与外部设备进行通信。
例如,如图3所示,图3为本申请一些实施例提供的一种固件烧录方法的部件结构示意图。在图3中,实线可以是信号传输线路,虚线可以是供电线路。终端设备可以直接连接在通信传输接口上,且可以通过通信传输接口控制第一线路转换开关和第二线路转换开关。在第二线路转换开关导通通信传输接口和基板管理控制器,或第一线路转换开关导通基板管理控制器内存和基板管理控制器的情况下,基板管理控制器内存无法直接与通信传输接口连通,也无法经过通信传输接口直接与终端设备进行通信。只有在第二线路转换开关连通通信传输接口和第一线路转换开关,且第一线路转换开关连通基板管理控制器内存和第二线路转换开关的情况下,基板管理控制器才可以直接经过通信传输接口与终端设备进行通信。
在本申请的一些实施例中,通过切换主板的第二线路转换开关以连通通信传输接口和第一线路转换开关;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关,切换第一线路转换开关以连通基板管理控制器内存和第二线路转换开关;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关,可以使基板管理控制器内存经过第一线路转换开关和第二线路转换开关与通信传输接口连通,并断开基板管理控制器内存和通信传输接口与基板管理控制器之间的连接,避免了烧录过程中可能发生的逻辑混乱和错误,提升了固件烧录方法的可靠性和安全性。
步骤202,关闭第一电源对应的第一开关;其中,第一电源和第一开关位于主板上,第一电源用于经过第一开关向基板管理控制器和基板管理控制器内存供电。
在本申请的一些实施例中,第一开关可以连接第一电源、基板管理控制器和基板管理控制器内存,第一电源可以在第一开关连通的情况下向基板管理控制器和基板管理控制器内存供电。第一电源可以是直流稳压电源,电压值可以根据基板管理控制器的额定电压进行调节。在基板管理控制器内存与通信传输接口连通的情况下,可以关闭第一开关,以使第一电源停止向基板管理控制器内存及基板管理控制器供电。
步骤203,导通第二开关;其中,第二开关用于外部电源经过通信传输接口向基板管理控制器内存供电。
在本申请的一些实施例中,与通信传输接口连接的终端设备可以搭载外部电源,可以经过第二开关向基板管理控制器内存供电。可以导通第二开关,以使终端设备上搭载的外部电源经过通信传输接口向基板管理控制器内存供电。在对基板管理控制器内存供电后,终端设备可以识别到基板管理控制器内存。
沿用上述示例,在图3中,终端设备可以控制第一开关断开,然后控制第二开关连接,从而可以由终端设备向基板管理控制器内存供电。
在本申请的一些实施例中,通过关闭第一电源对应的第一开关,其中,第一电源用于经过第一开关向基板管理控制器和基板管理控制器内存供电,导通第二开关,其中,第二开关用于外部电源经过通信传输接口向基板管理控制器内存供电,可以在固件文件烧录前更换系统的供电电源,避免了系统内部电源的供电隐患,提升了固件烧录方法的可用性和稳定性。
步骤204,在第一线路转换开关处于连通基板管理控制器内存和第二线路转换开关的情况下,向基板管理控制器发送第一指示信号;其中,第一指示信号用于点亮基板管理控制器 对应的红色指示灯。
在本申请的一些实施例中,基板管理控制器上可以搭载红色指示灯,当第一线路转换开关连通基板管理控制器内存和第二线路转换开关时,可以向基板管理控制器发送第一指示信号,点亮基板管理控制器上的红色指示灯。
在一些实施例中,步骤204中,可以包括以下子步骤:
子步骤2041,获取第二线路转换开关的连通状态。
在本申请的一些实施例中,当第一线路转换开关连通基板管理控制器内存和第二线路转换开关时,可以获取第二线路转换开关的连通状态,从而判断第二线路转换开关是处于连通通信传输接口和基板管理控制器的状态还是处于连通通信传输接口和第一线路转换开关的状态。
子步骤2042,在连通状态指示第二线路转换开关连通通信传输接口和第一线路转换开关的情况下,向基板管理控制器发送第一指示信号。
在本申请的一些实施例中,当第二线路转换开关处于连通通信传输接口和第一线路转换开关的状态时,可以向基板管理控制器发送第一指示信号,从而可以点亮红色指示灯。
在本申请的一些实施例中,通过获取第二线路转换开关的连通状态,在连通状态指示第二线路转换开关连通通信传输接口和第一线路转换开关的情况下,向基板管理控制器发送第一指示信号,可以在基板管理控制器内存经过第一线路转换开关和第二线路转换开关与通信传输接口直接连通时点亮对应的指示灯,进一步提升了固件烧录方法的实用性。
在本申请的一些实施例中,通过在第一线路转换开关处于连通基板管理控制器内存和第二线路转换开关的情况下,向基板管理控制器发送第一指示信号,其中,第一指示信号用于点亮基板管理控制器对应的红色指示灯,可以在基板管理控制器与通信传输接口直接连通时点亮对应的指示灯,提升了固件烧录方法的实用性。
步骤205,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
在本申请的一些实施例中,本步骤的实施内容可参考步骤102的实施例内容,此处不再赘述。
在一些实施例中,步骤205中,可以包括以下子步骤:
子步骤2051,显示第一线路转换开关的第一切换信息;其中,第一切换信息用于提示用户将固件文件的烧录器与通信传输接口进行连接。
在本申请的一些实施例中,在第一线路转换开关切换为连通基板管理控制器内存和通信传输接口的状态时,可以生成并显示第一线路转换开关的第一切换信息,用来向用户显示第一线路转换开关切换后的连通状态并提示用户将烧录器与通信传输接口进行连接。
子步骤2052,在烧录器与通信传输接口连接的情况下,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
在本申请的一些实施例中,用户将烧录器与通信传输接口连接后,可以使用烧录器将固件文件经过通信传输接口和第一线路转换开关烧录进基板管理控制器内存中。
在本申请的一些实施例中,通过显示第一线路转换开关的第一切换信息;其中,第一切换信息用于提示用户将固件文件的烧录器与通信传输接口进行连接,在烧录器与通信传输接口连接的情况下,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器 内存中,可以提示用户连接烧录器进行烧录,提升了固件烧录方法的可用性。
子步骤2053,对固件文件进行格式转换,得到固件文件对应的烧录文件。
在本申请的一些实施例中,固件文件可以是基于某种编程语言而形成的程序文件,用来驱动基板管理控制器,或者对基板管理控制器的驱动进行升级。通常情况下,这种固件文件中的代码无法直接被机器识别,需要经过格式转换,从而转换成可以直接被机器识别的烧录文件。在本申请的一些实施例中,若固件文件的格式与机器能够识别的烧录文件的格式不匹配,则可以对固件文件进行格式转换,从而可以得到固件文件对应的、可被机器直接识别的烧录文件。
例如,若固件文件格式为“.c”格式,则可以先将“.c”格式的文件转换成硬件设备可直接识别和调用的程序文件格式,如“.hex”格式文件,格式转换后得到的文件即为烧录文件。
子步骤2054,将烧录文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
在本申请的一些实施例中,在固件文件完成格式转换,得到烧录文件之后,可以通过与通信传输接口相连的终端设备或烧录器,将烧录文件经过通信传输接口和第一线路转换开关烧录进基板管理控制器内存中。
在本申请的一些实施例中,通过对固件文件进行格式转换,得到固件文件对应的烧录文件,将烧录文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中,可以将固件文件转换成硬件设备可直接识别的烧录文件,提升了固件文件的可用性。
步骤206,切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件。
在本申请的一些实施例中,本步骤的实施内容可参考步骤103的实施例内容,此处不再赘述。
在一些实施例中,步骤206中,可以包括以下子步骤:
子步骤2061,切换第二线路转换开关以连通通信传输接口和基板管理控制器;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关。
在本申请的一些实施例中,第二线路转换开关的连接关系可以与步骤2011中的第二线路转换开关的连接关系相同。第二线路转换开关的连接关系可参考步骤2011中的实施例内容。在烧录完成后,可以切换第二线路转换开关以重新连通管通信传输接口和基板管理控制器,从而可以恢复基板管理控制器与外部设备的通信。
子步骤2062,切换第一线路转换开关以连通基板管理控制器内存和基板管理控制器;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。
在本申请的一些实施例中,第一线路转换开关的连接关系可以与步骤2012中的第一线路转换开关的连接关系相同,相关内容可参考步骤2012的实施例内容。在第二线路转换开关的切换完成后,可以切换第一线路转换开关以连通基板管理控制器内存和基板管理控制器,从而可以恢复基板管理控制器和基板管理控制器内存之间的通信。
例如,如图3所示的硬件结构中,可以切换第二线路开关以连通通信传输接口和基板管理控制器,可以切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,这 样,第二线路转换开关与第一线路转换开关就处于断开状态,终端设备可以通过通信传输接口直接访问基板管理控制器,但不能通过通信传输接口直接访问基板管理控制器内存。
在本申请的一些实施例中,通过切换第二线路转换开关以连通通信传输接口和基板管理控制器,其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关,切换第一线路转换开关以连通基板管理控制器内存和基板管理控制器,其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关,可以对在烧录完成后切换第二线路转换开关和第一线路转换开关,从而可以恢复基板管理控制器的正常通信,提升了固件烧录方法的实用性。
步骤207,在基板管理控制器和基板管理控制器内存连通的情况下,向基板管理控制器发送第二指示信号;其中,第二指示信号用于熄灭基板管理控制器对应的红色指示灯。
在本申请的一些实施例中,在第一线路转换开关连通基板管理控制器和基板管理控制器内存时,可以向基板管理控制器发送第二指示信号。其中,第二指示信号可以用于熄灭基板管理控制器对应的红色指示灯。
在本申请的一些实施例中,通过在基板管理控制器和基板管理控制器内存连通的情况下,向基板管理控制器发送第二指示信号,其中,第二指示信号用于熄灭基板管理控制器对应的红色指示灯,可以通过红色指示灯熄灭来确认第一线路转换开关的连通状态,提升了固件烧录方法的实用性。
在本申请的一些实施例中,可以有另一种固件烧录方法。首先可以将计算机与通信传输接口连接,然后在计算机中运行烧录工具。烧录工具可以识别出与计算机连接的各个硬件,并且可以控制各个硬件执行各种动作。烧录工具可以控制第二线路转换开关连通通信传输接口和第一线路转换开关,并且可以控制第一线路转换开关连通基板管理控制器内存和第二线路转换开关。之后,烧录工具可以识别到基板管理控制器内存,包括该内存对应的标识和内存大小等。之后,烧录工具可以擦除基板管理控制器内存中的原有数据,并且进行格式化处理,在格式化之后,将固件文件烧录进基板管理控制器内存中,完成烧录。在烧录成功后,烧录工具可以控制第一线路转换开关和第二线路转换开关恢复初始状态,从而断开与基板管理控制器内存的连接。这样,就可以在不拆卸基板管理控制器内存的情况下完成对基板管理控制器内存的烧录。
参照图4,图4为本申请一些实施例提供的一种主板的结构示意图,该主板包括:
基板管理控制器内存、第一线路转换开关、通信传输接口、基板管理控制器;
第一线路切换开关用于连接通信传输接口、基板管理控制器和基板管理控制器内存。
本申请一些实施例提供的主板可以应用步骤101至步骤103实施例的固件烧录方法,切换第一线路转换开关,从而可以连通通信传输接口和基板管理控制器内存,进而可以通过终端设备对基板管理控制器内存进行烧录,烧录完成后可以切换第一线路转换开关,从而可以连通基板管理控制器和基板管理控制器内存。
在一些实施例中,主板还包括:
第二线路转换开关;其中,第二线路转换开关的三个端子分别与通信传输接口、第一线路转换开关和基板管理控制器相连接。
在一些实施例中,主板还包括:
第一开关、第二开关、第一电源;
第一开关与第一电源、基板管理控制器和基板管理控制器内存相连接;
第二开关与通信传输接口和基板管理控制器相连接。
综上,本申请一些实施例提供一种主板,包括基板管理控制器内存、第一线路转换开关、通信传输接口、基板管理控制器,可以实现图1至图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。
参照图5,图5是本申请一些实施例提供的一种固件烧录方法对应的主板结构示意图。图中,RS232接口可以与SPI总线进行焊接,CPLD可以与BMC、线路转换开关1、线路转换开关2、指示灯1、指示灯2、指示灯3、开关1和开关2相连,CPLD可以与BMC通过系统串口和BMC串口进行通信。正常状态下,指示灯1常亮,指示灯2和指示灯3熄灭。当需要对BMC内存进行烧录时,外部设备可以通过RS232接口,经过UART线路向CPLD发送烧录指示信号,CPLD可以响应该烧录指示信号,通过控制信号1线路切换线路转换开关1使BMC内存通过SPI总线与线路转换开关2相连,此时可以熄灭指示灯1,点亮指示灯2,然后可以通过控制信号2线路切换线路转换开关2使RS232接口通过SPI总线与线路转换开关1相连,此时可以熄灭指示灯2,点亮指示灯3,表明线路转换开关1和线路转换开关2切换完成,可以进行烧录。CPLD还可以经过电源控制1线路断开开关1,并经过电源控制2线路连接开关2,将系统的供电由第一电源转为外部供电。当烧录结束后,CPLD可以控制线路转换开关1和线路转换开关2再恢复初始状态,此时指示灯3熄灭,指示灯1点亮,另外,CPLD还可以断开开关2,连接开关1,将系统的供电由外部设备再转为第一电源。这样,就完成了一次对BMC内存的烧录过程。
参照图6,图6是本申请一些实施例提供的一种固件烧录装置的逻辑框图,该固件烧录装置600包括:
第一切换模块601,用于切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口;
烧录模块602,用于将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中;
第二切换模块603,用于切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件。
在一些实施例中,通信传输接口和基板管理控制器内存的连通线路上设有第二线路转换开关,第一切换模块601,包括:
第一切换子模块,用于切换主板的第二线路转换开关以连通通信传输接口和第一线路转换开关;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关;
第二切换子模块,用于切换第一线路转换开关以连通基板管理控制器内存和第二线路转换开关;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。
在一些实施例中,通信传输接口和基板管理控制器内存的连通线路上设有第二线路转换开关,第二切换模块603,包括:
第三切换子模块,用于切换第二线路转换开关以连通通信传输接口和基板管理控制器;其中,第二线路转换开关用于切换通信传输接口连通基板管理控制器,或通信传输接口连通第一线路转换开关;
第四切换子模块,用于切换第一线路转换开关以连通基板管理控制器内存和基板管理控制器;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通第二线路转换开关。
在一些实施例中,装置600还包括:
关闭模块,用于关闭第一电源对应的第一开关;其中,第一电源和第一开关位于主板上,第一电源用于经过第一开关向基板管理控制器和基板管理控制器内存供电;
导通模块,用于导通第二开关;其中,第二开关用于外部电源经过通信传输接口向基板管理控制器内存供电。
在一些实施例中,装置600还包括:
第一发送模块,用于在第一线路转换开关处于连通基板管理控制器内存和第二线路转换开关的情况下,向基板管理控制器发送第一指示信号;其中,第一指示信号用于点亮基板管理控制器对应的红色指示灯。
在一些实施例中,第一发送模块,包括:
获取子模块,用于获取第二线路转换开关的连通状态;
第一发送子模块,用于在连通状态指示第二线路转换开关连通通信传输接口和第一线路转换开关的情况下,向基板管理控制器发送第一指示信号。
在一些实施例中,第二切换模块603,包括:
第五切换子模块,用于切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存;
第二发送子模块向基板管理控制器发送第二指示信号;其中,第二指示信号用于熄灭基板管理控制器对应的红色指示灯。
在一些实施例中,烧录模块602,包括:
显示子模块,用于显示第一线路转换开关的第一切换信息;其中,第一切换信息用于提示用户将固件文件的烧录器与通信传输接口进行连接;
第一烧录子模块,用于在烧录器与通信传输接口连接的情况下,将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
在一些实施例中,烧录模块602,包括:
格式转换子模块,用于对固件文件进行格式转换,得到固件文件对应的烧录文件;
第二烧录子模块,用于将烧录文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中。
综上,本申请一些实施例提供一种固件烧录装置,包括:第一切换模块,用于切换主板的第一线路转换开关以连通主板的通信传输接口和主板的基板管理控制器内存;其中,第一线路转换开关用于切换基板管理控制器内存连通基板管理控制器,或基板管理控制器内存连通通信传输接口;烧录模块,用于将固件文件经过通信传输接口和第一线路转换开关烧录至基板管理控制器内存中;第二切换模块,用于切换第一线路转换开关以连通基板管理控制器和基板管理控制器内存,以使基板管理控制器调用基板管理控制器内存中的固件文件,可以 在直接通过基板管理控制器的通信传输接口对基板管理控制器内存进行烧录,避免了对基板管理控制器内存的拆卸,一定程度上降低了维修基板管理控制器内存的时间成本和人力成本。
本申请一些实施例中的固件烧录装置可以是电子设备,也可以是电子设备中的部件,例如集成电路。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为GPU BOX、手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请一些实施例中的固件烧录装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为Linux、Windows操作系统等,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请一些实施例提供的固件烧录装置能够实现图1至图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。
在一些实施例中,如图7所示,本申请一些实施例还提供一种电子设备M00,包括处理器M01和存储器M02,存储器M02上存储有可在处理器M01上运行的程序或指令,该程序或指令被处理器M01执行时实现上述固件烧录方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请一些实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
本申请一些实施例还提供一种固件烧录系统,系统包括终端设备和如上的主板,终端设备包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时在主板上实现上述固件烧录方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请一些实施例还提供一种非易失性可读存储介质,非易失性可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述固件烧录方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,处理器为上述实施例中的电子设备中的处理器。非易失性可读存储介质,包括计算机非易失性可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请一些实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述固件烧录方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要 素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (20)

  1. 一种固件烧录方法,其特征在于,所述方法包括:
    切换主板的第一线路转换开关以连通所述主板的通信传输接口和所述主板的基板管理控制器内存;其中,所述第一线路转换开关被配置为切换所述基板管理控制器内存连通所述主板的基板管理控制器,或所述基板管理控制器内存连通所述通信传输接口;
    将固件文件经过所述通信传输接口和所述第一线路转换开关烧录至所述基板管理控制器内存中;
    切换所述第一线路转换开关以连通所述基板管理控制器和所述基板管理控制器内存,以使所述基板管理控制器调用所述基板管理控制器内存中的固件文件。
  2. 根据权利要求1所述的方法,其特征在于,所述通信传输接口和所述基板管理控制器内存的连通线路上设有第二线路转换开关,所述切换主板的第一线路转换开关以连通所述主板的通信传输接口和所述主板的基板管理控制器内存,包括:
    切换所述主板的第二线路转换开关以连通所述通信传输接口和所述第一线路转换开关;其中,所述第二线路转换开关被配置为切换所述通信传输接口连通所述基板管理控制器,或所述通信传输接口连通所述第一线路转换开关;
    切换所述第一线路转换开关以连通基板管理控制器内存和所述第二线路转换开关;其中,所述第一线路转换开关被配置为切换所述基板管理控制器内存连通所述基板管理控制器,或所述基板管理控制器内存连通所述第二线路转换开关。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    切换所述第二线路转换开关以连通所述通信传输接口和所述第一线路转换开关,并切换所述第一线路转换开关以连通所述基板管理控制器内存和所述第二线路转换开关,以使所述基板管理控制器内存与外部设备进行通信。
  4. 根据权利要求1所述的方法,其特征在于,所述通信传输接口和所述基板管理控制器内存的连通线路上设有第二线路转换开关,所述切换所述第一线路转换开关以连通所述基板管理控制器和所述基板管理控制器内存,包括:
    切换第二线路转换开关以连通所述通信传输接口和所述基板管理控制器;其中,所述第二线路转换开关被配置为切换所述通信传输接口连通所述基板管理控制器,或所述通信传输接口连通所述第一线路转换开关;
    切换所述第一线路转换开关以连通所述基板管理控制器内存和所述基板管理控制器;其中,所述第一线路转换开关被配置为切换所述基板管理控制器内存连通所述基板管理控制器,或所述基板管理控制器内存连通所述第二线路转换开关。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    切换所述第二线路转换开关以连通所述通信传输接口和所述基板管理控制器,以使所述基板管理控制器与外部设备进行通信。
  6. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    关闭第一电源对应的第一开关;其中,所述第一电源和所述第一开关位于所述主板上,所述第一电源被配置为经过所述第一开关向所述基板管理控制器和所述基板管理控制器内存供电;
    导通所述主板的第二开关;其中,所述第二开关被配置为外部电源经过所述通信传 输接口向所述基板管理控制器内存供电。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    根据所述基板管理控制器的额定电压对所述第一电源的电压值进行调节。
  8. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    在所述第一线路转换开关处于连通所述基板管理控制器内存和所述第二线路转换开关的情况下,向所述基板管理控制器发送第一指示信号;其中,所述第一指示信号被配置为点亮所述基板管理控制器对应的红色指示灯。
  9. 根据权利要求8所述的方法,其特征在于,所述向所述基板管理控制器发送第一指示信号,包括:
    获取所述第二线路转换开关的连通状态;
    在所述连通状态指示所述第二线路转换开关连通所述通信传输接口和所述第一线路转换开关的情况下,向所述基板管理控制器发送所述第一指示信号。
  10. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述基板管理控制器和所述基板管理控制器内存连通的情况下,向所述基板管理控制器发送第二指示信号;其中,所述第二指示信号被配置为熄灭所述基板管理控制器对应的红色指示灯。
  11. 根据权利要求1所述的方法,其特征在于,所述将固件文件经过所述通信传输接口和所述第一线路转换开关烧录至所述基板管理控制器内存中,包括:
    显示所述第一线路转换开关的第一切换信息;其中,所述第一切换信息被配置为提示用户将所述固件文件的烧录器与所述通信传输接口进行连接;
    在所述烧录器与所述通信传输接口连接的情况下,将所述固件文件经过所述通信传输接口和所述第一线路转换开关烧录至所述基板管理控制器内存中。
  12. 根据权利要求11所述的方法,其特征在于,所述显示所述第一线路转换开关的第一切换信息,包括:
    在所述第一线路转换开关切换为连通所述基板管理控制器内存和所述通信传输接口的情况下,生成并显示所述第一切换信息。
  13. 根据权利要求1所述的方法,其特征在于,所述将固件文件经过所述通信传输接口和所述第一线路转换开关烧录至所述基板管理控制器内存中,包括:
    对所述固件文件进行格式转换,得到所述固件文件对应的烧录文件;
    将所述烧录文件经过所述通信传输接口和所述第一线路转换开关烧录至所述基板管理控制器内存中。
  14. 一种主板,其特征在于,所述主板包括:
    基板管理控制器内存、第一线路转换开关、通信传输接口、基板管理控制器;
    所述第一线路切换开关被配置为连接所述通信传输接口、所述基板管理控制器和所述基板管理控制器内存;
    所述主板被配置为实现权利要求1所述的固件烧录方法。
  15. 根据权利要求14所述的主板,其特征在于,所述主板还包括:
    第二线路转换开关;其中,所述第二线路转换开关的三个端子分别与所述通信传输接口、所述第一线路转换开关和所述基板管理控制器相连接。
  16. 根据权利要求14所述的主板,其特征在于,所述主板还包括:
    第一开关、第二开关、第一电源;
    所述第一开关与所述第一电源、所述基板管理控制器和所述基板管理控制器内存相连接;
    所述第二开关与所述通信传输接口和所述基板管理控制器相连接。
  17. 一种固件烧录装置,其特征在于,所述装置包括:
    第一切换模块,被配置为切换主板的第一线路转换开关以连通所述主板的通信传输接口和所述主板的基板管理控制器内存;其中,所述第一线路转换开关被配置为切换所述基板管理控制器内存连通所述基板管理控制器,或所述基板管理控制器内存连通所述通信传输接口;
    烧录模块,被配置为将固件文件经过所述通信传输接口和所述第一线路转换开关烧录至所述基板管理控制器内存中;
    第二切换模块,被配置为切换所述第一线路转换开关以连通所述基板管理控制器和所述基板管理控制器内存,以使所述基板管理控制器调用所述基板管理控制器内存中的固件文件。
  18. 一种电子设备,其特征在于,所述电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现权利要求1至13中任一项所述的固件烧录方法。
  19. 一种固件烧录系统,其特征在于,所述系统包括终端设备和权利要求14至16所述的主板,所述终端设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时在所述主板上实现权利要求1至13中任一项所述的固件烧录方法。
  20. 一种非易失性可读存储介质,其特征在于,所述非易失性可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现权利要求1至13中任一项所述的固件烧录方法。
PCT/CN2024/122313 2023-11-16 2024-09-29 一种固件烧录方法、主板、装置、设备、系统及存储介质 Pending WO2025103003A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311531841.0 2023-11-16
CN202311531841.0A CN117251183B (zh) 2023-11-16 2023-11-16 一种固件烧录方法、主板、装置、设备、系统及存储介质

Publications (1)

Publication Number Publication Date
WO2025103003A1 true WO2025103003A1 (zh) 2025-05-22

Family

ID=89137214

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/122313 Pending WO2025103003A1 (zh) 2023-11-16 2024-09-29 一种固件烧录方法、主板、装置、设备、系统及存储介质

Country Status (2)

Country Link
CN (1) CN117251183B (zh)
WO (1) WO2025103003A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251183B (zh) * 2023-11-16 2024-02-20 苏州元脑智能科技有限公司 一种固件烧录方法、主板、装置、设备、系统及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200097278A1 (en) * 2018-09-21 2020-03-26 Inventec (Pudong) Technology Corporation Method for online updating firmware of complex programmable logic device
CN111949449A (zh) * 2020-08-12 2020-11-17 曙光信息产业(北京)有限公司 固件恢复方法、装置、系统、计算机设备和存储介质
CN114443067A (zh) * 2021-12-29 2022-05-06 苏州浪潮智能科技有限公司 一种cpld文件烧录系统及cpld文件烧录方法
CN115576747A (zh) * 2022-11-21 2023-01-06 苏州浪潮智能科技有限公司 基板管理控制器固件故障恢复方法、系统、设备及介质
CN116149681A (zh) * 2023-01-29 2023-05-23 苏州浪潮智能科技有限公司 芯片烧录的控制设备、方法、装置、存储介质及电子设备
CN117251183A (zh) * 2023-11-16 2023-12-19 苏州元脑智能科技有限公司 一种固件烧录方法、主板、装置、设备、系统及存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020283A (zh) * 2021-09-30 2022-02-08 浪潮电子信息产业股份有限公司 固件烧录方法、烧录电路、装置、设备及可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200097278A1 (en) * 2018-09-21 2020-03-26 Inventec (Pudong) Technology Corporation Method for online updating firmware of complex programmable logic device
CN111949449A (zh) * 2020-08-12 2020-11-17 曙光信息产业(北京)有限公司 固件恢复方法、装置、系统、计算机设备和存储介质
CN114443067A (zh) * 2021-12-29 2022-05-06 苏州浪潮智能科技有限公司 一种cpld文件烧录系统及cpld文件烧录方法
CN115576747A (zh) * 2022-11-21 2023-01-06 苏州浪潮智能科技有限公司 基板管理控制器固件故障恢复方法、系统、设备及介质
CN116149681A (zh) * 2023-01-29 2023-05-23 苏州浪潮智能科技有限公司 芯片烧录的控制设备、方法、装置、存储介质及电子设备
CN117251183A (zh) * 2023-11-16 2023-12-19 苏州元脑智能科技有限公司 一种固件烧录方法、主板、装置、设备、系统及存储介质

Also Published As

Publication number Publication date
CN117251183B (zh) 2024-02-20
CN117251183A (zh) 2023-12-19

Similar Documents

Publication Publication Date Title
JP2006127252A (ja) 切替機、切替方法及びプログラム
CN115905094A (zh) 一种电子设备及其PCIe拓扑配置方法和装置
CN102339242A (zh) 计算机系统数据修复装置
CN101373448B (zh) 具有远程管理的计算机系统
CN103136048A (zh) 计算机系统
CN103902329B (zh) 可更新基本输入输出系统的电子装置及其更新方法
WO2025103003A1 (zh) 一种固件烧录方法、主板、装置、设备、系统及存储介质
CN117520234B (zh) Type-C接口外接设备自动识别电路及相关设备
EP4625159A1 (en) Dual-bios system, system switching method and apparatus, device, and storage medium
CN118349290B (zh) 双存储芯片的启动升级系统、方法、设备、介质和产品
CN110888656B (zh) 一种多功能烧写器及烧写方法
CN114253781B (zh) 测试方法、装置、设备及存储介质
CN105022629B (zh) 开机控制方法、装置和服务器
CN118963788A (zh) 批量更新服务器bmc管理固件的方法、系统、设备及介质
CN102053847A (zh) 服务器与其更新方法
CN115470054A (zh) 一种服务器内存功能测试方法、系统、装置及存储介质
US20250306902A1 (en) Firmware update method and display device
CN109032673A (zh) 自动回复基本输入输出系统映像档的方法及计算机系统
TW201122823A (en) Computer management system and method thereof
CN119829103A (zh) 一种多板卡计算设备的bmc更新方法
CN113138650A (zh) 一种cpld pci设备热复位电路、方法、系统及可读存储介质
CN203931024U (zh) 一种具有远程控制功能的pos系统
US20130144457A1 (en) Server system for updating heat dissipation solution
CN117270891A (zh) 一种蓝牙耳机的固件烧录方法、装置、终端及存储介质
CN113254304B (zh) 一种服务器关机类型的确定方法、服务器及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24890361

Country of ref document: EP

Kind code of ref document: A1