BIOS (Basic Input / Output System) control method and device

By clearing the BIOS configuration modification information in the BIOS memory and restarting the BIOS, the BIOS crash problem was solved during the startup phase, and the server was automatically restored and normal operation was achieved.

CN119902805APending Publication Date: 2025-04-29BEIJING QIANHAI YANXIANG ELECTRONIC TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411964977.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The downtime problem occurred during the BIOS startup phase, causing the server to not function properly, especially for users who lack professional knowledge, it is difficult to remove the server from the downtime to restore normalcy.

Method used

By clearing the BIOS configuration modification information stored in the BIOS memory the last time, and controlling the BIOS to restart, it is determined whether the BIOS startup completion instruction is received within the preset time after the BIOS starts. If it is not received, it is cleared and restarted.

Benefits of technology

It can automatically remove the server from the downtime state, restore the server to normal operation, and avoid downtime caused by abnormal BIOS configuration caused by user error operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902805A_ABST
    Figure CN119902805A_ABST
Patent Text Reader

Abstract

The invention provides a BIOS (Basic Input / Output System) control method and device, the method is applied to a BMC (Baseboard Management Controller) side, and the method comprises the following steps: judging whether a starting completion instruction of a BIOS is received within a preset time after the BIOS starts to be started, if not, clearing BIOS configuration modification information stored in a BIOS memory last time, and sending a reset instruction to the BIOS to control the BIOS to be restarted; wherein the BIOS configuration modification information is the modified BIOS configuration item information. According to the method and the device, the server can be automatically relieved from the downtime state by clearing the BIOS configuration modification information stored in the BIOS memory last time and controlling the BIOS to be restarted, so that the server is recovered to be normal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a BIOS control method and a device thereof. Background Art

[0002] BIOS (Basic Input Output System) is a set of programs fixed on a ROM (Read-Only Memory) chip on the computer's motherboard. It stores the most important basic input and output programs of the computer, the self-test program after powering on, and the system self-starting program. It can read and write specific information of system settings from CMOS (Complementary Metal Oxide Semiconductor). Its main function is to provide the most basic and direct hardware settings and control for the computer.

[0003] The BIOS Setup interface is a text-based tool that allows users to configure the system and view the current settings and environment information of the platform devices. If the user does not understand the BIOS Setup options, makes a wrong operation, or configures them abnormally, the server may crash during the boot process, causing the server to fail to operate normally. For some users who lack professional knowledge, it is difficult to release the server from the crash state and restore it to normal. Summary of the invention

[0004] To solve the above problems, the BIOS control method and device provided by the present invention can automatically release the server from the downtime state when the server crashes during the BIOS startup phase by clearing the most recent BIOS configuration modification information stored in the BIOS memory and controlling the BIOS to restart, so that the server can return to normal.

[0005] In a first aspect, the present invention provides a BIOS control method, which is applied to a BMC (Baseboard Management Controller) side, and includes:

[0006] Determine whether a BIOS startup completion instruction is received within a preset time after the BIOS starts to start. If not, clear the BIOS configuration modification information stored in the BIOS memory for the last time, and send a reset instruction to control the BIOS to restart.

[0007] The BIOS configuration modification information is the modified BIOS configuration item information.

[0008] Optionally, the method further comprises:

[0009] Each time the BIOS configuration modification information is stored in the BIOS memory, a storage path of the BIOS configuration modification information is recorded to obtain path record information;

[0010] The steps for clearing the most recent BIOS configuration modification information stored in the BIOS memory include:

[0011] According to the path record information corresponding to the BIOS configuration modification information stored in the BIOS memory most recently, the BIOS configuration modification information stored in the BIOS memory most recently is cleared.

[0012] Optionally, the method further comprises:

[0013] A corresponding modification flag is configured for the path record information, and the modification flag is used to mark the order in which the BIOS configuration item information corresponding to the path record information is modified.

[0014] Optionally, the method further comprises:

[0015] After the BIOS is restarted, all path record information and corresponding modification identifiers are cleared, or the path record information and corresponding modification identifiers corresponding to the most recently cleared BIOS configuration modification information are cleared.

[0016] Optionally, all BIOS configuration item information is stored in the BIOS memory in the form of N-level menus, where N is an integer greater than or equal to 1;

[0017] The path record information includes data bits, and the data bits include N+1 bytes. The first M bytes of the data bits are used to record the final menu of the corresponding BIOS configuration modification information in the N-level menu, and the M+1th byte is used to record the position of the BIOS configuration modification information in the final menu, where M is determined by the level of the final menu where the BIOS configuration modification information is located.

[0018] Optionally, before the step of determining whether a startup completion instruction of the BIOS is received within a preset time after the BIOS starts to boot, the method further includes:

[0019] When it is detected that the server starts to power on, the watchdog module is turned on for timing;

[0020] After the step of determining whether a BIOS startup completion instruction is received within a preset time after the BIOS starts to start, the method further includes:

[0021] When a startup completion instruction of the BIOS is received within a preset time after the BIOS starts to start, the watchdog module is turned off.

[0022] Optionally, the method further comprises:

[0023] When the BIOS boot completion instruction is not received within a preset time after the BIOS starts booting, the first identification information is stored in the abnormal identification bit;

[0024] When a startup completion instruction of the BIOS is received within a preset time after the BIOS starts to start, second identification information is stored in the abnormal identification bit, and the first identification information is different from the second identification information.

[0025] In a second aspect, the present invention provides a BIOS control method, which is applied to the BIOS side in the first aspect, and includes:

[0026] Receiving a reset instruction sent by the BMC; the reset instruction is an instruction sent by the BMC after clearing the abnormal BIOS configuration modification information stored in the BIOS memory the last time; the BIOS configuration modification information is the modified BIOS configuration item information;

[0027] Restart according to the reset instruction and the BIOS configuration item information stored in the BIOS memory.

[0028] Optionally, the method further comprises:

[0029] During the BIOS restart process, the abnormal flag bit on the BMC is read, and according to the information stored in the abnormal flag bit, it is determined whether an abnormality occurred in the last startup of the BIOS.

[0030] Optionally, the method further comprises:

[0031] When it is confirmed that an abnormality occurs in the last startup of the BIOS, the path record information corresponding to the BIOS configuration modification information that was most recently cleared by the BMC is obtained according to the modification identifier;

[0032] Parse the path record information to obtain the access path used to access the abnormal location;

[0033] Display access paths;

[0034] Among them, the path record information includes data bits, the data bits include N+1 bytes, the first M bytes of the data bits are used to record the final menu of the corresponding BIOS configuration modification information in the N-level menu, and the M+1th byte is used to record the position of the BIOS configuration modification information in the final menu, and M is determined by the level of the final menu where the BIOS configuration modification information is located.

[0035] In a third aspect, the present invention provides a BIOS control device, which is used to implement the method in the first aspect.

[0036] In a fourth aspect, the present invention provides a BIOS control device, which is used to implement the method in the second aspect.

[0037] The BIOS control method and device provided by the embodiment of the present invention judge whether a BIOS startup completion instruction is received within a preset time after the BIOS starts to start, and if it is judged that the BIOS startup completion instruction is not received within the preset time after the BIOS starts to start, the BIOS configuration modification information most recently stored in the BIOS memory is cleared, and the BIOS is controlled to restart. When a server crashes during the BIOS startup phase, the server can be automatically released from the crash state to restore the server to normal. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 is a schematic block diagram of the BIOS Setup menu;

[0040] Figure 2 A schematic flow chart of a BIOS control method according to an embodiment of the present application;

[0041] Figure 3 A schematic flow chart of a BIOS control method according to an embodiment of the present application;

[0042] Figure 4 It is a schematic block diagram of the BIOS variable area. DETAILED DESCRIPTION

[0043] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0045] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.

[0046] For the present invention, the server has a set of default BIOS Setup options when it leaves the factory; however, in actual use, customers may modify the BIOS Setup options according to their actual business scenarios. If the modification is inappropriate, it may cause anomalies or even crashes when the server system starts.

[0047] The BIOS startup control method and device provided by the embodiment of the present invention can prevent the downtime caused by abnormal operation of BIOS Setup, and can quickly understand which specific BIOS Item (BIOS option) modification caused the abnormality.

[0048] It is understandable that the BIOS firmware program is stored in the flash (flash memory) of the server motherboard, and the content stored in the flash will not be lost when the server loses power. Among them, the BIOS variable area is used to store the configuration information in the BIOS Setup menu; the BIOS Setup menu is as follows: Figure 1 The BIOS Setup menu includes the following main options: Main, Advanced, Socket Configuration, Platform Configuration, Server Mgmt, Security, Boot, Save&Exit, etc. Each main option corresponds to at least one level of menu in the flash. For example, the configuration path of the memory RAS (Reliability, Availability, Serviceability) function is Socket Configuration->Memory Configuration->Memory Ras Configuration. The overall BIOS Setup menu depth is generally no more than 5 levels, but it is not limited to this. It is understandable that Figure 1 This is only a brief representation of the BIOS Setup menu. In the actual BIOS Setup menu, the content is not limited to this.

[0049] The BIOS Setup menu contains display information and configuration information, where the configuration information is also called BIOS configuration item information. The display information displays some main parameter information such as CPU (Central Processing Unit), memory and other information, and this type of information is only displayed and cannot be configured, and does not need to be saved in the BIOS variable area; the configuration information is information that can be configured manually. When the information is manually changed and saved, the modified configuration information will be saved in the BIOS variable area.

[0050] Example 1

[0051] This embodiment provides a BIOS control method, combined with Figure 2 and Figure 3 The method is applied to the BMC side and includes:

[0052] Determine whether a BIOS startup completion instruction is received within a preset time after the BIOS starts to start. If not, clear the most recent BIOS configuration modification information stored in the BIOS memory, and the BIOS sends a reset instruction to control the BIOS to restart.

[0053] The BIOS configuration modification information is the modified BIOS configuration item information; the BIOS stores it in BIOSFlash.

[0054] It can be understood that the BIOS configuration item information is the initial configuration information of the server set at the factory, and the changes are all BIOS configuration modification information, that is, the configuration information at the same position in the BIOS variable area is the same as the initial configuration information after multiple modifications, which is also the BIOS configuration modification information. For any BIOS configuration item information, it corresponds to a BIOS Item, hereinafter referred to as option. For most BIOS configuration item information, it can only switch between two types of information, that is, the configuration information at a position in the BIOS variable area is either the initial configuration information 0, or can only be the modified configuration information 1. There are also a few BIOS configuration item information that can be any of a variety of other configuration information different from the initial configuration information in addition to the initial configuration information, and this embodiment does not specifically limit this.

[0055] It should be noted that after the most recent BIOS configuration modification information stored in the BIOS memory is cleared, the data stored in the original position in the BIOS memory is defaulted to be the initial configuration data, that is, after the most recent BIOS configuration modification information stored in the BIOS memory is cleared, and in the process of the BIOS reading the BIOS configuration data in the BIOS memory for restarting, the BIOS will complete the restart according to the initial configuration information. In other words, in this embodiment, the step of clearing the most recent BIOS configuration modification information stored in the BIOS memory is to restore the most recent BIOS configuration modification information stored in the BIOS memory to the corresponding initial configuration information.

[0056] At the same time, for the startup phase of BIOS, when the server starts, BIOS also starts to start, BIOS sends a startup instruction to BMC, and BMC starts timing when receiving the startup instruction, which means that BMC detects that the server starts to power on and start, and BMC starts to determine whether the startup completion instruction of BIOS is received within the preset time after BIOS starts to start. Among them, the preset time is determined manually, such as in the range of 2 to 10 seconds, any value is selected as the preset time value, such as 3 seconds, 5 seconds or 8 seconds. This embodiment does not make specific restrictions on this. When the BIOS startup is completed, BIOS enters the BIOS Setup menu and sends a startup completion instruction to BMC, so that BMC can perform operations such as erasing, modifying, and writing on the BIOS Flash that has been started, that is, modifying the BIOS configuration item information, wherein the modified information is the BIOS configuration modification information.

[0057] In the process of BMC controlling BIOS to restart, BMC sends a reset instruction to BIOS, and the reset instruction may be a level signal. BIOS can restart after receiving the reset instruction. In this embodiment, BIOS startup includes BIOS restart, and the BIOS restart in this embodiment is a restart operation performed by BMC on BIOS due to clearing the most recent BIOS configuration modification information stored in the BIOS memory.

[0058] The BIOS control method provided in this embodiment determines whether a BIOS startup completion instruction is received within a preset time after the BIOS starts to start, and if it is determined that the BIOS startup completion instruction is not received within the preset time after the BIOS starts to start, it clears the BIOS configuration modification information most recently stored in the BIOS memory and controls the BIOS to restart. When a server crashes during the BIOS startup phase, the server can be automatically released from a crash state to restore the server to normal.

[0059] It should be noted that, in this embodiment, the BIOS variable area is first divided to specify a specific location to store specific BIOS configuration item information. Figure 4 .pass Figure 4 This division method makes the location where each configuration information is stored in the BIOS memory fixed, that is, after a certain option is changed, the location where the changed configuration information is stored in the BIOS variable area remains unchanged.

[0060] In a further optional embodiment of the present embodiment, the method further includes: each time the BIOS configuration modification information is stored in the BIOS memory, a storage path of the BIOS configuration modification information is recorded to obtain path record information.

[0061] Specifically, after entering the BIOS Setup menu, when the user modifies an option in the BIOS Setup menu and saves it, the BIOS side generates a corresponding modification record information and sends the modification record information to the BMC side. After receiving the modification record information, the BMC saves the path record information therein.

[0062] The modification record information includes path record information, and the specific format of the modification record information is shown in Table 1.

[0063] Table 1

[0064] Start bit Instruction bit Data bits Check digit End bit Fixed value XX XX XX Fixed value

[0065] In Table 1, the value on the start bit is a fixed value; the instruction bit is the instruction information sent by the BIOS side, and the instruction information includes the instruction to send configuration information, the instruction to obtain response, and other instructions; the data bit is the path record information, wherein the number of bytes of the data bit is determined by the overall BIOS Setup menu depth. In this embodiment, the overall BIOS Setup menu depth is 5, and the data bit includes 6 bytes. The specific format of the path record information is {X1, X2, X3, X4, X5, X6}, wherein X1 represents the position of the BIOS configuration modification information in the BIOS variable area, which belongs to the project box in the first-level interface, that is, which main option among the multiple main options of Main~Save&Exit, and X2~X6 correspond to the options of the first to fifth-level menu interfaces under the corresponding options in the main interface of the BIOS configuration modification information. It can be seen from this that the path record information sent by the BIOS side is not the actual modified data value, but a representative bit composed of six bytes. For example, when the value of a BIOS configuration item information is modified to 500, the BIOS side does not send the actual modified value, but sends a representative bit composed of six bytes of the modified configuration value, so that the storage space occupied by the path record information can be saved. The value on the check bit is the check value of all the previous data; the value on the end bit is a fixed value. The fixed value on the end bit can be the same as or different from the fixed value on the start bit, and this embodiment does not specifically limit this.

[0066] The step of clearing the most recent BIOS configuration modification information stored in the BIOS memory includes: receiving modification record information, and clearing the most recent BIOS configuration modification information stored in the BIOS memory according to the path record information corresponding to the most recent BIOS configuration modification information stored in the BIOS memory.

[0067] At the same time, the step of recording the storage path of the BIOS configuration modification information to obtain the path record information can be understood as the BMC storing the recorded path record information. Specifically, the BMC can store the path record information in a stacked manner, that is, the BMC will permanently save each modification of the BIOS, so that it is easy to view the historical modification records of the BIOS.

[0068] Similarly, when only one option is modified after each BIOS startup, the BMC may also save the path record information in an overwritten manner, that is, the BMC only saves one path record information.

[0069] It is understandable that when modifying the BIOS configuration item information in the BIOS memory, only one option can be modified when the server is started once and the BIOS Setup menu is entered, or multiple options can be modified. When only one option is modified, the BMC only stores one path record information; when multiple options are modified, the BMC stores the path record information corresponding to each option separately.

[0070] In a further optional embodiment of the present embodiment, the method further includes: after the BIOS is restarted, clearing all path record information, or clearing the path record information corresponding to the most recently cleared BIOS configuration modification information.

[0071] It can be understood that after the BIOS is restarted, it means that the most recently stored BIOS configuration modification information in the BIOS memory has been deleted, and there is no abnormal BIOS configuration modification information in the BIOS memory. Clearing all path record information, or clearing the path record information corresponding to the most recently cleared BIOS configuration modification information, can effectively reduce the storage space occupied by data on the BMC side.

[0072] Furthermore, after the BIOS startup is completed and the BIOS Setup menu is entered, after multiple options are modified, if a crash occurs, that is, the startup completion instruction is not received within the preset time when the startup instruction is received, the BIOS configuration modification information corresponding to the last modified option can be cleared first, and then the BIOS or server can be restarted. If the startup completion instruction is still not received within the preset time when the startup instruction is received, the BIOS configuration modification information corresponding to the penultimate option modified will continue to be deleted, and this cycle will be repeated until the startup completion instruction is received within the preset time when the drive instruction is received. At this time, some options that were modified in the BIOS Setup menu when the BIOS startup was completed last time may be retained, and all options that were modified in the BIOS Setup menu when the BIOS startup was completed last time will be cleared and restored to the initial state, that is, the configuration information corresponding to all modified options will be restored to the corresponding initial configuration information. The specific situation is determined by the actual modification results and will not be elaborated here.

[0073] After the BIOS boot is completed and enters the BIOS Setup menu, if multiple options are modified and a crash occurs, that is, the boot completion instruction is not received within the preset time when the boot instruction is received, the BIOS configuration modification information corresponding to all the options modified this time can be directly cleared. In this way, when the BIOS is restarted, the BIOS can quickly complete the restart and enter the BIOS Setup menu.

[0074] In a further optional embodiment of this embodiment, the method further includes: configuring a corresponding modification flag for the path record information.

[0075] The modification flag is used to mark the order in which the BIOS configuration item information corresponding to the path record information is modified.

[0076] It is understandable that the modification identifier may be generated when the BMC receives the path record information, or may be generated after the BMC saves the path record information. In this embodiment, after the BMC receives the modification record information sent by the BIOS side, the BMC side generates a record information, and the record information includes: the modification identifier and the path record information, wherein the specific format of the record information is shown in Table 2.

[0077] Table 2

[0078] IDx Configuration information representative bit

[0079] In Table 2, IDx is the modification identifier, representing the order of modification, such as the first modification is ID1, the second modification is ID2, and so on; the configuration information representative bit is the content of the data bit in the modification record information, that is, the path record information.

[0080] By setting the modification flag, the user can view the modification order of the BIOS configuration item information, and the BMC can quickly find the location of the most recent BIOS configuration modification information in the BIOS memory.

[0081] In a further optional embodiment of the present embodiment, the method further includes: after the BIOS is restarted, clearing all path record information and corresponding modification identifiers, or clearing the path record information and corresponding modification identifiers corresponding to the most recently cleared BIOS configuration modification information.

[0082] In a further optional embodiment of the present embodiment, all BIOS configuration item information is stored in the BIOS memory in the form of N-level menus, where N is an integer greater than or equal to 1.

[0083] The path record information includes data bits, and the data bits include N+1 bytes. The first M bytes of the data bits are used to record the final menu of the corresponding BIOS configuration modification information in the N-level menu, and the M+1th byte is used to record the position of the BIOS configuration modification information in the final menu, where M is determined by the level of the final menu where the BIOS configuration modification information is located.

[0084] Combination Figure 1 and Figure 4BIOS configuration item information is stored in the BIOS memory in the form of N-level menus. It can be understood that, as the number of levels of directory for a specific BIOS configuration item information in the BIOS Setup menu increases, there will be a menu of the same level corresponding to it in the BIOS variable area.

[0085] For example, if a BIOS configuration item information under Advanced exists in the 3rd-level directory of the BIOS Setup menu, that is, in the 2.2.1.3-level subdirectory, in other words, in the BIOS Setup menu, you need to select the 2.2-level directory in Advanced in the main options and open it, then select the 2.2.1-level subdirectory to open it, and finally select the 2.2.1.3-level subdirectory in the 2.2.1-level subdirectory and open it to find the corresponding BIOS configuration item information.

[0086] At this time, the BIOS configuration item information is stored in the BIOS variable area in a manner that corresponds to a three-level menu, that is, each level of directory corresponds to a menu of the same level, and each level of menu stores all BIOS configuration item information in the corresponding directory.

[0087] Still taking the options under Advanced as an example, if the first-level directory under Advanced includes 2.1 to 2.n, where n is a positive integer, then the first-level menu under the BIOS variable area Advanced stores the BIOS configuration item information corresponding to the 2.1-level directory to the 2.n-level directory; the second-level directory under Advanced includes the 2.1-level subdirectory to the 2.n-level subdirectory, then the second-level menu under the BIOS variable area Advanced stores the BIOS configuration item information corresponding to the 2.1-level subdirectory to the 2.n-level subdirectory; similarly, the third-level directory under Advanced includes the subdirectory of the 2.1-level subdirectory to the subdirectory of the 2.ny-level subdirectory, where y is a natural number, then the third-level menu under the BIOS variable area Advanced stores the BIOS configuration item information corresponding to the subdirectory of the 2.1-level subdirectory to the subdirectory of the 2.ny-level subdirectory. And so on until all the BIOS configuration item information is stored.

[0088] Specifically, taking N as 5 as an example, if the BIOS configuration item information in the 3.1.1.2-level subdirectory under the Socket Configuration main option in the project box stored in the BIOS memory is modified, its path record information is {3, 1, 1, 2, 0, 0}; if the BIOS configuration item information in the 4.1.2.2.3.1-level subdirectory under the Socket Platform Configuration main option in the project box stored in the BIOS memory is modified, its path record information is {4, 1, 2, 2, 3, 1}.

[0089] In a further optional embodiment of the present embodiment, before the step of determining whether a BIOS startup completion instruction is received within a preset time after the BIOS starts to start, the method further includes: when it is detected that the server starts to power on, starting a watchdog module for timing.

[0090] After the step of determining whether the BIOS startup completion instruction is received within the preset time after the BIOS starts to start, the method further includes: when the BIOS startup completion instruction is received within the preset time after the BIOS starts to start, turning off the watchdog module. The preset time can be flexibly adjusted by setting the watchdog module. It is understandable that the watchdog module is turned off when the timing of the watchdog module reaches the preset time.

[0091] In a further optional embodiment of this embodiment, the method further includes: when the BIOS startup completion instruction is not received within a preset time after the BIOS starts to start, storing first identification information in the abnormal identification bit. When the BIOS startup completion instruction is received within a preset time after the BIOS starts to start, storing second identification information in the abnormal identification bit, and the first identification information is different from the second identification information.

[0092] By setting the abnormal flag bit, it is possible to mark whether the BIOS has an abnormality when it is last started, so that when the BIOS is started again, it can be determined whether the BIOS has an abnormality when it is last started, so as to determine whether it is necessary to obtain corresponding abnormal information and display the obtained abnormal information. In this embodiment, the first identification information is 1, and the second identification information is 0; the abnormal information is the path record information corresponding to the BIOS configuration modification information cleared when the BIOS was last started.

[0093] Example 2

[0094] This embodiment provides a BIOS control method, combined with Figure 3 The method is applied to the BIOS side in Example 1, and the method includes:

[0095] Receiving a reset instruction sent by the BMC; the reset instruction is an instruction sent by the BMC after clearing the abnormal BIOS configuration modification information stored in the BIOS memory the last time; the BIOS configuration modification information is the modified BIOS configuration item information;

[0096] Restart according to the reset instruction and the BIOS configuration item information stored in the BIOS memory.

[0097] The abnormal BIOS configuration modification information is the BIOS configuration item information that can cause abnormal BIOS startup. It should be noted that the reset instruction sent by the BMC after clearing the abnormal BIOS configuration modification information stored in the BIOS memory last time is also used to perform other operations as in Example 1, which will not be repeated here.

[0098] The BIOS control method provided in the embodiment of the present invention controls the BIOS to restart after the BMC clears the reset instruction sent after the abnormal BIOS configuration modification information most recently stored in the BIOS memory, so that when the server crashes during the BIOS startup phase, the server can be automatically released from the crash state to restore the server to normal.

[0099] In a further optional embodiment of the present embodiment, the method further includes: during the BIOS restart process, reading the abnormality flag on the BMC, and judging whether an abnormality occurred in the last startup of the BIOS according to the information stored in the abnormality flag.

[0100] In a further optional embodiment of this embodiment, the method further includes:

[0101] When it is confirmed that an abnormality occurs in the last startup of the BIOS, the path record information corresponding to the BIOS configuration modification information that was most recently cleared by the BMC is obtained according to the modification identifier;

[0102] Parse the path record information to obtain the access path used to access the abnormal location;

[0103] Display access paths;

[0104] Among them, the path record information includes data bits, the data bits include N+1 bytes, the first M bytes of the data bits are used to record the final menu of the corresponding BIOS configuration modification information in the N-level menu, and the M+1th byte is used to record the position of the BIOS configuration modification information in the final menu, and M is determined by the level of the final menu where the BIOS configuration modification information is located.

[0105] In a further optional embodiment of the present embodiment, when an exception occurs in the last startup of the BIOS, before the step of obtaining the path record information corresponding to the BIOS configuration modification information most recently cleared by the BMC according to the modification identifier, the method also includes: reading the information on the exception identifier to determine whether an exception occurs in the last startup of the BIOS.

[0106] Example 3

[0107] Based on the contents of embodiments 1 and 2, this embodiment provides a BIOS control method, combined with Figure 3 , the method comprising:

[0108] The server is powered on, the BIOS is started, and the BIOS sends a startup command to the BMC; the BMC receives the startup command and turns on the watchdog module to count, to determine whether the startup completion command of the BIOS is received within a preset time.

[0109] When the BMC does not receive the BIOS startup completion instruction within the preset time, the watchdog module is turned off, the exception flag is set to 1, and the path record information corresponding to the most recently cleared BIOS configuration modification information is searched in the record information table. According to the path record information corresponding to the most recently cleared BIOS configuration modification information, the most recently cleared BIOS configuration modification information stored in the BIOS memory is cleared, and the BIOS is controlled to restart.

[0110] When the BMC receives the boot completion instruction from the BIOS within the preset time, the watchdog module is turned off and the abnormal flag is set to 0. At this time, the BIOS enters the BIOS Setup menu and reads the information on the abnormal flag. When the BIOS detects that the information on the abnormal flag is the first identification information, the BIOS remains in the waiting state for the operation instruction. In an optional embodiment, the server exits the BIOS when the BIOS remains in the waiting state for the operation instruction for a specified time.

[0111] When the BIOS detects that the information on the abnormal identification bit is the second identification information, the BIOS obtains the path record information corresponding to the BIOS configuration modification information most recently cleared by the BMC from the BMC side, then parses the path record information, obtains the access path for accessing the abnormal location, and displays the access path.

[0112] After the BIOS enters the BIOS Setup menu, if the user modifies and saves the BIOS configuration item information, the BIOS generates corresponding modification record information and sends the modification record information to the BMC. The BMC receives the modification record information and saves the modification record information in the format of record information.

[0113] Example 4

[0114] This embodiment provides a BIOS control device, which is used to implement the method in Embodiment 1.

[0115] Example 5

[0116] This embodiment provides a BIOS control device, which is used to implement the method in Embodiment 2.

[0117] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

[0118] 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.

[0119] The above-mentioned 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 BIOS control method, characterized in that: The method is applied to BMC, and the method comprises: Determine whether a startup completion instruction of the BIOS is received within a preset time after the BIOS starts to start, and if not, clear the BIOS configuration modification information most recently stored in the BIOS memory, and send a reset instruction to the BIOS to control the BIOS to restart; The BIOS configuration modification information is the modified BIOS configuration item information.

2. The method according to claim 1, characterized in that The method further comprises: Each time the BIOS memory stores the BIOS configuration modification information, the storage path of the BIOS configuration modification information is recorded to obtain path record information; The step of clearing the most recent BIOS configuration modification information stored in the BIOS memory comprises: According to the path record information corresponding to the BIOS configuration modification information most recently stored in the BIOS memory, the BIOS configuration modification information most recently stored in the BIOS memory is cleared.

3. The method according to claim 2, characterized in that The method further comprises: Configuring a corresponding modification flag for the path record information, wherein the modification flag is used to mark the order in which the BIOS configuration item information corresponding to the path record information is modified; After the BIOS is restarted, all path record information and corresponding modification identifiers are cleared, or the path record information and corresponding modification identifiers corresponding to the most recently cleared BIOS configuration modification information are cleared.

4. The method according to claim 2, characterized in that: All the BIOS configuration item information is stored in the BIOS memory in the form of N-level menus, where N is an integer greater than or equal to 1; The path record information includes data bits, and the data bits include N+1 bytes. The first M bytes of the data bits are used to record the final menu of the corresponding BIOS configuration modification information in the N-level menu, and the M+1th byte is used to record the position of the BIOS configuration modification information in the final menu, where M is determined by the level of the final menu where the BIOS configuration modification information is located.

5. The method according to any one of claims 1 to 4, characterized in that Before the step of determining whether a startup completion instruction of the BIOS is received within a preset time after the BIOS starts to start, the method further includes: When it is detected that the server starts to power on, the watchdog module is turned on for timing; After the step of determining whether a startup completion instruction of the BIOS is received within a preset time after the BIOS starts to start, the method further includes: When a startup completion instruction of the BIOS is received within a preset time after the BIOS starts to boot, the watchdog module is turned off.

6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: When the startup completion instruction of the BIOS is not received within a preset time after the BIOS starts to start, storing first identification information in the abnormal identification bit; When a startup completion instruction of the BIOS is received within a preset time after the BIOS starts to start, second identification information is stored in the abnormal identification bit, and the first identification information is different from the second identification information.

7. A BIOS control method, characterized in that: The method is applied to the BIOS according to any one of claims 1 to 6, and the method comprises: receiving a reset instruction sent by the BMC; the reset instruction is an instruction sent by the BMC after clearing the most recent BIOS configuration modification information stored in the BIOS memory; the BIOS configuration modification information is the modified BIOS configuration item information; Restarting is performed according to the reset instruction and the BIOS configuration item information stored in the BIOS memory.

8. The method according to claim 7, characterized in that The method further comprises: During the BIOS restart process, the abnormality flag on the BMC is read, and it is determined whether an abnormality occurs in the last startup according to the information stored in the abnormality flag.

9. The method according to claim 8, characterized in that The method further comprises: When confirming that the BIOS has an abnormality in the last startup, obtaining, according to the modification identifier, the path record information corresponding to the BIOS configuration modification information that was most recently cleared by the BMC; Parsing the path record information to obtain an access path for accessing the abnormal location; Displaying the access path; Wherein, the path record information includes data bits, and the data bits include N+1 bytes. The first M bytes of the data bits are used to record the final menu of the corresponding BIOS configuration modification information in the N-level menu, and the M+1th byte is used to record the position of the BIOS configuration modification information in the final menu, and M is determined by the level of the final menu where the BIOS configuration modification information is located.

10. A BIOS control device, the device being used to implement the method according to any one of claims 1 to 6 or 7 to 9.