BIOS flash switching detection method and device, apparatus, and storage medium
By collecting and comparing the serial peripheral interface signals during the BIOS flash memory switching process, and using complex programmable logic devices to detect changes in the switching signals of the board management controller, the problem of difficult positioning caused by erroneous switching of the board management controller is solved, achieving rapid and accurate detection and improving system security.
Patent Information
- Application Number
- CN202210904934.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-07-29
AI Technical Summary
Existing BIOS flash memory switching detection methods are difficult to locate when the baseboard management controller is accidentally switched, which can easily lead to system crashes and make it difficult to detect quickly and accurately.
By acquiring the serial peripheral interface input and output signals of the multiplexer, it is determined whether the serial peripheral interface input and output signals are consistent, and whether the serial peripheral interface output signals are consistent. The switching signal changes of the board management controller are detected using a complex programmable logic device to determine erroneous switching or noise.
It enables fast and accurate detection of BIOS flash memory switching, simplifies problem localization, and improves system security.
Smart Images

Figure CN115098316B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of server maintenance, and particularly relates to a BIOS flash switching detection method and device, equipment and a computer readable storage medium. BACKGROUND
[0002] The server needs to access and interact with the BIOS (Basic Input Output System) flash during startup. The existing method is to access and interact with the BIOS flash through the PCH (Platform Controller Hub) or CPU (Central Processing Unit). If the data read is incorrect, the system cannot start. The BMC (Baseboard Management Controller) in the server can also access and interact with the BIOS flash, mainly for BIOS flash updating, and the switching is performed through a multiplexer hardware.
[0003] Figure 1 For the BIOS flash switching architecture of the baseboard management controller, after the server is automatically powered on, the baseboard management controller accesses and interacts with the BIOS flash through the PCH or CPU, so that the server can start normally. When the baseboard management controller needs to update the BIOS flash, the server is controlled to shut down. After the server is shut down, the PCH or CPU will not communicate with the BIOS flash. At this time, the SPI (Serial Peripheral Interface) path is switched to the baseboard management controller, and the baseboard management controller can update the BIOS flash. After the update is completed, the SPI path is switched back to the PCH or CPU. If the baseboard management controller mistakenly switches the BIOS flash during startup, the PCH or CPU will fail to interact with the BIOS flash, thereby causing the server to fail to start. The operation and maintenance personnel need to measure the power sequence to locate the problem, and when the baseboard management controller switching time is very short, the problem locating (Debug) is more difficult, and even causes system crash.
[0004] To sum up, how to effectively solve the problem that the existing BIOS flash switching detection method is difficult to locate the problem when the baseboard management controller mistakenly switches the BIOS flash, and is easy to cause system crash is a problem that needs to be solved by the technical personnel in the field at present. SUMMARY
[0005] The application aims to provide a BIOS flash switching detection method, which realizes quick and accurate detection of BIOS flash switching, simplifies problem positioning difficulty, and improves system security.
[0006] To solve the above technical problems, the application provides the following technical solutions.
[0007] A BIOS flash switching detection method comprises the following steps.
[0008] Collecting a serial peripheral interface input signal input to a multiplexer by a power-on control end;
[0009] Collecting a serial peripheral interface output signal output to a BIOS flash by the multiplexer;
[0010] When it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, detecting whether a switch signal of a baseboard management controller changes;
[0011] If yes, it is determined that the baseboard management controller mis-switches the serial peripheral interface signal;
[0012] If no, it is determined that the serial peripheral interface signal has noise.
[0013] In one specific embodiment of the application, when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, the method further comprises the following steps.
[0014] Outputting BIOS flash access interaction failure prompt information.
[0015] In one specific embodiment of the application, outputting BIOS flash access interaction failure prompt information comprises the following steps.
[0016] Controlling a pre-set flash error prompt light to be lit to prompt BIOS flash access interaction failure.
[0017] In one specific embodiment of the application, when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, detecting whether the switch signal of the baseboard management controller changes comprises the following steps.
[0018] Judging whether each input branch signal of the serial peripheral interface input signal and each output branch signal of the serial peripheral interface output signal are consistent;
[0019] If there is an inconsistent input branch signal and corresponding output branch signal, detecting whether the switch signal of the baseboard management controller changes.
[0020] In one embodiment of the present application, after determining that the baseboard management controller mis-cuts the serial peripheral interface signal, further comprising:
[0021] Obtaining a first preset flag corresponding to the baseboard management controller mis-cutting the serial peripheral interface signal;
[0022] Setting the first preset flag into a register.
[0023] In one embodiment of the present application, after determining that the serial peripheral interface signal has noise, further comprising:
[0024] Obtaining a second preset flag corresponding to the serial peripheral interface signal having noise;
[0025] Setting the second preset flag into a register.
[0026] In one embodiment of the present application, detecting whether the switch signal of the baseboard management controller has a change, comprising:
[0027] Detecting whether the switch signal of the baseboard management controller is high.
[0028] A switching detection device of a BIOS flash memory, comprising:
[0029] An input signal acquisition module, configured to acquire a serial peripheral interface input signal input by a power-on control end to a multiplexer;
[0030] An output signal acquisition module, configured to acquire a serial peripheral interface output signal output by the multiplexer to a BIOS flash memory;
[0031] A switch signal detection module, configured to detect whether a switch signal of a baseboard management controller has a change when it is determined that the serial peripheral interface input signal is inconsistent with the serial peripheral interface output signal;
[0032] A signal mis-cut determination module, configured to determine that the baseboard management controller mis-cuts the serial peripheral interface signal when it is detected that the switch signal of the baseboard management controller has a change;
[0033] A noise determination module, configured to determine that the serial peripheral interface signal has noise when it is detected that the switch signal of the baseboard management controller does not have a change.
[0034] A switching detection device of a BIOS flash memory, comprising:
[0035] A memory, configured to store a computer program;
[0036] A processor, configured to execute the computer program to implement the steps of the switching detection method of the BIOS flash memory as described above.
[0037] A computer readable storage medium, the computer readable storage medium has a computer program stored thereon, the computer program is executed by a processor to implement the steps of the BIOS flash switching detection method as described above.
[0038] The BIOS flash switching detection method provided by the application collects a serial peripheral interface input signal input to a multiplexer by a startup control end; collects a serial peripheral interface output signal output to a BIOS flash by the multiplexer; when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, detects whether a switching signal of a baseboard management controller changes; if yes, it is determined that the baseboard management controller mis-switches the serial peripheral interface signal; if no, it is determined that the serial peripheral interface signal has noise.
[0039] From the above technical solution, by pre-setting a complex programmable logic device, collecting a serial peripheral interface input signal input to a multiplexer by a startup control end and a serial peripheral interface output signal output to a BIOS flash by the multiplexer by using the complex programmable logic device, judging whether the serial peripheral interface input signal and the serial peripheral interface output signal are consistent, when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, detecting whether a switching signal of a baseboard management controller changes; if there is a change, it is determined that the baseboard management controller mis-switches the serial peripheral interface signal; if there is no change, it is determined that the serial peripheral interface signal has noise. Thus, the BIOS flash switching is quickly and accurately detected, the problem positioning difficulty is simplified, and the system security is improved.
[0040] Correspondingly, the application also provides a BIOS flash switching detection device, equipment and computer readable storage medium corresponding to the BIOS flash switching detection method, which have the above technical effects, and will not be described here. BRIEF DESCRIPTION OF DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced below. Obviously, the drawings in the following description only some embodiments of the application, and for those skilled in the art, other drawings can be obtained without creative labor on the basis of these drawings.
[0042] Figure 1 It is a BIOS flash switching detection architecture diagram in the prior art;
[0043] Figure 2 It is an implementation flowchart of the BIOS flash switching detection method in the embodiment of the application;
[0044] Figure 3A BIOS flash switching detection architecture diagram in an embodiment of the present application;
[0045] Figure 4 Another embodiment flow chart of a BIOS flash switching detection method in an embodiment of the present application;
[0046] Figure 5 A structure block diagram of a BIOS flash switching detection device in an embodiment of the present application;
[0047] Figure 6 A structure block diagram of a BIOS flash switching detection device in an embodiment of the present application;
[0048] Figure 7 A specific structure schematic diagram of a BIOS flash switching detection device provided in the embodiment. DETAILED DESCRIPTION
[0049] In order to make the personnel in the technical field better understand the present application scheme, the present application is further described in detail below in combination with the drawings and specific embodiments. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor are within the scope of protection of the present application.
[0050] Reference Figure 2 , Figure 2 An embodiment flow chart of a BIOS flash switching detection method in an embodiment of the present application, which can include the following steps:
[0051] S201: Collect serial peripheral interface input signals input by a boot control end to a multiplexer.
[0052] The boot control end performs data access interaction operation with the BIOS flash through the multiplexer, and there is a signal between the multiplexer and the boot control end, and there is also a signal between the multiplexer and the boot control end. A complex programmable logic device (CPLD) is pre-set, and the programmable logic device is used to collect serial peripheral interface input signals input by the boot control end to the multiplexer in the server boot process.
[0053] The boot control end can be a PCH or a CPU.
[0054] S202: Collect serial peripheral interface output signals output by the multiplexer to the BIOS flash.
[0055] The programmable logic device is used to collect serial peripheral interface output signals output by the multiplexer to the BIOS flash in the server boot process.
[0056] S203: When it is determined that the serial peripheral interface input signal is inconsistent with the serial peripheral interface output signal, it is detected whether the switching signal of the baseboard management controller has a change, if yes, step S204 is executed, and if no, step S205 is executed.
[0057] After the serial peripheral interface input signal input to the multiplexer by the power-on control end is collected and the serial peripheral interface output signal output to the BIOS flash memory by the multiplexer is collected, it is judged whether the serial peripheral interface input signal is consistent with the serial peripheral interface output signal, when it is determined that the serial peripheral interface input signal is inconsistent with the serial peripheral interface output signal, it is indicated that the current server cannot be normally started, and it is detected whether the switching signal of the baseboard management controller has a change, such as whether the state flag bit has a change, if yes, it is indicated that the baseboard management controller attempts to update the BIOS flash memory in the process of starting the server, step S204 is executed, and if no, it is indicated that the baseboard management controller does not attempt to update the BIOS flash memory in the process of starting the server, step S205 is executed.
[0058] In one specific embodiment of the present application, detecting whether the switching signal of the baseboard management controller has a change can include the following steps:
[0059] It is detected whether the switching signal of the baseboard management controller is high.
[0060] It is pre-set that when the baseboard management controller updates the BIOS flash memory, the switching signal of the baseboard management controller will jump from low to high. When it is determined that the serial peripheral interface input signal is inconsistent with the serial peripheral interface output signal, it is detected whether the switching signal of the baseboard management controller is high. By detecting whether the switching signal of the baseboard management controller is high, it is determined whether the baseboard management controller mis-cuts the serial peripheral interface signal, clear determination of the baseboard management controller mis-cutting the serial peripheral interface signal is realized, and the problem positioning efficiency is improved.
[0061] In one specific embodiment of the present application, when it is determined that the serial peripheral interface input signal is inconsistent with the serial peripheral interface output signal, the method can further include the following steps:
[0062] The BIOS flash memory access interaction failure prompt information is output.
[0063] When it is determined that the serial peripheral interface input signal is inconsistent with the serial peripheral interface output signal, it is indicated that the current server cannot be normally started, and the BIOS flash memory access interaction failure prompt information is output, so as to timely prompt the operation and maintenance personnel that the server starting process is abnormal.
[0064] In one specific embodiment of the present application, the output BIOS flash access interaction failure prompt information can comprise the following steps:
[0065] The pre-set flash error prompt light is controlled to be lit to prompt the BIOS flash access interaction failure.
[0066] The flash error prompt light is pre-set, when the server boot process is normal, the flash error prompt light is in an off state by default, when the server boot process is abnormal, the flash error prompt light is lit. When it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, the pre-set flash error prompt light is controlled to be lit, thereby prompting the BIOS flash access interaction failure. By setting the flash error prompt light, whether the server boot process is normal or not can be more intuitively reflected.
[0067] S204: Determine that the baseboard management controller mis-cuts the serial peripheral interface signal.
[0068] In one specific embodiment of the present application, after step S204, the method can further comprise the following steps:
[0069] Step one: Obtain a first preset flag corresponding to the baseboard management controller mis-cutting the serial peripheral interface signal;
[0070] Step two: Set the first preset flag into a register.
[0071] For convenience of description, the above two steps can be combined for description.
[0072] The first preset flag corresponding to the baseboard management controller mis-cutting the serial peripheral interface signal is pre-set, for example, it can be set to 0x01. After it is determined that the baseboard management controller mis-cuts the serial peripheral interface signal, the first preset flag corresponding to the baseboard management controller mis-cutting the serial peripheral interface signal is obtained, and the first preset flag is set into the register. Thus, the baseboard management controller mis-cutting the serial peripheral interface signal is effectively recorded, thereby facilitating subsequent viewing and tracing.
[0073] S205: Determine that the serial peripheral interface signal has noise.
[0074] When it is detected that the switch signal of the baseboard management controller has no change, it is indicated that the baseboard management controller does not attempt to update the BIOS flash during the server boot process, and it is determined that the serial peripheral interface signal has noise.
[0075] In one specific embodiment of the present application, after step S205, the method can further comprise the following steps:
[0076] Step one: Obtain a second preset flag corresponding to the serial peripheral interface signal having noise;
[0077] Step two: set the second preset flag bit into the register.
[0078] For the convenience of description, the above two steps can be combined for description.
[0079] The second preset flag bit corresponding to the noise of the serial peripheral interface signal is set in advance, such as 0x02, after determining that the serial peripheral interface signal has noise, the second preset flag bit corresponding to the noise of the serial peripheral interface signal is obtained, and the second preset flag bit is set into the register. Thus, the serial peripheral interface signal with noise this time is effectively recorded, which is convenient for subsequent viewing and tracing.
[0080] From the above technical solution, by pre-setting the complex programmable logic device, the complex programmable logic device is used to collect the serial peripheral interface input signal input by the boot control end to the multiplexer and the serial peripheral interface output signal output by the multiplexer to the BIOS flash memory, respectively, to determine whether the serial peripheral interface input signal and the serial peripheral interface output signal are consistent, when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, whether the switch signal of the baseboard management controller changes is detected; if there is a change, it is determined that the baseboard management controller mis-cuts the serial peripheral interface signal; if there is no change, it is determined that the serial peripheral interface signal has noise. Thus, the rapid and accurate detection of BIOS flash memory switching is realized, the problem positioning difficulty is simplified, and the system security is improved.
[0081] It should be noted that based on the above embodiment, the present embodiment also provides a corresponding improvement scheme. In the subsequent embodiments, the steps in the above embodiments or the corresponding steps can be mutually referenced, and the corresponding beneficial effects can also be mutually referenced. In the following improved embodiments, it will not be described one by one.
[0082] Reference Figure 4 , Figure 4 Another embodiment of the BIOS flash memory switching detection method in the present embodiment is provided, which can include the following steps:
[0083] S401: Collect the serial peripheral interface input signal input by the boot control end to the multiplexer.
[0084] S402: Collect the serial peripheral interface output signal output by the multiplexer to the BIOS flash memory.
[0085] S403: Determine whether each input branch signal of the serial peripheral interface input signal and each output branch signal of the serial peripheral interface output signal are consistent, if yes, do not process, if not, execute step S404.
[0086] After the serial peripheral interface input signal inputted by the power-on control end to the multiplexer is collected and the serial peripheral interface output signal outputted by the multiplexer to the BIOS flash memory is collected, it is judged whether each input branch signal of the serial peripheral interface input signal and each output branch signal of the serial peripheral interface output signal are consistent or not, if yes, it is indicated that the current server boot process is normal, no processing is performed, if not, it is indicated that there may exist the baseboard management controller attempting to update the BIOS flash memory in the server boot process, step S404 is executed.
[0087] Referring to Figure 3 , Figure 3 is a BIOS flash memory switching detection architecture diagram in the embodiment of the application. Four SPI signals of the PCH or CPU to the multiplexer and four SPI signals of the multiplexer to the BIOS flash memory are pulled to the complex programmable logic device, and the switch signal of the baseboard management controller is also provided to the complex programmable logic device. The SPI signal speed of the PCH or CPU can be up to 40 MHz, the complex programmable logic device can use the internal high-speed 133 MHz clock to detect whether the input and output signals of the multiplexer are the same, for example, BIOS_SPI_CS0 detects that it is a high level, SPI_CS also detects that it is a high level, and so on. The other BIOS_SPI_CLK_0 and SPI_CLK are compared, BIOS_SPI_Dout_0 and SPI_Dout are compared, and BIOS_SPI_Din_0 and SPI_Din are compared. When the complex programmable logic device detects that the input and output signals of the multiplexer are not the same, the complex programmable logic device will light the flash memory error prompt light. At the same time, the complex programmable logic device will also detect the switch signal sent by the baseboard management controller. If the switch signal is high, it indicates that the baseboard management controller cuts the serial peripheral interface signal to itself at present, at this time, if the PCH / CPU is still in the boot state, it cannot read the BIOS flash memory information, which will cause the system to fail to boot, and the complex programmable logic device will set the register as the baseboard management controller mis-cut. If the switch signal sent by the baseboard management controller is low, the complex programmable logic device will set the register as the serial peripheral interface signal has noise. The engineer can read the register of the complex programmable logic device through the baseboard management controller to know whether it is the baseboard management controller mis-cut or the serial peripheral interface signal has noise, which can reduce the engineer problem positioning (Debug) time.
[0088] S404: whether the switch signal of the baseboard management controller changes or not is detected, if yes, step S405 is executed, if not, step S406 is executed.
[0089] S405: Determine that the baseboard management controller mis-cuts the serial peripheral interface signal.
[0090] S406: Determine that the serial peripheral interface signal has noise.
[0091] The embodiment of the present application compares the serial peripheral interface signal sent by the PCH or the CPU to the multiplexer with the serial peripheral interface signal sent by the multiplexer to the BIOS flash memory at all times. When the two serial peripheral interface signals are different, the CPLD lights the flash error prompt light on the board and records the information, which is read by the baseboard management controller. Thus, it can be quickly determined whether the baseboard management controller mis-cuts the serial peripheral interface signal of the BIOS flash memory during the development stage, and the time for the engineers to locate the problem is reduced.
[0092] In a specific example application, the algorithm for how the CPLD detects the serial peripheral interface signal of the BIOS flash memory is described as follows.
[0093] 1) When the power is turned on, the CPLD continuously detects the serial peripheral interface signal sent by the PCH / CPU to the multiplexer and the serial peripheral interface signal sent by the multiplexer to the BIOS flash memory.
[0094] 2) When the CPLD detects that the two serial peripheral interface signals before and after the multiplexer are different, the CPLD further detects the switch signal of the baseboard management controller.
[0095] 3) If the CPLD detects that the switch signal of the baseboard management controller is high, the CPLD sets the baseboard management controller mis-cuts the serial peripheral interface signal to the register (0x01) and lights the flash error prompt light at the same time.
[0096] 4) If the CPLD detects that the switch signal of the baseboard management controller is low, the CPLD sets the information that the serial peripheral interface signal has noise to the register (0x02) and lights the flash error prompt light at the same time.
[0097] Corresponding to the above method embodiment, the present application further provides a BIOS flash switching detection device. The BIOS flash switching detection device described below can be correspondingly referred to the BIOS flash switching detection method described above.
[0098] Referring to Figure 5 , Figure 5 The structure block diagram of the BIOS flash switching detection device in the embodiment of the present application can include:
[0099] The input signal collection module 51 is configured to collect the serial peripheral interface input signal input by the power-on control end into the multiplexer.
[0100] The output signal collection module 52 is configured to collect the serial peripheral interface output signal output by the multiplexer to the BIOS flash memory.
[0101] The switch signal detection module 53 is configured to detect whether the switch signal of the baseboard management controller changes when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent.
[0102] The signal error determination module 54 is configured to determine that the baseboard management controller erroneously switches the serial peripheral interface signal when it is detected that the switch signal of the baseboard management controller changes.
[0103] The noise determination module 55 is configured to determine that the serial peripheral interface signal has noise when it is detected that the switch signal of the baseboard management controller does not change.
[0104] According to the above technical solution, the complex programmable logic device is pre-set, the complex programmable logic device is used to collect the serial peripheral interface input signal input by the power-on control end into the multiplexer and the serial peripheral interface output signal output by the multiplexer to the BIOS flash memory, it is determined whether the serial peripheral interface input signal and the serial peripheral interface output signal are consistent, when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, it is detected whether the switch signal of the baseboard management controller changes; if the change exists, it is determined that the baseboard management controller erroneously switches the serial peripheral interface signal; if the change does not exist, it is determined that the serial peripheral interface signal has noise. Thus, the rapid and accurate detection of the BIOS flash memory switching is realized, the problem positioning difficulty is simplified, and the system security is improved.
[0105] In an embodiment of the present application, the device can further include:
[0106] The prompt information output module is configured to output the BIOS flash memory access interaction failure prompt information when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent.
[0107] In an embodiment of the present application, the prompt information output module specifically controls the pre-set flash error prompt light to be lit to prompt the BIOS flash memory access interaction failure.
[0108] In an embodiment of the present application, the switch signal detection module includes:
[0109] The judgment sub-module is configured to judge whether each input branch signal of the serial peripheral interface input signal and each output branch signal of the serial peripheral interface output signal are consistent.
[0110] The switch signal detection sub-module is configured to detect whether the switch signal of the baseboard management controller changes when it is determined that the input branch signal is inconsistent with the corresponding output branch signal.
[0111] In an embodiment of the present application, the apparatus can further include:
[0112] The first flag acquisition module is configured to acquire a first preset flag corresponding to the mis-cut serial peripheral interface signal of the baseboard management controller after it is determined that the mis-cut serial peripheral interface signal of the baseboard management controller occurs.
[0113] The first flag setting module is configured to set the first preset flag into the register.
[0114] In an embodiment of the present application, the apparatus can further include:
[0115] The second flag acquisition module is configured to acquire a second preset flag corresponding to the noise of the serial peripheral interface signal after it is determined that the noise of the serial peripheral interface signal occurs.
[0116] The second flag setting module is configured to set the second preset flag into the register.
[0117] In an embodiment of the present application, the switch signal detection module is specifically a module for detecting whether the switch signal of the baseboard management controller is a high level.
[0118] Corresponding to the above method embodiments, refer to Figure 6 , Figure 6 The present application provides a schematic diagram of the BIOS flash switching detection device, which can include:
[0119] The memory 332 is configured to store the computer program.
[0120] The processor 322 is configured to execute the computer program to implement the steps of the BIOS flash switching detection method of the above method embodiments.
[0121] Specifically, refer to Figure 7 , Figure 7A specific structure schematic diagram of a BIOS flash switching detection device provided for the embodiment is shown in the figure. The BIOS flash switching detection device can have great differences due to different configurations or performances, and can include a central processing unit (CPU) 322 (e.g., one or more processors) and a memory 332 storing one or more computer applications 342 or data 344. The memory 332 can be temporary storage or persistent storage. The programs stored in the memory 332 can include one or more modules (not shown in the figure), each of which can include a series of instruction operations on the data processing device. Further, the processor 322 can be configured to communicate with the memory 332 and execute the series of instruction operations in the memory 332 on the BIOS flash switching detection device 301.
[0122] The BIOS flash switching detection device 301 can further include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341.
[0123] The steps in the BIOS flash switching detection method described above can be implemented by the structure of the BIOS flash switching detection device.
[0124] Corresponding to the above method embodiment, the application further provides a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor, the following steps can be implemented:
[0125] The serial peripheral interface input signal input by the power-on control end to the multiplexer is collected; the serial peripheral interface output signal output by the multiplexer to the BIOS flash memory is collected; when it is determined that the serial peripheral interface input signal and the serial peripheral interface output signal are inconsistent, it is detected whether the switching signal of the baseboard management controller has a change; if yes, it is determined that the baseboard management controller mis-switches the serial peripheral interface signal; and if no, it is determined that the serial peripheral interface signal has noise.
[0126] The computer readable storage medium can include a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0127] For the computer readable storage medium provided by the application, please refer to the above method embodiment, and the application will not be described here.
[0128] Various embodiments are described herein with reference to the drawings, which utilize progressive numbering schemes. Each embodiment is described in terms of its differences from other embodiments, and each embodiment shares common or similar parts with other embodiments, as indicated by the reference numbers. For the apparatus, device, and computer-readable storage medium embodiments, the descriptions are relatively simple because they correspond to the method embodiments, and the commonalities are described in the method embodiment descriptions.
[0129] The principles and implementations of the present application are described herein with reference to specific examples. The above descriptions of the examples are intended to help understand the technical solutions of the present application and the core ideas thereof. It should be noted that, for those of ordinary skill in the art, without departing from the principles of the present application, a number of improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A method for detecting a BIOS flash switch, the method comprising: The method comprises the following steps: collecting serial peripheral interface input signals input by a start-up control terminal to a multiplexer; collecting serial peripheral interface output signals output by the multiplexer to a BIOS flash memory; when it is determined that the serial peripheral interface input signals are inconsistent with the serial peripheral interface output signals, detecting whether there is a change in a switch signal of a baseboard management controller; if yes, determining that the baseboard management controller mis-cuts the serial peripheral interface signals; if no, determining that there is noise in the serial peripheral interface signals.
2. The method of claim 1, wherein the method further comprises: When it is determined that the serial peripheral interface input signals are inconsistent with the serial peripheral interface output signals, the method further comprises the following steps: outputting a BIOS flash memory access interaction failure prompt information.
3. The method of claim 2, wherein the BIOS flash switching detection method is characterized by, The outputting of the BIOS flash memory access interaction failure prompt information comprises the following steps: controlling a pre-set flash memory error prompt light to be lit up to prompt the BIOS flash memory access interaction failure.
4. The method of claim 1 to 3, wherein, When it is determined that the serial peripheral interface input signals are inconsistent with the serial peripheral interface output signals, the detecting of whether there is a change in the switch signal of the baseboard management controller comprises the following steps: judging whether each input branch signal of the serial peripheral interface input signals and each output branch signal of the serial peripheral interface output signals are consistent; if there is an inconsistent input branch signal and a corresponding output branch signal, detecting whether there is a change in the switch signal of the baseboard management controller.
5. The method of claim 1, wherein the method further comprises: After it is determined that the baseboard management controller mis-cuts the serial peripheral interface signals, the method further comprises the following steps: acquiring a first pre-set flag corresponding to the mis-cutting of the serial peripheral interface signals by the baseboard management controller; setting the first pre-set flag into a register.
6. The method of claim 1, wherein the method further comprises: After it is determined that there is noise in the serial peripheral interface signals, the method further comprises the following steps: acquiring a second pre-set flag corresponding to the noise in the serial peripheral interface signals; setting the second pre-set flag into the register.
7. The method of claim 1, wherein the method further comprises: The detecting of whether there is a change in the switch signal of the baseboard management controller comprises the following steps: detecting whether the switch signal of the baseboard management controller is a high level.
8. A BIOS flash switching detection apparatus, comprising: The method comprises the following steps: an input signal collecting module, configured to collect serial peripheral interface input signals input by a start-up control terminal to a multiplexer; an output signal collecting module, configured to collect serial peripheral interface output signals output by the multiplexer to a BIOS flash memory; a switch signal detecting module, configured to, when it is determined that the serial peripheral interface input signals are inconsistent with the serial peripheral interface output signals, detect whether there is a change in a switch signal of a baseboard management controller; a signal mis-cutting determining module, configured to, when it is detected that there is a change in the switch signal of the baseboard management controller, determine that the baseboard management controller mis-cuts the serial peripheral interface signals; a noise determining module, configured to, when it is detected that there is no change in the switch signal of the baseboard management controller, determine that there is noise in the serial peripheral interface signals.
9. A BIOS flash switching detection apparatus, comprising: The method comprises the following steps: a memory, configured to store a computer program; a processor, configured to, when the computer program is executed, implement the steps of the BIOS flash memory switching detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium, and when the computer program is executed by the processor, the steps of the BIOS flash memory switching detection method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method for automatically restoring basic input and output system image files and computer system
CN109032673A
Firmware upgrade processing method, server system, and storage medium
CN113760328A