BIOS refresh method, device, equipment and storage medium
Through the collaborative work of the target BMC and BIOS, the BIOS refresh is used to achieve BIOS refresh, which solves the problems of code complexity and debugging difficulty of out-of-band refresh tools in the existing technology, and improves the efficiency and flexibility of BIOS refresh.
Patent Information
- Application Number
- CN202111076641.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-14
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-09-14
AI Technical Summary
The existing BIOS refresh tool has huge code and cumbersome debugging, which seriously affects the efficiency and flexibility of out-of-band refresh.
The target BMC receives the BIOS refresh file uploaded by the remote control device. The target BIOS downloads the file from the target BMC and calls the in-band refresh tool. The target BIOS refreshes the file based on the BIOS refresh file to avoid using the out-of-band refresh tool.
It improves the efficiency and flexibility of out-of-band refresh, and avoids the negative impact of the huge code and cumbersome debugging of the out-of-band refresh tool.
Smart Images

Figure CN113900683B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a BIOS refresh method, device, equipment and storage medium. Background Art
[0002] Generally, when a user uses or maintains a computer device, or when a computer device is designed and developed, there is a need to refresh the BIOS (Basic Input Output System).
[0003] BIOS refresh generally includes in-band refresh and out-of-band refresh. In-band refresh refers to refreshing the BIOS using an in-band refresh tool installed in the computer device to be refreshed, and out-of-band refresh refers to refreshing the BIOS in the computer device to be refreshed by remotely controlling the out-of-band refresh tool installed in a remote control device.
[0004] However, usually, the out-of-band refresh tool code is bulky and the debugging is cumbersome, which seriously affects the efficiency and flexibility of the out-of-band refresh. Summary of the invention
[0005] Based on this, the embodiments of the present application provide a BIOS refresh method, apparatus, device and storage medium, which can improve the efficiency and flexibility of out-of-band refresh.
[0006] In a first aspect, a BIOS refresh method is provided, which is used in a computer device, wherein the computer device includes a target BMC and a target BIOS, and the method includes:
[0007] The target BMC receives the BIOS refresh file uploaded by the remote control device; the target BIOS downloads the BIOS refresh file from the target BMC; the target BIOS calls an in-band refresh tool, and refreshes the target BIOS based on the BIOS refresh file through the in-band refresh tool.
[0008] In one embodiment, the target BIOS calls an in-band refresh tool, and the in-band refresh tool refreshes the target BIOS based on the BIOS refresh file, including:
[0009] The target BIOS calls the in-band refresh tool stored in the target virtual hard disk, and refreshes the target BIOS based on the BIOS refresh file through the in-band refresh tool; wherein the target virtual hard disk is obtained by virtualizing the target memory area in the target BIOS.
[0010] In one embodiment, the target BIOS calls the in-band flash tool stored in the target virtual hard disk, including:
[0011] The target BIOS calls the refresh script stored in the target virtual hard disk, and calls the in-band refresh tool stored in the target virtual hard disk through the refresh script.
[0012] In one embodiment, the target BIOS downloads the BIOS refresh file from the target BMC, including:
[0013] The BIOS refresh file is downloaded from the target BMC to the target virtual hard disk through the refresh script.
[0014] In one embodiment, the method further comprises:
[0015] The target BMC receives the BIOS refresh instruction sent by the remote control device, and controls the computer device to restart after the BIOS refresh file is uploaded;
[0016] Correspondingly, the target BIOS downloads the BIOS refresh file from the target BMC, including:
[0017] If the target BIOS detects that the target BMC receives the BIOS refresh instruction during the restart process, the target BIOS downloads the BIOS refresh file from the target BMC.
[0018] In one embodiment, the in-band refresh tool includes a full refresh tool, and refreshing the target BIOS based on the BIOS refresh file through the in-band refresh tool includes:
[0019] The full refresh tool is used to format the program file in the target BIOS, and a new program file is written into the target BIOS according to the BIOS refresh file.
[0020] In one embodiment, the in-band refresh tool includes an incremental refresh tool, and refreshing the target BIOS based on the BIOS refresh file by the in-band refresh tool includes:
[0021] The incremental refresh tool is used to edit the target field in the program file in the target BIOS based on the BIOS refresh file.
[0022] In a second aspect, a computer device is provided, the computer device comprising a target BMC and a target BIOS;
[0023] The target BMC is used to receive the BIOS update file uploaded by the remote control device;
[0024] Target BIOS, used to download the BIOS update file from the target BMC;
[0025] The target BIOS is also used to call an in-band refresh tool, and the in-band refresh tool is used to refresh the target BIOS based on the BIOS refresh file.
[0026] In one of the embodiments, the target BIOS is specifically used to call the in-band refresh tool stored in the target virtual hard disk, and refresh the target BIOS based on the BIOS refresh file through the in-band refresh tool; wherein the target virtual hard disk is obtained by virtualizing the target memory area in the target BIOS.
[0027] In one of the embodiments, the target BIOS is specifically configured to call a refresh script stored in a target virtual hard disk, and to call the in-band refresh tool stored in the target virtual hard disk through the refresh script.
[0028] In one of the embodiments, the target BIOS is specifically used to download the BIOS refresh file from the target BMC to the target virtual hard disk through the refresh script.
[0029] In one of the embodiments, the target BMC is further used to receive a BIOS refresh instruction sent by the remote control device, and control the computer device to restart after the BIOS refresh file is uploaded;
[0030] Correspondingly, the target BIOS is specifically configured to download the BIOS refresh file from the target BMC when the target BIOS detects that the target BMC receives the BIOS refresh instruction during the restart process.
[0031] In one of the embodiments, the in-band refresh tool includes a full refresh tool and a target BIOS, which is specifically used to format the program files in the target BIOS through the full refresh tool and write new program files in the target BIOS according to the BIOS refresh file.
[0032] In one of the embodiments, the in-band refresh tool includes an incremental refresh tool, a target BIOS, and is specifically used to edit a target field in a program file in the target BIOS based on the BIOS refresh file through the incremental refresh tool.
[0033] In a third aspect, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the BIOS refresh method as described in any one of the first aspects is implemented.
[0034] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the BIOS refresh method as described in any one of the first aspects above is implemented.
[0035] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0036] The target BMC in the computer device receives the BIOS refresh file uploaded by the remote control device, the target BIOS in the computer device downloads the BIOS refresh file from the target BMC, and calls the in-band refresh tool, and the in-band refresh tool refreshes the target BIOS based on the BIOS refresh file. In this way, the out-of-band refresh of the target BIOS can be achieved based on the in-band refresh tool, so that the out-of-band refresh does not use the out-of-band refresh tool. Therefore, the negative impact of the huge code and cumbersome debugging of the out-of-band refresh tool on the flexibility and efficiency of the out-of-band refresh can be avoided, thereby improving the efficiency and flexibility of the out-of-band refresh. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of an implementation environment provided for an embodiment of the present application;
[0038] Figure 2 A flowchart of a BIOS refresh method provided in an embodiment of the present application;
[0039] Figure 3 A block diagram of a computer device provided in an embodiment of the present application;
[0040] Figure 4 A block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0042] BIOS refers to the basic input-output system (English: Basic Input-Output System) of computer equipment. Generally speaking, BIOS can be understood as a chip that stores the BIOS program. That is, in practical applications, BIOS is a concept that combines hardware and software. Generally speaking, the BIOS program includes post self-test program, basic startup program, basic hardware driver program, etc. It is mainly responsible for the startup of computer equipment and the control and drive of important hardware in computer equipment, and provides basic calls for high-level software.
[0043] In actual applications, when users use or maintain computer equipment, or when designing and developing computer equipment, there is a need to refresh the BIOS. The so-called refreshing of the BIOS refers to changing the program files stored in the BIOS chip.
[0044] BIOS refresh can generally include in-band refresh and out-of-band refresh, among which in-band refresh refers to the BIOS refresh performed in the local environment of the computer device, and is generally implemented using in-band refresh tools, such as AfuEfi, SceEFI and other software tools. Out-of-band refresh refers to the BIOS refresh performed under the remote control of a remote control device, that is, out-of-band refresh refers to the BIOS refresh performed in a non-local environment of the computer device, and is generally implemented using out-of-band refresh tools, such as the Redfish software tool.
[0045] However, in actual applications, the out-of-band refresh tool code is huge and the debugging is cumbersome, which seriously affects the efficiency and flexibility of the out-of-band refresh. In view of this, an embodiment of the present application provides a BIOS refresh method that can improve the efficiency and flexibility of the out-of-band refresh.
[0046] Below, the implementation environment involved in the BIOS refresh method provided in the embodiment of the present application will be briefly described.
[0047] like Figure 1 As shown, the implementation environment may include a computer device 101 and a remote control device 102, wherein the computer device 101 and the remote control device 102 may communicate via a wireless network or a wired network.
[0048] The computer device 101 is provided with a target BMC and a target BIOS, wherein BMC refers to a baseboard management controller, and its full English name is Baseboard Management Controller. In the BIOS refresh method provided in the embodiment of the present application, the target BIOS set in the computer device 101 can be refreshed out-of-band under the remote control of the remote control device 102.
[0049] It should be pointed out that in the embodiment of the present application, the computer device 101 can be a server, a desktop computer, etc., and the embodiment of the present application does not limit the specific type of the computer device 101. The remote control device 102 can also be a server, a desktop computer, etc., and the embodiment of the present application does not limit the specific type of the remote control device 102.
[0050] Please refer to Figure 2 , which shows a flowchart of a BIOS refresh method provided by an embodiment of the present application, the BIOS refresh method can be applied to Figure 1 In the computer device 101 shown. Figure 2 As shown, the BIOS refresh method may include the following steps:
[0051] Step 201: The target BMC in the computer device receives a BIOS refresh file uploaded by a remote control device.
[0052] As described above, a target BMC may be provided in the computer device. During the BIOS refresh process, the remote control device may upload a BIOS refresh file to the target BMC, wherein the BIOS refresh file is a file used to refresh the target BIOS. The BIOS refresh file may be a mirror file. The embodiment of the present application does not limit the specific type of the BIOS refresh file.
[0053] In actual applications, files can usually be uploaded to the BMC through the BMC management webpage. That is, in an embodiment of the present application, the remote control device can provide a BMC management webpage corresponding to the target BMC, and the remote control device can upload the BIOS refresh file to the target BMC through the BMC management webpage.
[0054] After receiving the BIOS refresh file, the target BMC may store the BIOS refresh file in the storage space of the target BMC itself.
[0055] Step 202: The target BIOS in the computer device downloads the BIOS refresh file from the target BMC.
[0056] After detecting that the BIOS refresh file has been uploaded to the target BMC, the target BIOS can download the BIOS refresh file from a preset storage location in the storage space of the target BMC, and store the BIOS refresh file in a designated storage location, wherein the designated storage location can be located in the hard disk of the computer device or in the memory of the target BIOS, and the embodiments of the present application do not specifically limit it.
[0057] Step 203: The target BIOS calls an in-band refresh tool, and the in-band refresh tool refreshes the target BIOS based on the BIOS refresh file.
[0058] It should be pointed out that the in-band refresh tool refers to a software tool used to implement in-band refresh. In actual applications, the in-band refresh tool may be AfuEfi, SceEFI, etc. The embodiment of the present application does not limit the specific type of the in-band refresh tool.
[0059] In an optional embodiment of the present application, the in-band refresh tool can be stored in the hard disk of the computer device, or in the memory of the target BIOS. The present embodiment does not limit the storage location of the in-band refresh tool. Optionally, after the target BIOS downloads the BIOS refresh file from the target BMC, the storage location of the BIOS refresh file and the storage location of the in-band refresh tool can be located in the same storage space, so that the in-band refresh tool can refresh the target BIOS based on the BIOS refresh file.
[0060] In an optional embodiment of the present application, the in-band refresh tool may include a full refresh tool. For example, AfuEfi is an exemplary full refresh tool. The target BIOS can call the full refresh tool to format the program files in the target BIOS and write new program files in the target BIOS according to the BIOS refresh file.
[0061] In an optional embodiment of the present application, the in-band refresh tool may also include an incremental refresh tool. For example, SceEFI is an exemplary full refresh tool. The target BIOS can call the incremental refresh tool. Through the incremental refresh tool, the target field in the program file in the target BIOS is edited based on the BIOS refresh file, wherein the editing process includes adding, deleting, modifying, and the like.
[0062] In the above embodiment, in the process of implementing the out-of-band refresh, the out-of-band refresh tool installed in the remote control device does not refresh the target BIOS in the computer device based on the BIOS refresh file as in the traditional method, but the BIOS refresh file is uploaded to the target BMC of the computer device, and the target BIOS in the computer device downloads the BIOS refresh file from the target BMC, and calls the in-band refresh tool, and the in-band refresh tool is used to refresh the target BIOS based on the BIOS refresh file. In this way, the out-of-band refresh of the target BIOS can be implemented based on the in-band refresh tool, so that the out-of-band refresh can be performed without using the out-of-band refresh tool. Therefore, the negative impact of the huge code and cumbersome debugging of the out-of-band refresh tool on the flexibility and efficiency of the out-of-band refresh can be avoided, thereby improving the efficiency and flexibility of the out-of-band refresh.
[0063] In actual applications, many computer devices are not equipped with hard disks. At the same time, even if the computer device is equipped with a hard disk, the hard disk may be damaged. Taking the above into consideration, the method of storing the in-band refresh tool in the hard disk of the computer device may be difficult to implement in actual applications, or even if it can be implemented, there is a possibility that the target BIOS will fail to call the in-band refresh tool during the process of refreshing the target BIOS.
[0064] In view of this, in order to improve the feasibility and reliability of BIOS refresh, in an optional embodiment of the present application, the in-band refresh tool can be stored in the memory of the target BIOS. In this way, as long as the target BIOS meets the refresh conditions (the target BIOS is set in the computer device and the target BIOS is not damaged), the target BIOS can successfully call the in-band refresh tool.
[0065] In addition, considering that if the in-band refresh tool needs to be stored in the memory of the target BIOS, it is necessary to read and write the memory of the target BIOS during the target BIOS refresh process. In order to achieve the reading and writing of the memory of the target BIOS, in an optional embodiment of the present application, a memory area in the target BIOS (that is, the target memory area) can be virtualized into a target virtual hard disk, and the in-band refresh tool can be stored in the target virtual hard disk. In actual applications, the target BIOS can read and write the target virtual hard disk based on the driver interface.
[0066] Thus, in step 203, the target BIOS can call the in-band refresh tool stored in the target virtual hard disk based on the driver interface described above, so as to refresh the target BIOS based on the BIOS refresh file through the in-band refresh tool.
[0067] In an optional embodiment of the present application, in addition to storing the in-band refresh tool, the target virtual hard disk may also store a refresh script, wherein the functions of the refresh script may include: downloading a BIOS refresh file from the target BMC and calling the in-band refresh tool.
[0068] That is, in an optional embodiment of the present application, the target BIOS can call a refresh script stored in the target virtual hard disk to download the BIOS refresh file from the target BMC to the target virtual hard disk through the refresh script, and call an in-band refresh tool stored in the target virtual hard disk through the refresh script to refresh the target BIOS based on the BIOS refresh file through the in-band refresh tool.
[0069] Similarly to what has been mentioned above, the refresh script is stored in the target virtual hard disk, which fully takes into account that many computer devices do not have hard disks. At the same time, even if the computer device has a hard disk, the hard disk may be damaged, thereby ensuring the feasibility and reliability of BIOS refresh.
[0070] In an optional embodiment of the present application, in order to ensure that the target BIOS can promptly detect that the BIOS refresh file has been uploaded to the target BMC, thereby promptly downloading the BIOS refresh file to ensure the timeliness of the target BIOS refresh, the remote control device can send a BIOS refresh instruction to the target BMC while uploading the BIOS refresh file to the target BMC. The target BMC can receive the BIOS refresh instruction and control the computer device to restart after detecting that the BIOS refresh file has been uploaded. During the process of restarting the computer device, the target BIOS can detect whether the target BMC has received the BIOS refresh instruction. If the target BMC receives the BIOS refresh instruction, it means that the BIOS refresh file has been uploaded to the target BMC. In this case, the target BIOS can download the BIOS refresh file from the target BMC, that is, the target BIOS can call the refresh script stored in the target virtual hard disk to download the BIOS refresh file from the target BMC to the target virtual hard disk through the refresh script.
[0071] In one possible implementation, after receiving the BIOS refresh instruction, the target BMC can store the BIOS refresh instruction in a pre-set storage location in the target BMC. During the restart of the computer device, the target BIOS can detect whether there is data stored in the storage location. If there is data stored in the storage location, the target BIOS can determine that the target BMC has received the BIOS refresh instruction sent by the remote control device.
[0072] In another possible implementation, after receiving the BIOS refresh instruction, the target BMC may change the indication parameter in the target BMC used to characterize whether the BIOS refresh instruction has been received to a first value. For example, the first value may be 1. During the restart of the computer device, the target BIOS may detect whether the indication parameter is the first value. If the indication parameter is the first value, the target BIOS may determine that the target BMC has received the BIOS refresh instruction sent by the remote control device.
[0073] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0074] Please refer to Figure 3 , which shows a computer device 300 provided in an embodiment of the present application, the computer device 300 includes a target BMC 301 and a target BIOS 302.
[0075] The target BMC 301 is used to receive the BIOS refresh file uploaded by the remote control device.
[0076] The target BIOS 302 is used to download the BIOS update file from the target BMC.
[0077] The target BIOS 302 is further used to call an in-band refresh tool, and refresh the target BIOS based on the BIOS refresh file through the in-band refresh tool.
[0078] In an optional embodiment of the present application, the target BIOS 302 is specifically used to call the in-band refresh tool stored in the target virtual hard disk, and refresh the target BIOS based on the BIOS refresh file through the in-band refresh tool, wherein the target virtual hard disk is obtained by virtualizing the target memory area in the target BIOS.
[0079] In an optional embodiment of the present application, the target BIOS 302 is specifically configured to call a refresh script stored in the target virtual hard disk, and to call the in-band refresh tool stored in the target virtual hard disk through the refresh script.
[0080] In an optional embodiment of the present application, the target BIOS 302 is specifically configured to download the BIOS refresh file from the target BMC to the target virtual hard disk through the refresh script.
[0081] In an optional embodiment of the present application, the target BMC 301 is further configured to receive a BIOS refresh instruction sent by the remote control device, and control the computer device to restart after the BIOS refresh file is uploaded.
[0082] Correspondingly, the target BIOS 302 is specifically configured to download the BIOS refresh file from the target BMC when the target BIOS detects that the target BMC receives the BIOS refresh instruction during the restart process.
[0083] In an optional embodiment of the present application, the in-band refresh tool includes a full refresh tool, target BIOS302, which is specifically used to format the program files in the target BIOS through the full refresh tool, and write new program files in the target BIOS according to the BIOS refresh file.
[0084] In an optional embodiment of the present application, the in-band refresh tool includes an incremental refresh tool, and the target BIOS 302 is specifically used to edit the target field in the program file in the target BIOS based on the BIOS refresh file through the incremental refresh tool.
[0085] The computer device provided in the embodiment of the present application can implement the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0086] For specific limitations on computer devices, please refer to the limitations on BIOS refresh methods above, which will not be repeated here.
[0087] The present application embodiment provides an exemplary internal structure diagram of a computer device. Figure 4 As shown, the computer device includes a processor and a memory connected via a system bus. 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the above computer program is executed by the processor, the BIOS refresh method provided in the embodiment of the present application can be implemented. Those skilled in the art can understand that Figure 4 The structure shown in the figure is only a block diagram of a partial structure of a computer device, and does not constitute a limitation on the computer device to which the present application solution is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] In one embodiment of the present application, a computer device is provided, which may be a terminal station. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the following steps are implemented:
[0089] The target BMC receives the BIOS refresh file uploaded by the remote control device; the target BIOS downloads the BIOS refresh file from the target BMC; the target BIOS calls an in-band refresh tool, and refreshes the target BIOS based on the BIOS refresh file through the in-band refresh tool.
[0090] In one embodiment of the present application, when the processor executes the computer program, the following steps are also implemented: the target BIOS calls the in-band refresh tool stored in the target virtual hard disk, and refreshes the target BIOS based on the BIOS refresh file through the in-band refresh tool; wherein the target virtual hard disk is obtained by virtualizing the target memory area in the target BIOS.
[0091] In one embodiment of the present application, when the processor executes the computer program, the following steps are also implemented: the target BIOS calls the refresh script stored in the target virtual hard disk, and calls the in-band refresh tool stored in the target virtual hard disk through the refresh script.
[0092] In one embodiment of the present application, when the processor executes the computer program, the following steps are further implemented: downloading the BIOS refresh file from the target BMC to the target virtual hard disk through the refresh script.
[0093] In one embodiment of the present application, the processor further implements the following steps when executing the computer program: the target BMC receives the BIOS refresh instruction sent by the remote control device, and controls the computer device to restart after the BIOS refresh file is uploaded; if the target BIOS detects that the target BMC has received the BIOS refresh instruction during the restart process, the target BIOS downloads the BIOS refresh file from the target BMC.
[0094] In one embodiment of the present application, the in-band refresh tool includes a full refresh tool, and the processor also implements the following steps when executing the computer program: formatting the program file in the target BIOS through the full refresh tool, and writing a new program file in the target BIOS according to the BIOS refresh file.
[0095] In one embodiment of the present application, the in-band refresh tool includes an incremental refresh tool, and the processor further implements the following steps when executing the computer program: using the incremental refresh tool, editing and processing the target field in the program file in the target BIOS based on the BIOS refresh file.
[0096] The computer device provided in the embodiment of the present application has similar implementation principles and technical effects to those of the above-mentioned method embodiment, and will not be described in detail here.
[0097] In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0098] The target BMC receives the BIOS refresh file uploaded by the remote control device; the target BIOS downloads the BIOS refresh file from the target BMC; the target BIOS calls an in-band refresh tool, and refreshes the target BIOS based on the BIOS refresh file through the in-band refresh tool.
[0099] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: the target BIOS calls the in-band refresh tool stored in the target virtual hard disk, and refreshes the target BIOS based on the BIOS refresh file through the in-band refresh tool; wherein the target virtual hard disk is obtained by virtualizing the target memory area in the target BIOS.
[0100] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: the target BIOS calls the refresh script stored in the target virtual hard disk, and calls the in-band refresh tool stored in the target virtual hard disk through the refresh script.
[0101] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are further implemented: downloading the BIOS refresh file from the target BMC to the target virtual hard disk through the refresh script.
[0102] In one embodiment of the present application, when the computer program is executed by the processor, the following steps are also implemented: the target BMC receives the BIOS refresh instruction sent by the remote control device, and controls the computer device to restart after the BIOS refresh file is uploaded; if the target BIOS detects that the target BMC has received the BIOS refresh instruction during the restart process, the target BIOS downloads the BIOS refresh file from the target BMC.
[0103] In one embodiment of the present application, the in-band refresh tool includes a full refresh tool, and when the computer program is executed by the processor, the following steps are also implemented: the program file in the target BIOS is formatted through the full refresh tool, and a new program file is written in the target BIOS according to the BIOS refresh file.
[0104] In one embodiment of the present application, the in-band refresh tool includes an incremental refresh tool, and when the computer program is executed by the processor, the following steps are also implemented: through the incremental refresh tool, the target field in the program file in the target BIOS is edited based on the BIOS refresh file.
[0105] The computer-readable storage medium provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiments, and will not be described in detail here.
[0106] Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0107] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.
[0108] 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 construed as limiting the scope of the patent 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 patent application shall be subject to the attached claims.
Claims
1. A BIOS refresh method, characterized in that: Used in a computer device, the computer device comprising a target BMC and a target BIOS, the method comprising: The target BMC receives a BIOS refresh file uploaded by a remote control device, where the BIOS refresh file is uploaded to the target BMC by the remote control device through a BMC management webpage corresponding to the target BMC; The target BIOS downloads the BIOS refresh file from the target BMC to the target virtual hard disk through a refresh script; The target BIOS calls the refresh script stored in the target virtual hard disk, calls the in-band refresh tool through the refresh script, and refreshes the target BIOS based on the BIOS refresh file through the in-band refresh tool; The in-band refresh tool is stored in a target virtual hard disk, and the target virtual hard disk is obtained by virtualizing a target memory area in the target BIOS.
2. The method according to claim 1, characterized in that The method further comprises: The target BMC receives the BIOS refresh instruction sent by the remote control device, and controls the computer device to restart after the BIOS refresh file is uploaded; Correspondingly, the target BIOS downloads the BIOS refresh file from the target BMC, including: If the target BIOS detects that the target BMC receives the BIOS refresh instruction during the restart process, the target BIOS downloads the BIOS refresh file from the target BMC.
3. The method according to claim 1, characterized in that: The in-band refresh tool includes a full refresh tool, and refreshing the target BIOS based on the BIOS refresh file by using the in-band refresh tool includes: The program files in the target BIOS are formatted by the full refresh tool, and new program files are written into the target BIOS according to the BIOS refresh file.
4. The method according to claim 1, characterized in that: The in-band refresh tool includes an incremental refresh tool, and refreshing the target BIOS based on the BIOS refresh file by using the in-band refresh tool includes: The incremental refresh tool is used to edit the target field in the program file in the target BIOS based on the BIOS refresh file.
5. The method according to claim 2, characterized in that: During the restart process, the target BIOS determines whether the target BMC has received the BIOS refresh instruction according to whether the indication parameter is a first value.
6. A computer device, characterized in that: The computer device includes a target BMC and a target BIOS; Wherein, the target BMC is used to receive a BIOS refresh file uploaded by a remote control device, wherein the BIOS refresh file is uploaded by the remote control device through a BMC management webpage corresponding to the target BMC; The target BIOS is specifically used to download the BIOS refresh file from the target BMC to the target virtual hard disk through a refresh script; The target BIOS is specifically used to call the refresh script stored in the target virtual hard disk, call the in-band refresh tool through the refresh script, and refresh the target BIOS based on the BIOS refresh file through the in-band refresh tool; The in-band refresh tool is stored in a target virtual hard disk, and the target virtual hard disk is obtained by virtualizing a target memory area in the target BIOS.
7. The device according to claim 6, characterized in that The target BMC 301 is further used to receive the BIOS refresh instruction sent by the remote control device, and control the computer device to restart after the BIOS refresh file is uploaded; Correspondingly, the target BIOS 302 is specifically configured to download the BIOS refresh file from the target BMC if the target BIOS detects that the target BMC receives the BIOS refresh instruction during the restart process.
8. The device according to claim 7, characterized in that During the restart process, the target BIOS determines whether the target BMC has received the BIOS refresh instruction according to whether the indication parameter is a first value.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the BIOS refresh method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the BIOS refresh method according to any one of claims 1 to 5 is implemented.
