CN111539044A - Server power firmware write protection control method, device, equipment and storage medium - Google Patents

Server power firmware write protection control method, device, equipment and storage medium Download PDF

Info

Publication number
CN111539044A
CN111539044A CN202010333139.3A CN202010333139A CN111539044A CN 111539044 A CN111539044 A CN 111539044A CN 202010333139 A CN202010333139 A CN 202010333139A CN 111539044 A CN111539044 A CN 111539044A
Authority
CN
China
Prior art keywords
power supply
firmware
write protection
data
instruction
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.)
Withdrawn
Application number
CN202010333139.3A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur 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 Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010333139.3A priority Critical patent/CN111539044A/en
Publication of CN111539044A publication Critical patent/CN111539044A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/79Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories

Abstract

The invention discloses a write protection control method for a server power supply firmware, which comprises the following steps: receiving a data writing request of a server power supply firmware; generating a write protection release instruction; sending a write protection removing instruction to the power supply micro control chip so that the power supply micro control chip controls the power supply firmware of the server to remove write protection; and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware. By applying the technical scheme provided by the embodiment of the invention, the flexibility of write protection control on the power supply firmware of the server is greatly improved, the operation complexity is reduced, and the maintenance cost is reduced. The invention also discloses a device, equipment and a storage medium for controlling the write protection of the power firmware of the server, and the device, the equipment and the storage medium have corresponding technical effects.

Description

Server power firmware write protection control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of storage, in particular to a method, a device and equipment for controlling write protection of server power firmware and a computer readable storage medium.
Background
In order to facilitate Management of the Power Supply firmware (PSU), the system Baseboard Management Controller (BMC) usually reads (VPD, video product Data, Serial Number) information (such as Serial Number, VPD Length, FRU Part Number, Manufacturer Name, Power Capacity, VPD Version, Manufacturer Serial Number, etc.) of the server Power Supply firmware to check whether the server Power Supply firmware is a component supported by system authentication, and if the checked information is not correct, the server Power Supply firmware is not supported by the system, and the system may "falsely" alarm the failure of the server Power Supply firmware.
In recent years, attacks against servers have gradually shifted from upper-level software to system-bottom firmware, such as server power firmware VPD. When the server power supply firmware VPD is subjected to rewriting attack, a light person can cause the server to reject the server power supply firmware, and the system 'mistakenly' alarms that the server power supply firmware fails, and under a severe condition, because the upper operating system OS of the system does not recognize the server power supply firmware, the system can automatically and quickly reduce the frequency from several Ghz to 133Mhz, so that the server cannot provide services to the outside, and great loss is caused to the application of a client. Therefore, the reliability and the safety of the whole server are directly influenced by the safety of the VPD firmware of the power supply firmware of the server.
At present, in the prior art, write protection of server power firmware is implemented in a hardware manner, that is, a write protection pin of an electrically erasable Programmable Read-Only Memory (EEPROM) is directly pulled up to a high level or pulled down to a low level without performing additional processing at a write protection port of a physical circuit. The scheme has poor flexibility, only one of write protection enabling or write protection disabling modes can be designed in a hardware mode, and if the write protection is disabled by directly pulling down to a low level, the data in the power supply firmware of the server is very easy to be tampered, so that the equipment is abnormal in operation. If the direct pull-up is a high level to enable write protection, when data needs to be written into the server power firmware, a hardware circuit mode needs to be modified to remove the provided high level, which increases the operation complexity of a field maintenance engineer and has very high maintenance cost.
In summary, how to effectively solve the problems of poor flexibility, complex operation, high maintenance cost and the like of the write protection control mode of the existing server power firmware is a problem which needs to be solved urgently by technical personnel in the field at present.
Disclosure of Invention
The invention aims to provide a write protection control method for server power supply firmware, which greatly improves the flexibility of write protection control on the server power supply firmware, reduces the operation complexity and reduces the maintenance cost; another object of the present invention is to provide a server power firmware write-protection control device, apparatus and computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a write protection control method for server power supply firmware comprises the following steps:
receiving a data writing request of a server power supply firmware;
generating a write protection release instruction;
sending the write protection removing instruction to a power supply micro control chip to enable the power supply micro control chip to control the server power supply firmware to remove write protection;
and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware.
In an embodiment of the present invention, after writing the data to be written corresponding to the server power firmware data write request into the server power firmware, the method further includes:
when the completion of data writing is detected, generating a write protection instruction;
and sending the write protection instruction to the power supply micro control chip so that the power supply micro control chip controls the server power supply firmware to enter a write protection state.
In a specific embodiment of the present invention, after detecting that data writing is completed, before generating a write-protect instruction, the method further includes:
generating a data reading instruction;
sending the data reading instruction to the power supply micro control chip to enable the power supply micro control chip to read pre-written target data from the server power supply firmware;
receiving the target data returned by the power supply micro control chip;
comparing the target data with the data to be written;
and when the target data is determined to be the same as the data to be written, executing the step of generating the write protection instruction.
In a specific embodiment of the present invention, sending the write protection release instruction to a power supply micro control chip includes:
through I2The C bus sends the write protection release instruction to the power supply micro control chip;
further comprising:
when communication interruption with the power supply micro control chip is detected, the I is detected2The C bus performs a reset operation.
In one embodiment of the invention, in the process I2After the C bus sends the write protection release instruction to the power supply micro control chip, the method further includes:
and sending a filtering instruction to a pre-deployed target filter so that the target filter carries out filtering processing on the write protection release instruction according to the filtering instruction.
A server power firmware write protection control apparatus, comprising:
the request receiving module is used for receiving a data writing request of the server power supply firmware;
the release instruction generating module is used for generating a write protection release instruction;
the write protection removing module is used for sending the write protection removing instruction to the power supply micro-control chip so as to enable the power supply micro-control chip to control the server power supply firmware to remove write protection;
and the data writing module is used for writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware.
In one embodiment of the present invention, the method further comprises:
the protection instruction generating module is used for generating a write protection instruction when the completion of data writing is detected after the data to be written corresponding to the server power firmware data writing request is written into the server power firmware;
and the write protection control module is used for sending the write protection instruction to the power supply micro control chip so that the power supply micro control chip controls the server power supply firmware to enter a write protection state.
In one embodiment of the present invention, the method further comprises:
the reading instruction generating module is used for generating a data reading instruction after detecting that the data writing is finished and before generating a write protection instruction;
the data reading module is used for sending the data reading instruction to the power supply micro-control chip so that the power supply micro-control chip reads pre-written target data from the server power supply firmware;
the data receiving module is used for receiving the target data returned by the power supply micro control chip;
the data comparison module is used for comparing the target data with the data to be written;
the protection instruction generating module is specifically a module that generates the write protection instruction when it is determined that the target data is the same as the data to be written.
A server power firmware write protection control device comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the server power supply firmware write protection control method when executing the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the server power firmware write protection control method as previously described.
By applying the method provided by the embodiment of the invention, a data writing request of the power supply firmware of the server is received; generating a write protection release instruction; sending a write protection removing instruction to the power supply micro control chip so that the power supply micro control chip controls the power supply firmware of the server to remove write protection; and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware. And sending a write protection removing instruction to the power supply micro control chip by the substrate management controller according to the received data write-in request, so that the power supply micro control chip is used for controlling the server power supply firmware to remove write protection, and the data write-in of the server power supply firmware is completed. Compared with the existing mode of modifying a hardware circuit to control the write protection of the power supply firmware of the server, the write protection method of the power supply firmware of the server greatly improves the flexibility of the write protection control of the power supply firmware of the server, reduces the operation complexity and reduces the maintenance cost.
Correspondingly, embodiments of the present invention further provide a server power firmware write-protection control apparatus, a device, and a computer-readable storage medium corresponding to the server power firmware write-protection control method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an implementation of a firmware write protection method for a server power supply according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another embodiment of a method for controlling write protection of server power firmware according to the present invention;
FIG. 3 is a block diagram of a server power firmware write-protect control system according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a communication connection between a server power firmware and a baseboard management controller according to the prior art;
FIG. 5 is a block diagram of a write protection control device for a server power firmware according to an embodiment of the present invention;
fig. 6 is a block diagram of a server power firmware write-protection control device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an implementation of a write protection control method for server power firmware according to an embodiment of the present invention, where the method may include the following steps:
s101: a server power firmware data write request is received.
When data needs to be written into the server power firmware, namely when power VPD information needs to be written into the server power firmware, a server power firmware data write request is sent to the baseboard management controller. The baseboard management controller receives a server power firmware data write request.
S102: a write protect release instruction is generated.
After receiving a server power firmware data write request, a write protection release instruction is generated.
S103: and sending a write protection removing instruction to the power supply micro control chip so that the power supply micro control chip controls the server power supply firmware to remove write protection.
And after the write protection removing instruction is generated, the write protection removing instruction is sent to the power supply micro control chip MCU. And the power supply micro-control chip controls the power supply firmware of the server to remove the write protection.
S104: and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware.
And after the write protection of the server power supply firmware is released, writing the data to be written corresponding to the data write request of the server power supply firmware into the server power supply firmware. And sending a write protection removing instruction to the power supply micro control chip by the substrate management controller according to the received data write-in request, so that the power supply micro control chip is used for controlling the server power supply firmware to remove write protection, and the data write-in of the server power supply firmware is completed. Compared with the existing mode of modifying a hardware circuit to control the write protection of the power supply firmware of the server, the write protection method of the power supply firmware of the server greatly improves the flexibility of the write protection control of the power supply firmware of the server, reduces the operation complexity and reduces the maintenance cost.
By applying the method provided by the embodiment of the invention, a data writing request of the power supply firmware of the server is received; generating a write protection release instruction; sending a write protection removing instruction to the power supply micro control chip so that the power supply micro control chip controls the power supply firmware of the server to remove write protection; and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware. And sending a write protection removing instruction to the power supply micro control chip by the substrate management controller according to the received data write-in request, so that the power supply micro control chip is used for controlling the server power supply firmware to remove write protection, and the data write-in of the server power supply firmware is completed. Compared with the existing mode of modifying a hardware circuit to control the write protection of the power supply firmware of the server, the write protection method of the power supply firmware of the server greatly improves the flexibility of the write protection control of the power supply firmware of the server, reduces the operation complexity and reduces the maintenance cost.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of a server power firmware write protection control method according to an embodiment of the present invention, where the method may include the following steps:
s201: a server power firmware data write request is received.
S202: a write protect release instruction is generated.
S203: through I2And the C bus sends a write protection release instruction to the power supply micro-control chip.
Baseboard management controller through I2C bus is in communication connection with the power supply micro control chip, and after a write protection release instruction is generated, the write protection release instruction is transmitted through I2And the C bus sends a write protection release instruction to the power supply micro-control chip.
S204: and sending a filtering instruction to a pre-deployed target filter so that the target filter carries out filtering processing on the write protection removing instruction according to the filtering instruction, and enabling the power supply micro control chip to control the power supply firmware of the server to remove the write protection through the write protection removing instruction after filtering.
Since sporadic probabilistic electromagnetic interference signals may exist in the process of sending the write protection release instruction to the power supply micro-control chip, the signal of the write protection release instruction generates glitches. Therefore, a target filter is deployed in advance, a filtering instruction is sent to the target filter, the target filter carries out filtering processing on the write protection removing instruction according to the filtering instruction, the write protection removing instruction after filtering is obtained, and therefore the power supply micro control chip controls the power supply firmware of the server to remove the write protection through the write protection removing instruction after filtering.
The target filter can adopt a clock signal to adopt 5 beats to the input write protection release instruction signal, compares whether the output of the 4 th beat and the output of the 5 th beat are equal, if so, takes the output of the 5 th beat as a new output, otherwise, keeps the original value. As shown in fig. 3, since the server power firmware, i.e., the write protection pin of the VPD eeprom and the write protection pin of the micro-control chip of the power supply are connected to the communication link, an interference signal on the communication link may cause the write protection pin of the eeprom to be pulled low, so that the data of the eeprom is rewritten. Therefore, the target filter is adopted to ensure the stability of the signal, and the data rewriting error of the server power supply firmware caused by signal interference is avoided.
S205: and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware.
S206: and when the completion of data writing is detected, generating a data reading instruction.
And detecting the data writing progress in real time or at regular time intervals in the process of writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware, and generating a data reading instruction when the data writing is detected to be completed.
S207: and sending a data reading instruction to the power supply micro-control chip so that the power supply micro-control chip reads the pre-written target data from the server power supply firmware.
And after the data reading instruction is generated, sending the data reading instruction to a power supply micro-control chip, and reading the pre-written target data from the server power supply firmware by the power supply micro-control chip.
S208: and receiving target data returned by the power supply micro control chip.
And after the power supply micro-control chip reads the pre-written target data from the server power supply firmware, returning the target data to the substrate management controller. And the substrate management controller receives target data returned by the power supply micro control chip.
S209: and comparing the target data with the data to be written.
And after the target data which is pre-written into the server power firmware is read, comparing the target data with the data to be written.
S210: and when the target data is determined to be the same as the data to be written, generating a write protection instruction.
And comparing the target data with the data to be written, and generating a write protection instruction when the target data is determined to be the same as the data to be written.
S211: and sending a write protection instruction to the power supply micro control chip so that the power supply micro control chip controls the server power supply firmware to enter a write protection state.
And after the write protection instruction is generated, sending the write protection instruction to the power supply micro-control chip. The power supply micro control chip controls the power supply firmware of the server to enter a write protection state.
S212: when the communication interruption with the power supply micro control chip is detected, the pair I2The C bus performs a reset operation.
Detecting and controlling I of chip in micro control of power supply in real time in instruction transmission process2Whether the communication link of the C bus is normal or not, and when the communication interruption with the power supply micro-control chip is detected, the I bus is connected with the I bus2The C bus performs a reset operation. When the baseboard management controller goes wrong but the server power firmware can perform normal communication, the baseboard management controller can periodically detect and identify faults, execute reset action and recover I2And C, bus communication. During the communication process, the base plate management controller detects that the PEC (Parity Check) transmission error base plate management controller is reset, and the correct communication is restored.
The server power firmware is also designed to be fault tolerant in the communication link. When the server power supply firmware goes wrong and does not respond to the communication of the baseboard management controller, the power supply micro control chip and the EEPROM reset the power supply micro control chip and the EEPROM to reset the power supply micro control chip and the EEPROM2C act of bus communication. The polling time of the server power firmware is recorded, if 15 polling periods (the baseboard management controller polls the server power firmware once a second, and 15 polling periods are 15 seconds) are not accessed, the server power firmware resets itself I2C bus communication action, restoring the I of the server power firmware itself2And C, carrying out bus communication and logging the communication fault recovery event. Therefore, the problem that the server power supply firmware has self I in the communication process of the baseboard management controller and the server power supply firmware is effectively solved2C, the communication of the bus fails.
As shown in fig. 4, fig. 4 is a block diagram illustrating a communication connection between a server power firmware and a baseboard management controller in the prior art. The server power firmware and the baseboard management controller need to communicate through an intel chipset chip pch (me) disposed therebetween. ME through I2C bus reads information of server power supply firmware, and then the baseboard management controller passes through I2C bus read server from MEVPD information of the power supply firmware is used for ensuring that the baseboard management controller monitors information of the server in real time, and the ME plays a role in bridging in the process. When the server is in S5 state (one of the server motherboard states, S5 represents that the motherboard AC is powered on but not powered on), the ME is not able to work normally, when the server enters S0 state (one of the server motherboard states, S0 represents that the motherboard is powered on), the ME starts to work normally, when the server enters S0 state from S5 state, the motherboard power-on signal is sent to the board management controller and the south bridge PCH at the same time, the board management controller monitors VPD information of the server power firmware after receiving the signal, and the south bridge PCH controls the server to be powered on after receiving the signal. In the process, when the substrate management controller scans the VPD information of the power firmware of the monitoring server probabilistically, the ME does not work normally, so that the substrate management controller and the ME cannot communicate with each other, and the substrate management controller generates a 'false' alarm to record the power failure after detecting that the communication cannot be performed.
In addition, the current topological structure has the problem of accidental communication interruption, in the VPD communication process of the ME and the server power supply firmware, because the ME initiates communication transmission to the server power supply firmware, the communication link is inevitably influenced due to the objective existence of complex electromagnetic interference of a data center computer room, the waveform quality of the communication link is influenced due to accidental probabilistic signal interference, when the communication link is influenced, the ME stops transmitting signals, and the server power supply firmware waits for data without limit, so that the communication interruption can not be recovered. The baseboard management controller will generate a "false" alarm to record the power failure after detecting that the ME-server power firmware is unable to communicate, however, the "false" alarm is not a real "failure".
In order to solve the above problems, as shown in fig. 3, a topological structure of a server power firmware write-protection control system according to an embodiment of the present invention adopts an innovative design structure in which a communication link between a baseboard management controller and a server power firmware is directly connected. Because the baseboard management controller is directly communicated with the server power supply firmware in any state and has no intermediate link, the problem of 'false' alarm is effectively solved. Because the baseboard management controller directly communicates with the server power supply firmware, after communication is interrupted, the baseboard management controller is directly designed with a fault-tolerant mechanism, and a communication handshake mechanism can be continuously initiated, so that transmission of communication data is recovered after the server power supply firmware responds. Therefore, the problem of 'false' alarm of communication between the substrate management controller and the server power supply firmware in a complex electromagnetic interference environment of a machine room can be effectively solved.
Corresponding to the above method embodiments, embodiments of the present invention further provide a server power firmware write-protection control device, and the server power firmware write-protection control device described below and the server power firmware write-protection control device described above may be referred to in correspondence.
Referring to fig. 5, fig. 5 is a block diagram of a structure of a server power firmware write protection control apparatus according to an embodiment of the present invention, where the apparatus may include:
a request receiving module 51, configured to receive a server power firmware data write request;
a release instruction generation module 52 configured to generate a write protection release instruction;
the write protection releasing module 53 is configured to send a write protection releasing instruction to the power supply micro-control chip, so that the power supply micro-control chip controls the server power supply firmware to release write protection;
and a data writing module 54, configured to write the data to be written corresponding to the server power firmware data writing request into the server power firmware.
The device provided by the embodiment of the invention is applied to receive a data writing request of the power supply firmware of the server; generating a write protection release instruction; sending a write protection removing instruction to the power supply micro control chip so that the power supply micro control chip controls the power supply firmware of the server to remove write protection; and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware. And sending a write protection removing instruction to the power supply micro control chip by the substrate management controller according to the received data write-in request, so that the power supply micro control chip is used for controlling the server power supply firmware to remove write protection, and the data write-in of the server power supply firmware is completed. Compared with the existing mode of modifying a hardware circuit to control the write protection of the power supply firmware of the server, the write protection method of the power supply firmware of the server greatly improves the flexibility of the write protection control of the power supply firmware of the server, reduces the operation complexity and reduces the maintenance cost.
In one embodiment of the present invention, the apparatus may further include:
the protection instruction generating module is used for generating a write protection instruction when the completion of data writing is detected after the data to be written corresponding to the data writing request of the server power supply firmware is written into the server power supply firmware;
and the write protection control module is used for sending a write protection instruction to the power supply micro control chip so that the power supply micro control chip controls the server power supply firmware to enter a write protection state.
In one embodiment of the present invention, the apparatus may further include:
the reading instruction generating module is used for generating a data reading instruction after detecting that the data writing is finished and before generating a write protection instruction;
the data reading module is used for sending a data reading instruction to the power supply micro-control chip so that the power supply micro-control chip reads pre-written target data from the server power supply firmware;
the data receiving module is used for receiving target data returned by the power supply micro control chip;
the data comparison module is used for comparing the target data with the data to be written;
the protection instruction generation module is specifically a module for generating a write protection instruction when it is determined that the target data is the same as the data to be written.
In an embodiment of the present invention, the write-protect release module 53 is embodied by I2The C bus sends a write protection release instruction to the power supply micro control chip;
the apparatus may further include:
a reset module for resetting the power supply when the power supply is detectedWhen the communication of the micro control chip is interrupted, the pair I2The C bus performs a reset operation.
In one embodiment of the present invention, the apparatus may further include:
a filtering module for passing through I2And after the C bus sends a write protection removing instruction to the power supply micro-control chip, sending a filtering instruction to a pre-deployed target filter so that the target filter carries out filtering processing on the write protection removing instruction according to the filtering instruction.
Corresponding to the above method embodiment, referring to fig. 6, fig. 6 is a schematic diagram of a server power firmware write protection control device provided by the present invention, where the device may include:
a memory 61 for storing a computer program;
the processor 62, when executing the computer program stored in the memory 61, may implement the following steps:
receiving a data writing request of a server power supply firmware; generating a write protection release instruction; sending a write protection removing instruction to the power supply micro control chip so that the power supply micro control chip controls the power supply firmware of the server to remove write protection; and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
receiving a data writing request of a server power supply firmware; generating a write protection release instruction; sending a write protection removing instruction to the power supply micro control chip so that the power supply micro control chip controls the power supply firmware of the server to remove write protection; and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A write protection control method for server power firmware is characterized by comprising the following steps:
receiving a data writing request of a server power supply firmware;
generating a write protection release instruction;
sending the write protection removing instruction to a power supply micro control chip to enable the power supply micro control chip to control the server power supply firmware to remove write protection;
and writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware.
2. The write protection control method for the server power firmware according to claim 1, further comprising, after writing data to be written corresponding to the data write request for the server power firmware into the server power firmware:
when the completion of data writing is detected, generating a write protection instruction;
and sending the write protection instruction to the power supply micro control chip so that the power supply micro control chip controls the server power supply firmware to enter a write protection state.
3. The server power firmware write-protection control method according to claim 2, before generating the write-protection instruction after detecting that the data writing is completed, further comprising:
generating a data reading instruction;
sending the data reading instruction to the power supply micro control chip to enable the power supply micro control chip to read pre-written target data from the server power supply firmware;
receiving the target data returned by the power supply micro control chip;
comparing the target data with the data to be written;
and when the target data is determined to be the same as the data to be written, executing the step of generating the write protection instruction.
4. The write protection control method for the server power firmware according to any one of claims 1 to 3, wherein sending the write protection release instruction to the power micro-control chip comprises:
through I2The C bus sends the write protection release instruction to the power supply micro control chip;
further comprising:
when communication interruption with the power supply micro control chip is detected, the I is detected2The C bus performs a reset operation.
5. The server power firmware write-protection control method of claim 4, wherein I is passed2The C bus sends the write protection to the power supply micro control chipAfter the instruction is released, the method further comprises the following steps:
and sending a filtering instruction to a pre-deployed target filter so that the target filter carries out filtering processing on the write protection release instruction according to the filtering instruction.
6. A server power firmware write protection control apparatus, comprising:
the request receiving module is used for receiving a data writing request of the server power supply firmware;
the release instruction generating module is used for generating a write protection release instruction;
the write protection removing module is used for sending the write protection removing instruction to the power supply micro-control chip so as to enable the power supply micro-control chip to control the server power supply firmware to remove write protection;
and the data writing module is used for writing the data to be written corresponding to the data writing request of the server power supply firmware into the server power supply firmware.
7. The server power firmware write-protect control device of claim 6, further comprising:
the protection instruction generating module is used for generating a write protection instruction when the completion of data writing is detected after the data to be written corresponding to the server power firmware data writing request is written into the server power firmware;
and the write protection control module is used for sending the write protection instruction to the power supply micro control chip so that the power supply micro control chip controls the server power supply firmware to enter a write protection state.
8. The server power firmware write-protect control device of claim 7, further comprising:
the reading instruction generating module is used for generating a data reading instruction after detecting that the data writing is finished and before generating a write protection instruction;
the data reading module is used for sending the data reading instruction to the power supply micro-control chip so that the power supply micro-control chip reads pre-written target data from the server power supply firmware;
the data receiving module is used for receiving the target data returned by the power supply micro control chip;
the data comparison module is used for comparing the target data with the data to be written;
the protection instruction generating module is specifically a module that generates the write protection instruction when it is determined that the target data is the same as the data to be written.
9. A server power firmware write-protection control device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server power firmware write protection control method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the server power firmware write-protection control method according to any one of claims 1 to 5.
CN202010333139.3A 2020-04-24 2020-04-24 Server power firmware write protection control method, device, equipment and storage medium Withdrawn CN111539044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010333139.3A CN111539044A (en) 2020-04-24 2020-04-24 Server power firmware write protection control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010333139.3A CN111539044A (en) 2020-04-24 2020-04-24 Server power firmware write protection control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111539044A true CN111539044A (en) 2020-08-14

Family

ID=71978774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010333139.3A Withdrawn CN111539044A (en) 2020-04-24 2020-04-24 Server power firmware write protection control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111539044A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022057954A1 (en) * 2020-09-16 2022-03-24 算丰科技(北京)有限公司 Power management circuit, chip and upgrade method therefor, and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022057954A1 (en) * 2020-09-16 2022-03-24 算丰科技(北京)有限公司 Power management circuit, chip and upgrade method therefor, and server
US11829220B2 (en) 2020-09-16 2023-11-28 Sophgo Technologies Ltd. Power management circuit, chip and upgrade method therefor, and server

Similar Documents

Publication Publication Date Title
CN107145410B (en) Method, system and equipment for automatically powering on and starting up system after abnormal power failure
CN111324192A (en) System board power supply detection method, device, equipment and storage medium
WO2021212943A1 (en) Server power supply maintenance method, apparatus and device, and medium
CN111694710A (en) Method, device and equipment for monitoring faults of substrate management controller and storage medium
CN112527582A (en) Detection method, detection device, detection equipment and storage medium of server cable
CN111176952A (en) Monitoring method, monitoring system and related device for I2C channel
CN112463538A (en) Liquid leakage detection and alarm system, method, device and equipment
CN114116280A (en) Interactive BMC self-recovery method, system, terminal and storage medium
CN112631820A (en) Fault recovery method and device of software system
CN111539044A (en) Server power firmware write protection control method, device, equipment and storage medium
CN112783721B (en) Method, device and system for monitoring I2C bus and storage medium
CN113672306A (en) Server component self-checking abnormity recovery method, device, system and medium
CN111488050B (en) Power supply monitoring method, system and server
CN111488246A (en) CP L D upgrading method and device, electronic equipment and readable storage medium
CN111078454A (en) Cloud platform configuration recovery method and device
CN111400136A (en) Server-dedicated GPU fault protection device, method, equipment and medium
CN109992437B (en) Processing method, device and equipment for hard disk flash break and storage medium
CN111124785A (en) Hard disk fault checking method, device, equipment and storage medium
CN113076210B (en) Server fault diagnosis result notification method, system, terminal and storage medium
JP2007028118A (en) Failure judging method of node device
CN115098342A (en) System log collection method, system, terminal and storage medium
CN112214094B (en) Method and equipment for coping with power supply jitter of hard disk
CN114281639A (en) Storage server fault SAS physical link shielding device and method
CN114020670A (en) PCIE card management method, system, equipment and storage medium
CN113901530A (en) Hard disk defensive early warning protection method, device, equipment and readable 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200814