BIOS (Basic Input / Output System) hot standby restoration method and device, equipment and storage medium

The MCU monitors the startup information of the BIOS chip and switches to the backup BIOS chip. Combined with the data writing mechanism of the SPI interface, the hot standby and recovery of the BIOS program is realized, solving the problem of data loss of BIOS configuration and improving the stability and reliability of backups.

CN119718779APending Publication Date: 2025-03-28西安超越申泰信息科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411791316.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, BIOS program backup is not timely, resulting in user-modified BIOS configurations that cannot be synchronized when the flash memory chip is damaged, resulting in data loss and computer security risks.

Method used

The MCU monitors the start-up information of the main BIOS chip serial port to determine whether the main BIOS chip program is executed normally. If startup fails, switch to the backup BIOS chip and set the BIOS error flag bit. Based on this flag bit, the main BIOS program is written to the backup BIOS chip through the SPI interface to realize hot backup of user data, and if necessary, the backup BIOS program is written to the main BIOS chip to restore the main BIOS program.

Benefits of technology

Through the switching of the main and backup BIOS chips and the data hot standby mechanism, the problem of BIOS configuration data is solved, the stability and reliability of BIOS backup are improved, and the security of the computer is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718779A_ABST
    Figure CN119718779A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a BIOS (Basic Input / Output System) hot standby restoration method, device and equipment and a storage medium, the method comprises the following steps: judging whether a main BIOS chip program is normally executed or not by monitoring serial port starting information of a main BIOS chip; if the program starting fails, the chip selection switch is switched to the standby BIOS chip, a BIOS error flag bit is set, a restart signal is sent to the CPLD at the same time, the CPLD is electrified again to control the equipment to be restarted, and the standby BIOS chip is started to enter the system; and based on the error flag bit, writing the read main BIOS program into the standby BIOS chip through an SPI interface so as to realize hot standby of user data of the standby BIOS chip through the main BIOS program. According to the BIOS backup method and device, the defects of the BIOS backup function of an existing computer are overcome through the main-standby switching mode on the basis of the BIOS error flag bit, and the stability and reliability of BIOS backup are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a BIOS hot standby restoration method, device, equipment and storage medium. Background Art

[0002] BIOS (Base Input / Output System) is a startup program embedded in the computer motherboard memory chip. It includes chip initialization, power-on self-test, boot file boot, and saves user settings. It provides the most basic hardware control for computer devices and transmits device information to the system layer. The normal operation of BIOS is the prerequisite for the startup of the computer system and has a vital impact on the reliability and stability of computer devices.

[0003] Traditional methods generally use a single flash memory chip to store the BIOS program, and there is no backup of the BIOS program. Once an abnormality occurs in the BIOS program in the flash memory chip, the computer device will not be able to start and run normally. In the prior art, in order to improve reliability, one method is to store the BIOS program backup to different addresses of the same flash memory chip. When an abnormality occurs in the operation of the main BIOS program, the computer can jump to the starting address, call the backup BIOS program stored in the flash memory chip, and use the backup BIOS program to start the computer device. Another method is to use two flash memory chips A and B to store the BIOS program. When an abnormality occurs in the operation of the BIOS program in the A flash memory chip, the computer can switch to the B flash memory chip and call the BIOS program stored in the B flash memory chip to start the computer device.

[0004] The existing technical solution can avoid the problem of being unable to boot due to damage of flash memory chip A, but the flash memory chips A and B store the same BIOS program. When the user modifies the BIOS configuration during the boot process, such as the boot password, boot sequence, etc., and saves it to the flash memory chip A, the data cannot be synchronized to the flash memory chip B. If the flash memory chip A is damaged and the flash memory chip B is used for booting, the user's modified content will be completely lost, causing serious accidents and affecting computer security.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The present disclosure provides a BIOS hot standby restoration method, the method comprising:

[0008] Monitor the serial port startup information of the main BIOS chip through the MCU to determine whether the main BIOS chip program is executed normally;

[0009] If the main BIOS chip program fails to start, the MCU switches the chip select switch to the backup BIOS chip, sets the BIOS error flag, and sends a restart signal to the CPLD;

[0010] The CPLD receives the restart signal, powers on again to control the device to restart, and starts from the backup BIOS chip to enter the system;

[0011] Based on the BIOS error flag bit, the read main BIOS program is written into the standby BIOS chip through the SPI interface, so as to realize hot backup of user data of the standby BIOS chip through the main BIOS program;

[0012] After the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

[0013] In some embodiments, based on the BIOS error flag bit, the read main BIOS program is written into the standby BIOS chip through the SPI interface, so as to implement hot standby of user data of the standby BIOS chip through the main BIOS program, including:

[0014] The system application under the operating system reads the BIOS error flag bit. If the BIOS error flag bit exists, the application reads the BIOS program from the backup BIOS chip;

[0015] The system application notifies the MCU to switch the chip select switch to the main BIOS chip and clear the BIOS error flag;

[0016] The system application writes the read backup BIOS program into the main BIOS chip through the SPI interface, so as to restore the main BIOS chip program through the backup BIOS program.

[0017] In some embodiments, the method further comprises:

[0018] If the BIOS error flag does not exist, the system application reads the BIOS program from the main BIOS chip;

[0019] The system application notifies the MCU to switch the chip select switch to the backup BIOS chip;

[0020] The system application writes the read main BIOS program into the standby BIOS chip through the SPI interface, so as to realize hot standby of user data of the standby BIOS chip through the main BIOS program;

[0021] After the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

[0022] In some embodiments, the method further comprises:

[0023] Control the computer equipment to start up and power on, and start the equipment from the main BIOS chip through CPLD control.

[0024] The present disclosure provides a BIOS hot standby restoration device, which includes:

[0025] The status monitoring module 301 is used to monitor the serial port startup information of the main BIOS chip through the MCU to determine whether the main BIOS chip program is executed normally; if the main BIOS chip program fails to start, the MCU switches the chip select switch to the standby BIOS chip, sets the BIOS error flag, and sends a restart signal to the CPLD; the CPLD receives the restart signal, re-powers on the control device to restart, and starts from the standby BIOS chip to enter the system;

[0026] The data reading module 302 is used to write the read main BIOS program into the standby BIOS chip through the SPI interface based on the BIOS error flag bit;

[0027] The program hot backup module 303 is used to obtain the BIOS program from the main / backup BIOS chip through the system application, and write the BIOS backup program into the main and backup BIOS chips according to the error flag bit situation, so as to realize the main BIOS chip program recovery and backup BIOS chip user data hot backup through the BIOS backup program.

[0028] In some embodiments, based on the BIOS error flag bit, writing the read main BIOS program into the standby BIOS chip through the SPI interface includes:

[0029] The system application under the operating system reads the BIOS error flag. If the BIOS error flag exists, the application reads the BIOS program from the backup BIOS chip.

[0030] The system application notifies the MCU to switch the chip select switch to the main BIOS chip and clear the BIOS error flag;

[0031] The system application writes the read backup BIOS program into the main BIOS chip through the SPI interface, so as to restore the main BIOS chip program through the backup BIOS program.

[0032] In some embodiments, if the BIOS error flag does not exist, the system application reads the BIOS program from the main BIOS chip;

[0033] The system application notifies the MCU to switch the chip select switch to the backup BIOS chip;

[0034] The system application writes the read main BIOS program into the standby BIOS chip through the SPI interface, so as to realize hot standby of user data of the standby BIOS chip through the main BIOS program;

[0035] After the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

[0036] In some embodiments, the apparatus further comprises a power control module;

[0037] The power control module 304 is used to control the computer device to start up and power on, and to control the device to start up from the main BIOS chip through the CPLD.

[0038] An embodiment of the present disclosure provides an electronic device, the device comprising at least one processor;

[0039] and a memory communicatively coupled to the at least one processor;

[0040] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned BIOS hot standby restoration method.

[0041] An embodiment of the present disclosure provides a storage medium storing program instructions, which, when running, execute the above-mentioned BIOS hot standby restoration method.

[0042] The BIOS hot standby restoration method, apparatus, device, and storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:

[0043] The present invention monitors the serial port startup information of the main BIOS chip through the MCU to determine whether the main BIOS chip program is executed normally; if the main BIOS chip program fails to start, the MCU switches the chip select switch to the standby BIOS chip, sets the BIOS error flag, and sends a restart signal to the CPLD; the CPLD receives the restart signal, re-powers on the control device to restart, and starts from the standby BIOS chip to enter the system; based on the BIOS error flag, the read main BIOS program is written into the standby BIOS chip through the SPI interface to realize the user data hot standby of the standby BIOS chip through the main BIOS program; after the user data hot standby is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip. By switching between the main and standby modes and performing BIOS hot standby restoration based on the BIOS error flag, the shortcomings of the existing computer BIOS backup function are overcome, and the stability and reliability of the BIOS backup are improved.

[0044] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0046] Figure 1 It is a flowchart of a BIOS hot standby restoration method provided by an embodiment of the present disclosure;

[0047] Figure 2 It is a flowchart of another BIOS hot standby restoration method provided by an embodiment of the present disclosure;

[0048] Figure 3 It is a structural schematic diagram of a BIOS hot standby restoration device provided by an embodiment of the present disclosure;

[0049] Figure 4 It is a schematic diagram of the structure of a BIOS hot standby restore device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0050] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0051] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0052] Unless otherwise stated, the term "plurality" means two or more.

[0053] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0054] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0055] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0056] The following describes the BIOS hot standby restoration method, device, equipment and storage medium provided by the embodiments of the present disclosure in conjunction with the accompanying drawings.

[0057] Figure 1 It is a flowchart of a BIOS hot standby restoration method provided by an embodiment of the present disclosure.

[0058] like Figure 1 As shown, the BIOS hot standby restoration method may include:

[0059] S01, monitor the serial port startup information of the main BIOS chip through the MCU to determine whether the main BIOS chip program is executed normally;

[0060] S02, if the main BIOS chip program fails to start, the MCU switches the chip select switch to the standby BIOS chip, sets the BIOS error flag, and sends a restart signal to the CPLD;

[0061] S03, CPLD receives the restart signal, powers on again to control the device to restart, and starts from the backup BIOS chip to enter the system;

[0062] S04, based on the BIOS error flag bit, writing the read main BIOS program into the standby BIOS chip through the SPI interface, so as to implement hot standby of user data of the standby BIOS chip through the main BIOS program;

[0063] S05, after the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

[0064] Figure 2 This is another flow chart of a BIOS hot standby restoration method provided by an embodiment of the present disclosure, combined with Figure 2 ,right Figure 1 The BIOS hot standby restoration method is further described in the following.

[0065] In some embodiments, based on the BIOS error flag bit, the read main BIOS program is written into the standby BIOS chip through the SPI interface, so as to implement hot standby of user data of the standby BIOS chip through the main BIOS program, including:

[0066] The system application under the operating system reads the BIOS error flag bit. If the BIOS error flag bit exists, the application reads the BIOS program from the backup BIOS chip;

[0067] The system application notifies the MCU to switch the chip select switch to the main BIOS chip and clear the BIOS error flag;

[0068] The system application writes the read backup BIOS program into the main BIOS chip through the SPI interface, so as to restore the main BIOS chip program through the backup BIOS program.

[0069] In some embodiments, Figure 1 The method may also include:

[0070] If the BIOS error flag does not exist, the system application reads the BIOS program from the main BIOS chip;

[0071] The system application notifies the MCU to switch the chip select switch to the backup BIOS chip;

[0072] The system application writes the read main BIOS program into the standby BIOS chip through the SPI interface, so as to realize hot standby of user data of the standby BIOS chip through the main BIOS program;

[0073] After the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

[0074] In some embodiments, Figure 1 The method may also include:

[0075] Control the computer equipment to start up and power on, and start the equipment from the main BIOS chip through CPLD control.

[0076] In a specific example, after the computer device is powered on, the CPLD controls the computer device to start from the main BIOS chip, and the MCU monitors the running status of the main BIOS chip program through the serial port information of the computer device. If the running status of the main BIOS chip program is abnormal, that is, the startup fails, the MCU switches the chip select switch to the standby BIOS chip, sets the BIOS error flag, and sends a restart signal to the CPLD. The CPLD receives the restart signal sent by the MCU, controls the computer device to restart, and starts from the standby BIOS chip to enter the operating system when restarting. After entering the operating system, the system application reads the BIOS error flag. If the error flag is read, the BIOS program is read from the standby BIOS chip, and the MCU is notified to switch the chip select switch to the main BIOS chip, remove the BIOS error flag, and write the read standby BIOS program to the main BIOS chip through the SPI interface, so as to realize the main BIOS chip program recovery through the standby BIOS program; if the error flag is not read, the system application reads the BIOS program from the main BIOS chip, and the system application notifies the MCU to switch the chip select switch to the standby BIOS chip, and the system application writes the read main BIOS program to the standby BIOS chip through the SPI interface, so as to realize the standby BIOS chip user data hot standby through the main BIOS program.

[0077] The BIOS hot standby restoration method provided by the present invention performs BIOS hot standby restoration by switching between active and standby modes and based on BIOS error flags, thereby overcoming the deficiencies of existing computer BIOS backup functions and improving the stability and reliability of BIOS backup.

[0078] and Figure 1 Corresponding to the BIOS hot standby restoration method in the present disclosure, the present disclosure also provides a BIOS hot standby restoration device, such as Figure 3 shown.

[0079] The BIOS hot standby restoration device includes a status monitoring module 301, which is used to monitor the serial port startup information of the main BIOS chip through the MCU to determine whether the main BIOS chip program is executed normally; if the main BIOS chip program fails to start, the MCU switches the chip select switch to the standby BIOS chip, sets the BIOS error flag, and sends a restart signal to the CPLD; the CPLD receives the restart signal, re-powers on the control device to restart, and starts from the standby BIOS chip to enter the system;

[0080] The data reading module 302 is used to write the read main BIOS program into the standby BIOS chip through the SPI interface based on the BIOS error flag bit;

[0081] The program hot backup module 303 is used to obtain the BIOS program from the main / backup BIOS chip through the system application, and write the BIOS backup program into the main and backup BIOS chips according to the error flag bit situation, so as to realize the main BIOS chip program recovery and backup BIOS chip user data hot backup through the BIOS backup program.

[0082] In some embodiments, Figure 3 The device may further include a power control module 304;

[0083] The power control module 304 is used to control the computer device to start up and power on, and to control the device to start up from the main BIOS chip through the CPLD.

[0084] In some embodiments, based on the BIOS error flag bit, writing the read main BIOS program into the standby BIOS chip through the SPI interface includes:

[0085] The system application under the operating system reads the BIOS error flag. If the BIOS error flag exists, the application reads the BIOS program from the backup BIOS chip.

[0086] The system application notifies the MCU to switch the chip select switch to the main BIOS chip and clear the BIOS error flag;

[0087] The system application writes the read backup BIOS program into the main BIOS chip through the SPI interface, so as to restore the main BIOS chip program through the backup BIOS program.

[0088] In some embodiments, if the BIOS error flag does not exist, the system application reads the BIOS program from the main BIOS chip;

[0089] The system application notifies the MCU to switch the chip select switch to the backup BIOS chip;

[0090] The system application writes the read main BIOS program into the standby BIOS chip through the SPI interface, so as to realize hot standby of user data of the standby BIOS chip through the main BIOS program;

[0091] After the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

[0092] In a specific example, the power control module is mainly used to control the computer device to start from the main BIOS chip or the backup BIOS chip after it is powered on, and to restart the computer device after the main BIOS chip fails to start; the status monitoring module is used to monitor the serial port startup information of the main BIOS chip program, switch to the backup BIOS chip to restart after the startup fails, and set the BIOS error flag; the data reading module is used to read the BIOS error flag through the system application, and read the program in the main / backup BIOS chip through the SPI interface according to the error flag situation; the program hot standby module is used to obtain the BIOS program from the main / backup BIOS chip through the system application, and write the BIOS backup program into the main / backup BIOS chip according to the error flag situation, so as to realize the main BIOS chip program recovery and backup BIOS chip user data hot standby through the BIOS backup program.

[0093] Combination Figure 4 As shown, the embodiment of the present disclosure also provides a BIOS hot standby restoration device 400, including a processor 404 and a memory 401. Optionally, the device may also include a communication interface 402 and a bus 403. The processor 404, the communication interface 402, and the memory 401 may communicate with each other through the bus 403. The communication interface 402 may be used for information transmission. The processor 404 may call the logic instructions in the memory 401 to execute the BIOS hot standby restoration method of the above embodiment.

[0094] In addition, the logic instructions in the memory 401 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0095] The memory 401 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 404 executes the functional application and data processing by running the program instructions / modules stored in the memory 401, that is, the BIOS hot standby restoration method in the above embodiment is implemented.

[0096] The memory 401 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 401 may include a high-speed random access memory and may also include a non-volatile memory.

[0097] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute a BIOS hot standby restoration method.

[0098] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0099] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method of the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.

[0100] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. As used in the description of the embodiments, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or these groups. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0101] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the systems, devices and units described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0102] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be 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. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0103] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

[0104] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0105] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0106] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0107] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0108] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0109] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of this disclosure can be achieved, and this document is not limited here.

[0111] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A BIOS hot standby restoration method, characterized in that: The method comprises: Monitor the serial port startup information of the main BIOS chip through the MCU to determine whether the main BIOS chip program is executed normally; If the main BIOS chip program fails to start, the MCU switches the chip select switch to the standby BIOS chip, sets the BIOS error flag, and sends a restart signal to the CPLD; The CPLD receives the restart signal, powers on again to control the device to restart, and starts from the backup BIOS chip to enter the system; Based on the BIOS error flag, the read main BIOS program is written into the standby BIOS chip through the SPI interface, so as to implement hot standby of user data of the standby BIOS chip through the main BIOS program; After the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

2. The method according to claim 1, characterized in that The method of writing the read main BIOS program into the standby BIOS chip through the SPI interface based on the BIOS error flag bit, so as to implement hot standby of user data of the standby BIOS chip through the main BIOS program, comprises: The system application under the operating system reads the BIOS error flag bit, and if the BIOS error flag bit exists, the application reads the BIOS program from the backup BIOS chip; The system application notifies the MCU to switch the chip select switch to the main BIOS chip and clear the BIOS error flag; The system application writes the read backup BIOS program into the main BIOS chip through the SPI interface, so as to implement the main BIOS chip program recovery through the backup BIOS program.

3. The method according to claim 2, characterized in that The method further comprises: If the BIOS error flag does not exist, the system application reads the BIOS program from the main BIOS chip; The system application notifies the MCU to switch the chip select switch to the backup BIOS chip; The system application writes the read main BIOS program into the standby BIOS chip through the SPI interface, so as to implement hot standby of user data of the standby BIOS chip through the main BIOS program; After the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

4. The method according to claim 1, characterized in that: The method further comprises: Control the computer equipment to start up and power on, and start the equipment from the main BIOS chip through CPLD control.

5. A BIOS hot standby restoration device, characterized in that: The device comprises: The status monitoring module is used to monitor the serial port startup information of the main BIOS chip through the MCU to determine whether the main BIOS chip program is executed normally; if the main BIOS chip program fails to start, the MCU switches the chip select switch to the standby BIOS chip, sets the BIOS error flag, and sends a restart signal to the CPLD; the CPLD receives the restart signal, re-powers on the control device to restart, and starts from the standby BIOS chip to enter the system; A data reading module, used for writing the read main BIOS program into the standby BIOS chip through the SPI interface based on the BIOS error flag bit; The program hot standby module is used to obtain the BIOS program from the main / standby BIOS chip through the system application, and write the BIOS backup program into the main and standby BIOS chips according to the error flag bit situation, so as to realize the main BIOS chip program recovery and standby BIOS chip user data hot standby through the BIOS backup program.

6. The device according to claim 5, characterized in that The method of writing the read main BIOS program into the standby BIOS chip through the SPI interface based on the BIOS error flag bit includes: The system application under the operating system reads the BIOS error flag bit, and if the BIOS error flag bit exists, the application reads the BIOS program from the backup BIOS chip; The system application notifies the MCU to switch the chip select switch to the main BIOS chip and clear the BIOS error flag; The system application writes the read backup BIOS program into the main BIOS chip through the SPI interface, so as to implement the main BIOS chip program recovery through the backup BIOS program.

7. The device according to claim 6, characterized in that If the BIOS error flag does not exist, the system application reads the BIOS program from the main BIOS chip; The system application notifies the MCU to switch the chip select switch to the backup BIOS chip; The system application writes the read main BIOS program into the standby BIOS chip through the SPI interface, so as to implement hot standby of user data of the standby BIOS chip through the main BIOS program; After the user data hot backup is completed, the system application notifies the MCU to switch the chip select switch to the main BIOS chip.

8. The device according to claim 5, characterized in that The device also includes a power control module; The power control module is used to control the computer device to start up and power on, and to start the device from the main BIOS chip through the CPLD control device.

9. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; It is characterized in that the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the BIOS hot standby restoration method described in any one of claims 1-4.

10. A storage medium storing program instructions, characterized in that: When the program instructions are run, the BIOS hot standby restoration method according to any one of claims 1 to 4 is executed.

Citation Information

Cited By

  • Multi-BIOS (Basic Input / Output System) starting switching method and equipment, storage medium and computer program product

    CN121433987A