Method, system and device for updating server BMC management firmware in batches and medium
By setting firmware mirror files on the TFTP server and triggering update requests using UID buttons, the BMC firmware update process is automatically solved, and the problem of cumbersome and inefficient update process in the existing technology is solved, efficient and automated firmware updates are achieved, and cost is reduced. And improves the user experience.
Patent Information
- Application Number
- CN202410555170.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, the BMC firmware update process is cumbersome, inefficient, high cost, and easy to cause server damage. Maintenance personnel need to have professional skills and perform complex operations.
By setting the firmware image file to be burned on the TFTP server and using the UID button to trigger an update request, automatically assigning the IP address, downloading and loading the firmware image file in RAM, performing the burning operation through the uboot boot loader to avoid manual operations , simplify the process and improve efficiency.
It realizes efficient, automated and integrated processes for batch update server BMC management firmware, reduces costs, simplifies user operations, and ensures the accuracy and reliability of firmware burning.
Smart Images

Figure CN118963788A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computers and relates to a method, system, equipment and medium for batch updating server BMC management firmware. Background Art
[0002] With the rapid development of the Internet, big data and artificial intelligence technologies, the demand and complexity of servers, as the core equipment supporting the operation of these technologies, are increasing. The baseboard management controller (BMC) in the server is a key component to ensure the stable operation of the server and provide remote maintenance functions. It runs specific BMC firmware to achieve remote operation, automatic alarm and other functions.
[0003] However, in actual applications, BMC firmware sometimes has unexpected problems. These problems are often not caused by the bootloader, but by the kernel or upper-layer applications. When the BMC firmware cannot run normally, the local display and remote KVM (keyboard, video, mouse) functions of the server will be affected, resulting in the inability of maintenance personnel to directly view the status of the server or perform troubleshooting. In addition, in order to enhance the security of the server and reduce manufacturing costs, the BMC design of modern servers often takes a series of security measures. For example, if the BMC firmware fails to start successfully, the server will not display any information, whether through the local display or remote KVM. At the same time, for safety and cost considerations, the debugging serial port pins of the BMC firmware are usually not retained. Even if they exist, it is necessary to open the chassis and connect the serial port line to perform a series of tedious manual operations. In addition, the flash memory chip of the BMC firmware is also usually directly soldered on the circuit board without a reserved socket, which further increases the difficulty of firmware updates and repairs.
[0004] In actual applications, BMC firmware can cause problems such as IPMI (Intelligent Platform Management Interface) communication failure, WEBUI (Web User Interface) failure to open, and local display failure. When encountering these situations where firmware needs to be updated, the existing processing methods have many shortcomings:
[0005] The first method is to remove the flash chip with a soldering iron, burn it with a special burner, and then solder it back to the motherboard. Although this method can update the firmware, the operation process is cumbersome and requires disassembling the chassis, removing the motherboard, and removing the flash chip. It is not only time-consuming and labor-intensive, but also easy to damage the motherboard or appearance due to improper operation.
[0006] The second approach is to retain the flash memory chip socket during design so that the flash memory chip can be replaced when needed. Although this approach avoids the need to use a soldering iron, it increases the cost of the socket and still requires disassembling the chassis and motherboard for replacement, which is equally cumbersome.
[0007] The third solution is to keep the debug serial port pin of the BMC, connect the debug cable, enter the uboot console through the serial port, and burn the firmware by entering a series of commands. Although this method can achieve remote operation, it requires disassembling the chassis and connecting the serial port cable, which increases the difficulty and cost of operation. At the same time, the process of manually entering commands is also prone to errors, increasing the risk of firmware updates.
[0008] Therefore, when firmware batch problems occur during production or firmware needs to be repaired and updated after sales, the traditional firmware update method becomes very inconvenient and inefficient. This requires maintenance personnel to not only have professional electronic maintenance skills, but also to perform tedious operations such as using a soldering iron or connecting a serial port cable. This not only increases maintenance costs and time, but may also cause potential damage to the server. Summary of the invention
[0009] The purpose of the present invention is to solve the problem of low efficiency and increased cost due to the need for cumbersome operations when batch updating BMC firmware in the prior art, and to provide a method, system, device and medium for batch updating of server BMC management firmware.
[0010] In order to achieve the above object, the present invention adopts the following technical solutions:
[0011] A method for batch updating server BMC management firmware includes the following steps:
[0012] Set the firmware image file to be updated on the TFTP server and enable the TFTP service;
[0013] Set the UID button function of the TFTP server. When the UID button is pressed for a preset time, a BMC firmware update request is triggered.
[0014] When the TFTP server is started, the uboot bootloader detects whether the UID button is pressed for a long time exceeding the preset time. If a long press is detected, the DHCP service is started to automatically assign an IP address;
[0015] After obtaining the IP address, start the TFTP client, find the IP address of the TFTP server, and establish a connection;
[0016] Download the BMC firmware image file to be updated from the TFTP server to the RAM of the firmware server to be burned;
[0017] Load the firmware image file in RAM and perform the firmware burning operation through the uboot boot loader to write the firmware image file into the flash chip of the BMC.
[0018] The UID button is pressed for a preset time of at least 3 seconds, and the UID button is debounced.
[0019] When the firmware image file is written into the flash memory chip of the BMC, the burning progress is indicated by controlling the flashing state of the UID light. When the UID light is always on, it indicates that the burning is completed.
[0020] Before executing the firmware burning operation, it is also necessary to back up the server status information, including server configuration information and storage data.
[0021] A system for batch updating server BMC management firmware, comprising:
[0022] A TFTP server, wherein the TFTP server is provided with a UID button function, and when the UID button is pressed for a long time exceeding a preset time, a BMC firmware update request is triggered;
[0023] A uboot boot loader, wherein the uboot boot loader is configured to detect whether the UID button is pressed for a long time exceeding a preset time when the TFTP server is started, and if a long press is detected, start a DHCP service to automatically assign an IP address;
[0024] A TFTP client, wherein the TFTP client is configured to find the IP address of the TFTP server after obtaining the IP address, and establish a connection so as to download the BMC firmware image file to be updated from the TFTP server to the RAM of the firmware server to be burned;
[0025] RAM random access memory, the RAM random access memory is used to temporarily store the BMC firmware image file downloaded from the TFTP server;
[0026] The firmware burning module is used to load the firmware image file into the RAM, and perform the firmware burning operation through the uboot boot loader to write the firmware image file into the flash memory chip of the BMC.
[0027] The TFTP server also includes a de-jitter processing module for performing de-jitter processing on a long press operation of the UID button.
[0028] The firmware burning module verifies the flash memory chip of the BMC before burning.
[0029] The system also includes a UID light control module, which is used to indicate the progress of the burning by controlling the flashing state of the UID light during the burning process, and to make the UID light always on after the burning is completed to indicate that the burning is completed.
[0030] A device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method as described in any one of the preceding items when executing the computer program.
[0031] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of the preceding items.
[0032] Compared with the prior art, the present invention has the following beneficial effects:
[0033] The method for batch updating server BMC management firmware in the present invention pre-sets the firmware image file to be burned and updated on the TFTP server, and directly downloads and burns it when needed. A single TFTP server can simultaneously provide multiple servers to be burned with download updates, greatly shortening the firmware update time. This method avoids the tedious steps of manual operation and multiple file transfers required in traditional methods, and significantly improves the update efficiency. By integrating the UID button function, the user only needs to long press the UID button to trigger the firmware update request, without the need for complex configuration and operation, thereby simplifying the firmware update process, improving the user experience, and realizing an automated and integrated firmware update process.
[0034] Furthermore, by setting a long-press trigger mechanism for the UID button, the possibility of accidentally touching or accidentally triggering the firmware update request is avoided. At the same time, the uboot boot loader can automatically assign an IP address when starting the DHCP service, ensuring that the TFTP client can accurately find the IP address of the TFTP server and establish a connection. In addition, necessary verification and validation operations are performed during the firmware burning process to ensure that the burned firmware is correct.
[0035] Furthermore, the TFTP client establishes a connection with the TFTP server and downloads the firmware image file, ensuring the accuracy and integrity of the firmware file transmission. At the same time, the firmware image file is loaded in the RAM and the firmware burning operation is performed, further ensuring the correctness and reliability of the firmware burning. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 This is a flow chart of the method for batch updating server BMC management firmware of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0039] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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.
[0040] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0041] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0042] See also Figure 1 , is a flow chart of a method for batch updating server BMC management firmware in the present invention, which specifically includes the following steps:
[0043] S1, set the firmware image file to be burned and updated on the TFTP server and start the TFTP service.
[0044] Place the BMC firmware image file to be updated in the specified directory of the TFTP server. The file name is rom.ima. Use the verification tool to check the integrity and correctness of the firmware file. Install and configure the TFTP service software to ensure that it runs normally and listens to the specified port. According to the server's operating system and software environment, select the appropriate TFTP service software and configure it according to its documentation. Configure the root directory of the TFTP service to the directory where the firmware image file is stored so that the client can access and download the firmware file.
[0045] S2, set the UID button function of the TFTP server. When the UID button is pressed for a preset time, a BMC firmware update request is triggered.
[0046] Set the preset long press time. Set the preset time to at least 3s and debounce the UID button to avoid accidental touches, but it should not be too long to avoid affecting the user experience. Implement the detection logic of the long press event in the firmware code. When the UID button is pressed for more than the preset time, an event or flag for the firmware update request is triggered.
[0047] S3, when the TFTP server is started, the uboot boot loader detects whether the UID button is pressed for a long time exceeding a preset time. If a long press is detected, the DHCP service is started to automatically assign an IP address.
[0048] During the startup process of the TFTP server, the uboot boot loader performs initialization operations. This includes checking the status of the UID button. The uboot boot loader reads the long press event flag set in the firmware code or detects the input status of the UID button. If a long press event is detected, the firmware update process continues. If no long press event is detected, the uboot boot loader continues the normal startup process without performing the firmware update operation.
[0049] When the uboot bootloader detects that the UID button is pressed for longer than the preset time, it starts the DHCP service, which is used to automatically assign an IP address to the TFTP server in the LAN. The DHCP service sends a request to the DHCP server in the LAN, requesting that an available IP address be assigned to the TFTP server. After the TFTP server obtains the IP address, it communicates with other servers, including transferring firmware files with the TFTP client.
[0050] S4, after obtaining the IP address, start the TFTP client, find the IP address of the TFTP server, and establish a connection.
[0051] After the TFTP server obtains the IP address, it starts the TFTP client software. The TFTP client is used to communicate with the TFTP server and download the firmware image file. The TFTP client will search for the TFTP server in the LAN. The TFTP client will establish a connection with the server.
[0052] S5, downloading the BMC firmware image file to be updated from the TFTP server to the RAM of the firmware server to be burned.
[0053] After the TFTP client establishes a connection with the TFTP server, it sends a command requesting the download of the firmware image file. The TFTP server responds to the request and sends the firmware image file to the TFTP client via the TFTP protocol. After the TFTP client receives the firmware image file, it stores it in the RAM of the firmware server to be burned. The firmware file can be accessed quickly during the burning process, which improves the burning speed.
[0054] S6, load the firmware image file into the RAM, and perform the firmware burning operation through the uboot boot loader to write the firmware image file into the flash memory chip of the BMC.
[0055] Before performing the firmware burning operation, it is necessary to back up the server status information, including server configuration information and storage data. The firmware image file is loaded into the RAM of the TFTP server, and the uboot boot loader will take over the subsequent operations. The uboot boot loader reads the firmware image file in the RAM and prepares for the firmware burning operation. During the burning process, the uboot boot loader monitors the progress and performs necessary subsequent operations after completion, such as restarting the server or resuming the normal startup process. When the firmware image file is written to the flash chip of the BMC, the burning progress is indicated by controlling the flashing state of the UID light. When the UID light is always on, it indicates that the burning is complete.
[0056] An embodiment of the present invention is a system for batch updating server BMC management firmware, which specifically includes the following units:
[0057] The TFTP server is provided with a UID button function. When the UID button is pressed for a long time exceeding a preset time, a BMC firmware update request is triggered; the TFTP server also includes a de-jitter processing module for de-jittering the long-press operation of the UID button. The de-jitter processing module can de-jitter the long-press operation of the UID button, eliminate signal jitter caused by factors such as unstable mechanical contact or electromagnetic interference, and ensure the reliability of the firmware update request.
[0058] The uboot boot loader is configured to detect whether the UID button is pressed for a long time exceeding a preset time when the TFTP server is started. If a long press is detected, the DHCP service is started to automatically assign an IP address. Through the DHCP service, the TFTP server can obtain a valid IP address in the local area network, thereby communicating with other devices over the network.
[0059] The TFTP client is configured to find the IP address of the TFTP server after obtaining the IP address, and establish a connection to download the BMC firmware image file to be updated from the TFTP server. The TFTP client communicates with the TFTP server through the network protocol and sends a command requesting to download the BMC firmware image file to be updated. If the connection is successfully established, the TFTP client will receive and store the firmware image file downloaded from the TFTP server to prepare for the subsequent firmware burning operation.
[0060] RAM random access memory, which is used to temporarily store the BMC firmware image file downloaded from the TFTP server, has high-speed reading and writing capabilities, and can complete the loading and storage operations of the firmware file in a short time. During the firmware burning process, the RAM module provides the firmware burning module with the ability to quickly access the firmware file, ensuring the smooth progress of the burning process.
[0061] The firmware burning module is used to load the firmware image file in the RAM, and perform the firmware burning operation through the uboot boot loader, and write the firmware image file into the flash memory chip of the BMC to ensure the correctness and integrity of the firmware. During the burning process, the firmware burning module will also perform necessary verification and validation operations to ensure that the burned firmware can work properly.
[0062] It also includes a UID light control module, which is used to indicate the burning progress by controlling the flashing state of the UID light during the burning process, and to make the UID light always on after the burning is completed to indicate that the burning is complete. When the firmware burning starts, the UID light will light up at a specific flashing frequency to indicate that the burning is in progress. As the burning progresses, the flashing frequency or color of the UID light may change so that the user can intuitively understand the progress of the burning. When the burning is completed, the UID light will always be on to indicate that the burning operation has been successfully completed. This intuitive indication method helps users better monitor and manage the firmware update process.
[0063] The method for batch updating the server BMC management firmware in the present invention is cost-effective. Since no additional hardware cost is required, the trigger burning function can be realized only by the UID design and bootloader code modification at the software level, which greatly reduces the cost of firmware upgrade. For enterprises and users, it is an economical and efficient solution. The convenience of operation is improved. By sharing the UID button, the user only needs to perform a simple long press operation to trigger the firmware upgrade request. This design simplifies the upgrade process and improves the convenience of operation. The user can easily complete the firmware upgrade without complicated settings or configurations. The system has a high degree of integration, and the UID button function is integrated with modules such as the TFTP server and the bootloader to achieve a high degree of system integration. This not only improves the overall performance of the system, but also reduces the potential problems caused by multiple independent modules, and enhances the stability and reliability of the system. The user experience is also optimized. Through the shared UID button and intuitive progress indication, the user can more conveniently monitor and manage the firmware upgrade process. This helps to improve the user experience and enhance the user's trust and satisfaction with the product.
[0064] An embodiment of the present invention provides a terminal device. The terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0065] The computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to accomplish the present invention.
[0066] The device / terminal equipment may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The device / terminal equipment may include, but is not limited to, a processor and a memory.
[0067] The processor may be a central processing unit (CPU), or 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.
[0068] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the apparatus / terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.
[0069] If the module / unit integrated in the device / terminal equipment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0070] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for batch updating server BMC management firmware, characterized in that: The following steps are involved: Set the firmware image file to be updated on the TFTP server and enable the TFTP service; Set the UID button function of the TFTP server. When the UID button is pressed for a preset time, a BMC firmware update request is triggered. When the TFTP server is started, the uboot bootloader detects whether the UID button is pressed for a long time exceeding the preset time. If a long press is detected, the DHCP service is started to automatically assign an IP address; After obtaining the IP address, start the TFTP client, find the IP address of the TFTP server, and establish a connection; Download the BMC firmware image file to be updated from the TFTP server to the RAM of the firmware server to be burned; Load the firmware image file in RAM and perform the firmware burning operation through the uboot boot loader to write the firmware image file into the flash chip of the BMC.
2. A method for batch updating server BMC management firmware according to claim 1, characterized in that: The UID button is pressed for a preset time of at least 3 seconds, and the UID button is debounced.
3. A method for batch updating server BMC management firmware according to claim 1, characterized in that: When the firmware image file is written into the flash memory chip of the BMC, the burning progress is indicated by controlling the flashing state of the UID light. When the UID light is always on, it indicates that the burning is completed.
4. A method for batch updating server BMC management firmware according to claim 1, characterized in that: Before executing the firmware burning operation, it is also necessary to back up the server status information, including server configuration information and storage data.
5. A system for batch updating server BMC management firmware, characterized in that: include A TFTP server, wherein the TFTP server is provided with a UID button function, and when the UID button is pressed for a long time exceeding a preset time, a BMC firmware update request is triggered; A uboot boot loader, wherein the uboot boot loader is configured to detect whether the UID button is pressed for a long time exceeding a preset time when the TFTP server is started, and if a long press is detected, start a DHCP service to automatically assign an IP address; A TFTP client, wherein the TFTP client is configured to find the IP address of the TFTP server after obtaining the IP address, and establish a connection so as to download the BMC firmware image file to be updated from the TFTP server to the RAM of the firmware server to be burned; RAM random access memory, the RAM random access memory is used to temporarily store the BMC firmware image file downloaded from the TFTP server; The firmware burning module is used to load the firmware image file into the RAM, and perform the firmware burning operation through the uboot boot loader to write the firmware image file into the flash memory chip of the BMC.
6. A system for batch updating server BMC management firmware as claimed in claim 5, characterized in that: The TFTP server also includes a de-jitter processing module for performing a de-jitter processing on a long-press operation of the UID button.
7. A system for batch updating server BMC management firmware as claimed in claim 5, characterized in that: The firmware burning module verifies the flash memory chip of the BMC before burning.
8. A system for batch updating server BMC management firmware as claimed in claim 5, characterized in that: The system also includes a UID light control module, which is used to indicate the progress of the burning by controlling the flashing state of the UID light during the burning process, and to make the UID light always on after the burning is completed to indicate that the burning is completed.
9. A device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Cited By
Embedded device firmware upgrading method, electronic device and storage medium
CN119847571A
Firmware upgrading method and device, electronic equipment and storage medium
CN120353488A
