Method, system, terminal and storage medium for forcing BIOS to restore factory parameters

By defining and saving the initial identifier in the initial state of the BIOS, and generating a unique identifier for comparison when the BIOS version is refreshed, the problem of being unable to force a factory reset after a BIOS update is solved, and the reliability and reliability of the BIOS factory reset are achieved. Automation reduces the impact of human error.

CN114816857BActive Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210469454.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-30
Publication Date
2024-10-18
Estimated Expiration
2042-04-30

AI Technical Summary

Technical Problem

Existing technology cannot effectively guarantee the forced restoration of factory settings after BIOS update, which is greatly affected by human factors.

Method used

Define the initial identifier in the initial BIOS state and save it to the specified address. When refreshing the BIOS version, generate a unique identifier and compare the two for consistency. If they are inconsistent, they will be forced to restore to the default factory value.

Benefits of technology

It reduces the problem of the new version of BIOS not being restored to factory settings due to operator error. The design principle is reliable, the structure is simple, and it has broad application prospects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816857B_ABST
    Figure CN114816857B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of server technology, and specifically provides a method, system, terminal and storage medium for forcing BIOS to restore factory parameters, including: defining a set of initial identifiers in the initial state of BIOS and saving the initial identifiers to a specified address; generating a unique identifier for the new BIOS when refreshing the BIOS version; comparing the consistency of the unique identifier with the initial identifier, and forcing the BIOS to perform an operation of restoring the parameters to the default factory values ​​if the two are inconsistent. When a new BIOS is refreshed and the new BIOS needs to be restored to the default factory values, it is no longer dependent on the operator's selection operation, thereby reducing the problem of the new version of BIOS not being restored to factory settings due to improper operation by personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a method, system, terminal and storage medium for forcing BIOS to restore factory parameters. Background Art

[0002] BIOS parameters are the settings of some software and hardware of the current system. These parameters have default values ​​in the factory-installed machines. Of course, customers can also modify them manually in the setup interface. After modification, you can also perform the operation of restoring the factory values. In addition, when updating the BIOS, you can manually choose whether to save the previously manually modified values ​​or restore them to the factory values ​​after updating the BIOS.

[0003] In the prior art, BIOS parameter values ​​are set by using tools. For example, when updating the BIOS by using the tool, the user can choose to retain the value manually modified by the user or choose to restore to the default factory value through the control parameters provided by the tool.

[0004] However, when updating the BIOS involves some special requirements, we need to perform factory reset when updating the BIOS. However, the tool cannot ensure that the control parameters are added correctly, which is greatly affected by human factors. Summary of the invention

[0005] In view of the problem in the prior art that it is impossible to ensure that BIOS parameters are forced to be restored to factory settings after updating the BIOS, the present invention provides a method, system, terminal and storage medium for forcing the BIOS to restore factory parameters to solve the above technical problem.

[0006] In a first aspect, the present invention provides a method for forcing BIOS to restore factory parameters, comprising:

[0007] Define a set of initial identifiers in the BIOS initial state and save the initial identifiers to a specified address;

[0008] Generate a unique identifier for the new BIOS when flashing the BIOS version;

[0009] The unique identifier is compared with the initial identifier for consistency. If the two are inconsistent, the BIOS is forced to perform an operation of restoring the parameters to the default factory values.

[0010] Further, a set of initial identifiers is defined in the BIOS initial state and the initial identifiers are saved to a specified address, including:

[0011] A set of globally unique identifiers is defined as initial identifiers in the initial version of BIOS;

[0012] Save the initial identifier to the specified path in the serial peripheral interface read-only memory.

[0013] Furthermore, when the BIOS version is updated, a unique identifier is generated for the new BIOS, including:

[0014] When compiling a new version of BIOS, the unique identifier is updated in the new version of BIOS code;

[0015] Flash the new version of BIOS to the server and read the unique identifier of the new version of BIOS code after the server is powered on.

[0016] In a second aspect, the present invention provides a system for forcing BIOS to restore factory parameters, comprising:

[0017] An initial identification unit, used to define a set of initial identifiers in the initial state of the BIOS and save the initial identifiers to a specified address;

[0018] An identification refresh unit, used for generating a unique identifier for a new BIOS when refreshing the BIOS version;

[0019] The operation execution unit is used to compare the consistency of the unique identifier with the initial identifier. If the two are inconsistent, the BIOS is forced to execute an operation of restoring the parameters to the default factory values.

[0020] Furthermore, the initial identification unit includes:

[0021] An initial marking module, used for defining a set of globally unique identifiers as initial identifiers in an initial version of the BIOS;

[0022] The tag storage module is used for saving the initial identifier to a specified path of the serial peripheral interface read-only memory.

[0023] Furthermore, the identification updating unit includes:

[0024] A version update module, used for updating a unique identifier in a new version of BIOS code when compiling a new version of BIOS;

[0025] The update reading module is used to flash the new version of BIOS to the server and read the unique identifier of the new version of BIOS code after the server is powered on.

[0026] In a third aspect, a terminal is provided, including:

[0027] processor, memory, wherein:

[0028] The memory is used to store computer programs.

[0029] The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.

[0030] According to a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.

[0031] The beneficial effects of the present invention are:

[0032] The method, system, terminal and storage medium for forcing BIOS to restore factory parameters provided by the present invention no longer rely on the operator's selection operation when a new BIOS is flashed and the new BIOS needs to be restored to default factory values, thereby reducing the problem of the new version of BIOS not being restored to factory settings due to improper human operation.

[0033] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0035] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

[0036] Figure 2 is a schematic block diagram of a system according to an embodiment of the present invention.

[0037] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0039] The key terms appearing in the present invention are explained below.

[0040] BIOS is the abbreviation of "Basic Input Output System". The Chinese name is "Basic Input Output System". On IBM PC compatible systems, it is an industry-standard firmware interface. It is a set of programs fixed to a ROM chip on the motherboard of the computer. It stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program. It can read and write specific information of system settings from CMOS. Its main function is to provide the lowest-level and most direct hardware settings and control for the computer. In addition, BIOS also provides some system parameters to the operating system. Changes in system hardware are hidden by BIOS, and programs use BIOS functions instead of directly controlling hardware. Modern operating systems ignore the abstraction layer provided by BIOS and directly control hardware components.

[0041] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1 The execution subject may be a system that forces the BIOS to restore factory parameters.

[0042] like Figure 1 As shown, the method includes:

[0043] Step 110, defining a set of initial identifiers in the BIOS initial state and saving the initial identifiers to a specified address;

[0044] Step 120, generating a unique identifier for the new BIOS when refreshing the BIOS version;

[0045] Step 130, comparing the consistency of the unique identifier with the initial identifier, if the two are inconsistent, forcing the BIOS to execute an operation of restoring the parameters to the default factory values.

[0046] To facilitate understanding of the present invention, the following is a further description of the method for forcing BIOS to restore factory parameters provided by the present invention based on the principle of the method for forcing BIOS to restore factory parameters of the present invention and the process of forcing BIOS to restore factory parameters management in the embodiment.

[0047] Specifically, the method of forcing the BIOS to restore factory parameters includes:

[0048] S1. Define a set of initial identifiers in the BIOS initial state and save the initial identifiers to a specified address.

[0049] A set of globally unique identifiers is defined as initial identifiers in the initial version of the BIOS; and the initial identifiers are saved in a specified path of the serial peripheral interface read-only memory.

[0050] Specifically, a set of GUIDs is defined in the BIOS, and then written to a fixed location in the SPIROM (Serial Peripheral Interface) ROM (Read-Only Memory)) when the BIOS is booted. The GUID stored in this location will not be flashed when the BIOS is flashed later.

[0051] S2. Generate a unique identifier for the new BIOS when refreshing the BIOS version.

[0052] When compiling a new version of BIOS, the unique identifier is updated in the new version of BIOS code; the new version of BIOS is flashed to the server and the unique identifier of the new version of BIOS code is read after the server is powered on.

[0053] When compiling a new version of BIOS, the unique identifier is updated in the new version of BIOS code; the new version of BIOS is flashed to the server and the unique identifier of the new version of BIOS code is read after the server is powered on.

[0054] Specifically, in a scenario where the BIOS is required to forcibly restore the default factory values, the GUID is modified in the BIOS code when a new BIOS is compiled.

[0055] S3. Compare the consistency of the unique identifier and the initial identifier. If the two are inconsistent, force the BIOS to execute an operation of restoring the parameters to the default factory values.

[0056] When the new BIOS is flashed and the computer is turned on, the BIOS will read the current GUID in the BIOS and compare it with the GUID saved in the SPI ROM. If the two are different, the GUID in the SPI ROM will be updated and the BIOS will be controlled to restore the default factory values.

[0057] like Figure 2 As shown, the system 200 includes:

[0058] An initial identification unit 210, used to define a set of initial identifiers in the initial state of the BIOS and save the initial identifiers to a specified address;

[0059] An identification refresh unit 220, used to generate a unique identifier for a new BIOS when refreshing the BIOS version;

[0060] The operation execution unit 230 is used to compare the consistency of the unique identifier with the initial identifier, and if the two are inconsistent, force the BIOS to execute an operation of restoring the parameters to the default factory values.

[0061] Optionally, as an embodiment of the present invention, the initial identification unit includes:

[0062] An initial marking module, used for defining a set of globally unique identifiers as initial identifiers in an initial version of the BIOS;

[0063] The tag storage module is used for saving the initial identifier to a specified path of the serial peripheral interface read-only memory.

[0064] Optionally, as an embodiment of the present invention, the identification updating unit includes:

[0065] A version update module, used for updating a unique identifier in a new version of BIOS code when compiling a new version of BIOS;

[0066] The update reading module is used to flash the new version of BIOS to the server and read the unique identifier of the new version of BIOS code after the server is powered on.

[0067] Figure 3 The present invention provides a schematic diagram of the structure of a terminal 300 provided in an embodiment of the present invention. The terminal 300 can be used to execute the method for forcibly restoring factory parameters of a BIOS provided in an embodiment of the present invention.

[0068] The terminal 300 may include: a processor 310, a memory 320 and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0069] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 can perform some or all of the steps in the following method embodiments.

[0070] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0071] The communication unit 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0072] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0073] Therefore, when a new BIOS is flashed and the new BIOS needs to be restored to the default factory values, the present invention no longer relies on the operator's selection operation, thereby reducing the problem of the new version of BIOS not being restored to the factory settings due to improper human operation. The technical effects that can be achieved by this embodiment can be found in the description above and will not be repeated here.

[0074] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention.

[0075] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

[0076] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0077] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0078] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0079] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all of these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A method for forcing BIOS to restore factory parameters, characterized in that: include: Define a set of initial identifiers in the BIOS initial state and save the initial identifiers to a specified address; Generate a unique identifier for the new BIOS when flashing the BIOS version; Compare the unique identifier with the initial identifier for consistency. If the two are inconsistent, force the BIOS to restore the parameters to the default factory values. In the initial state of the BIOS, a set of initial identifiers is defined and saved to a specified address, including: A set of globally unique identifiers is defined as initial identifiers in the initial version of BIOS; Save the initial identifier to the specified path in the serial peripheral interface read-only memory.

2. The method according to claim 1, characterized in that Generate a unique identifier for the new BIOS when flashing the BIOS version, including: When compiling a new version of BIOS, the unique identifier is updated in the new version of BIOS code; Flash the new version of BIOS to the server and read the unique identifier of the new version of BIOS code after the server is powered on.

3. A system for forcing BIOS to restore factory parameters, characterized in that: include: An initial identification unit, used to define a set of initial identifiers in the initial state of the BIOS and save the initial identifiers to a specified address; An identification refresh unit, used for generating a unique identifier for a new BIOS when refreshing the BIOS version; An operation execution unit, used for comparing the consistency of the unique identifier with the initial identifier, and if the two are inconsistent, forcing the BIOS to execute an operation of restoring the parameters to the default factory values; The initial identification unit comprises: An initial marking module, used for defining a set of globally unique identifiers as initial identifiers in an initial version of the BIOS; The tag storage module is used for saving the initial identifier to a specified path of the serial peripheral interface read-only memory.

4. The system according to claim 3, characterized in that The identification updating unit comprises: A version update module, used for updating a unique identifier in a new version of BIOS code when compiling a new version of BIOS; The update reading module is used to flash the new version of BIOS to the server and read the unique identifier of the new version of BIOS code after the server is powered on.

5. A terminal, characterized in that: include: processor; A memory for storing execution instructions of the processor; The processor is configured to execute the method according to any one of claims 1 to 2.

6. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • BIOS (Basic Input / Output System) updating method and system, equipment and medium

    CN113360914A

  • Control method for restoring initial default settings, BMC, equipment, and medium

    CN113721996A