Computer system and startup method based on BIRA-5 algorithm and multiple BIOS modules

By introducing the BIRA-5 algorithm and multi-BIOS module design in computer systems, the problem of insufficient reliability and efficiency of traditional dual BIOS systems in system startup and failure recovery is solved, and higher system startup flexibility and reliability are achieved.

CN119271286BActive Publication Date: 2025-04-18SHANGHAI XINLIJI SEMICON CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411822873.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-18
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

Traditional dual BIOS systems have problems of insufficient reliability and efficiency in system startup and failure recovery, especially when the main BIOS module fails, the backup BIOS module takes over for a long time, which may cause system startup delays or paralysis.

Method used

The computer system design is adopted based on BIRA-5 algorithm and multi-BIOS modules. The BIRA-5 algorithm is deployed internally by the CPU. Multiple BIOS modules are responsible for hardware initialization, operating system loading and data verification, and data consistency checking and exception repair through the verification block.

Benefits of technology

It improves the system's startup flexibility and reliability, ensuring that even if a certain BIOS module fails, the system can still be repaired in time and started normally, which significantly improves the system's robustness and fault recovery efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271286B_ABST
    Figure CN119271286B_ABST
Patent Text Reader

Abstract

This invention discloses a computer system and boot method based on the BIRA-5 algorithm and multiple BIOS modules. The system includes a CPU internally equipped with the BIRA-5 algorithm and three BIOS modules with identical firmware but different hardware. Upon power-up, the BIRA-5 algorithm is executed for initialization. The first BIOS module performs hardware initialization and I / O settings. Each of the three BIOS modules generates a corresponding checksum block using its own algorithm module. The third BIOS module verifies the data in the three checksum blocks. If the data in the three checksum blocks is consistent, the second BIOS module loads the operating system; otherwise, the BIRA-5 algorithm repairs the malfunctioning BIOS module corresponding to the abnormal checksum block. By introducing three BIOS modules and deploying the BIRA-5 algorithm within the processor, the system implements a novel BIOS repair strategy, improving system data consistency and fault recovery efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a computer system and a startup method based on a BIRA-5 algorithm and multiple BIOS modules. Background Art

[0002] In the computer field, operating system design has always been an important research direction. Among them, BIOS (Basic Input / Output System) is an essential component in the computer system startup process. It is responsible for important tasks such as hardware initialization, system boot and security check. In the processor system, dual BIOS modules work together to improve the reliability and flexibility of the system.

[0003] In a typical operating system design, there are two BIOS modules, one of which is the main BIOS module and the other is the backup BIOS module; the main BIOS module is responsible for the normal startup and operation of the system, and the backup BIOS module is responsible for taking over the system when the main BIOS fails. This design can improve the reliability of the system to a certain extent, but its fault tolerance and fault recovery speed are still limited. For example, during the system startup process, if the main BIOS module fails, the backup BIOS module needs to spend a certain amount of time to take over the system, which will cause a non-negligible startup delay in the system. Even when there is a problem in the backup BIOS module taking over the system, the entire system will be paralyzed, causing the computer system to fail to start normally.

[0004] In addition, a simple backup strategy is adopted between the main BIOS module and the backup BIOS module, that is, data is copied between the main BIOS module and the backup BIOS module. This backup strategy makes the traditional dual BIOS system have deficiencies in data consistency and fault recovery.

[0005] In summary, the dual BIOS design of the processor system presents challenges in terms of system startup and fault recovery.

[0006] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present application. It does not necessarily belong to the prior art of the present application, nor does it necessarily provide technical guidance. In the absence of clear evidence that the above content has been disclosed before the filing date of the present application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention

[0007] The purpose of the present invention is to provide an improved computer system, which provides stability and security for computer system startup and fault recovery based on the internal deployment of BIRA-5 algorithm and multiple BIOS modules in the CPU.

[0008] To achieve the above object, the technical solution adopted by the present invention is as follows:

[0009] A computer system based on a BIRA-5 algorithm and multiple BIOS modules includes a CPU and multiple BIOS modules with the same firmware, wherein the firmware of the CPU deploys the BIRA-5 algorithm, and the multiple BIOS modules include the following modules with hardware differences:

[0010] A first BIOS module configured to perform hardware initialization and I / O setup;

[0011] A second BIOS module configured to load an operating system of the computer; and

[0012] A third BIOS module configured to perform data verification;

[0013] In response to the computer system being powered on, the CPU runs the BIRA-5 algorithm for initialization, and the first BIOS module performs hardware initialization and I / O settings;

[0014] The first BIOS module, the second BIOS module and the third BIOS module respectively generate corresponding check blocks using their own algorithm modules;

[0015] The third BIOS module performs data verification on the check blocks of the three BIOS modules. If the data of the three check blocks are consistent, the second BIOS module loads the computer's operating system; if there is an abnormal check block whose data is inconsistent with the data of the other two check blocks, the BIRA-5 algorithm repairs the abnormal BIOS module corresponding to the abnormal check block, and executes after the repair is completed: the first BIOS module executes hardware initialization and I / O settings and the three BIOS modules generate check blocks again and perform data verification.

[0016] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the abnormal BIOS module corresponding to the abnormal check block is repaired in the following manner:

[0017] Divide the check block into m check areas in advance, where m is a positive integer;

[0018] Dividing the firmware into m sub-firmware corresponding to each verification area in advance;

[0019] If data inconsistency occurs in the nth check area of ​​the abnormal check block, the nth sub-firmware of the abnormal BIOS module is updated using the nth sub-firmware of the BIOS module corresponding to any one of the other two check blocks, where n is a positive integer less than or equal to m.

[0020] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, if the result of data verification is that the data of the check blocks of the three BIOS modules are different, and the data in the same check area of ​​at least two BIOS modules are consistent, then at least two abnormal BIOS modules are repaired according to the check area where the data inconsistency is located.

[0021] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, at least two abnormal BIOS modules are repaired in the following manner:

[0022] If the i-th check area of ​​the first abnormal BIOS module is inconsistent with the other two BIOS modules, the i-th sub-firmware of the first abnormal BIOS module is updated using the i-th sub-firmware of any one of the two BIOS modules with consistent data in the i-th check area, where i is a positive integer less than or equal to m;

[0023] If the jth check area of ​​the second abnormal BIOS module is inconsistent with the other two BIOS modules, the jth sub-firmware of the second abnormal BIOS module is updated using the jth sub-firmware of any one of the two BIOS modules with consistent data in the jth check area, where j is a positive integer less than or equal to m, and j≠i.

[0024] Further, based on any one of the technical solutions or a combination of multiple technical solutions mentioned above, if the result of the data verification is that the data in the k-th verification areas of the three BIOS modules are different, and k is a positive integer less than or equal to m, the CPU executes a program to restart the computer, or issues an abnormal alarm.

[0025] Further, based on any one of the technical solutions or a combination of multiple technical solutions mentioned above, if the result of the data verification is that the data of the verification blocks of the three BIOS modules are different, the CPU executes a program to restart the computer, or issues an abnormal alarm.

[0026] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the first BIOS module, the second BIOS module and the third BIOS module are respectively provided with a first backup BIOS, a second backup BIOS and a third backup BIOS;

[0027] If the number of times the CPU continuously executes to restart the computer reaches a preset number threshold, and the data of the check blocks of the three BIOS modules are different, a prompt to replace the registered BIOS is given.

[0028] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the BIOS module further includes a fourth BIOS module, whose firmware and hardware are the same as those of the second BIOS module;

[0029] The third BIOS module performs data verification on the check blocks of the four BIOS modules; if the data of the four check blocks are consistent, the second BIOS module loads the computer's operating system; if the data of the check blocks of the other three BIOS modules except the second BIOS module are consistent, the fourth BIOS module is used to load the computer's operating system.

[0030] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, during the operation of the computer after the computer operating system is loaded, the BIRA-5 algorithm is also used to perform health monitoring and data consistency checks on the three BIOS modules.

[0031] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the third BIOS module is further configured to record information on repairing the abnormal BIOS module;

[0032] And / or, the second BIOS module is further configured to perform a security check operation on the computer when or after loading the operating system of the computer.

[0033] According to another aspect of the present invention, the present invention provides a computer startup method based on the BIRA-5 algorithm and multiple BIOS modules, and the following steps are performed based on a CPU with the BIRA-5 algorithm deployed therein and multiple BIOS modules with the same firmware and different hardware:

[0034] In response to the computer system being powered on, the CPU runs the BIRA-5 algorithm for initialization, and the first BIOS module performs hardware initialization and I / O settings;

[0035] The first BIOS module, the second BIOS module and the third BIOS module respectively generate corresponding check blocks using their own algorithm modules;

[0036] The third BIOS module performs data verification on the check blocks of the three BIOS modules. If the data of the three check blocks are consistent, the second BIOS module loads the operating system of the computer;

[0037] If the data of an abnormal check block is inconsistent with the data of the other two check blocks, the BIRA-5 algorithm repairs the abnormal BIOS module corresponding to the abnormal check block, and executes after the repair is completed: the first BIOS module performs hardware initialization and I / O settings, and the three BIOS modules generate check blocks again and perform data verification.

[0038] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the abnormal BIOS module corresponding to the abnormal check block is repaired in the following manner:

[0039] Divide the check block into m check areas in advance, where m is a positive integer;

[0040] Dividing the firmware into m sub-firmware corresponding to each verification area in advance;

[0041] If data inconsistency occurs in the nth check area of ​​the abnormal check block, the nth sub-firmware of the abnormal BIOS module is updated using the nth sub-firmware of the BIOS module corresponding to any one of the other two check blocks, where n is a positive integer less than or equal to m.

[0042] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the abnormal BIOS module corresponding to the abnormal check block is repaired in the following manner:

[0043] The data of the other two check blocks are consistent, and the firmware of the abnormal BIOS module is updated using the firmware of the BIOS module corresponding to any one of them.

[0044] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the computer startup method provided by the present invention further includes configuring a fourth BIOS module having the same firmware and hardware as the second BIOS module;

[0045] The computer startup method further includes:

[0046] The third BIOS module performs data verification on the check blocks of the four BIOS modules;

[0047] If the data of the four check blocks are consistent, the second BIOS module loads the operating system of the computer;

[0048] If the data of the check blocks of the other three BIOS modules except the second BIOS module are consistent, the fourth BIOS module is used to load the operating system of the computer.

[0049] Further, based on any one of the technical solutions or a combination of multiple technical solutions described above, after the fourth BIOS module loads the computer's operating system, the firmware of the second BIOS module is updated using the firmware of the first BIOS module, the second BIOS module or the fourth BIOS module.

[0050] The beneficial effects brought by the technical solution provided by the present invention are as follows:

[0051] a. The system introduces three BIOS modules and BIRA-5 algorithm, which greatly improves the flexibility and reliability of system startup. Even if a BIOS module fails, it can still be repaired in time without affecting the normal startup of the system;

[0052] b. Innovatively proposed to use the BIRA-5 algorithm to provide more reliable fault handling capabilities and significantly improve the robustness of the system;

[0053] c. Innovatively proposed to deploy the BIRA-5 algorithm directly inside the CPU, which not only improves the speed of system startup and fault recovery, but also enhances the management and optimization capabilities of hardware resources;

[0054] d. Based on the introduction of multiple BIOS modules and BIRA-5 algorithm, a new BIOS repair strategy is innovatively proposed to replace the backup strategy of the traditional dual BIOS system and improve the system performance in terms of data consistency and fault recovery efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present application 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, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 A schematic diagram of a computer system based on the BIRA-5 algorithm and multiple BIOS modules provided for an exemplary embodiment of the present invention;

[0057] Figure 2 A schematic diagram of dividing a traditional single BIOS system into three multi-BIOS modules with independent functions provided for an exemplary embodiment of the present invention;

[0058] Figure 3 A conceptual diagram of repairing a BIOS module using a check block provided for an exemplary embodiment of the present invention;

[0059] Figure 4 for Figure 3 An example of repairing an abnormal BIOS module based on a check block according to the concept shown;

[0060] Figure 5 A flowchart of computer startup based on BIRA-5 algorithm and multiple BIOS modules is provided for an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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.

[0062] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0063] In one embodiment of the present invention, a computer system based on the BIRA-5 algorithm and multiple BIOS modules is provided, such as Figure 1 As shown, the system includes a CPU and multiple BIOS modules with the same firmware, wherein the CPU firmware deploys the BIRA-5 algorithm, and the multiple BIOS modules include the following modules with hardware differences to be executed independently: Figure 2 Functions shown:

[0064] The first BIOS module (i.e. Figure 2 BIOS_1 in the BIOS is configured to perform hardware initialization and I / O setup;

[0065] The second BIOS module (i.e. Figure 2 BIOS_2 in the computer), which is configured to load the computer's operating system; and

[0066] The third BIOS module (i.e. Figure 2 BIOS_3 in the BIOS is configured to perform data verification;

[0067] In response to the computer system being powered on, the CPU runs the BIRA-5 algorithm for initialization, and the first BIOS module performs hardware initialization and I / O settings;

[0068] The first BIOS module, the second BIOS module and the third BIOS module respectively generate corresponding check blocks using their own algorithm modules: the first BIOS module generates check block 1, the second BIOS module generates check block 2, and the third BIOS module generates check block 3;

[0069] The third BIOS module performs data verification on the check blocks (check block 1, check block 2 and check block 3) of the three BIOS modules. If the data of the three check blocks are consistent, the second BIOS module loads the computer's operating system; if there is an abnormal check block whose data is inconsistent with the data of the other two check blocks (the data of the other two check blocks here are consistent), the BIRA-5 algorithm repairs the abnormal BIOS module corresponding to the abnormal check block, and executes after the repair is completed: the first BIOS module executes hardware initialization and I / O settings and the three BIOS modules generate check blocks again and perform data verification.

[0070] This embodiment provides three functionally independent BIOS modules, each of which is responsible for its own specific function, which not only improves the flexibility and reliability of the system, but also achieves more efficient resource utilization and stronger fault tolerance between modules.

[0071] The BIRA-5 algorithm is a built-in redundancy analysis algorithm, which is classically used to analyze the fault data of the memory, help determine whether the memory is repairable, and store the repair signature in the BIRA register for subsequent processing by the MBIST controller or ATE device. This embodiment is a cutting-edge deployment of the BIRA-5 algorithm inside the processor, using the algorithm to cooperate with multiple BIOS modules, and when a BIOS module fails, the BIRA-5 algorithm can use the other two BIOS modules that have not experienced an abnormality to quickly repair the abnormal BIOS module, ensuring that the system can start smoothly.

[0072] like Figure 3 As shown, this embodiment uses the check block to repair the abnormal BIOS module. In a specific embodiment, the repair method of the abnormal BIOS module is as follows: Figure 4 As shown:

[0073] Divide the check block into m check areas in advance, where m is a positive integer;

[0074] Dividing the firmware into m sub-firmware corresponding to each verification area in advance;

[0075] If data inconsistency occurs in the nth check area of ​​the abnormal check block, the nth sub-firmware of the abnormal BIOS module is updated using the nth sub-firmware of the BIOS module corresponding to any one of the other two check blocks, where n is a positive integer less than or equal to m.

[0076] Specifically, if the result of the data verification is that the data of the check blocks of the three BIOS modules are different, and the data of the same check area of ​​at least two BIOS modules are consistent, then at least two abnormal BIOS modules are repaired according to the check area where the data inconsistency is located:

[0077] If the i-th check area of ​​the first abnormal BIOS module is inconsistent with the other two BIOS modules, the i-th sub-firmware of the first abnormal BIOS module is updated using the i-th sub-firmware of any one of the two BIOS modules with consistent data in the i-th check area, where i is a positive integer less than or equal to m;

[0078] If the jth check area of ​​the second abnormal BIOS module is inconsistent with the other two BIOS modules, the jth sub-firmware of the second abnormal BIOS module is updated using the jth sub-firmware of any one of the two BIOS modules with consistent data in the jth check area, where j is a positive integer less than or equal to m, and j≠i.

[0079] by Figure 4 For example, the data verification result is that the data in the first verification area is inconsistent: the first verification area of ​​the verification block 2 (i.e. Figure 4 The first check area of ​​the check block 1 (i.e. Figure 4 The first check area of ​​the check block 3 (i.e. Figure 4 If the verification area 3-1 in the first BIOS module is not consistent, and the verification area 1-1 is consistent with the verification area 3-1, the sub-firmware of the first BIOS module (i.e. Figure 4 The sub-firmware 1-1 in the BIOS or the sub-firmware of the third BIOS module (i.e. Figure 4 The sub-firmware 3-1 in the second BIOS module (i.e. Figure 4 Sub-firmware 2-1 in the sub-firmware 2-1 is updated, that is, sub-firmware 1-1 or sub-firmware 3-1 is copied to replace sub-firmware 2-1. For the check area 1-2 and check area 3-m where data inconsistency also occurs, the same method is adopted, that is, using sub-firmware 2-2 or sub-firmware 3-2 to update the abnormal sub-firmware 1-2, and using sub-firmware 1-m or sub-firmware 2-m to update the abnormal sub-firmware 3-m.

[0080] It can be seen from this that the method for repairing the BIOS module provided in this embodiment can solve the problem of data inconsistency in each check block to achieve repair, so as to enable the computer to start smoothly. Figure 4In the case where multiple sub-firmwares shown are abnormal, a method of sequentially repairing the abnormal sub-firmwares one by one can be set, or a method of repairing multiple abnormal sub-firmwares at the same time can be set, and the present invention does not make specific limitations. If the method of repairing multiple abnormal sub-firmwares at the same time is adopted, the efficiency of repairing k abnormal sub-firmwares can be increased by (k-1) times compared with the method of sequential repair.

[0081] In one embodiment, there is also the following extreme situation: the result of data verification is that the data in the k-th verification areas of the three BIOS modules are different, k is a positive integer less than or equal to m, for example, the verification area 1-1, the verification area 2-1 and the verification area 3-1 are different, then the CPU executes a program to restart the computer, or issues an abnormal alarm.

[0082] In one embodiment of the present invention, the check blocks of the BIOS modules are not partitioned, and if the result of the data check is that the data of the check blocks of the three BIOS modules are different, the CPU executes a program to restart the computer, or issues an abnormal alarm.

[0083] In one embodiment, the first BIOS module, the second BIOS module and the third BIOS module are respectively provided with a first backup BIOS, a second backup BIOS and a third backup BIOS;

[0084] If the number of times the CPU continuously executes to restart the computer reaches a preset number threshold, and the data of the check blocks of the three BIOS modules are different, a prompt to replace the registered BIOS is given.

[0085] In one embodiment, the BIOS module further includes a fourth BIOS module, whose firmware and hardware are the same as those of the second BIOS module;

[0086] The third BIOS module performs data verification on the check blocks of the four BIOS modules; if the data of the four check blocks are consistent, the second BIOS module loads the computer's operating system; if the data of the check blocks of the other three BIOS modules except the second BIOS module are consistent, the fourth BIOS module is used to load the computer's operating system. After the fourth BIOS module loads the computer's operating system, the firmware of the second BIOS module can also be updated using the firmware of the first BIOS module, the second BIOS module or the fourth BIOS module.

[0087] In one embodiment, during the operation of the computer after the computer operating system is loaded, the BIRA-5 algorithm is also used to perform health monitoring and data consistency checks on the three BIOS modules;

[0088] The third BIOS module is further configured to record information on repairing the abnormal BIOS module;

[0089] The second BIOS module is further configured to perform a security check operation on the computer when or after the operating system of the computer is loaded.

[0090] In another embodiment of the present invention, a computer startup method based on BIRA-5 algorithm and multiple BIOS modules is provided, such as Figure 5 As shown, the following steps are performed based on a CPU with the BIRA-5 algorithm deployed internally and multiple BIOS modules with the same firmware but different hardware:

[0091] In response to the computer system being powered on, the CPU runs the BIRA-5 algorithm for initialization, and the first BIOS module performs hardware initialization and I / O settings;

[0092] The first BIOS module, the second BIOS module and the third BIOS module respectively generate corresponding check blocks using their own algorithm modules;

[0093] The third BIOS module performs data verification on the check blocks of the three BIOS modules. If the data of the three check blocks are consistent, the second BIOS module loads the operating system of the computer;

[0094] If there is an abnormal check block whose data is inconsistent with the data of the other two check blocks (the data of the other two check blocks here are consistent), the BIRA-5 algorithm repairs the abnormal BIOS module corresponding to the abnormal check block, and executes after the repair is completed: the first BIOS module performs hardware initialization and I / O settings, and the three BIOS modules generate check blocks again and perform data verification.

[0095] Specifically, the abnormal BIOS module corresponding to the abnormal check block is repaired in the following manner:

[0096] Divide the check block into m check areas in advance, where m is a positive integer;

[0097] Dividing the firmware into m sub-firmware corresponding to each verification area in advance;

[0098] If data inconsistency occurs in the nth check area of ​​the abnormal check block, the nth sub-firmware of the abnormal BIOS module is updated using the nth sub-firmware of the BIOS module corresponding to any one of the other two check blocks, where n is a positive integer less than or equal to m.

[0099] Alternatively, the check blocks of the BIOS module may not be partitioned, and correspondingly, the abnormal BIOS module corresponding to the abnormal check block is repaired in the following manner: the data of the other two check blocks are consistent, and the firmware of the abnormal BIOS module is updated using the firmware of the BIOS module corresponding to any one of them. If the result of the data verification is that the data of the check blocks of the three BIOS modules are different, the CPU executes a program to restart the computer, or issues an abnormal alarm.

[0100] In one embodiment, the computer startup method provided by the present invention further includes configuring a fourth BIOS module whose firmware and hardware are the same as those of the second BIOS module;

[0101] The computer startup method further includes:

[0102] The third BIOS module performs data verification on the check blocks of the four BIOS modules;

[0103] If the data of the four check blocks are consistent, the second BIOS module loads the operating system of the computer;

[0104] If the data of the check blocks of the other three BIOS modules except the second BIOS module are consistent, the fourth BIOS module is used to load the operating system of the computer.

[0105] After the fourth BIOS module loads the operating system of the computer, the firmware of the second BIOS module is updated using the firmware of the first BIOS module, the second BIOS module or the fourth BIOS module.

[0106] The computer startup method based on BIRA-5 algorithm and multiple BIOS modules provided in the embodiment of the present invention and the computer system based on BIRA-5 algorithm and multiple BIOS modules provided in the above embodiment belong to the same inventive concept. Here, by mutual reference, all the contents of the embodiments are incorporated into each other's embodiments to complement each other and will not be repeated.

[0107] The present invention can be widely used in the fields of computer system structure, multi-processor system and operating system design. First, in the field of computer system structure, the multi-BIOS module design and BIRA-5 algorithm of the present invention can greatly improve the flexibility and reliability of system startup, especially in multi-processor systems, this advantage is particularly obvious. Compared with the traditional dual BIOS system, the scheme of the present invention can more effectively deal with faults in the system startup process and ensure the stable operation of the system. For the field of multi-processor systems, the multi-BIOS module design and BIRA-5 algorithm of the present invention can provide more complex and reliable fault handling capabilities, significantly improving the robustness of the system, which is of great significance for those application scenarios with extremely high requirements for system stability and reliability, such as financial services, medical equipment and aerospace. Finally, in the field of operating system design, the BIRA-5 algorithm of the present invention can realize automatic fault repair of BIOS modules, and perform regular monitoring and data consistency checks during system operation, which not only improves the security and stability of the system, but also reduces the workload of system maintenance, which has a great market demand for those operating systems that require high availability and high security, such as server operating systems and embedded operating systems. In general, as computer systems develop towards multi-processors and high reliability, the technical application prospects of the present invention are very broad and the market demand will also increase.

[0108] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0109] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A computer system based on BIRA-5 algorithm and multiple BIOS modules, characterized in that: The invention comprises a CPU and a plurality of BIOS modules having the same firmware, wherein the firmware of the CPU deploys a BIRA-5 algorithm, and the plurality of BIOS modules include the following modules having hardware differences: A first BIOS module configured to perform hardware initialization and I / O setup; A second BIOS module configured to load an operating system of the computer; and A third BIOS module configured to perform data verification; In response to the computer system being powered on, the CPU runs the BIRA-5 algorithm for initialization, and the first BIOS module performs hardware initialization and I / O settings; The first BIOS module, the second BIOS module and the third BIOS module respectively generate corresponding check blocks using their own algorithm modules; The third BIOS module performs data verification on the check blocks of the three BIOS modules. If the data of the three check blocks are consistent, the second BIOS module loads the computer's operating system; if there is an abnormal check block whose data is inconsistent with the data of the other two check blocks, and the data of the other two check blocks are consistent, the BIRA-5 algorithm uses any one of the BIOS modules corresponding to the other two check blocks to repair the abnormal BIOS module corresponding to the abnormal check block, and executes after the repair is completed: the first BIOS module executes hardware initialization and I / O settings and the three BIOS modules generate check blocks again and perform data verification.

2. The computer system according to claim 1, characterized in that: The abnormal BIOS module corresponding to the abnormal check block is repaired in the following manner: Divide the check block into m check areas in advance, where m is a positive integer; Pre-dividing the firmware of the BIOS module into m sub-firmware corresponding to each verification area; If the data in the nth check area of ​​the abnormal check block is inconsistent with the data in the nth check areas of the other two check blocks, and the data in the nth check areas of the other two check blocks are consistent, the nth sub-firmware of the abnormal BIOS module corresponding to any one of the other two check blocks is used to update the nth sub-firmware of the abnormal BIOS module, where n is a positive integer less than or equal to m.

3. The computer system according to claim 2, characterized in that: If the result of data verification is that the data of the verification blocks of the three BIOS modules are different, and the data of the same verification area of ​​at least two BIOS modules are consistent, then at least two abnormal BIOS modules are repaired according to the verification area where the data inconsistency is located.

4. The computer system according to claim 3, characterized in that: Repair at least two abnormal BIOS modules in the following ways: If the i-th check area of ​​the first abnormal BIOS module is inconsistent with the other two BIOS modules, the i-th sub-firmware of the first abnormal BIOS module is updated using the i-th sub-firmware of any one of the two BIOS modules with consistent data in the i-th check area, where i is a positive integer less than or equal to m; If the jth check area of ​​the second abnormal BIOS module is inconsistent with the other two BIOS modules, the jth sub-firmware of the second abnormal BIOS module is updated using the jth sub-firmware of any one of the two BIOS modules with consistent data in the jth check area, where j is a positive integer less than or equal to m, and j≠i.

5. The computer system according to claim 3, characterized in that: If the result of the data verification is that the data in the k-th verification areas of the three BIOS modules are different, and k is a positive integer less than or equal to m, the CPU executes a program to restart the computer, or issues an abnormal alarm.

6. The computer system according to claim 1, characterized in that: If the result of the data verification is that the data of the verification blocks of the three BIOS modules are different, the CPU executes a program to restart the computer, or issues an abnormal alarm.

7. The computer system according to claim 5 or 6, characterized in that: The first BIOS module, the second BIOS module and the third BIOS module are respectively provided with a first backup BIOS, a second backup BIOS and a third backup BIOS; If the number of times the CPU continuously executes to restart the computer reaches a preset number threshold, and the data of the check blocks of the three BIOS modules are different, a prompt to replace the registered BIOS is given.

8. The computer system according to claim 1, characterized in that: The BIOS module further includes a fourth BIOS module, whose firmware and hardware are the same as those of the second BIOS module; The third BIOS module performs data verification on the check blocks of the four BIOS modules; if the data of the four check blocks are consistent, the second BIOS module loads the computer's operating system; if the data of the check blocks of the other three BIOS modules except the second BIOS module are consistent, the fourth BIOS module is used to load the computer's operating system.

9. The computer system according to any one of claims 1 to 6, characterized in that: During the operation of the computer after the computer operating system is loaded, the BIRA-5 algorithm is also used to perform health monitoring and data consistency checks on the three BIOS modules.

10. The computer system according to any one of claims 1 to 6, characterized in that: The third BIOS module is further configured to record information on repairing the abnormal BIOS module; And / or, the second BIOS module is further configured to perform a security check operation on the computer when or after loading the operating system of the computer.

11. A computer startup method based on BIRA-5 algorithm and multiple BIOS modules, characterized in that: The following steps are performed based on a CPU with the BIRA-5 algorithm deployed internally and multiple BIOS modules with the same firmware but different hardware: In response to the computer system being powered on, the CPU runs the BIRA-5 algorithm for initialization, and the first BIOS module performs hardware initialization and I / O settings; The first BIOS module, the second BIOS module and the third BIOS module respectively generate corresponding check blocks using their own algorithm modules; The third BIOS module performs data verification on the check blocks of the three BIOS modules. If the data of the three check blocks are consistent, the second BIOS module loads the operating system of the computer; If there is an abnormal check block whose data is inconsistent with the data of the other two check blocks, and the data of the other two check blocks are consistent, the BIRA-5 algorithm uses any one of the BIOS modules corresponding to the other two check blocks to repair the abnormal BIOS module corresponding to the abnormal check block, and executes after the repair is completed: the first BIOS module performs hardware initialization and I / O settings, and the three BIOS modules generate check blocks again and perform data verification.

12. The computer startup method according to claim 11, characterized in that: The abnormal BIOS module corresponding to the abnormal check block is repaired in the following manner: Divide the check block into m check areas in advance, where m is a positive integer; Pre-dividing the firmware of the BIOS module into m sub-firmware corresponding to each verification area; If the data in the nth check area of ​​the abnormal check block is inconsistent with the data in the nth check areas of the other two check blocks, and the data in the nth check areas of the other two check blocks are consistent, the nth sub-firmware of the abnormal BIOS module corresponding to any one of the other two check blocks is used to update the nth sub-firmware of the abnormal BIOS module, where n is a positive integer less than or equal to m.

13. The computer startup method according to claim 11, characterized in that: The abnormal BIOS module corresponding to the abnormal check block is repaired in the following manner: The data of the other two check blocks are consistent, and the firmware of the abnormal BIOS module is updated using the firmware of the BIOS module corresponding to any one of them.

14. The computer startup method according to claim 11, characterized in that: Also includes a fourth BIOS module having the same configuration firmware and hardware as the second BIOS module; The computer startup method further includes: The third BIOS module performs data verification on the check blocks of the four BIOS modules; If the data of the four check blocks are consistent, the second BIOS module loads the operating system of the computer; If the data of the check blocks of the other three BIOS modules except the second BIOS module are consistent, the fourth BIOS module is used to load the operating system of the computer.

15. The computer startup method according to claim 14, characterized in that: After the fourth BIOS module loads the operating system of the computer, the firmware of the second BIOS module is updated using the firmware of the first BIOS module, the second BIOS module or the fourth BIOS module.

Citation Information

Patent Citations

  • BIOS firmware verification system, method and device

    CN114168205A

  • Automatic restoring method and system for basic input and output system

    CN1501252A