Real-time BIOS firmware monitoring method
By using FPGA to monitor, compare, and repair BIOS firmware signals in real time, the problem of repeated occurrences caused by improper handling of error messages in the BIOS program was solved, thus achieving stability and consistency of BIOS firmware signals.
Patent Information
- Application Number
- CN202411054379.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2025-01-07
AI Technical Summary
The existing BIOS program cannot effectively process error messages after signal monitoring, causing the same error message to appear repeatedly.
An FPGA is used to monitor the BIOS firmware signals in real time. When an anomaly occurs, the system switches to the backup BIOS firmware for control and performs comparison and repair until the signal correctness is consistent.
It effectively avoids recurring errors caused by abnormal BIOS firmware signals, and ensures the correctness and stability of BIOS firmware signals through real-time monitoring and repair mechanisms.
Smart Images

Figure CN119271454A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of BIOS firmware, and in particular to a real-time BIOS firmware monitoring method. Background Art
[0002] BIOS (Basic Input Output System) is actually a set of programs (including three main program modules) that are "hardened" in the computer hardware and directly interact with the hardware. It provides the lowest level and most direct hardware control for the computer. The BIOS program is generally stored in the motherboard ROM (read-only memory chip). Even after shutting down or losing power, the program will not be lost. There are BIOS programs in many hardware of the computer. The most common ones are: the motherboard (also called system BIOS), display card and some other devices (such as IDE controller, SCSI card or network card, etc.); however, the computer startup process is carried out under the control of the system BIOS.
[0003] After the existing BIOS component monitoring program passes the correctness check on the signal monitoring, it cannot process the error message, and the process is still controlled by the original BIOS content, which cannot prevent the same error message from appearing again. Summary of the invention
[0004] The purpose of the present invention is to provide a real-time BIOS firmware monitoring method to solve the problem that the existing BIOS program proposed in the above background technology monitors the signal, cannot process the error information after passing the correctness check, and still controls the process by the original BIOS content, and cannot avoid the same error information from appearing again.
[0005] To achieve the above object, the present invention provides the following technical solution: a real-time BIOS firmware monitoring method, comprising an FPGA, the FPGA is electrically connected behind the BIOS firmware, the FPGA and the BIOS firmware are electrically connected, and the BIOS firmware is provided with BIOS firmware content and backup BIOS firmware content;
[0006] The BIOS firmware signal is monitored in real time by using the signal detection based on the FPGA.
[0007] When the FPGA detects that the BIOS firmware signal is abnormal, the backup BIOS firmware content is used to control the process;
[0008] The FPGA compares and judges the BIOS firmware content with the backup BIOS content, and repairs it;
[0009] Performing FPGA signal detection on the repaired BIOS firmware content and determining whether the signal is correct;
[0010] If yes, share the repaired BIOS firmware content with the backup BIOS content patch;
[0011] If not, the repaired BIOS firmware is compared with the backup BIOS content again and repaired.
[0012] As a preferred technical solution of the present invention, the FPGA is used to monitor the BIOS firmware signal before verifying the CMOS and detecting the hardware status, and the FPGA controls whether the standby BIOS firmware content is enabled.
[0013] As a preferred technical solution of the present invention, the backup BIOS firmware content is content that can send a correct signal, the BIOS firmware content in the BIOS firmware is a commonly used signal content, and the BIOS firmware content and the backup BIOS firmware content are consistent when the last correctness judgment passed.
[0014] As a preferred technical solution of the present invention, the BIOS firmware signal is correct, the BIOS firmware reads and verifies the CMOS data, detects the hardware status, and generates an SMBIOS table.
[0015] As a preferred technical solution of the present invention, after the SMBIOS table is generated, the BIOS firmware detects, configures and initializes each hardware, and then transfers the control right to the operating system.
[0016] As a preferred technical solution of the present invention, the FPGA judges the comparison result between the BIOS firmware content and the backup BIOS firmware content, and the BIOS firmware performs patch repair on the BIOS firmware content according to the judgment result, and records the local storage module. When the BIOS firmware repairs the BIOS firmware content, the patch source is not limited to the storage module and network acquisition.
[0017] As a preferred technical solution of the present invention, after the BIOS firmware repairs the BIOS firmware content, the FPGA determines the correctness of the new BIOS firmware signal, and the FPGA compares the difference between the new BIOS firmware content and the backup BIOS firmware content.
[0018] As a preferred technical solution of the present invention, the FPGA detects the repaired BIOS firmware content, and the FPGA makes a judgment based on the comparison result between the repaired BIOS firmware content and the standby BIOS firmware content.
[0019] As a preferred technical solution of the present invention, the FPGA judges the comparison result between the repaired BIOS firmware content and the standby BIOS firmware content, including:
[0020] The FPGA verifies whether the results of reading and verifying the CMOS data and detecting the hardware status of the repaired BIOS firmware content are consistent with the results of the standby BIOS firmware content;
[0021] If yes, proceed to the next test;
[0022] If not, repeat the contents of claims 6-9;
[0023] The FPGA verifies whether the result of the SMBIOS table generated by the repaired BIOS firmware content is consistent with the result of the standby BIOS firmware content;
[0024] If yes, proceed to the next test;
[0025] If not, repeat the contents of claims 6-9;
[0026] The FPGA verifies whether the result of the SMBIOS table generated by the repaired BIOS firmware content is consistent with the result of the standby BIOS firmware content;
[0027] If yes, proceed to the next test;
[0028] If not, repeat the contents of claims 6-9;
[0029] The FPGA verifies whether the results of the repaired BIOS firmware content verification detection, configuration and initialization of each hardware are consistent with the results of the standby BIOS firmware content;
[0030] If yes, the FPGA performs patch sharing on the repaired BIOS firmware content and the standby BIOS firmware content;
[0031] If not, repeat the process of claims 6-9.
[0032] Compared with the prior art, the present invention has the following beneficial effects:
[0033] The present invention adopts FPGA to judge the correctness of BIOS firmware signal. When the correctness judgment fails, FPGA starts spare BIOS firmware content, sends out BIOS firmware signal, reads and verifies CMOS data, detects hardware status, generates SMBIOS table, detects, configures and initializes various hardware, and then transfers control right to operating system. FPGA judges BIOS firmware content and spare BIOS firmware content, performs patch repair, and records them in storage position. FPGA judges the correctness of signal of repaired BIOS firmware content, verifies whether the result of reading and verifying CMOS data and detecting hardware status of repaired BIOS firmware content is consistent with the result of spare BIOS firmware content, verifies whether the result of SMBIOS table generated by repaired BIOS firmware content is consistent with the result of spare BIOS firmware content, verifies whether the result of verification, detection, configuration and initialization of various hardware of repaired BIOS firmware content is consistent with the result of spare BIOS firmware content, then BIOS firmware performs patch sharing, and patches the spare BIOS firmware content, so as to effectively avoid the recurrence of the same problem. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the implementation of the present invention or the technical solution in the prior art, the following briefly introduces the drawings required for the implementation or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0035] Figure 1 is a topological diagram of the present invention;
[0036] Figure 2 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0037] Below, the invention is further described in conjunction with the accompanying drawings and specific embodiments:
[0038] See also Figure 1-2 , a real-time BIOS firmware monitoring method according to an embodiment of the present invention includes an FPGA, the FPGA is electrically connected behind the BIOS firmware, the FPGA and the BIOS firmware are electrically connected, and the BIOS firmware is provided with BIOS firmware content and backup BIOS firmware content;
[0039] The BIOS firmware signal is monitored in real time by using the signal detection based on the FPGA.
[0040] When the FPGA detects that the BIOS firmware signal is abnormal, the backup BIOS firmware content is used to control the process;
[0041] The FPGA compares and judges the BIOS firmware content with the backup BIOS content, and repairs it;
[0042] Performing FPGA signal detection on the repaired BIOS firmware content and determining whether the signal is correct;
[0043] If yes, share the repaired BIOS firmware content with the backup BIOS content patch;
[0044] If not, the repaired BIOS firmware is compared with the backup BIOS content again and repaired.
[0045] In this embodiment, the FPGA is used to monitor the BIOS firmware signal before verifying the CMOS and detecting the hardware status, and the FPGA controls whether the standby BIOS firmware content is enabled.
[0046] In this embodiment, the backup BIOS firmware content is content that can send out a correct signal, the BIOS firmware content in the BIOS firmware is a commonly used signal content, and the BIOS firmware content and the backup BIOS firmware content are consistent when the correctness determination was passed last time.
[0047] In this embodiment, the BIOS firmware signal is correct, the BIOS firmware reads and verifies the CMOS data, detects the hardware status, and generates an SMBIOS table.
[0048] In this embodiment, after the SMBIOS table is generated, the BIOS firmware detects, configures and initializes each hardware, and then transfers control to the operating system.
[0049] In this embodiment, the FPGA judges the comparison result between the BIOS firmware content and the backup BIOS firmware content, and the BIOS firmware performs patch repair on the BIOS firmware content according to the judgment result, and records the local storage module. When the BIOS firmware repairs the BIOS firmware content, the patch source is not limited to the storage module and network acquisition.
[0050] In this embodiment, after the BIOS firmware repairs the BIOS firmware content, the FPGA determines the correctness of the new BIOS firmware signal, and the FPGA compares the new BIOS firmware content with the standby BIOS firmware content.
[0051] In this embodiment, the FPGA detects the repaired BIOS firmware content, and the FPGA makes a judgment based on the comparison result between the repaired BIOS firmware content and the standby BIOS firmware content.
[0052] In this embodiment, the FPGA judges the comparison result of the repaired BIOS firmware content and the standby BIOS firmware content, including:
[0053] The FPGA verifies whether the results of reading and verifying the CMOS data and detecting the hardware status of the repaired BIOS firmware content are consistent with the results of the standby BIOS firmware content;
[0054] If yes, proceed to the next test;
[0055] If not, repeat the contents of claims 6-9;
[0056] The FPGA verifies whether the result of the SMBIOS table generated by the repaired BIOS firmware content is consistent with the result of the standby BIOS firmware content;
[0057] If yes, proceed to the next test;
[0058] If not, repeat the contents of claims 6-9;
[0059] The FPGA verifies whether the result of the SMBIOS table generated by the repaired BIOS firmware content is consistent with the result of the standby BIOS firmware content;
[0060] If yes, proceed to the next test;
[0061] If not, repeat the contents of claims 6-9;
[0062] The FPGA verifies whether the results of the repaired BIOS firmware content verification detection, configuration and initialization of each hardware are consistent with the results of the standby BIOS firmware content;
[0063] If yes, the FPGA performs patch sharing on the repaired BIOS firmware content and the standby BIOS firmware content;
[0064] If not, repeat the process of claims 6-9.
[0065] In specific applications, the system is powered on, the BIOS firmware sends a signal, and the FPGA determines the correctness of the BIOS firmware signal. If the correctness is passed, the CMOS data is read and verified, the hardware status is detected, and the SMBIOS table is generated to detect, configure and initialize each hardware, and then the control is transferred to the operating system. If the correctness is not passed, the FPGA starts the backup BIOS firmware content and sends a BIOS firmware signal. The BIOS firmware signal at this time is the uncontaminated content that was correctly turned on last time. The BIOS firmware reads and verifies the CMOS data, detects the hardware status, and generates the SMBIOS table to detect, configure and initialize each hardware, and then transfers the control to the operating system. The FPGA determines the BIOS firmware content and the backup BIOS firmware content, performs patch repair, and records it in the storage location. The FPGA then determines the signal correctness of the repaired BIOS firmware content to verify that the repaired BIOS firmware content reads and verifies the CMOS data and detects the hardware status. Whether the result is consistent with the result of the backup BIOS firmware content, if they are consistent, proceed to the next judgment; if not, repeat the previous step for self-check and repair, and verify whether the result of the SMBIOS table generated by the repaired BIOS firmware content is consistent with the result of the backup BIOS firmware content. If they are consistent, proceed to the next judgment; if not, repeat the above steps for self-check and repair, and verify whether the result of the SMBIOS table generated by the repaired BIOS firmware content is consistent with the result of the backup BIOS firmware content. If they are consistent, proceed to the next judgment; if not, repeat the above steps for self-check and repair, and verify whether the results of the verification, detection, configuration and initialization of each hardware of the repaired BIOS firmware content are consistent with the results of the backup BIOS firmware content. If they are consistent, proceed to the next judgment; if not, repeat the above steps for self-check and repair, and then the BIOS firmware shares the patch of the backup BIOS firmware content and the new BIOS firmware content, and updates the patch of the backup BIOS firmware content to effectively avoid the recurrence of the same problem.
[0066] In the description of the present invention, it should be noted that the orientations or positional relationships indicated by the terms "top", "bottom", "one side", "the other side", "front", "back", "middle part", "inside", "top end", "bottom end", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention; the terms "first", "second", and "third" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance; in addition, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0067] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A real-time BIOS firmware monitoring method, characterized in that: The device comprises an FPGA, wherein the FPGA is electrically connected behind the BIOS firmware, the FPGA and the BIOS firmware are electrically connected, and the BIOS firmware is provided with BIOS firmware content and backup BIOS firmware content; The BIOS firmware signal is monitored in real time by using the signal detection based on the FPGA. When the FPGA detects that the BIOS firmware signal is abnormal, the backup BIOS firmware content is used to control the process; The FPGA compares and judges the BIOS firmware content with the backup BIOS content, and repairs it; Performing FPGA signal detection on the repaired BIOS firmware content and determining whether the signal is correct; If so, sharing the repaired BIOS firmware content with the backup BIOS content patch; If not, the repaired BIOS firmware is compared with the backup BIOS content again and repaired.
2. A real-time BIOS firmware monitoring method according to claim 1, characterized in that: The FPGA is used to monitor the BIOS firmware signal. Before checking the CMOS and detecting the hardware status, the FPGA controls whether the standby BIOS firmware content is enabled.
3. A real-time BIOS firmware monitoring method according to claim 1, characterized in that: The standby BIOS firmware content is content that can send out a correct signal, the BIOS firmware content in the BIOS firmware is a commonly used signal content, and the BIOS firmware content and the standby BIOS firmware content are consistent when the correctness determination was passed last time.
4. A real-time BIOS firmware monitoring method according to claim 1, characterized in that: The BIOS firmware signal is correct, the BIOS firmware reads and verifies the CMOS data, detects the hardware status, and generates an SMBIOS table.
5. A real-time BIOS firmware monitoring method according to claim 1, characterized in that: After the SMBIOS table is generated, the BIOS firmware detects, configures and initializes each hardware, and then transfers control to the operating system.
6. A real-time BIOS firmware monitoring method according to claim 1, characterized in that: The FPGA judges the comparison result between the BIOS firmware content and the backup BIOS firmware content, and the BIOS firmware performs patch repair on the BIOS firmware content according to the judgment result, and records the local storage module. When the BIOS firmware repairs the BIOS firmware content, the patch source is not limited to the storage module and network acquisition.
7. A real-time BIOS firmware monitoring method according to claim 1, characterized in that: After the BIOS firmware repairs the BIOS firmware content, the FPGA determines the correctness of the new BIOS firmware signal, and the FPGA compares the new BIOS firmware content with the standby BIOS firmware content.
8. A real-time BIOS firmware monitoring method according to claim 1, characterized in that: The FPGA detects the repaired BIOS firmware content, and the FPGA makes a judgment based on the comparison result between the repaired BIOS firmware content and the standby BIOS firmware content.
9. A real-time BIOS firmware monitoring method according to claim 1, characterized in that: The FPGA judges the comparison result between the repaired BIOS firmware content and the standby BIOS firmware content, including: The FPGA verifies whether the results of reading and verifying the CMOS data and detecting the hardware status of the repaired BIOS firmware content are consistent with the results of the standby BIOS firmware content; If yes, proceed to the next test; If not, repeat the contents of claims 6-9; The FPGA verifies whether the result of the SMBIOS table generated by the repaired BIOS firmware content is consistent with the result of the standby BIOS firmware content; If yes, proceed to the next test; If not, repeat the contents of claims 6-9; The FPGA verifies whether the result of the SMBIOS table generated by the repaired BIOS firmware content is consistent with the result of the standby BIOS firmware content; If yes, proceed to the next test; If not, repeat the contents of claims 6-9; The FPGA verifies whether the results of the repaired BIOS firmware content verification detection, configuration and initialization of each hardware are consistent with the results of the standby BIOS firmware content; If yes, the FPGA performs patch sharing on the repaired BIOS firmware content and the standby BIOS firmware content; If not, repeat the process of claims 6-9.