Device firmware upgrade system, method, device, computer device and storage medium

By sending the BIOS upgrade file to the server, including the operating system and firmware upgrade program, the server firmware is automatically upgraded, solving the problem of low manual upgrade efficiency, reducing labor costs and improving firmware upgrade efficiency.

CN113934445BActive Publication Date: 2024-10-18SUMA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111298704.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-04
Publication Date
2024-10-18
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

There are loopholes in PCIE devices during the production process of servers, resulting in low firmware upgrade efficiency. Currently, manual firmware refresh is required, which consumes a lot of labor costs.

Method used

Provides a device firmware upgrade system that sends a BIOS upgrade file to the target server through the control platform, including a hard disk image. The hard disk image includes the operating system, firmware upgrade program, and firmware files of the device to be upgraded. The target server updates the BIOS through the BIOS after refreshing the BIOS. Decompress the hard disk image into a virtual hard disk, load the operating system and run the firmware upgrade program to upgrade the firmware.

Benefits of technology

It realizes automatic upgrade of device firmware, reduces labor costs, improves firmware upgrade efficiency, and can automatically upgrade the server's BIOS and firmware without installing an operating system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113934445B_ABST
    Figure CN113934445B_ABST
Patent Text Reader

Abstract

The present application relates to a device firmware upgrade system, method, apparatus, computer equipment and storage medium. The system includes a control platform and a target server, wherein the control platform is used to send a basic input and output system BIOS upgrade file to the target server, and control the target server to refresh the BIOS according to the BIOS upgrade file, wherein the BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program and a firmware file of a target device to be upgraded in the target server; the target server is used to restart after refreshing the BIOS, decompress the hard disk image into the target memory through the BIOS to obtain a virtual hard disk, and after loading the operating system in the virtual hard disk, run the firmware upgrade program and the firmware file in the operating system to perform a firmware upgrade on the target device. The use of this system can improve the efficiency of firmware upgrades.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a device firmware upgrade system, method, apparatus, computer equipment and storage medium. Background Art

[0002] For servers, many network cards are equipped when they leave the factory, such as hard disk controllers, NVME (Non Volatile Memory Host Controller Interface Specification) hard disks, and other PCIE (peripheral component interconnect express) devices.

[0003] During the production process of a server, if a PCIE device has a vulnerability, it is often fixed by refreshing the firmware of the PCIE device. Currently, when the firmware of a PCIE device in a server needs to be upgraded, the firmware is often refreshed manually, which consumes a lot of manpower costs and has low firmware upgrade efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide a device firmware upgrade system, method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the efficiency of firmware upgrade in response to the above technical problems.

[0005] In a first aspect, the present application provides a device firmware upgrade system, the system comprising a control platform and a target server, wherein:

[0006] The control platform is used to send a basic input and output system BIOS upgrade file to the target server, and control the target server to refresh the BIOS according to the BIOS upgrade file, wherein the BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the target server;

[0007] The target server is used to restart after refreshing the BIOS, decompress the hard disk image into the target memory through the BIOS to obtain a virtual hard disk, load the operating system in the virtual hard disk, and run the firmware upgrade program and the firmware file in the operating system to upgrade the firmware of the target device.

[0008] By adopting the device firmware upgrade system provided in the present application, the server can obtain a virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform firmware upgrades based on the operating system, firmware upgrade program, and firmware files in the virtual hard disk. That is, the automatic upgrade of the device firmware can be achieved through the BIOS, which can reduce labor costs and improve firmware upgrade efficiency.

[0009] In one of the embodiments, the target server includes a baseboard management controller BMC, and the target server is used to receive the BIOS upgrade file and the refresh instruction through the BMC, and refresh the BIOS according to the BIOS upgrade file in response to the refresh instruction.

[0010] By adopting the device firmware upgrade system provided by the present application, when no operating system is installed in the server, the server can receive the BIOS upgrade file sent by the control platform through the BMC to refresh the BIOS of the server based on the BIOS upgrade file. The refreshed BIOS can obtain a virtual hard disk based on the hard disk image in the BIOS upgrade file, and further perform firmware upgrade according to the operating system and firmware upgrade program and firmware file in the virtual hard disk, thereby realizing automatic upgrade of device firmware, reducing labor costs and improving firmware upgrade efficiency.

[0011] In one embodiment, the BIOS upgrade file also includes a read-write interface, and the operating system is used to call the read-write interface to load the firmware upgrade program and the firmware file from the virtual hard disk to perform firmware upgrade on the target device according to the firmware upgrade program and the firmware file.

[0012] By adopting the device firmware upgrade system provided by the present application, a read-write interface can be constructed so that the loaded operating system can read and write the virtual hard disk, and then the operating system can execute the firmware upgrade program in the virtual hard disk to implement firmware upgrade through firmware files. This can realize automatic upgrade of device firmware, reduce labor costs, and improve firmware upgrade efficiency.

[0013] In one of the embodiments, the BIOS upgrade file also includes a self-starting script, and the operating system is used to call the read-write interface to load and run the self-starting script from the virtual hard disk. When the running result indicates that the target device needs to be updated, the firmware of the target device is upgraded.

[0014] By using the device firmware upgrade system provided in this application, it is possible to determine whether the target server needs to perform a firmware upgrade through a self-starting script, without the need for manual firmware upgrade processing. This can achieve automated upgrades of device firmware, reduce labor costs, and improve firmware upgrade efficiency.

[0015] In a second aspect, the present application provides a device firmware upgrade method. The method comprises:

[0016] After refreshing the BIOS according to the basic input / output system BIOS upgrade file sent by the control platform, the hard disk image packaged in the BIOS upgrade file is decompressed into the target memory through the BIOS to obtain a virtual hard disk, wherein the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of the target device to be upgraded in the server;

[0017] Loading the operating system from the virtual hard disk through the BIOS;

[0018] The firmware upgrade program is run in the operating system to upgrade the target device using the firmware file.

[0019] By adopting the device firmware upgrade method provided in the present application, the server can obtain a virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform firmware upgrades based on the operating system and firmware upgrade program and firmware files in the virtual hard disk. That is, the automatic upgrade of the device firmware can be achieved through the BIOS, which can reduce labor costs and improve firmware upgrade efficiency.

[0020] In a third aspect, the present application provides a device firmware upgrade method. The method comprises:

[0021] Obtain a BIOS upgrade file, wherein the BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server;

[0022] The BIOS upgrade file is sent to the server, so that after the server refreshes the BIOS according to the BIOS upgrade file, the firmware of the target device is upgraded according to the hard disk image in the BIOS.

[0023] By adopting the device firmware upgrade method provided in the present application, a hard disk image can be generated and the BIOS of the server can be upgraded based on the hard disk image, so that the server can obtain a virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform firmware upgrades according to the operating system and firmware upgrade program and firmware files in the virtual hard disk. That is, the automatic upgrade of the device firmware can be achieved through the BIOS, which can reduce labor costs and improve firmware upgrade efficiency.

[0024] In a fourth aspect, the present application provides a device firmware upgrade apparatus, the apparatus comprising:

[0025] A processing module is used for, after refreshing the BIOS according to the basic input and output system BIOS upgrade file sent by the control platform, decompressing the hard disk image packaged in the BIOS upgrade file into the target memory through the BIOS to obtain a virtual hard disk, wherein the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server;

[0026] A loading module, used for loading the operating system from the virtual hard disk through the BIOS;

[0027] An upgrade module is used to run the firmware upgrade program in the operating system to upgrade the target device using the firmware file.

[0028] In a fifth aspect, the present application provides a device firmware upgrade apparatus, the apparatus comprising:

[0029] An acquisition module is used to acquire a BIOS upgrade file, wherein the BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server;

[0030] The sending module is used to send the BIOS upgrade file to the server, so that after the server refreshes the BIOS according to the BIOS upgrade file, the server performs a firmware upgrade on the target device according to the hard disk image in the BIOS.

[0031] In a sixth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the above method when executing the computer program.

[0032] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the above method when executed by a processor.

[0033] In an eighth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and the computer program implements the above method when executed by a processor.

[0034] The above-mentioned device firmware upgrade system, method, device, computer equipment and storage medium, the control platform is used to send the basic input and output system BIOS upgrade file to the target server, and control the target server to refresh the BIOS according to the BIOS upgrade file, the BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program and the firmware file of the target device to be upgraded in the target server; the target server is used to restart after refreshing the BIOS, decompress the hard disk image to the target memory through the BIOS to obtain a virtual hard disk, and after loading the operating system in the virtual hard disk, run the firmware upgrade program and the firmware file in the operating system to perform a firmware upgrade on the target device. The device firmware upgrade system, method, device, computer equipment and storage medium provided by the present application, the server can obtain a virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform a firmware upgrade according to the operating system and the firmware upgrade program and the firmware file in the virtual hard disk, that is, the automatic upgrade of the device firmware can be realized through the BIOS, which can reduce labor costs and improve the efficiency of firmware upgrades. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A structural block diagram of a device firmware upgrade system in one embodiment;

[0036] Figure 2 A schematic diagram of a device firmware upgrade method in one embodiment;

[0037] Figure 3 A schematic diagram of a device firmware upgrade method in one embodiment;

[0038] Figure 4 A schematic diagram of a device firmware upgrade method in one embodiment;

[0039] Figure 5 It is a structural block diagram of a device firmware upgrade apparatus in one embodiment;

[0040] Figure 6 It is a structural block diagram of a device firmware upgrade apparatus in one embodiment;

[0041] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] In one embodiment, Figure 1As shown, the present application provides a device firmware upgrade system, including: a control platform 102 and a target server 104, wherein:

[0044] The control platform 102 is used to send a basic input and output system BIOS upgrade file to the target server 104, and control the target server 104 to refresh the BIOS according to the BIOS upgrade file. The BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the target server 104;

[0045] The target server 104 is used to restart after refreshing the BIOS, decompress the hard disk image into the target memory through the BIOS to obtain a virtual hard disk, load the operating system in the virtual hard disk, and run the firmware upgrade program and firmware files in the operating system to upgrade the firmware of the target device.

[0046] In the embodiment of the present application, the control platform 102 includes a device for remotely controlling the server, which can be implemented by an independent server or a server cluster composed of multiple servers. The number of target servers 104 can be one or more, and the number of target servers 104 is not specifically limited in the embodiment of the present disclosure, that is, the embodiment of the present disclosure can realize batch firmware upgrade of servers.

[0047] Among them, the target server includes a server on which the operating system and computer shell have not been installed, and a target device exists. The target device can be a PCIE device to be upgraded for firmware. Exemplarily, the target device can include PCIE devices such as a network card, a hard disk controller, and an NVME hard disk.

[0048] The control platform 102 can make a hard disk image based on the firmware file used to upgrade the target device, the firmware upgrade program corresponding to the target device, and the operating system (for example, DOS operating system or UEFI SHELL), and package the hard disk image into a BIOS (Basic Input Output System) file to obtain a BIOS upgrade file. The control platform 102 can send the BIOS upgrade file to the target server 104, and remotely control the target server 104 to refresh the BIOS based on the BIOS upgrade file, that is, update the BIOS firmware.

[0049] The target server 104 restarts after completing the BIOS refresh. After the restart, a block of memory can be allocated as the target memory for the hard disk image through the refreshed BIOS, and after the hard disk image is decompressed into the target memory, the target memory storing the decompressed hard disk image is used as the virtual memory, that is, the virtual hard disk includes the operating system, the firmware upgrade program and the firmware file. The BIOS can load the operating system in the virtual hard disk and run the firmware upgrade program in the operating system to perform a firmware upgrade on the target device according to the firmware file, for example: using the firmware file to overwrite the original firmware file in the target device.

[0050] In the above-mentioned device firmware upgrade system, the control platform is used to send a BIOS upgrade file to the target server, and control the target server to refresh the BIOS according to the BIOS upgrade file. The BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of the target device to be upgraded in the target server; the target server is used to restart after refreshing the BIOS, and decompress the hard disk image into the target memory through the BIOS to obtain a virtual hard disk. After loading the operating system in the virtual hard disk, the firmware upgrade program and the firmware file are run in the operating system to perform a firmware upgrade on the target device. In the device firmware upgrade system provided by the present application, the server can obtain a virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform a firmware upgrade according to the operating system and the firmware upgrade program and the firmware file in the virtual hard disk, that is, the automatic upgrade of the device firmware can be realized through the BIOS, which can reduce labor costs and improve the efficiency of firmware upgrades.

[0051] In one embodiment, the target server 104 includes a baseboard management controller BMC, and the target server 104 is used to receive a BIOS upgrade file and a refresh instruction through the BMC, and refresh the BIOS according to the BIOS upgrade file in response to the refresh instruction.

[0052] In the embodiment of the present application, the target server 104 may include a BMC (Baseboard Management Controller), and the control platform 102 may control the server 104 to perform BIOS refresh through the BMC in the target server 104. Exemplarily, the target server 104 may receive a BIOS upgrade file sent by the control platform 102 and a refresh instruction for instructing the target server to perform BIOS refresh through the BMC. After the BMC receives the BIOS upgrade file and the refresh instruction sent by the control platform 102, it may refresh the BIOS through the BIOS upgrade file in response to the refresh instruction, that is, refresh the BIOS firmware of the BIOS according to the BIOS upgrade file.

[0053] The refreshed BIOS can allocate a target memory for the hard disk image, and decompress the hard disk image into the target memory to obtain a virtual hard disk, and implement the firmware upgrade of the target device based on the virtual hard disk. The specific firmware upgrade process can refer to the relevant description of the aforementioned embodiment, and the present disclosed embodiment will not repeat it here.

[0054] According to the device firmware upgrade system provided by the present application, when no operating system is installed in the server, the server can receive the BIOS upgrade file sent by the control platform through the BMC to refresh the BIOS of the server based on the BIOS upgrade file. The refreshed BIOS can obtain a virtual hard disk based on the hard disk image in the BIOS upgrade file, and further perform firmware upgrade according to the operating system and firmware upgrade program and firmware file in the virtual hard disk, thereby realizing automatic upgrade of device firmware, reducing labor costs and improving firmware upgrade efficiency.

[0055] In one embodiment, the BIOS upgrade file also includes a read-write interface, and the operating system is used to call the read-write interface to load the firmware upgrade program and firmware files from the virtual hard disk to perform firmware upgrade on the target device according to the firmware upgrade program and firmware files.

[0056] In the embodiment of the present application, when making a hard disk image, a read-write interface can be constructed in the BIOS upgrade file, and the read-write interface can be used to read and write data from the virtual hard disk. Exemplarily, when the operating system in the hard disk image is a DOS system, an int 13 interface function can be hooked, and the int 13 interface function can read and write the virtual hard disk through the serial interface SMI; or, when the operating system in the hard disk image is a UEFI SHELL, a UEFIDiskIO function can be rewritten to read and write data from the virtual hard disk.

[0057] After loading the operating system, the operating system can load the firmware upgrade program and firmware files from the virtual hard disk by calling the read-write interface to execute the firmware upgrade program within the operating system. The firmware upgrade program can overwrite the original firmware file of the target device with the firmware file to achieve firmware upgrade of the target device.

[0058] According to the device firmware upgrade system provided by the present application, a read-write interface can be constructed so that the loaded operating system can read and write in the virtual hard disk, and then the operating system executes the firmware upgrade program in the virtual hard disk to implement firmware upgrade through firmware files. This can realize automatic upgrade of device firmware, reduce labor costs, and improve firmware upgrade efficiency.

[0059] In one embodiment, the BIOS upgrade file also includes a self-starting script, and the operating system is used to call the read-write interface to load and run the self-starting script from the virtual hard disk. When the running result indicates that the target device needs to be updated, the firmware of the target device is upgraded.

[0060] In the embodiment of the present application, when making a hard disk image, a self-starting script can be written and included in the hard disk image together with the operating system. The self-starting script can be used to determine whether the target device needs to be updated, and if it is determined that the target device needs to be updated, the firmware upgrade program is run to upgrade the firmware of the target device using the firmware file.

[0061] Alternatively, when the target server completes the firmware upgrade and restarts, the self-starting script can be used to determine whether the target server needs to be upgraded. At this time, the target server has completed the firmware upgrade, so there is no need to execute the firmware upgrade program to upgrade the firmware of the target server. Therefore, the virtual hard disk can be exited directly, and the BIOS continues the power-on self-test process.

[0062] According to the device firmware upgrade system provided by this application, it is possible to determine whether the target server needs to perform a firmware upgrade through a self-starting script, without the need for manual firmware upgrade processing. This can achieve automated upgrades of device firmware, reduce labor costs, and improve firmware upgrade efficiency.

[0063] In one embodiment, Figure 2 As shown, a device firmware upgrade method is provided. This embodiment takes the method applied to a server as an example, and can also be applied to a system including a terminal and a server, and implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0064] Step 202, after refreshing the BIOS according to the basic input / output system BIOS upgrade file sent by the control platform, the hard disk image packaged in the BIOS upgrade file is decompressed into the target memory through the BIOS to obtain a virtual hard disk, wherein the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server;

[0065] Step 204, loading the operating system from the virtual hard disk through BIOS;

[0066] Step 206: Run the firmware upgrade program in the operating system to upgrade the target device using the firmware file.

[0067] In the embodiment of the present application, the control platform can package the pre-made hard disk image into the BIOS file, and after obtaining the BIOS upgrade file, send the BIOS upgrade file to the server. The hard disk image may include the operating system, the firmware upgrade program, and the firmware file of the target device to be upgraded in the server.

[0068] The server responds to the remote control of the control platform, and after refreshing the BIOS according to the BIOS upgrade file, allocates memory to the hard disk image in the BIOS upgrade file through the BIOS, decompresses the hard disk image into the memory, and obtains a virtual hard disk. The operating system is loaded and run from the virtual hard disk, and the firmware upgrade program is run in the operating system to use the firmware file to overwrite the original firmware file in the target device, thereby realizing automatic firmware update of the target device. The specific firmware update process can refer to the relevant description in the aforementioned embodiment, and will not be described in detail in the embodiment of the present disclosure.

[0069] The device firmware upgrade method provided by the present application is that after the server refreshes the BIOS according to the basic input and output system BIOS upgrade file sent by the control platform, the hard disk image packaged in the BIOS upgrade file is decompressed into the target memory through the BIOS to obtain a virtual hard disk, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of the target device to be upgraded in the server, and the operating system is loaded from the virtual hard disk through the BIOS to run the firmware upgrade program in the operating system, so as to upgrade the target device using the firmware file. Based on the device firmware upgrade method provided by the present application, the server can obtain the virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform firmware upgrades according to the operating system, firmware upgrade program, and firmware files in the virtual hard disk, that is, the automatic upgrade of the device firmware can be realized through the BIOS, which can reduce labor costs and improve the efficiency of firmware upgrades.

[0070] In one embodiment, Figure 3 As shown, a device firmware upgrade method is provided. This embodiment takes the method applied to a server as an example, and can also be applied to a system including a terminal and a server, and implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0071] Step 302, obtaining a BIOS upgrade file, wherein the BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server;

[0072] Step 304, sending the BIOS upgrade file to the server, so that the server updates the BIOS according to the BIOS upgrade file and then upgrades the firmware of the target device according to the hard disk image in the BIOS.

[0073] In an embodiment of the present application, a hard disk image can be generated in advance, and the hard disk image can include an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in a server. The hard disk image is compressed and packaged into a BIOS file to obtain a BIOS upgrade file. The BIOS upgrade file can be sent to the server, and the remote control server updates the BIOS according to the BIOS upgrade file, so that the updated BIOS obtains a virtual hard disk according to the hard disk image, and runs the firmware upgrade program in the operating system in the virtual hard disk to perform a firmware upgrade on the target device according to the firmware file. The specific firmware update process can refer to the relevant description in the aforementioned embodiment, and will not be described in detail in the present embodiment.

[0074] Due to the BIOS capacity limitation, a smaller memory can be set for the virtual hard disk, for example: 6M. In the following embodiments of the present application, the generation of a hard disk image containing UEFI.SHELL is taken as an example. The generation of a hard disk image containing a DOS system can be achieved by using the hardware-guided system transfer ghost technology, which is not described in detail in this application).

[0075] Specifically:

[0076] Step A.dd if= / dev / zero of=disk.img bs=512count=12288 (make 6M large image)

[0077] Step B. losetup / dev / loop0 disk.img (mount the hard disk image to the loop0 device)

[0078] Step C.Mkfs.fat / dev / loop0 (make a file system)

[0079] Step D.Mount / dev / loop0 / mnt (Mount loop0 device to the mnt directory)

[0080] Step E. Copy shell.efi, firmware upgrade program, firmware files, and auto-start script to the / mnt directory

[0081] Step F.Umount / mnt

[0082] Step G. losetup -d / dev / loop0 (hard disk image creation completed)

[0083] It should be noted that the above method of generating a hard disk image is only a method of generating a hard disk image in the embodiment of the present application, and is not to be understood as a limitation on the method of generating a hard disk image. In fact, any method that can generate a hard disk image is within the scope of application of the embodiment of the present application, and the embodiment of the present application does not make specific limitations on the method of generating a hard disk image.

[0084] The device firmware upgrade method provided in the present application is that the control platform obtains the BIOS upgrade file, the BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server; the BIOS upgrade file is sent to the server, so that after the server refreshes the BIOS according to the BIOS upgrade file, the firmware of the target device is upgraded according to the hard disk image in the BIOS. Based on the device firmware upgrade method provided in the present application, by generating a hard disk image and upgrading the BIOS of the server based on the hard disk image, the server can obtain a virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform a firmware upgrade according to the operating system and the firmware upgrade program and the firmware file in the virtual hard disk, the automatic upgrade of the device firmware can be realized through the BIOS, which can reduce labor costs and improve the efficiency of firmware upgrades.

[0085] In order to enable those skilled in the art to better understand the embodiments of the present application, the embodiments of the present application are described below through specific examples.

[0086] Reference Figure 4 , write a self-starting script, which is used to determine whether the current device needs to update the firmware. If necessary, execute the firmware update program to upgrade the firmware according to the firmware file.

[0087] Generate a hard disk image, and package the DOS operating system or UEFI.SHELL, firmware upgrade program, firmware file, and auto-start script in the hard disk image. Compress and package the hard disk image into the BIOS file to obtain the BIOS upgrade file. After the remote control server upgrades the BIOS according to the BIOS upgrade file, the server restarts.

[0088] After restarting, the BIOS in the server grabs the hard disk image during the power-on self-test post process, allocates memory for it, and then decompresses the hard disk image into the memory to obtain a virtual hard disk. The BIOS can provide a read-write interface for reading and writing the virtual hard disk. The BIOS loads the operating system in the virtual hard disk and runs the self-starting script. The self-starting script determines whether the target device firmware needs to be updated. If so, it calls the firmware upgrade program to update the firmware according to the firmware file. After the update is completed, exit the virtual hard disk and continue the BIOS process.

[0089] This application generates a hard disk image, in which a DOS system or UEFI Shell is installed, and a firmware upgrade program, firmware files, and a self-starting script are copied. The BIOS file is updated through the hard disk image, and the updated BIOS file is used to remotely refresh the BIOS of the server. The refreshed BIOS loads the hard disk image, and the hard disk image virtual hard disk is used. Finally, the BIOS boots to the virtual hard disk, executes the firmware upgrade program to upgrade the device firmware, and realizes the BIOS automatic update device firmware function, which reduces the time and cost of manpower investment in the production line and improves the efficiency of firmware updates.

[0090] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0091] Based on the same inventive concept, the embodiment of the present application also provides a device firmware upgrade apparatus for implementing the device firmware upgrade method involved above. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more device firmware upgrade apparatus embodiments provided below can refer to the limitations of the device firmware upgrade method above, and will not be repeated here.

[0092] In one embodiment, Figure 5 As shown, a device firmware upgrade apparatus 500 is provided, comprising: a processing module 502, a loading module 504 and an upgrade module 506, wherein:

[0093] The processing module 502 is used to refresh the BIOS according to the basic input and output system BIOS upgrade file sent by the control platform, and then decompress the hard disk image packaged in the BIOS upgrade file into the target memory through the BIOS to obtain a virtual hard disk, wherein the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server;

[0094] A loading module 504, configured to load the operating system from the virtual hard disk through the BIOS;

[0095] The upgrade module 506 is used to run the firmware upgrade program in the operating system to upgrade the target device using the firmware file.

[0096] The device firmware upgrade device provided by the present application, after the server refreshes the BIOS according to the basic input and output system BIOS upgrade file sent by the control platform, decompresses the hard disk image packaged in the BIOS upgrade file to the target memory through the BIOS to obtain a virtual hard disk, the hard disk image includes an operating system, a firmware upgrade program and the firmware file of the target device to be upgraded in the server, and loads the operating system from the virtual hard disk through the BIOS to run the firmware upgrade program in the operating system, so as to upgrade the target device using the firmware file. Based on the device firmware upgrade device provided by the present application, the server can obtain the virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform firmware upgrades according to the operating system and the firmware upgrade program and the firmware file in the virtual hard disk, that is, the automatic upgrade of the device firmware can be realized through the BIOS, which can reduce labor costs and improve the efficiency of firmware upgrades.

[0097] In one embodiment, Figure 6 As shown, a device firmware upgrade apparatus 600 is provided, including: an acquisition module 602 and a sending module 604;

[0098] An acquisition module 602 is used to acquire a BIOS upgrade file, wherein the BIOS upgrade file includes a hard disk image, and the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server;

[0099] The sending module 604 is used to send the BIOS upgrade file to the server, so that after the server refreshes the BIOS according to the BIOS upgrade file, it upgrades the firmware of the target device according to the hard disk image in the BIOS.

[0100] The device firmware upgrade device provided by the present application controls the platform to obtain the BIOS upgrade file, which includes a hard disk image, which includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server; the BIOS upgrade file is sent to the server, so that after the server refreshes the BIOS according to the BIOS upgrade file, the target device is upgraded according to the hard disk image in the BIOS. Based on the device firmware upgrade device provided by the present application, the server can obtain a virtual hard disk through the hard disk image in the BIOS upgrade file sent by the control platform, and further perform a firmware upgrade according to the operating system and firmware upgrade program and firmware files in the virtual hard disk, that is, the automatic upgrade of the device firmware can be realized through the BIOS, which can reduce labor costs and improve the efficiency of firmware upgrades.

[0101] Each module in the above-mentioned device firmware upgrade apparatus can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0102] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data required or generated for executing the above-mentioned device firmware upgrade method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a device firmware upgrade method is implemented.

[0103] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0104] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0105] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0106] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0107] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0109] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0110] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A device firmware upgrade system, characterized in that: The system includes a control platform and a target server, wherein the target server has not yet installed an operating system and a computer shell, wherein: The control platform is used to generate a hard disk image, package an operating system, a firmware upgrade program and a firmware file of a target device to be upgraded in the target server in the hard disk image, compress and package the hard disk image into a basic input and output system BIOS file, obtain a BIOS upgrade file, send the BIOS upgrade file to the target server, and control the target server to refresh the BIOS according to the BIOS upgrade file; The target server includes a baseboard management controller BMC, and the target server is used to receive the BIOS upgrade file and the refresh instruction through the BMC, and refresh the BIOS according to the BIOS upgrade file in response to the refresh instruction; The target server is used to restart after refreshing the BIOS, decompress the hard disk image into the target memory through the BIOS to obtain a virtual hard disk, load the operating system in the virtual hard disk, and run the firmware upgrade program in the operating system to use the firmware file to overwrite the original firmware file in the target device to perform a firmware upgrade on the target device.

2. The system according to claim 1, characterized in that The BIOS upgrade file also includes a read-write interface, and the operating system is used to call the read-write interface to load the firmware upgrade program and the firmware file from the virtual hard disk to perform a firmware upgrade on the target device according to the firmware upgrade program and the firmware file.

3. The system according to claim 2, characterized in that The BIOS upgrade file also includes a self-starting script, and the operating system is used to call the read-write interface to load and run the self-starting script from the virtual hard disk. When the running result indicates that the target device needs to be updated, the firmware of the target device is upgraded.

4. The system according to any one of claims 1 to 3, characterized in that The target devices include network cards, hard disk controllers, and NVME hard disks.

5. A device firmware upgrade method, characterized in that: Applied to a server, where an operating system and a computer shell are not installed, the method comprises: Receiving a basic input / output system BIOS upgrade file and a refresh instruction through a baseboard management controller BMC, and refreshing the BIOS according to the BIOS upgrade file in response to the refresh instruction; After refreshing the BIOS according to the BIOS upgrade file sent by the control platform, the hard disk image packaged in the BIOS upgrade file is decompressed into the target memory through the BIOS to obtain a virtual hard disk, wherein the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of the target device to be upgraded in the server; Loading the operating system from the virtual hard disk through the BIOS; The firmware upgrade program is run in the operating system, and the original firmware file in the target device is overwritten with the firmware file to upgrade the target device.

6. A device firmware upgrade method, characterized in that: Applied to a control platform, the method comprises: Generate a hard disk image, package an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server in the hard disk image, and compress and package the hard disk image into a basic input and output system BIOS file to obtain a BIOS upgrade file, wherein the server has not yet installed an operating system and a computer shell; The BIOS upgrade file is sent to the server, so that after the server refreshes the BIOS according to the BIOS upgrade file, the firmware of the target device is upgraded according to the hard disk image in the BIOS.

7. A device firmware upgrade device, characterized in that: Applied to a server, the server has not yet installed an operating system and a computer shell, the device comprises: A processing module, configured to receive a basic input / output system BIOS upgrade file and a refresh instruction through a baseboard management controller BMC, and refresh the BIOS according to the BIOS upgrade file in response to the refresh instruction. After refreshing the BIOS according to the BIOS upgrade file sent by the control platform, the hard disk image packaged in the BIOS upgrade file is decompressed into a target memory through the BIOS to obtain a virtual hard disk, wherein the hard disk image includes an operating system, a firmware upgrade program, and a firmware file of a target device to be upgraded in the server; A loading module, used for loading the operating system from the virtual hard disk through the BIOS; The upgrade module is used to run the firmware upgrade program in the operating system and use the firmware file to overwrite the original firmware file in the target device to upgrade the target device.

8. A device firmware upgrade device, characterized in that: The device comprises: an acquisition module, used for generating a hard disk image, packaging an operating system, a firmware upgrade program and a firmware file of a target device to be upgraded in the server in the hard disk image, and compressing and packaging the hard disk image into a basic input and output system BIOS file to obtain a BIOS upgrade file, wherein the server has not yet installed an operating system and a computer shell; The sending module is used to send the BIOS upgrade file to the server, so that after the server refreshes the BIOS according to the BIOS upgrade file, the server performs a firmware upgrade on the target device according to the hard disk image in the BIOS.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 5 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 5 to 6 are implemented.

Citation Information

Patent Citations

  • Component upgrading method and device and server

    CN113448598A