Server firmware refreshing method and device, equipment and medium

By establishing a communication link between the server and the mobile platform and establishing a specific communication link within the server, automatic refresh and real-time monitoring of the server firmware are realized, and the problems of firmware refresh dependence and operation and maintenance costs in the existing technology are solved, improving efficiency and security.

CN119847569APending Publication Date: 2025-04-18INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510120694.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The existing server firmware refresh method depends on the stability of the BMC and the normal operation of the operating system, and the operation steps are complicated, with security risks and high operation and maintenance costs.

Method used

By establishing a communication link between the target server and the preset mobile platform, establishing a serial communication link between the server motherboard and the read-only memory chip of the target component, establishing a serial computer extension bus link between the interface and the target component, realizing the automatic transmission of firmware upgrade packages and the execution of refresh scripts, and monitoring the refresh progress and results in real time.

Benefits of technology

It simplifies the update and maintenance process of server firmware, reduces operation and maintenance costs and complexity, improves the efficiency and security of firmware refresh, and users can intuitively monitor the real-time status of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847569A_ABST
    Figure CN119847569A_ABST
Patent Text Reader

Abstract

The invention discloses a server firmware refreshing method and device, equipment and a medium, relates to the technical field of server management, and is applied to a target server, a first communication link is established between the target server and a mobile platform, and a second communication link is established between a mainboard of the target server and a read-only memory chip of a built-in target component. A third communication link is established between the interface of the target server and a target component installed on the target server, and the method comprises the following steps: acquiring a firmware upgrade package uploaded by the mobile platform through the first communication link, and storing the firmware upgrade package to a target position; after a refreshing instruction sent by the mobile platform is obtained, a target refreshing script deployed locally in advance is executed, and firmware upgrading data are sent to each target component through the second communication link and each target component through the third communication link in sequence according to a specified refreshing sequence to complete refreshing operation; and sending the current refreshing progress and the refreshing result detected in real time to a display screen for displaying.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server management, and in particular to a server firmware refresh method, device, equipment and medium. Background Art

[0002] With the popularization of cloud computing and big data technology, the number and scale of servers are increasing, and the demand for server monitoring and management is also growing. Because different server brands, models, and operating systems may differ, and server hardware and software are constantly being upgraded and updated. Therefore, when refreshing server firmware, it is necessary to consider the differences between different server models, brands, and operating systems to achieve unified management and operation of diverse servers.

[0003] Currently, there are two main methods: flashing firmware out of band through BMC (Baseboard Management Controller) and flashing firmware in band through flashing software under OS (Operating System). Among them, flashing firmware out of band through BMC is highly dependent on the stability and normal operation of BMC firmware. Once there is a problem or failure in BMC, the firmware cannot be flashed, which may cause difficulties in server maintenance and update. Since BMC is part of server hardware, its failure may not only be limited to software problems, but may also involve hardware failure. In this case, if the firmware cannot be flashed through BMC, other methods may need to be taken to repair or replace the faulty BMC, which may be more complicated and time-consuming. In addition, the operation steps of flashing firmware out of band through BMC are relatively complicated and require certain technical knowledge and experience. For administrators, it may take extra time and effort to learn and master this process. On the other hand, when the operating system is down or crashed, it is impossible to log in to the system normally, and it is impossible to flash the firmware. In this case, other methods may need to be taken to repair or replace the faulty operating system, which may be more complicated and time-consuming. In addition, there are certain risks in flashing firmware in-band through the operating system. After logging into the system, full permissions of the operating system are usually obtained, which may allow unauthorized users or malicious software to access and operate the system, thereby posing security risks and potential threats of data leakage.

[0004] In summary, how to improve the refresh efficiency of server firmware and reduce server operation and maintenance costs and time costs are issues that need to be resolved. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a server firmware refresh method, device, equipment and medium, which can improve the refresh efficiency of server firmware and reduce server operation and maintenance costs and time costs. The specific scheme is as follows:

[0006] In a first aspect, the present application discloses a server firmware refresh method, which is applied to a target server, wherein a first communication link is established between the target server and a preset mobile platform, a second communication link is established between a mainboard of the target server and a read-only memory chip of a target component built into the target server, and a third communication link is established between an interface of the target server and a target component installed on the target server, including:

[0007] Acquire a firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to a target location;

[0008] After obtaining the refresh instruction sent by the mobile platform, executing the target refresh script pre-deployed locally, so as to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in a prescribed refresh order to complete the refresh operation;

[0009] The current refresh progress and refresh result are detected in real time, and the current refresh progress and the refresh result are sent to a preset display screen for display.

[0010] Optionally, the first communication link is a communication link established based on a local area network, a wireless local area network, Bluetooth or a virtual private network, the second communication link is a communication link established based on a two-wire serial communication bus, a serial peripheral interface or a keyboard controller style, the third communication link is a communication link established based on a two-wire serial communication bus or a high-speed serial computer expansion bus, the target components include a baseboard management controller, a basic input and output system, a complex programmable logic device and a voltage regulator, and the target parts include a network card, a disk array card and a hard disk drive.

[0011] Optionally, after the second communication link and the third communication link are established, the method further includes:

[0012] Testing the second communication link and the third communication link based on preset test rules; wherein the preset test rules include a first test rule set based on a connectivity test, a second test rule set based on a signal quality test, and a third test rule set based on a transmission rate test;

[0013] Obtain link test results, and determine whether the link test results are used to characterize the test passing; wherein, under the first test rule, use the test device to send a test instruction to the corresponding device through the second communication link and the third communication link, and if a response message of the device to the test instruction is obtained, it is determined that the connectivity test has passed; under the second test rule, use an oscilloscope to detect the signal level parameters in the second communication link and the third communication link, and if the signal level parameters are within a preset range, it is determined that the signal quality test has passed; under the third test rule, obtain the signal transmission rate in the second communication link and the third communication link, and if the signal transmission rate is not lower than a preset rate threshold, it is determined that the transmission rate test has passed;

[0014] If the link test result is used to indicate that all tests have passed, the step of sending the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in accordance with the prescribed refresh order is allowed to be executed.

[0015] Optionally, the process of detecting the current refresh progress and refresh result in real time further includes:

[0016] If it is detected that any target component or any target part fails to be refreshed, the number of failures is recorded, and the firmware upgrade data in the firmware upgrade package is resent to the any target component or any target part to complete the refresh operation;

[0017] If the number of failures exceeds a preset number threshold, an alarm message is sent to a preset management client.

[0018] Optionally, the target refresh script is pre-set with a target list for determining the refresh order between each of the target components and each of the target parts, and the target refresh script is configured with a firmware version detection function, a data backup function, a data decompression function and a firmware refresh function.

[0019] Optionally, executing a target refresh script pre-deployed locally to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in a specified refresh order to complete the refresh operation includes:

[0020] Execute the target refresh script pre-deployed locally, and check whether the version number corresponding to the firmware upgrade package meets the compatibility condition. If so, back up the database file and configuration file;

[0021] Decompress the firmware upgrade package, and obtain the refresh order between each target component and each target part from the target list, so as to send the firmware upgrade data in the firmware upgrade package to each target component through the second communication link and to each target part through the third communication link in sequence according to the refresh order to complete the refresh operation.

[0022] Optionally, the read-only memory chip of the target component is also connected to the display screen via the second communication link, and the target component is also connected to the display screen via the third communication link.

[0023] In a second aspect, the present application discloses a server firmware refresh device, which is applied to a target server, wherein a first communication link is established between the target server and a preset mobile platform, a second communication link is established between a mainboard of the target server and a read-only memory chip of a target component built into the target server, and a third communication link is established between an interface of the target server and a target component installed on the target server, wherein the device comprises:

[0024] An upgrade package storage module, used to obtain the firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to a target location;

[0025] A refresh module, configured to execute a target refresh script pre-deployed locally after acquiring a refresh instruction sent by the mobile platform, so as to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in a prescribed refresh order to complete the refresh operation;

[0026] The display module is used to detect the current refresh progress and refresh result in real time, and send the current refresh progress and the refresh result to a preset display screen for display.

[0027] In a third aspect, the present application discloses an electronic device, comprising:

[0028] Memory, used to store computer programs;

[0029] The processor is used to execute the computer program to implement the steps of the aforementioned disclosed server firmware refresh method.

[0030] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed server firmware refresh method are implemented.

[0031] It can be seen that the present application discloses a server firmware refresh method applied to a target server, wherein a first communication link is established between the target server and a preset mobile platform, a second communication link is established between the mainboard of the target server and a read-only memory chip of a built-in target component of the target server, and a third communication link is established between the interface of the target server and a target component installed on the target server. The method comprises: obtaining a firmware upgrade package uploaded by the mobile platform through the first communication link, and storing the firmware upgrade package to a target location; after obtaining the refresh instruction sent by the mobile platform, executing a target refresh script pre-deployed locally to send the firmware upgrade data in the firmware upgrade package to each of the target components and to each of the target components through the second communication link in a prescribed refresh order and through the third communication link to complete the refresh operation; detecting the current refresh progress and refresh result in real time, and sending the current refresh progress and refresh result to a preset display screen for display.

[0032] Beneficial effects: The present application establishes a first communication link between the target server and the preset mobile platform in advance, a second communication link between the mainboard of the target server and the read-only memory chip of the built-in target component of the target server, and a third communication link between the interface of the target server and the target component installed on the target server to support data transmission during the firmware refresh process and provide hardware conditions. When the server firmware is refreshed, the target server first needs to obtain the firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to the target location. Further, the mobile platform will send a refresh instruction to the target server, and the target server has a target refresh script pre-deployed locally. Therefore, after receiving the refresh instruction, the target server executes the target refresh script and sends the firmware upgrade data in the firmware upgrade package to each target component and to each target component through the second communication link and through the third communication link in accordance with the prescribed refresh order to complete the refresh operation. That is, in this process, the mobile platform only needs to send a refresh instruction with one click, and the target server can execute the target refresh script to complete the refresh of each component and part, making the server firmware update and maintenance simpler and faster, greatly reducing the maintenance cost and complexity. In addition, the present application will also detect the current refresh progress and refresh results in real time, and send the current refresh progress and refresh results to a preset display screen for display, so that users can intuitively understand the real-time status of the server, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0034] Figure 1 A flow chart of a server firmware refresh method disclosed in this application;

[0035] Figure 2 A schematic diagram of a specific server connection relationship disclosed in this application;

[0036] Figure 3 This is a schematic diagram of the structure of a server firmware refresh device disclosed in this application;

[0037] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 making creative work are within the scope of protection of the present invention.

[0039] Currently, there are two methods: refreshing firmware out of BMC band and refreshing firmware in-band by refreshing software under OS. Among them, refreshing firmware out of BMC band is highly dependent on the stability and normal operation of BMC firmware. Once BMC has problems or failures, firmware refreshing cannot be performed, which may cause difficulties in server maintenance and update. Since BMC is part of server hardware, its failure may not only be limited to software problems, but may also involve hardware failures. In this case, if firmware refreshing cannot be performed through BMC, other methods may need to be taken to repair or replace the faulty BMC, which may be more complicated and time-consuming. In addition, the operation steps of refreshing firmware out of BMC band are relatively complicated and require certain technical knowledge and experience. For administrators, it may take extra time and effort to learn and master this process. On the other hand, when the operating system is down or crashes, it is impossible to log in to the system normally, and it is impossible to refresh the firmware. In this case, other methods may need to be taken to repair or replace the faulty operating system, which may be more complicated and time-consuming. In addition, there are certain risks in flashing firmware in-band through the operating system. After logging into the system, full permissions of the operating system are usually obtained, which may allow unauthorized users or malicious software to access and operate the system, thereby posing security risks and potential threats of data leakage.

[0040] To this end, the embodiments of the present application disclose a server firmware refresh method, device, equipment and medium, which can improve the refresh efficiency of server firmware and reduce server operation and maintenance costs and time costs.

[0041] See also Figure 1 As shown, the embodiment of the present application discloses a server firmware refresh method, which is applied to a target server, wherein a first communication link is established between the target server and a preset mobile platform, a second communication link is established between a mainboard of the target server and a read-only memory chip of a target component built into the target server, and a third communication link is established between an interface of the target server and a target component installed on the target server. The method comprises:

[0042] Step S11: Acquire the firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to a target location.

[0043] In this embodiment, a first communication link is established in advance between the target server and a preset mobile platform, a second communication link is established between the mainboard of the target server and the read-only memory chip of the target component built into the target server, and a third communication link is established between the interface of the target server and the target component installed on the target server to support data transmission during the firmware refresh process and provide hardware conditions.

[0044] It is understandable that, since the mobile platform needs to communicate with the server, it is necessary to establish a first communication link between the target server and the mobile platform. Among them, the first communication link is a communication link established based on a local area network, a wireless local area network, Bluetooth or a virtual private network. In a specific implementation, the installed client application is started on the mobile platform, and the server software is installed and configured on the server. Then, the appropriate communication method can be selected according to the current network environment, such as LAN (Local Area Network), WiFi, Bluetooth; if it is in the same local area network, it is recommended to select LAN or WiFi to increase the transmission speed; if cross-segment transmission or remote operation is required, Bluetooth or other VPN (Virtual Private Network) technology can be considered.

[0045] Further, connect the client to the server: enter the IP address, port number and possible authentication information (such as user name and password) of the server in the client to establish a connection with the server. After the connection is successful, find the file upload function in the client interface and upload the firmware upgrade package to the storage location specified by the server through the first communication link. During the upload process, please keep the network connection between the mobile platform and the server stable.

[0046] It can also be pointed out that when the mobile platform transmits the firmware upgrade package to the server, an encrypted transmission method can be adopted to ensure the security of the data, which helps to prevent the leakage of sensitive information and unauthorized access, and improves the security of the entire system.

[0047] In addition, this embodiment needs to open up the connection channels between various components on the server hardware. Among them, the second communication link is a communication link established based on a two-wire serial communication bus, a serial peripheral interface or a keyboard controller style, and the third communication link is a communication link established based on a two-wire serial communication bus or a high-speed serial computer expansion bus. The target components include a baseboard management controller, a basic input and output system, a complex programmable logic device and a voltage regulator, and the target components include a network card, a disk array card and a hard disk drive. That is, the embodiment of the present application uses communication protocols such as I2C (Inter-Integrated Circuit, two-wire serial communication bus), SPI (Serial Peripheral Interface, serial peripheral interface) or KCS (Keyboard Controller Style, keyboard controller style) to connect the rom (Read-Only Memory) chips of target components such as BMC (Baseboard Management Controller, baseboard management controller), BIOS (Basic Input / Output System, basic input and output system), CPLD (Complex Programmable Logic Device, complex programmable logic device), VR (Voltage Regulator, voltage regulator) to the server motherboard. These channels not only need to support data transmission, but also need to ensure stability and reliability so that there will be no communication interruptions or errors during the firmware refresh process. In addition, target components such as network cards, RAID (Redundant Arrays of Independent Disks) cards, HDD (Hard Disk Drive) and other target components need to be connected to the server interface, which is usually achieved through channels such as I2C or PCIE (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard), which need to have high bandwidth and transmission rate to support the large amount of data transmission required during the firmware refresh process.

[0048] It should be pointed out that after the second communication link and the third communication link are established, a series of tests and verifications are required to ensure that the communication between the various components is normal and stable, specifically including: testing the second communication link and the third communication link based on preset test rules; wherein the preset test rules include a first test rule based on a connectivity test setting, a second test rule based on a signal quality test setting, and a third test rule based on a transmission rate test setting; obtaining link test results, and determining whether the link test results are used to characterize a pass in the test; wherein, under the first test rule, a test device is used to send a test instruction to the corresponding device through the second communication link and the third communication link, and if the device obtains the test result for the test, the test instruction is sent to the corresponding device through the second communication link and the third communication link. If a response message of the test instruction is received, the connectivity test is determined to have passed; under the second test rule, an oscilloscope is used to detect the signal level parameters in the second communication link and the third communication link, and if the signal level parameters are within a preset range, the signal quality test is determined to have passed; under the third test rule, the signal transmission rate in the second communication link and the third communication link is obtained, and if the signal transmission rate is not lower than a preset rate threshold, the transmission rate test is determined to have passed; if the link test result is used to characterize that all tests have passed, the step of sending the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in accordance with the prescribed refresh order is allowed to be executed.

[0049] That is, the link can be tested from aspects such as connectivity, signal quality, and transmission rate. At the same time, it is also necessary to ensure that these links can remain stable during the firmware refresh process, and to ensure the integrity and consistency of the data. Among them, when performing a connectivity test, a special test device can be used to send a test instruction to the corresponding device through the second communication link and the third communication link. If a response message of the device to the test instruction is obtained, the connectivity test is determined to be passed; when performing a signal quality test, an oscilloscope is used to detect the signal level parameters in the second communication link and the third communication link, such as the amplitude, rise time, fall time, duty cycle, etc. of the signal. If the signal level parameters are within a preset range, the signal quality test is determined to be passed, for example, these parameters are compared with the standard values ​​of the corresponding communication protocol to determine whether the signal quality is qualified; when performing a transmission rate test, the signal transmission rate in the second communication link and the third communication link is obtained in real time. If the signal transmission rate is not lower than the preset rate threshold, the transmission rate test is determined to be passed. Only when all the above tests are passed, the subsequent steps are allowed to be executed.

[0050] In addition to the above-mentioned tests on connectivity, signal quality, and transmission rate, data integrity can also be tested. Specifically, the firmware file can be checked and calculated before and after the firmware transmission, such as calculating the CRC (Cyclic Redundancy Check) checksum. Then compare the checksum values ​​before and after the transmission. If the two are inconsistent, it means that an error occurred during the data transmission process, and the data may be lost or tampered with due to unstable channels. In addition, after the firmware refresh is completed, the functions of each component can also be tested. For example, for the network card, test whether its network connection function is normal; for the BIOS, check whether the system starts normally and whether the settings are correct. If the function of a component is abnormal, it may be necessary to recheck its firmware refresh process and the stability of the connection channel.

[0051] Step S12: After obtaining the refresh instruction sent by the mobile platform, execute the target refresh script pre-deployed locally to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in accordance with the prescribed refresh order to complete the refresh operation.

[0052] In this embodiment, the mobile platform will send a refresh instruction to the target server, and the target server has a target refresh script pre-deployed locally. Therefore, after receiving the refresh instruction, the target server executes the target refresh script and sends the firmware upgrade data in the firmware upgrade package to each target component through the second communication link and to each target component through the third communication link in accordance with the specified refresh order to complete the refresh operation. That is, in this process, the mobile platform only needs to send the refresh instruction with one click, and the target server can execute the target refresh script to complete the refresh of each component and part, making the server firmware update and maintenance simpler and faster, greatly reducing the maintenance cost and complexity.

[0053] In a specific implementation, first find the refresh command function in the client application of the mobile platform, select the uploaded firmware upgrade package and confirm to execute the refresh operation. At this time, the client will send the refresh command and related parameters to the server. After receiving the refresh command from the client, the server software will verify the legitimacy and integrity of the command and prepare to execute the customized target refresh script.

[0054] Specifically, the above-mentioned target refresh script is pre-set with a target list for determining the refresh order between each target component and each target part, and the target refresh script is configured with a firmware version detection function, a data backup function, a data decompression function and a firmware refresh function. It can be understood that the present application writes a custom refresh script based on the operating system and firmware characteristics of the server. This script can be implemented based on programming languages ​​such as Python or Shell. First, it is necessary to define a list of components and parts that need to be refreshed, as well as corresponding refresh commands and refresh orders. Then a loop structure can be used to traverse these lists and perform refresh operations on each component or part in turn. For components such as BMC, BIOS, CPLD and VR, and components such as network cards, RAID cards and HDDs, corresponding refresh commands or tools can be used for refresh. These commands or tools may need to be accessed through a specific interface or network connection when the server is started, such as through IPMI (Intelligent Platform Management Interface) or remote management tools. In the script, the corresponding command or tool needs to be used to perform the refresh operation, and after the operation is completed, check whether the refresh result is successful.

[0055] In addition, the script must also have the functions of checking the firmware version, backing up important data, decompressing the firmware package, executing the firmware installation command, and recording the refresh progress and possible error information during the whole process. And before formal deployment, the script needs to be fully tested in the test environment to ensure that it can be executed correctly and achieve the expected effect in various situations. After the test is correct, the script is deployed to the server and it is ensured that the server software can recognize and execute the script.

[0056] In addition, you need to deploy the written custom script and the image file required for flashing to the USB storage device. This can be achieved by writing a batch file or script, copying all the required files to the USB storage device, and setting it as a startup item.

[0057] In a specific implementation, the above-mentioned execution of a target refresh script pre-deployed locally, so as to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in accordance with a prescribed refresh order to complete the refresh operation, includes: executing the target refresh script pre-deployed locally, and checking whether the version number corresponding to the firmware upgrade package meets the compatibility condition, and if so, backing up the database file and the configuration file; decompressing the firmware upgrade package, and obtaining the refresh order between each of the target components and each of the target components from the target list, so as to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in accordance with the refresh order to complete the refresh operation.

[0058] That is, when the server executes the target refresh script, it first checks the firmware version and compatibility, and then backs up important data, such as databases, configuration files, etc. After the backup is completed, the script will decompress the firmware package and prepare to install the new firmware. Specifically, the refresh order between each target component and each target part is obtained from the target list, so as to send the firmware upgrade data in the firmware upgrade package to each target component through the second communication link and to each target part through the third communication link in accordance with the refresh order to complete the refresh operation.

[0059] Step S13: Detect the current refresh progress and refresh result in real time, and send the current refresh progress and the refresh result to a preset display screen for display.

[0060] In this embodiment, the current refresh progress and refresh result are detected in real time, and sent to a preset display screen for display, so that the user can intuitively understand the real-time status of the server, improving the user experience. The display screen can be an intelligent LCD display configured on the front panel of the server, that is, an LCD display is set on the front panel of the server to display the refresh progress and refresh result. When the execution of the script is completed or fails, the result needs to be displayed on the display screen and fed back to the client of the mobile platform.

[0061] The process of real-time detection of the current refresh progress and refresh results also includes: if it is detected that any target component or any target part fails to refresh, the number of failures is recorded, and the firmware upgrade data in the firmware upgrade package is resent to any target component or any target part to complete the refresh operation; if the number of failures exceeds the preset number threshold, an alarm message is sent to the preset management client. It can be understood that in the refresh process, real-time monitoring of the refresh results is very important. If the refresh fails, the script needs to trigger the corresponding remedial measures. Retrying the refresh can increase the probability of success, and notifying the administrator for manual repair can intervene in time when complex problems arise. For example, if an error occurs during the refresh process of a component or part, the script can automatically try to refresh several times. If the number of failures exceeds the preset number threshold, a notification is sent to the administrator, and the administrator can solve the problem through further diagnosis and operation.

[0062] It should be noted that the read-only memory chip of the target component is also connected to the display screen via the second communication link, and the target component is also connected to the display screen via the third communication link. That is, the application also needs to connect the physical link of the components and firmware to the display screen to ensure that these firmware or components can be accessed through I2C or PCIE. The server is deployed in the display screen to ensure that the client of the mobile platform can interact with it through the network, WiFi, Bluetooth, etc., and transmit data.

[0063] It can be seen that the present application pre-establishes a first communication link between the target server and the preset mobile platform, a second communication link between the mainboard of the target server and the read-only memory chip of the built-in target component of the target server, and a third communication link between the interface of the target server and the target component installed on the target server to support data transmission during the firmware refresh process and provide hardware conditions. When the server firmware is refreshed, the target server first needs to obtain the firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to the target location. Further, the mobile platform will send a refresh instruction to the target server, and the target server has a target refresh script pre-deployed locally. Therefore, after receiving the refresh instruction, the target server executes the target refresh script and sends the firmware upgrade data in the firmware upgrade package to each target component and to each target component through the second communication link and through the third communication link in accordance with the prescribed refresh order to complete the refresh operation. That is, in this process, the mobile platform only needs to send a refresh instruction with one click, and the target server can execute the target refresh script to complete the refresh of each component and part, making the server firmware update and maintenance simpler and faster, greatly reducing the maintenance cost and complexity. In addition, the present application will also detect the current refresh progress and refresh results in real time, and send the current refresh progress and refresh results to a preset display screen for display, so that users can intuitively understand the real-time status of the server, thereby improving the user experience.

[0064] See also Figure 2 As shown, the following introduces the preparation of the system environment:

[0065] 1. Mobile platform configuration

[0066] Hardware requirements: Choose a smartphone or tablet that supports Android or iOS as the mobile platform, and ensure that the device has a stable network connection (such as 4G / 5G, WiFi) and sufficient storage space.

[0067] Software installation: Install a dedicated client application on the mobile platform. The application must support multiple communication protocols such as LAN, WiFi, Bluetooth, etc., and have basic functions such as file upload and download, command sending, etc. At the same time, ensure that the application has a good user interface and operating experience.

[0068] 2. Server Configuration

[0069] Hardware preparation: Choose a server with stable performance and configure CPU, memory, hard disk and other hardware resources according to actual needs. In particular, a high-resolution LCD screen should be installed on the server to intuitively display the server status and operation prompts. The use of smart LCD displays makes server management more convenient and user-friendly. Users can understand the real-time status of the server through an intuitive interface and operate as needed. This user-friendly design improves the user experience.

[0070] Operating system installation: Install a stable operating system such as Linux or Windows Server on the server, and configure network settings to ensure that the server can access the LAN or the Internet.

[0071] Server software deployment: Install and configure the server software, which must support receiving file uploads and command execution from the mobile platform, and be able to execute custom refresh scripts. At the same time, ensure that the server software can be integrated with the LCD screen to display the system status and refresh progress in real time. By integrating firmware upload, download, refresh operations and other functions in the server software, the firmware update and maintenance of the server becomes simpler and faster. Administrators can complete firmware upgrades through the network or wirelessly without having to be on site, greatly reducing maintenance costs and complexity.

[0072] 3. The client accesses the server manufacturer's official website

[0073] Open the browser: Open the browser on the mobile platform and enter the URL (Uniform Resource Locator) address of the server manufacturer's official website.

[0074] Login account: If the official website requires user authentication, enter the correct username and password to log in. Some manufacturers may also require secondary authentication methods such as mobile phone verification code or email link.

[0075] Find firmware resources: After logging in successfully, search for the firmware resources of the corresponding server in the resource download area or technical support page of the official website. Be careful to select the correct firmware version and model to avoid upgrade failure due to incompatibility.

[0076] 4. Client downloads firmware

[0077] Click Download: After finding the firmware upgrade package, click the Download button to start downloading. During the download process, you need to ensure that the mobile platform is in a stable network connection state to avoid download interruption or file damage.

[0078] Save file: After downloading, save the firmware upgrade package to the specified folder of the mobile platform for subsequent upload to the server.

[0079] See also Figure 3 As shown, the embodiment of the present application discloses a server firmware refresh device, which is applied to a target server, wherein a first communication link is established between the target server and a preset mobile platform, a second communication link is established between a mainboard of the target server and a read-only memory chip of a target component built into the target server, and a third communication link is established between an interface of the target server and a target component installed on the target server, wherein the device comprises:

[0080] An upgrade package storage module 11, used to obtain the firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to a target location;

[0081] A refresh module 12 is used to execute a target refresh script pre-deployed locally after acquiring a refresh instruction sent by the mobile platform, so as to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in a prescribed refresh order to complete the refresh operation;

[0082] The display module 13 is used to detect the current refresh progress and refresh result in real time, and send the current refresh progress and the refresh result to a preset display screen for display.

[0083] It can be seen that the present application pre-establishes a first communication link between the target server and the preset mobile platform, a second communication link between the mainboard of the target server and the read-only memory chip of the built-in target component of the target server, and a third communication link between the interface of the target server and the target component installed on the target server to support data transmission during the firmware refresh process and provide hardware conditions. When the server firmware is refreshed, the target server first needs to obtain the firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to the target location. Further, the mobile platform will send a refresh instruction to the target server, and the target server has a target refresh script pre-deployed locally. Therefore, after receiving the refresh instruction, the target server executes the target refresh script and sends the firmware upgrade data in the firmware upgrade package to each target component and to each target component through the second communication link and through the third communication link in accordance with the prescribed refresh order to complete the refresh operation. That is, in this process, the mobile platform only needs to send a refresh instruction with one click, and the target server can execute the target refresh script to complete the refresh of each component and part, making the server firmware update and maintenance simpler and faster, greatly reducing the maintenance cost and complexity. In addition, the present application will also detect the current refresh progress and refresh results in real time, and send the current refresh progress and refresh results to a preset display screen for display, so that users can intuitively understand the real-time status of the server, thereby improving the user experience.

[0084] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the embodiments of the method part, which will not be described here. Moreover, the method has the same beneficial effects as the server firmware refresh method of the disk array card mentioned above.

[0085] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the server firmware refresh method performed by the electronic device disclosed in any of the aforementioned embodiments.

[0086] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0087] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0088] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.

[0089] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the server firmware refresh method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.

[0090] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the server firmware refresh method steps disclosed in any of the aforementioned embodiments are implemented.

[0091] Furthermore, an embodiment of the present application also discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the server firmware refresh method disclosed in any of the aforementioned embodiments.

[0092] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0093] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with 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. Those skilled in the art may 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.

[0094] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a compact disc read-only memory (CD-ROM), or any other form of storage medium known in the art.

[0095] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0096] The above is a detailed introduction to a server firmware refresh method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A server firmware refresh method, characterized in that: Applied to a target server, a first communication link is established between the target server and a preset mobile platform, a second communication link is established between a mainboard of the target server and a read-only memory chip of a target component built into the target server, and a third communication link is established between an interface of the target server and a target component installed on the target server, the method comprising: Acquire a firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to a target location; After obtaining the refresh instruction sent by the mobile platform, executing the target refresh script pre-deployed locally, so as to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in a prescribed refresh order to complete the refresh operation; The current refresh progress and refresh result are detected in real time, and the current refresh progress and the refresh result are sent to a preset display screen for display.

2. The server firmware updating method according to claim 1, characterized in that: The first communication link is a communication link established based on a local area network, a wireless local area network, Bluetooth or a virtual private network, the second communication link is a communication link established based on a two-wire serial communication bus, a serial peripheral interface or a keyboard controller style, the third communication link is a communication link established based on a two-wire serial communication bus or a high-speed serial computer expansion bus, the target components include a baseboard management controller, a basic input and output system, a complex programmable logic device and a voltage regulator, and the target parts include a network card, a disk array card and a hard disk drive.

3. The server firmware updating method according to claim 1, characterized in that: After the second communication link and the third communication link are established, the method further includes: Testing the second communication link and the third communication link based on preset test rules; wherein the preset test rules include a first test rule set based on a connectivity test, a second test rule set based on a signal quality test, and a third test rule set based on a transmission rate test; Obtain link test results, and determine whether the link test results are used to characterize the test passing; wherein, under the first test rule, use the test device to send a test instruction to the corresponding device through the second communication link and the third communication link, and if a response message of the device to the test instruction is obtained, it is determined that the connectivity test has passed; under the second test rule, use an oscilloscope to detect the signal level parameters in the second communication link and the third communication link, and if the signal level parameters are within a preset range, it is determined that the signal quality test has passed; under the third test rule, obtain the signal transmission rate in the second communication link and the third communication link, and if the signal transmission rate is not lower than a preset rate threshold, it is determined that the transmission rate test has passed; If the link test result is used to indicate that all tests have passed, the step of sending the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in accordance with the prescribed refresh order is allowed to be executed.

4. The server firmware updating method according to claim 1, characterized in that: The process of real-time detection of the current refresh progress and refresh result also includes: If it is detected that any target component or any target part fails to be refreshed, the number of failures is recorded, and the firmware upgrade data in the firmware upgrade package is resent to the any target component or any target part to complete the refresh operation; If the number of failures exceeds a preset number threshold, an alarm message is sent to a preset management client.

5. The server firmware updating method according to claim 1, characterized in that: The target refresh script is pre-set with a target list for determining the refresh order between each target component and each target part. The target refresh script is configured with a firmware version detection function, a data backup function, a data decompression function and a firmware refresh function.

6. The server firmware updating method according to claim 5, characterized in that: The executing of the target refresh script pre-deployed locally to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in a prescribed refresh order to complete the refresh operation includes: Execute the target refresh script pre-deployed locally, and check whether the version number corresponding to the firmware upgrade package meets the compatibility condition. If so, back up the database file and configuration file; Decompress the firmware upgrade package, and obtain the refresh order between each target component and each target part from the target list, so as to send the firmware upgrade data in the firmware upgrade package to each target component through the second communication link and to each target part through the third communication link in sequence according to the refresh order to complete the refresh operation.

7. The server firmware updating method according to any one of claims 1 to 6, characterized in that: The read-only memory chip of the target component is also connected to the display screen via the second communication link, and the target component is also connected to the display screen via the third communication link.

8. A server firmware updating device, characterized in that: Applied to a target server, a first communication link is established between the target server and a preset mobile platform, a second communication link is established between a mainboard of the target server and a read-only memory chip of a target component built into the target server, and a third communication link is established between an interface of the target server and a target component installed on the target server, the device comprising: An upgrade package storage module, used to obtain the firmware upgrade package uploaded by the mobile platform through the first communication link, and store the firmware upgrade package to a target location; A refresh module, configured to execute a target refresh script pre-deployed locally after acquiring a refresh instruction sent by the mobile platform, so as to send the firmware upgrade data in the firmware upgrade package to each of the target components through the second communication link and to each of the target components through the third communication link in a prescribed refresh order to complete the refresh operation; The display module is used to detect the current refresh progress and refresh result in real time, and send the current refresh progress and the refresh result to a preset display screen for display.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the server firmware refresh method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the server firmware refresh method according to any one of claims 1 to 7 are implemented.