Automatic updating method, device and equipment for firmware of voltage regulator and medium
The voltage regulator firmware in the power chip is updated through BMC, and the CRC value comparison is used to ensure that the update is successful and restarted. This solves the defects of the voltage regulator firmware update operation in the prior art, and realizes an automated, safe and accurate update process.
Patent Information
- Application Number
- CN202411870226.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-03-18
AI Technical Summary
The existing voltage regulator firmware update operation has defects, including the manual power-off operation is time-consuming and costly, and the problem of leakage and voltage mismatch in DC S5 state.
The voltage regulator firmware in the power chip is updated through BMC, and after ensuring that the update is successful through CRC value comparison, an instruction to turn off the PSU power and restart it is issued to make the updated firmware take effect.
Automatic update of voltage regulator firmware is realized, avoiding manual power outage operations, ensuring the safety and accuracy of updates, and reducing costs and error risks.
Smart Images

Figure CN119645468A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of server storage technology, and in particular to a voltage regulator firmware automatic updating method, device, equipment and medium. Background Art
[0002] After the server's VR FW (voltage regulator firmware) is updated, it is usually necessary to power off once for the new version to take effect. Previous practices include manually cutting off the AC power (AC) or controlling the VR chip's VCC (voltage control chip power supply) through a CPLD (complex programmable logic device) in the DC power sleep state (DC S5) to perform a slow restart after powering off.
[0003] Among them, the manual power-off operation will result in a failure to respond in time when in the customer's room, and waste human resources and costs; and the CPLD slow-start power-off and restart operation in the DC S5 state can achieve automatic update operations, but there are two disadvantages: first, the VCC of the VR chip is not synchronized with the VCC of the DRMOS (direct-driven metal oxide semiconductor) after slow start, which may cause leakage; second, for platforms such as Intel BHS AP, in the DC S5 state, the specific voltage (such as PVCCFA_EHV) of the VR chip power supply cannot be powered off.
[0004] Therefore, both of the above two voltage regulator firmware update operations have obvious defects and limitations. Summary of the invention
[0005] The purpose of the present invention is to provide a method, device, equipment and medium for automatically updating the firmware of a voltage regulator, aiming to solve the technical problem that the existing voltage regulator firmware update operation has obvious defects and limitations.
[0006] In order to solve the above technical problems, the purpose of the present invention is achieved through the following technical solutions:
[0007] A first aspect of the present application provides a method for automatically updating voltage regulator firmware, comprising the following steps:
[0008] Update the voltage regulator firmware in the power chip through the BMC;
[0009] Obtaining a first CRC value from the updated voltage regulator firmware;
[0010] Obtaining a second CRC value from a CRC check register of the power chip;
[0011] Comparing the first CRC value with the second CRC value;
[0012] If the first CRC value matches the second CRC value, the BMC issues an instruction to shut down the PSU power supply and then restart it to make the updated voltage regulator firmware effective;
[0013] If the first CRC value does not match the second CRC value, the BMC reports an error and informs the voltage regulator that the firmware upgrade is unsuccessful.
[0014] In a possible implementation, the step of obtaining a first CRC value from the updated voltage regulator firmware includes:
[0015] Calculating, by the BMC, the first CRC value before the voltage regulator firmware is burned;
[0016] The first CRC value is saved as metadata in the voltage regulator firmware.
[0017] In a possible implementation, the step of obtaining a second CRC value from a CRC check register of the power chip includes:
[0018] Calculating the second CRC value after the voltage regulator firmware is burned through the power chip;
[0019] Storing the second CRC value in the CRC check register;
[0020] The CRC check register is read through the BMC to obtain the second CRC value after actual burning.
[0021] In a possible implementation, if the first CRC value matches the second CRC value, the step of the BMC issuing an instruction to shut down the PSU power supply and then restart it so that the updated voltage regulator firmware takes effect includes:
[0022] After the BMC issues a shutdown command, the PSU power supply performs a restart operation after 10 seconds;
[0023] After the PSU power supply is powered on, the power supply of the integrated circuit of the voltage regulator performs a power-off restart operation to make the updated firmware of the voltage regulator effective.
[0024] In a possible implementation, if the first CRC value does not match the second CRC value, the step of the BMC reporting an error and informing the voltage regulator that the firmware upgrade is unsuccessful includes:
[0025] Sending an alert through the BMC to notify a technician that an error has occurred during the update process;
[0026] An error log is generated by the BMC to record specific error information.
[0027] In a possible implementation, the method further includes a safety verification step during the process of updating the voltage regulator firmware, the step comprising:
[0028] Before updating the voltage regulator firmware, verifying the digital signature of the update package by the BMC to ensure the integrity and authenticity of the update package;
[0029] If the digital signature verification fails, the BMC reports an error and terminates the update process;
[0030] If the digital signature verification is successful, the update operation of the voltage regulator firmware continues.
[0031] In a possible implementation, the method further includes a remote management step, which includes:
[0032] Sending an update instruction and a voltage regulator firmware update package to the BMC via a remote management system;
[0033] Automatically perform an update operation through the BMC;
[0034] During or after the update, the update status and result feedback are received through the remote management system.
[0035] A second aspect of the present application provides a voltage regulator firmware automatic update device, the device comprising:
[0036] An update unit, used to update the voltage regulator firmware in the power chip through the BMC;
[0037] A first reading unit, configured to obtain a first CRC value from the updated firmware of the voltage regulator;
[0038] A second reading unit, used for obtaining a second CRC value from a CRC check register of the power chip;
[0039] a comparing unit, configured to compare the first CRC value with the second CRC value;
[0040] A first judgment unit, configured to, if the first CRC value matches the second CRC value, cause the BMC to issue an instruction to shut down and restart the PSU power supply so that the updated voltage regulator firmware takes effect;
[0041] The second judgment unit is configured to, if the first CRC value does not match the second CRC value, cause the BMC to report an error and inform the voltage regulator that the firmware upgrade is unsuccessful.
[0042] A third aspect of the present application provides a computer device, characterized in that the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method described in the first aspect when executing the computer program.
[0043] A fourth aspect of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method described in the first aspect above can be implemented.
[0044] The beneficial effects of the present invention compared with the prior art are as follows: the present invention provides a method, device, equipment and medium for automatically updating voltage regulator firmware, the method comprising the following steps: updating the voltage regulator firmware in a power chip through a BMC; obtaining a first CRC value from the updated voltage regulator firmware; obtaining a second CRC value from a CRC check register of the power chip; comparing the first CRC value with the second CRC value; if the first CRC value matches the second CRC value, the BMC issues an instruction to shut down the PSU power supply and then restart, so that the updated voltage regulator firmware takes effect; if the first CRC value does not match the second CRC value, the BMC reports an error and informs the voltage regulator firmware that the upgrade is unsuccessful. Compared with the prior art, the present invention uses software commands to cut off power to the PSU and restart it after updating the version of the voltage regulator firmware, and starts the server system to make the new version of the voltage regulator firmware take effect, thereby avoiding the need for manpower to cut off power when the voltage regulator firmware needs to be refreshed in the customer's room or the entire cabinet, and the automatic update of the voltage regulator firmware can be achieved without entering the DC S5 state, thereby overcoming the defects of the prior art, improving customer experience and saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0046] Figure 1 A schematic diagram of a method for automatically updating voltage regulator firmware provided by an embodiment of the present invention Figure 1 ;
[0047] Figure 2 A schematic diagram of a method for automatically updating voltage regulator firmware provided by an embodiment of the present invention Figure 2 ;
[0048] Figure 3 A schematic diagram of a method for automatically updating voltage regulator firmware provided by an embodiment of the present invention Figure 3 ;
[0049] Figure 4 A schematic diagram of a method for automatically updating voltage regulator firmware provided by an embodiment of the present invention Figure 4 ;
[0050] Figure 5 A schematic diagram of a method for automatically updating voltage regulator firmware provided by an embodiment of the present invention Figure 5 ;
[0051] Figure 6 A schematic diagram of a method for automatically updating voltage regulator firmware provided by an embodiment of the present invention Figure 6
[0052] Figure 7 A schematic diagram of a method for automatically updating voltage regulator firmware provided by an embodiment of the present invention Figure 7 ;
[0053] Figure 8 A schematic block diagram of a voltage regulator firmware automatic update device provided by an embodiment of the present invention;
[0054] Fig. 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0057] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0058] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0059] Embodiments of the present application provide a method, apparatus, device and storage medium for automatically updating firmware of a voltage regulator.
[0060] The executor of the voltage regulator firmware automatic update method may be the voltage regulator firmware automatic update device provided in the embodiment of the present application, or a computer device integrating the voltage regulator firmware automatic update device, wherein the voltage regulator firmware automatic update device may be implemented in hardware or software, the computer device may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a PDA, or a laptop computer, etc.
[0061] Figure 1 This is a flow chart of a method for automatically updating the firmware of a voltage regulator provided in an embodiment of the present application. Figure 1 .like Figure 1 As shown, the method includes the following steps S110-S160:
[0062] S110, updating the voltage regulator firmware in the power chip through the BMC;
[0063] Specifically, before updating the voltage regulator firmware, first, you need to make sure that the motherboard supports the BMC (Baseboard Management Controller) function. Next, download the voltage regulator firmware update file that is suitable for the current power chip. This can usually be obtained from the motherboard manufacturer's official website or related technical support channels. Then, upload the voltage regulator firmware update file to the motherboard through the BMC's web interface, DOS environment, or the update tool under the system, and start the update process. During the update process, the BMC will control the operation of the power chip to ensure the smooth update of the voltage regulator firmware.
[0064] S120, obtaining a first CRC value from the updated voltage regulator firmware;
[0065] Specifically, CRC (Cyclic Redundancy Check) is an algorithm used to detect errors in data transmission or storage. After the voltage regulator firmware is updated, the BMC extracts the CRC value from the updated voltage regulator firmware as the first CRC value. This CRC value represents the integrity of the voltage regulator firmware data.
[0066] S130, obtaining a second CRC value from a CRC check register of the power chip;
[0067] Specifically, the power chip usually contains a CRC check register for storing the CRC value of the current voltage regulator firmware. The BMC reads the value in this CRC check register as the second CRC value. This value is used to compare with the first CRC value to verify whether the update of the voltage regulator firmware is successful.
[0068] S140, comparing the first CRC value with the second CRC value;
[0069] S150: If the first CRC value matches the second CRC value, the BMC issues an instruction to shut down the PSU power supply and then restart it, so that the updated voltage regulator firmware takes effect;
[0070] Specifically, if the CRC values match, the BMC will issue an instruction to shut down the PSU (Power Supply Unit) and then restart it, so that the updated voltage regulator firmware can take effect and ensure the normal operation of the motherboard and power supply system.
[0071] S160: If the first CRC value does not match the second CRC value, the BMC reports an error and informs the voltage regulator that the firmware upgrade is unsuccessful.
[0072] Specifically, if the CRC value does not match, the BMC will report an error and inform that the voltage regulator firmware upgrade was unsuccessful. At this point, the user needs to re-download the voltage regulator firmware update file and try the update process again. At the same time, you can also check the connection and status of the motherboard and power system to ensure that there is no hardware failure that caused the update failure.
[0073] In summary, this voltage regulator firmware automatic update method realizes the automated update process through BMC and ensures the integrity and accuracy of the voltage regulator firmware through the CRC check mechanism. This can not only improve the stability and security of the motherboard and power supply system, but also simplify the voltage regulator firmware update process and reduce the risk of errors.
[0074] like Figure 2 As shown, in a more specific embodiment, executing step S120 further specifically includes executing steps S121-S122:
[0075] S121, calculating, by the BMC, the first CRC value before the voltage regulator firmware is burned;
[0076] S122. Save the first CRC value as metadata in the voltage regulator firmware.
[0077] Specifically, before the voltage regulator firmware is burned (i.e., updated), the BMC will first read the data of the current voltage regulator firmware. Then, the BMC will use the built-in CRC calculation algorithm to perform CRC calculation on the data of the current voltage regulator firmware, thereby generating a CRC value as the first CRC value. After generating the first CRC value, the BMC will save it as metadata in the voltage regulator firmware. Among them, metadata refers to additional information associated with the firmware file (voltage regulator firmware), which describes the properties of the firmware file itself or data used to verify its integrity and correctness. In summary, saving the first CRC value as metadata in the voltage regulator firmware can avoid the need to recalculate the CRC value after the update. This simplifies the update process and reduces the use of computing resources.
[0078] like Figure 3 As shown, in a more specific embodiment, executing step S130 further specifically includes executing steps S131-S133:
[0079] S131, calculating the second CRC value after the voltage regulator firmware is burned through the power chip;
[0080] Specifically, after the voltage regulator firmware is burned, the power chip receives and processes the burned voltage regulator firmware data. The power chip has a built-in CRC calculation module, which performs CRC calculation on the received voltage regulator firmware data to generate a CRC value as the second CRC value.
[0081] S132, storing the second CRC value in the CRC check register;
[0082] Specifically, after the calculation is completed, the power chip will store the second CRC value in its internal CRC check register. The CRC check register is a special register in the power chip for storing CRC values for subsequent data integrity verification.
[0083] S133: Read the CRC check register through the BMC to obtain the second CRC value after actually burning.
[0084] Specifically, when the voltage regulator firmware data integrity needs to be verified, the BMC communicates with the power chip through a communication interface (such as I2C, SPI, etc.). The BMC sends a read instruction to the power chip to request to read the value in the CRC check register. After receiving the read instruction, the power chip sends the second CRC value in the CRC check register to the BMC.
[0085] like Figure 4As shown, in a more specific embodiment, executing step S140 further specifically includes executing steps S141-S142:
[0086] S141, after the BMC issues a shutdown command, the PSU power supply performs a restart operation after 10 seconds;
[0087] Specifically, when the BMC confirms that the first CRC value matches the second CRC value, that is, the voltage regulator firmware update is successful and the data integrity is verified, the BMC will issue an instruction to shut down the PSU power supply. After issuing the shutdown instruction, the BMC will start a timer and set it to 10 seconds to ensure that the PSU power supply has enough time to complete the shutdown operation and prepare for restart.
[0088] S142: After the PSU power supply is powered on, the power supply of the integrated circuit of the voltage regulator is powered off and restarted to make the updated firmware of the voltage regulator effective.
[0089] Specifically, after the timer expires, the PSU will perform a restart operation. This includes cutting off the current power supply and then restarting the power supply process. The restart operation ensures that the power supply system is restored to its initial state and provides a stable power supply environment for the updated voltage regulator firmware.
[0090] like Figure 5 As shown, in a more specific embodiment, executing step S150 further specifically includes executing steps S151-S152:
[0091] S151, sending an alarm through the BMC to notify the technician that an error has occurred in the update process;
[0092] Specifically, when the BMC detects that the first CRC value does not match the second CRC value, that is, there is data corruption or change during the voltage regulator firmware update process, the BMC will immediately send an alarm notification. The alarm notification can be sent in a variety of ways, such as system logs, emails, text messages, or phone notifications, to ensure that technicians can quickly learn that an error has occurred in the update process.
[0093] S152: Generate an error log through the BMC to record specific error information.
[0094] Specifically, while sending the alert notification, the BMC also generates a detailed error log. The error log records the specific process of the voltage regulator firmware update, timestamp, first CRC value, second CRC value and other key information, as well as possible error causes or prompts. This information is crucial for technicians to troubleshoot and repair.
[0095] like Figure 6As shown, in a more specific embodiment, the process of executing step S110 also includes security verification steps S111-S113:
[0096] S111, before updating the voltage regulator firmware, verifying the digital signature of the update package by the BMC to ensure the integrity and authenticity of the update package;
[0097] Specifically, before updating the voltage regulator firmware, you first need to prepare the relevant digital certificate and public key. The digital certificate usually contains the public key and identity information of the signer, which is used to verify the identity of the signer and the validity of the public key. The signature algorithm (such as RSA, ECDSA, etc.) and the signer's private key will perform signature calculation on the voltage regulator firmware package to be updated or its hash value to generate a digital signature. This process is essentially to encrypt the data (or its hash value), and only the signer with the corresponding private key can generate a valid signature.
[0098] S112, if the digital signature verification fails, the BMC reports an error and terminates the update process;
[0099] Specifically, on the BMC side, a hash function is used to hash the voltage regulator firmware package to be verified to generate a fixed-length hash value, which is then compared with the decrypted hash value to verify the integrity of the data. The BMC obtains the signature part in the voltage regulator firmware package, decrypts the signature using the signer's public key, and obtains the decrypted hash value. The decrypted hash value is compared with the hash value generated in the above steps. If the two are consistent, it means that the signature is valid and the voltage regulator firmware package has not been tampered with during transmission, thereby ensuring its integrity and authenticity; if they are inconsistent, it means that the signature verification has failed. At this time, the BMC will report an error and terminate the update process to prevent possible malicious or damaged firmware from being installed on the VR chip.
[0100] S113: If the digital signature verification succeeds, continue to execute the update operation of the voltage regulator firmware.
[0101] Specifically, if the digital signature verification is successful, the BMC will continue to execute the update operation of the voltage regulator firmware, including downloading the update package, verifying the update package, burning the firmware to the VR chip, and other steps.
[0102] like Figure 7 As shown, in a more specific embodiment, remote management steps S210-S230 are also included:
[0103] S210, sending an update instruction and a voltage regulator firmware update package to the BMC through a remote management system;
[0104] Specifically, the remote management system first establishes a communication connection with the BMC. The administrator sends an update instruction of the voltage regulator firmware to the BMC through the remote management system, and the instruction includes specific requirements and related information for the update. At the same time, the remote management system also sends an update package of the voltage regulator firmware to the BMC, and the update package includes a new firmware version and related files.
[0105] S220, automatically performing an update operation through the BMC;
[0106] Specifically, after receiving the update instruction and update package, the BMC first performs a check to ensure the integrity and correctness of the update package. After the check passes, the BMC automatically executes the update operation of the voltage regulator firmware according to the update instruction. This may include deleting the old firmware version, installing the new firmware version, and performing necessary configuration and initialization steps. During the update process, the BMC may monitor the update progress and take appropriate measures when encountering problems, such as retrying, rolling back, or notifying the administrator.
[0107] S230: receiving update status and result feedback through the remote management system during or after the update.
[0108] Specifically, during or after the update, the BMC sends update status and result feedback to the administrator through the remote management system. This feedback may include update progress, success or failure prompts, error codes or logs, etc. The administrator can view this information in real time through the remote management system to understand the update status in a timely manner and take corresponding measures.
[0109] Figure 8 is a schematic block diagram of a voltage regulator firmware automatic update device provided by an embodiment of the present application. Figure 8 As shown, corresponding to the above voltage regulator firmware automatic update method, the present application also provides a voltage regulator firmware automatic update device 200. The voltage regulator firmware automatic update device 200 includes a unit for executing the above voltage regulator firmware automatic update method, and the device can be configured in a desktop computer, a tablet computer, a laptop, and other terminals.
[0110] Specifically, see Figure 8 , the voltage regulator firmware automatic updating device 200 comprises:
[0111] An updating unit 210, used to update the voltage regulator firmware in the power chip through the BMC;
[0112] A first reading unit 220, configured to obtain a first CRC value from the updated voltage regulator firmware;
[0113] A second reading unit 230, configured to obtain a second CRC value from a CRC check register of the power chip;
[0114] A comparing unit 240, configured to compare the first CRC value with the second CRC value;
[0115] A first judgment unit 250 is configured to, if the first CRC value matches the second CRC value, cause the BMC to issue an instruction to shut down the PSU power supply and then restart it, so that the updated voltage regulator firmware takes effect;
[0116] The second judgment unit 260 is configured to, if the first CRC value does not match the second CRC value, cause the BMC to report an error and inform the voltage regulator that the firmware upgrade is unsuccessful.
[0117] In addition, more specifically, the command acquisition unit 210 includes a security verification unit, which is specifically used to: before updating the voltage regulator firmware, verify the digital signature of the update package through the BMC to ensure the integrity and authenticity of the update package; if the digital signature verification fails, the BMC reports an error and terminates the update process; if the digital signature verification succeeds, continue to execute the update operation of the voltage regulator firmware.
[0118] The first reading unit 220 is specifically used for: calculating the first CRC value before burning the voltage regulator firmware through the BMC; and saving the first CRC value as metadata in the voltage regulator firmware.
[0119] The second reading unit 230 is specifically used for: calculating the second CRC value after the voltage regulator firmware is burned through the power chip; storing the second CRC value in the CRC check register; reading the CRC check register through the BMC to obtain the second CRC value after the actual burning.
[0120] The first judgment unit 250 is specifically used for: after the BMC issues a shutdown command, the PSU power supply performs a restart operation after timing 10s; after the PSU power supply is powered on, the power supply of the integrated circuit of the voltage regulator performs a power-off restart operation to make the updated voltage regulator firmware effective.
[0121] The second judgment unit 260 is specifically used to: send an alarm through the BMC to notify the technician that an error has occurred in the update process; generate an error log through the BMC to record specific error information
[0122] Specifically, the voltage regulator firmware automatic update device 200 also includes a remote management unit, which is specifically used to: send update instructions and voltage regulator firmware update packages to the BMC through the remote management system; automatically perform update operations through the BMC; receive update status and result feedback through the remote management system during or after the update.
[0123] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned voltage regulator firmware automatic update device and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0124] The voltage regulator firmware automatic updating device 200 can be implemented in the form of a computer program. The computer program can be installed in a computer program such as Fig. 9 Runs on the computer device shown.
[0125] See also Fig. 9 , Fig. 9 300 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 300 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
[0126] See also Fig. 9 The computer device 300 includes a processor 302 , a memory and a network interface 305 connected via a system bus 301 , wherein the memory may include a non-volatile storage medium 303 and an internal memory 304 .
[0127] The non-volatile storage medium 303 can store an operating system 3031 and a computer program 3032. The computer program 3032 includes program instructions, and when the program instructions are executed, the processor 302 can execute a method for automatically updating the firmware of a voltage regulator.
[0128] The processor 302 is used to provide computing and control capabilities to support the operation of the entire computer device 300 .
[0129] The internal memory 304 provides an environment for the operation of the computer program 3032 in the non-volatile storage medium 303. When the computer program 3032 is executed by the processor 302, the processor 302 can execute a method for automatically updating the firmware of a voltage regulator.
[0130] The network interface 305 is used to communicate with other devices over the network. Fig. 9The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 300 to which the solution of the present application is applied. The specific computer device 300 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0131] It should be understood that in the embodiment of the present application, the processor 302 may be a central processing unit (CPU), and the processor 302 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0132] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0133] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps:
[0134] S110, updating the voltage regulator firmware in the power chip through the BMC;
[0135] S120, obtaining a first CRC value from the updated voltage regulator firmware;
[0136] S130, obtaining a second CRC value from a CRC check register of the power chip;
[0137] S140, comparing the first CRC value with the second CRC value;
[0138] S150: If the first CRC value matches the second CRC value, the BMC issues an instruction to shut down the PSU power supply and then restart it, so that the updated voltage regulator firmware takes effect;
[0139] S160: If the first CRC value does not match the second CRC value, the BMC reports an error and informs the voltage regulator that the firmware upgrade is unsuccessful.
[0140] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0141] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0142] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0143] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present application.
[0145] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for automatically updating voltage regulator firmware, characterized in that: The following steps are involved: Update the voltage regulator firmware in the power chip through the BMC; Obtaining a first CRC value from the updated voltage regulator firmware; Obtaining a second CRC value from a CRC check register of the power chip; Comparing the first CRC value with the second CRC value; If the first CRC value matches the second CRC value, the BMC issues an instruction to shut down the PSU power supply and then restart it to make the updated voltage regulator firmware effective; If the first CRC value does not match the second CRC value, the BMC reports an error and informs the voltage regulator that the firmware upgrade is unsuccessful.
2. The voltage regulator firmware automatic update method according to claim 1, characterized in that: The step of obtaining a first CRC value from the updated voltage regulator firmware comprises: Calculating, by the BMC, the first CRC value before the voltage regulator firmware is burned; The first CRC value is saved as metadata in the voltage regulator firmware.
3. The voltage regulator firmware automatic update method according to claim 1, characterized in that: The step of obtaining a second CRC value from the CRC check register of the power chip comprises: Calculating the second CRC value after the voltage regulator firmware is burned through the power chip; Storing the second CRC value in the CRC check register; The CRC check register is read through the BMC to obtain the second CRC value after actual burning.
4. The method for automatically updating voltage regulator firmware according to claim 1, characterized in that: If the first CRC value matches the second CRC value, the BMC issues an instruction to shut down the PSU power supply and then restart it to make the updated voltage regulator firmware effective, the step includes: After the BMC issues a shutdown command, the PSU power supply performs a restart operation after 10 seconds; After the PSU power supply is powered on, the power supply of the integrated circuit of the voltage regulator performs a power-off restart operation to make the updated firmware of the voltage regulator effective.
5. The voltage regulator firmware automatic update method according to claim 1, characterized in that: If the first CRC value does not match the second CRC value, the step of the BMC reporting an error and informing the voltage regulator that the firmware upgrade is unsuccessful includes: Sending an alert through the BMC to notify a technician that an error has occurred during the update process; An error log is generated by the BMC to record specific error information.
6. The voltage regulator firmware automatic update method according to claim 1, characterized in that: The method further comprises a safety verification step during the process of updating the voltage regulator firmware, the step comprising: Before updating the voltage regulator firmware, verifying the digital signature of the update package by the BMC to ensure the integrity and authenticity of the update package; If the digital signature verification fails, the BMC reports an error and terminates the update process; If the digital signature verification is successful, the update operation of the voltage regulator firmware continues.
7. The method for automatically updating the voltage regulator firmware according to any one of claims 1 to 6, characterized in that: The method further comprises a remote management step, the step comprising: Sending an update instruction and a voltage regulator firmware update package to the BMC via a remote management system; Automatically perform an update operation through the BMC; During or after the update, the update status and result feedback are received through the remote management system.
8. A voltage regulator firmware automatic update device, characterized in that: The device comprises: An update unit, used to update the voltage regulator firmware in the power chip through the BMC; A first reading unit, configured to obtain a first CRC value from the updated firmware of the voltage regulator; A second reading unit, used for obtaining a second CRC value from a CRC check register of the power chip; a comparing unit, configured to compare the first CRC value with the second CRC value; A first judgment unit, configured to, if the first CRC value matches the second CRC value, cause the BMC to issue an instruction to shut down and restart the PSU power supply so that the updated voltage regulator firmware takes effect; The second judgment unit is configured to, if the first CRC value does not match the second CRC value, cause the BMC to report an error and inform the voltage regulator that the firmware upgrade is unsuccessful.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 7 can be implemented.