CN117234558A - Firmware upgrading method, device, equipment and storage medium - Google Patents

Firmware upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN117234558A
CN117234558A CN202311254611.4A CN202311254611A CN117234558A CN 117234558 A CN117234558 A CN 117234558A CN 202311254611 A CN202311254611 A CN 202311254611A CN 117234558 A CN117234558 A CN 117234558A
Authority
CN
China
Prior art keywords
target
firmware
power
field
supply port
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
CN202311254611.4A
Other languages
Chinese (zh)
Inventor
周浩楠
张旭
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Shandong Computer Technology Co Ltd
Original Assignee
Inspur Shandong Computer 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 Inspur Shandong Computer Technology Co Ltd filed Critical Inspur Shandong Computer Technology Co Ltd
Priority to CN202311254611.4A priority Critical patent/CN117234558A/en
Publication of CN117234558A publication Critical patent/CN117234558A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a firmware upgrading method, a device, equipment and a storage medium, which relate to the technical field of computers and comprise the following steps: after the firmware upgrade package is downloaded, determining a target power supply port of a target component corresponding to the firmware to be upgraded; determining a standard slot position of a target high-speed serial computer expansion bus corresponding to a target power supply port, and acquiring a corresponding slot position number to obtain a target slot position number; and the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation are sent to the voltage conversion chip through the baseboard management controller, so that in the process of upgrading by utilizing the firmware upgrade package, independent power-up and power-down operations are respectively carried out on the target power supply port and the standard slot of the target high-speed serial computer expansion bus based on the target slot number, the first field and the second field. The application can realize the automatic firmware upgrading without sense of users, improves the firmware upgrading efficiency, reduces the labor cost and ensures the stable operation of the service and the system.

Description

Firmware upgrading method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a firmware upgrade method, apparatus, device, and storage medium.
Background
At present, the function update of components such as a DPU (Data Processing Unit, data processor) needs to be realized by a firmware upgrade mode, and the specific firmware upgrade flow is as follows: firstly, a firmware package to be upgraded, which is imported through a Web (namely World Wide Web) page, is obtained, then the firmware package to be upgraded is downloaded, and after the firmware package is downloaded, the corresponding components to be upgraded are powered off and restarted, but because the components such as a DPU (digital personal interface Unit) are used as PCIE (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) equipment and have no independent power-on and power-off functions, the whole server is powered off and then powered on to realize the power-off restarting of the components such as the DPU, so that the firmware to be upgraded is effective. In addition, when the component comprises a plurality of chips, the corresponding repeated power-off restarting is needed, which greatly influences the batch upgrading efficiency of the firmware, in addition, the server in the machine room generally operates an uninterruptible service, if one firmware is upgraded, the server needs to be subjected to repeated power-off operation, and the normal use of the server is influenced after the power-off operation is restarted, so that other running tasks in the system are interrupted, the power-off restarting needs to consume more operation and maintenance manpower, and meanwhile, the normal operation of the customer service and the use experience of the customer are seriously influenced.
Thus, how firmware is upgraded is a problem that is still yet to be further addressed.
Disclosure of Invention
Accordingly, the present application is directed to a firmware upgrading method, apparatus, device and storage medium, which can realize the automatic firmware upgrading without sense of user, and reduce the labor cost, thereby improving the firmware upgrading efficiency, ensuring the stable operation of the service and system, and improving the user experience. The specific scheme is as follows:
in a first aspect, the present application discloses a firmware upgrade method, including:
determining a firmware upgrading packet of firmware to be upgraded, and triggering downloading operation aiming at the firmware upgrading packet;
after the firmware upgrade package is downloaded, determining a power supply port of a target component corresponding to the firmware to be upgraded to obtain a target power supply port;
determining a standard slot position of a target high-speed serial computer expansion bus corresponding to the target power supply port, and acquiring a slot position number corresponding to the standard slot position of the target high-speed serial computer expansion bus to obtain a target slot position number;
and sending the target slot number, a first field representing power-down operation and a second field corresponding to power-down operation duration to a voltage conversion chip through a baseboard management controller, so that in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, independent power-up and power-down operations are respectively carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field.
Optionally, the sending, by the baseboard management controller, the target slot number, a first field characterizing the power-down operation, and a second field corresponding to the duration of the power-down operation to the voltage conversion chip includes:
and transmitting the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation to a voltage conversion chip through a baseboard management controller and a serial communication bus link.
Optionally, the sending, by the baseboard management controller, the target slot number, a first field characterizing the power-down operation, and a second field corresponding to the duration of the power-down operation to the voltage conversion chip includes:
and generating a protocol packet containing the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation by the baseboard management controller in a self-defined protocol mode, and sending the protocol packet to a voltage conversion chip.
Optionally, before determining the firmware upgrade package of the firmware to be upgraded, the method further includes:
numbering all the high-speed serial computer expansion bus standard slots in the current system to obtain the slot numbers corresponding to the high-speed serial computer expansion bus standard slots.
Optionally, determining the power supply port of the target component corresponding to the firmware to be upgraded to obtain the target power supply port includes:
determining a power supply port of a data processor corresponding to the firmware to be upgraded to obtain a target power supply port;
correspondingly, in the process of upgrading the firmware to be upgraded by using the firmware upgrade package, the independent power-on and power-off operations are performed on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field, respectively, including:
and in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, respectively performing independent power-on and power-off operations on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the data processor based on the target slot number, the first field and the second field.
Optionally, in the process of upgrading the firmware to be upgraded by using the firmware upgrade package, the performing independent power-on and power-off operations on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field respectively includes:
In the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, determining the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the firmware to be upgraded according to the target slot number;
independent power-down operation is carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot according to the first field;
after the duration of the power-down operation corresponding to the second field, the target slot number, a third field representing the power-up operation and a fourth field corresponding to the duration of the power-up operation are sent to the voltage conversion chip through the baseboard management controller;
independent powering-on operation is carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot position through the voltage conversion chip according to the third field;
and after the duration of the power-on operation corresponding to the fourth field, performing independent power-off operation on the target power supply port and the target high-speed serial computer expansion bus standard slot through the voltage conversion chip.
Optionally, the baseboard management controller is connected with the target high-speed serial computer expansion bus standard slot and the target power supply port through the voltage conversion chip respectively.
In a second aspect, the present application discloses a firmware upgrade apparatus, including:
the upgrade package determining module is used for determining a firmware upgrade package of the firmware to be upgraded;
the upgrade package downloading module is used for triggering the downloading operation of the firmware upgrade package;
the power supply port determining module is used for determining a power supply port of a target component corresponding to the firmware to be upgraded after the firmware upgrading package is downloaded, so as to obtain a target power supply port;
the slot position determining module is used for determining a standard slot position of the target high-speed serial computer expansion bus corresponding to the target power supply port;
the serial number acquisition module is used for acquiring a slot number corresponding to the standard slot of the target high-speed serial computer expansion bus to obtain a target slot number;
the information sending module is used for sending the target slot number, a first field representing power-down operation and a second field corresponding to the duration of the power-down operation to the voltage conversion chip through the baseboard management controller, so that in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading package, independent power-on and power-off operations are respectively carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field.
In a third aspect, the application discloses an electronic device comprising a processor and a memory; the processor implements the firmware upgrading method when executing the computer program stored in the memory.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; the computer program, when executed by the processor, implements the firmware upgrade method described above.
The method includes the steps that firstly, a firmware upgrading package of firmware to be upgraded is determined, downloading operation aiming at the firmware upgrading package is triggered, after the firmware upgrading package is downloaded, a power supply port of a target component corresponding to the firmware to be upgraded is determined to obtain a target power supply port, then a target high-speed serial computer expansion bus standard slot corresponding to the target power supply port is determined, a slot number corresponding to the target high-speed serial computer expansion bus standard slot is obtained, the target slot number is obtained, and then the target slot number, a first field representing power-down operation and a second field corresponding to power-down operation duration are sent to a voltage conversion chip through a baseboard management controller, so that in the process of upgrading the firmware to be upgraded through the firmware upgrading package, independent power-up and power-down operations are respectively carried out on the target power supply port corresponding to the target component and the target high-speed serial computer expansion bus standard slot based on the target slot number, the first field and the second field. The application determines the high-speed serial computer expansion bus standard slot corresponding to the part to be upgraded by numbering the high-speed serial computer expansion bus standard slot, and independently electrifies and de-electrifies the power supply port of the part to be upgraded and the high-speed serial computer expansion bus standard slot through the voltage conversion chip.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a firmware upgrade method disclosed in the present application;
FIG. 2 is a schematic diagram of a specific hardware connection relationship disclosed in the present application;
FIG. 3 is a flowchart of a specific firmware upgrade method disclosed in the present application;
FIG. 4 is a schematic diagram of a firmware upgrade apparatus according to the present application;
fig. 5 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application discloses a firmware upgrading method, which is shown in fig. 1 and comprises the following steps:
step S11: and determining a firmware upgrading packet of the firmware to be upgraded, and triggering a downloading operation aiming at the firmware upgrading packet.
In this embodiment, when it is detected that firmware upgrade needs to be performed on a component, such as a DPU (Data Processing Unit, a data processor), a RAID (Redundant Arrays ofIndependent Disks, a disk array), a firmware upgrade package of firmware to be upgraded is determined first, and the firmware upgrade package may specifically be a firmware upgrade package selected or imported by a user through a front-end page, and then the determined firmware upgrade package is downloaded.
It should be noted that, before determining the firmware upgrade package of the firmware to be upgraded, the method specifically further includes: numbering all the high-speed serial computer expansion bus standard slots in the current system to obtain the slot numbers corresponding to the high-speed serial computer expansion bus standard slots. In this embodiment, all the standard slots (PCIe slots, peripheral component interconnect express slot) of the expansion bus of the high-speed serial computer in the server system are numbered in advance, so that slot numbers corresponding to the standard slots of the expansion bus of the high-speed serial computer, such as PCIe slot0, PCIe slot1, PCIe slot2, PCIe slot3, PCIe slot.
Step S12: and after the firmware upgrade package is downloaded, determining a power supply port of the target component corresponding to the firmware to be upgraded to obtain a target power supply port.
In this embodiment, after the firmware upgrade package is downloaded, a power supply port of the target component corresponding to the firmware to be upgraded is determined, so as to obtain a corresponding target power supply port, such as a DPU power supply port.
Step S13: and determining a standard slot position of the target high-speed serial computer expansion bus corresponding to the target power supply port, and acquiring a slot position number corresponding to the standard slot position of the target high-speed serial computer expansion bus to obtain a target slot position number.
In this embodiment, after determining the power supply port of the target component corresponding to the firmware to be upgraded, the target high-speed serial computer expansion bus standard slot corresponding to the target power supply port may be further determined, and it may be understood that the power supply port and the high-speed serial computer expansion bus standard slot are in a one-to-one correspondence relationship, so that the PCIe slot corresponding to the power supply port uniquely may be determined, and then the slot number corresponding to the target high-speed serial computer expansion bus standard slot may be obtained, thereby obtaining the target slot number.
Step S14: and sending the target slot number, a first field representing power-down operation and a second field corresponding to power-down operation duration to a voltage conversion chip through a baseboard management controller, so that in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, independent power-up and power-down operations are respectively carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field.
In this embodiment, after the slot number corresponding to the target high-speed serial computer expansion bus standard slot is obtained, the target slot number, the first field representing the power-down operation, and the second field corresponding to the duration of the power-down operation may be sent to a pre-created voltage conversion chip through a baseboard management controller (BMC, baseboard Management Controller), and when the voltage conversion chip receives the target slot number, the first field, and the second field, the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component to be upgraded may be determined according to the target slot number in the process of upgrading the firmware to be upgraded by using the firmware upgrade package, and then independent power-up and power-down operations may be performed on the target power supply port and the target high-speed serial computer expansion bus standard slot based on the first field and the second field, respectively, without performing power-up and power-down operations on the entire server system.
The substrate management controller is respectively connected with the target high-speed serial computer expansion bus standard slot and the target power supply port through the voltage conversion chip. Specifically, referring to fig. 2, in this solution, a voltage conversion chip is added between the BMC and each of the standard slots (PCIe slots) of the high-speed serial computer expansion bus and the power supply port, that is, the BMC is connected to each of the standard slots of the high-speed serial computer expansion bus and the power supply port through the voltage conversion chip.
In a specific embodiment, the sending, by the baseboard management controller, the target slot number, a first field representing the power-down operation, and a second field corresponding to the duration of the power-down operation to the voltage conversion chip may specifically include: and transmitting the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation to a voltage conversion chip through a baseboard management controller and a serial communication bus link. That is, the baseboard management controller and the voltage conversion chip communicate through a serial communication bus (I2C, inter-Integrated Circuit) link, so that the baseboard management controller can transmit the target slot number, a first field representing the power-down operation, and a second field corresponding to the duration of the power-down operation to the voltage conversion chip through the I2C link.
In another specific embodiment, the sending, by the baseboard management controller, the target slot number, a first field indicating the power-down operation, and a second field corresponding to the duration of the power-down operation to the voltage conversion chip may specifically include: and generating a protocol packet containing the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation by the baseboard management controller in a self-defined protocol mode, and sending the protocol packet to a voltage conversion chip. For example, the corresponding protocol packet may be generated by the following custom protocol format, and the protocol packet is sent to the voltage conversion chip, where the custom protocol format is specifically:
the SlotNumber represents a PCIE slot number of a target component to be subjected to firmware upgrade currently, for example, 0x00 is PCIE slot 0,0x01 is PCIE slot 1,0x02 is PCIE slot 2,0x03 is PCIE slot 3); operate indicates whether the target component currently to be firmware upgraded is to perform a power-up or power-down operation, e.g., 0x00 is not power-up operation, 0x01 is power-down operation; delayTime represents the duration of the power-up and power-down operation, as default to 0xFF, representing permanent validation, and 0x01 representing duration of 1 minute. For example, the BMC issues a command 0x01 x ff to the voltage conversion chip to independently power up and power down the target power port and the target high speed serial computer expansion bus standard slot.
It can be seen that, in the embodiment of the present application, a firmware upgrade package of a firmware to be upgraded is determined first, and a downloading operation for the firmware upgrade package is triggered, after the firmware upgrade package is downloaded, a power supply port of a target component corresponding to the firmware to be upgraded is determined to obtain a target power supply port, then a target high-speed serial computer expansion bus standard slot corresponding to the target power supply port is determined, a slot number corresponding to the target high-speed serial computer expansion bus standard slot is obtained, a target slot number is obtained, and then the target slot number, a first field representing a power-down operation and a second field corresponding to a power-down operation duration are sent to a voltage conversion chip through a baseboard management controller, so that in a process of upgrading the firmware to be upgraded by using the firmware upgrade package, independent power-up and power-down operations are performed on the target power supply port corresponding to the target component and the target high-speed serial computer expansion bus standard slot based on the target slot number, the first field and the second field respectively. The embodiment of the application determines the standard slot of the high-speed serial computer expansion bus corresponding to the part to be upgraded by numbering the standard slot of the high-speed serial computer expansion bus, and independently electrifies and de-electrifies the power supply port of the part to be upgraded and the standard slot of the high-speed serial computer expansion bus through the voltage conversion chip.
The embodiment of the application discloses a specific firmware upgrading method, which is shown in fig. 3 and comprises the following steps:
step S21: and determining a firmware upgrading packet of the firmware to be upgraded, and triggering a downloading operation aiming at the firmware upgrading packet.
Step S22: and after the firmware upgrade package is downloaded, determining a power supply port of the data processor corresponding to the firmware to be upgraded to obtain a target power supply port.
In this embodiment, after the firmware upgrade package is downloaded, a power supply port of a data processor (i.e., a DPU) corresponding to the firmware to be upgraded may be further determined.
Step S23: and determining a standard slot position of the target high-speed serial computer expansion bus corresponding to the target power supply port, and acquiring a slot position number corresponding to the standard slot position of the target high-speed serial computer expansion bus to obtain a target slot position number.
Step S24: and sending the target slot number, a first field representing power-down operation and a second field corresponding to power-down operation duration to a voltage conversion chip through a baseboard management controller, so that in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, independent power-on and power-off operations are respectively carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the data processor based on the target slot number, the first field and the second field.
Specifically, in the process of upgrading the firmware to be upgraded by using the firmware upgrade package, performing independent power-on and power-off operations on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the data processor based on the target slot number, the first field and the second field respectively may include: in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, determining the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the firmware to be upgraded according to the target slot number;
independent power-down operation is carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot according to the first field;
after the duration of the power-down operation corresponding to the second field, the target slot number, a third field representing the power-up operation and a fourth field corresponding to the duration of the power-up operation are sent to the voltage conversion chip through the baseboard management controller;
independent powering-on operation is carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot position through the voltage conversion chip according to the third field;
And after the duration of the power-on operation corresponding to the fourth field, performing independent power-off operation on the target power supply port and the target high-speed serial computer expansion bus standard slot through the voltage conversion chip.
In this embodiment, in the process of upgrading the firmware to be upgraded by using the firmware upgrade package, components that need to be powered on and off for many times, such as cpu_BOARD_CPLD (i.e. Central Processing Unit BOARD Complex Programmable Logic Device, complex programmable logic device on central processing unit BOARD), FPGA_BOARD_CPLD (Field Programmable Gate Array BOARD Complex Programmable Logic Device, complex programmable logic device on field programmable array logic BOARD), FPGA (Field Programmable Gate Array, field programmable array logic) and the like, may be considered to be included in the firmware upgrade package, so that the whole firmware upgrade process may need to be powered on and off for many times. Specifically, a target power supply port and a target high-speed serial computer expansion bus standard slot corresponding to firmware to be upgraded can be determined according to a target slot number corresponding to a target component, and then independent power-down operation is performed on the target power supply port and the target high-speed serial computer expansion bus standard slot according to a first field representing power-down operation, wherein the duration of the power-down operation is a second field corresponding to the duration of the power-down operation; after the duration of the power-down operation corresponding to the second field, the baseboard management controller may send information including the target slot number, a third field representing the power-up operation, and a fourth field corresponding to the duration of the power-up operation to the voltage conversion chip to perform corresponding power-up operation.
For more specific processing procedures in the steps S21 and S23, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no detailed description is given here.
Therefore, the embodiment of the application determines the high-speed serial computer expansion bus standard slot corresponding to the DPU to be upgraded by numbering the high-speed serial computer expansion bus standard slot, and independently electrifies and de-electrifies the power supply port of the DPU and the high-speed serial computer expansion bus standard slot through the voltage conversion chip, thereby realizing the noninductive upgrading of the DPU without influencing the stable operation of customer service and the normal use of the server, and improving the upgrading efficiency of the DPU.
Correspondingly, the embodiment of the application also discloses a firmware upgrading device, which is shown in fig. 4 and comprises:
an upgrade package determining module 11, configured to determine a firmware upgrade package of firmware to be upgraded;
an upgrade package download module 12, configured to trigger a download operation for the firmware upgrade package;
the power supply port determining module 13 is configured to determine a power supply port of a target component corresponding to the firmware to be upgraded after the firmware upgrade package is downloaded, so as to obtain a target power supply port;
The slot position determining module 14 is configured to determine a standard slot position of a target high-speed serial computer expansion bus corresponding to the target power supply port;
the number acquisition module 15 is used for acquiring a slot number corresponding to the standard slot of the target high-speed serial computer expansion bus, and obtaining a target slot number;
the information sending module 16 is configured to send, by using the baseboard management controller, the target slot number, a first field characterizing a power-down operation, and a second field corresponding to a duration of the power-down operation to a voltage conversion chip, so that in a process of upgrading the firmware to be upgraded by using the firmware upgrade package, independent power-up and power-down operations are performed on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field, and the second field.
The specific workflow of each module may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
In the embodiment of the application, a firmware upgrade package of firmware to be upgraded is determined, and a downloading operation for the firmware upgrade package is triggered, after the firmware upgrade package is downloaded, a power supply port of a target component corresponding to the firmware to be upgraded is determined to obtain a target power supply port, then a target high-speed serial computer expansion bus standard slot corresponding to the target power supply port is determined, a slot number corresponding to the target high-speed serial computer expansion bus standard slot is obtained, the target slot number is obtained, and then the target slot number, a first field representing a power-down operation and a second field corresponding to a power-down operation duration are sent to a voltage conversion chip through a baseboard management controller, so that in the process of upgrading the firmware to be upgraded by using the firmware upgrade package, independent power-up and power-down operations are respectively carried out on the target power supply port corresponding to the target component and the target high-speed serial computer expansion bus standard slot based on the target slot number, the first field and the second field. The embodiment of the application determines the standard slot of the high-speed serial computer expansion bus corresponding to the part to be upgraded by numbering the standard slot of the high-speed serial computer expansion bus, and independently electrifies and de-electrifies the power supply port of the part to be upgraded and the standard slot of the high-speed serial computer expansion bus through the voltage conversion chip.
In some specific embodiments, the information sending module 16 may specifically include:
and the first information sending unit is used for sending the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation to the voltage conversion chip through the baseboard management controller and through the serial communication bus link.
In some specific embodiments, the information sending module 16 may specifically include:
the second information sending unit is used for generating a protocol packet containing the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation through the baseboard management controller in a self-defined protocol mode, and sending the protocol packet to the voltage conversion chip.
In some specific embodiments, before the upgrade package determining module 11, the method may further include:
and the slot numbering unit is used for numbering all the high-speed serial computer expansion bus standard slots in the current system so as to obtain slot numbers corresponding to the high-speed serial computer expansion bus standard slots.
In some specific embodiments, the power supply port determining module 13 may specifically include:
The power supply port determining unit is used for determining a power supply port of the data processor corresponding to the firmware to be upgraded to obtain a target power supply port;
correspondingly, the information sending module 16 may specifically include:
and the third information sending unit is used for respectively carrying out independent power-on and power-off operations on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the data processor based on the target slot number, the first field and the second field in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet.
In some specific embodiments, the information sending module 16 may specifically include:
the power supply port and slot position determining unit is used for determining the target power supply port and the target high-speed serial computer expansion bus standard slot position corresponding to the firmware to be upgraded according to the target slot position number in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet;
the first power-down unit is used for independently powering down the target power supply port and the target high-speed serial computer expansion bus standard slot according to the first field;
A fourth information sending unit, configured to send, by the baseboard management controller, the target slot number, a third field indicating a power-on operation, and a fourth field corresponding to a power-on operation duration to the voltage conversion chip after the power-off operation duration corresponding to the second field passes;
the independent power-on unit is used for independently performing power-on operation on the target power supply port and the target high-speed serial computer expansion bus standard slot position through the voltage conversion chip according to the third field;
and the second power-down unit is used for independently performing power-down operation on the target power supply port and the target high-speed serial computer expansion bus standard slot position through the voltage conversion chip after the power-up operation duration corresponding to the fourth field.
In some embodiments, the baseboard management controller is connected with the target high-speed serial computer expansion bus standard slot and the target power supply port through the voltage conversion chip respectively.
Further, the embodiment of the present application further discloses an electronic device, and fig. 5 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 5 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is used for storing a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the firmware upgrade method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the firmware upgrade method performed by the electronic device 20 disclosed in any of the previous embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the firmware upgrade method disclosed previously. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description of the firmware upgrading method, device, equipment and storage medium provided by the present application applies specific examples to illustrate the principles and implementation of the present application, and the above examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A firmware upgrade method, comprising:
determining a firmware upgrading packet of firmware to be upgraded, and triggering downloading operation aiming at the firmware upgrading packet;
after the firmware upgrade package is downloaded, determining a power supply port of a target component corresponding to the firmware to be upgraded to obtain a target power supply port;
determining a standard slot position of a target high-speed serial computer expansion bus corresponding to the target power supply port, and acquiring a slot position number corresponding to the standard slot position of the target high-speed serial computer expansion bus to obtain a target slot position number;
and sending the target slot number, a first field representing power-down operation and a second field corresponding to power-down operation duration to a voltage conversion chip through a baseboard management controller, so that in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, independent power-up and power-down operations are respectively carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field.
2. The firmware upgrade method of claim 1, wherein the transmitting, by the baseboard management controller, the target slot number, a first field characterizing a power-down operation, and a second field corresponding to a duration of the power-down operation to the voltage conversion chip comprises:
and transmitting the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation to a voltage conversion chip through a baseboard management controller and a serial communication bus link.
3. The firmware upgrade method of claim 1, wherein the transmitting, by the baseboard management controller, the target slot number, a first field characterizing a power-down operation, and a second field corresponding to a duration of the power-down operation to the voltage conversion chip comprises:
and generating a protocol packet containing the target slot number, a first field representing the power-down operation and a second field corresponding to the duration of the power-down operation by the baseboard management controller in a self-defined protocol mode, and sending the protocol packet to a voltage conversion chip.
4. The firmware upgrade method according to claim 1, wherein before determining the firmware upgrade package of the firmware to be upgraded, further comprising:
Numbering all the high-speed serial computer expansion bus standard slots in the current system to obtain the slot numbers corresponding to the high-speed serial computer expansion bus standard slots.
5. The firmware upgrade method according to claim 1, wherein the determining the power supply port of the target component corresponding to the firmware to be upgraded to obtain the target power supply port includes:
determining a power supply port of a data processor corresponding to the firmware to be upgraded to obtain a target power supply port;
correspondingly, in the process of upgrading the firmware to be upgraded by using the firmware upgrade package, the independent power-on and power-off operations are performed on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field, respectively, including:
and in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, respectively performing independent power-on and power-off operations on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the data processor based on the target slot number, the first field and the second field.
6. The firmware upgrade method according to claim 1, wherein in the process of upgrading the firmware to be upgraded by using the firmware upgrade package, the independent power-on and power-off operations are performed on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field, respectively, including:
in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading packet, determining the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the firmware to be upgraded according to the target slot number;
independent power-down operation is carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot according to the first field;
after the duration of the power-down operation corresponding to the second field, the target slot number, a third field representing the power-up operation and a fourth field corresponding to the duration of the power-up operation are sent to the voltage conversion chip through the baseboard management controller;
independent powering-on operation is carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot position through the voltage conversion chip according to the third field;
And after the duration of the power-on operation corresponding to the fourth field, performing independent power-off operation on the target power supply port and the target high-speed serial computer expansion bus standard slot through the voltage conversion chip.
7. The firmware upgrade method according to any one of claims 1 to 6, wherein the baseboard management controller is connected with the target high-speed serial computer expansion bus standard slot and the target power supply port through the voltage conversion chip, respectively.
8. A firmware upgrade apparatus, comprising:
the upgrade package determining module is used for determining a firmware upgrade package of the firmware to be upgraded;
the upgrade package downloading module is used for triggering the downloading operation of the firmware upgrade package;
the power supply port determining module is used for determining a power supply port of a target component corresponding to the firmware to be upgraded after the firmware upgrading package is downloaded, so as to obtain a target power supply port;
the slot position determining module is used for determining a standard slot position of the target high-speed serial computer expansion bus corresponding to the target power supply port;
the serial number acquisition module is used for acquiring a slot number corresponding to the standard slot of the target high-speed serial computer expansion bus to obtain a target slot number;
The information sending module is used for sending the target slot number, a first field representing power-down operation and a second field corresponding to the duration of the power-down operation to the voltage conversion chip through the baseboard management controller, so that in the process of upgrading the firmware to be upgraded by utilizing the firmware upgrading package, independent power-on and power-off operations are respectively carried out on the target power supply port and the target high-speed serial computer expansion bus standard slot corresponding to the target component based on the target slot number, the first field and the second field.
9. An electronic device comprising a processor and a memory; wherein the processor, when executing the computer program stored in the memory, implements the firmware upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program, when executed by a processor, implements a firmware upgrade method as claimed in any one of claims 1 to 7.
CN202311254611.4A 2023-09-26 2023-09-26 Firmware upgrading method, device, equipment and storage medium Pending CN117234558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311254611.4A CN117234558A (en) 2023-09-26 2023-09-26 Firmware upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311254611.4A CN117234558A (en) 2023-09-26 2023-09-26 Firmware upgrading method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117234558A true CN117234558A (en) 2023-12-15

Family

ID=89084084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311254611.4A Pending CN117234558A (en) 2023-09-26 2023-09-26 Firmware upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117234558A (en)

Similar Documents

Publication Publication Date Title
CN109508198B (en) Application program installation method and device, storage medium and terminal
CN103324495A (en) Method and system for data center server boot management
US7483966B2 (en) Systems, methods, and media for remote wake-up and management of systems in a network
US11068252B2 (en) System and method for dynamically determining applicable updates
CN102200916B (en) Electronic equipment, configurable member and method for storing configuration information of configurable member
CN111130962B (en) Automatic configuration method, equipment, system and storage medium for switch
CN113760333A (en) Software upgrading method and device, electronic equipment and computer readable storage medium
CN104679566A (en) Method and terminal equipment for updating SMBIOS (System Management Basic Input/Output System)
WO2024113767A1 (en) Power-on method and power-on apparatus for smart network interface cards
CN111367761B (en) Information management method, system and related components of universal server
US20150220350A1 (en) Information processing device and method for managing information processing device
CN113064745A (en) Method, device and medium for reporting error information
CN117234558A (en) Firmware upgrading method, device, equipment and storage medium
CN109542198B (en) Method and equipment for controlling power-on of PCIE card
CN115061976A (en) Address configuration method, device, carrier board, core board, server and medium
CN115952129A (en) Blade server setting method and device and readable storage medium
CN110096414A (en) A kind of server monitoring method, device, equipment and medium
CN114385537A (en) Page slot number dynamic allocation method, device, equipment and medium
CN114416187A (en) ARM server and starting method of ARM core board
CN114090054A (en) Intelligent equipment upgrading method and device, storage medium and electronic equipment
CN115097879B (en) Temperature regulation and control method, device, equipment and medium
CN116260869B (en) Method and system for remotely waking up same local area network host by utilizing MQTT protocol
CN116860340B (en) Method for determining starting time of server based on identification of baseboard management controller
CN117032583A (en) Data reading method, device, equipment and storage medium
CN116405387A (en) PCIe switch upgrading method, device, equipment and storage medium

Legal Events

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