Program starting method and apparatus, and server and non-volatile readable storage medium

Through the communication and verification mechanism between the substrate management controller and the processor, the problem of failure to quickly locate the fault when the BIOS program starts is solved, and the effect of quickly identifying and handling faults is achieved.

WO2024244436A1PCT designated stage expired Publication Date: 2024-12-05INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/141687
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-29
Filing Date
2023-12-25
Publication Date
2024-12-05

AI Technical Summary

Technical Problem

When the BIOS program fails due to independent operation during startup, it cannot quickly and accurately locate the stage of the failure, resulting in the failure location being unable to be identified in time when the startup fails.

Method used

Send startup instructions to the processor through the substrate management controller, and receive and verify the fault information during the processor startup target program to determine whether there is a fault during the startup process. If there is no fault, send a mirror file to complete the startup process. Then generate log file to record fault information.

Benefits of technology

It realizes the rapid fault positioning stage when the BIOS program starts, avoiding the process of operation and maintenance personnel needing to check a large number of log files to determine the fault location, and improving the efficiency of fault identification and processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023141687_05122024_PF_FP_ABST
    Figure CN2023141687_05122024_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a program starting method and apparatus, and a server and a non-volatile readable storage medium. The method comprises: a substrate management controller sending starting instruction information to a processor, wherein the substrate management controller stores a mirror image file of a target program, and the starting instruction information is used for instructing the processor to start the target program according to the mirror image file; in a starting process of the processor starting the target program, receiving first verification information sent by the processor, wherein the first verification information is used for determining whether there is a fault in the starting process of the target program; and when it is determined that there is no fault in the starting process, sending the mirror image file to the processor, until the processor completes the starting process. The present application solves the problem in the related art whereby due to the independent operation of a starting process of a BIOS program, a faulty stage cannot be quickly and accurately located when the starting of the BIOS program has a fault, thereby achieving the effect of quickly locating a faulty stage when the starting of a BIOS program has a fault.
Need to check novelty before this filing date? Find Prior Art

Description

Program startup method, device, server and non-volatile readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on May 29, 2023, with application number 2023106171008, entitled “Program startup method, device, server and non-volatile storage medium”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The embodiments of the present application relate to the field of computers, and in particular, to a program startup method, device, server, and non-volatile readable storage medium. Background Art

[0004] In the related art, the startup process of the BIOS program usually only requires a standby voltage to start, and during the startup process, other devices cannot monitor whether there are any abnormalities in the startup process of the BIOS program, resulting in an inability to quickly and accurately determine at which step the BIOS failed to start when the BIOS startup fails.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a program startup method, device, server and non-volatile readable storage medium to at least solve the problem in the related art that the startup process of the BIOS program runs independently, resulting in the inability to quickly and accurately locate the stage where the failure occurs when the BIOS program fails to start.

[0007] According to one embodiment of the present application, a program startup method is provided, including: a baseboard management controller sends startup indication information to a processor, wherein an image file of a target program is stored in the baseboard management controller, and the startup indication information is used to instruct the processor to start the target program based on the image file; during the startup process of the processor starting the target program, first verification information sent by the processor is received, wherein the first verification information is used to determine whether there is a fault in the startup process of the target program; when it is determined that there is no fault in the startup process, the image file is sent to the processor until the processor completes the startup process.

[0008] In some exemplary embodiments, the startup process includes multiple startup stages, the first verification information is the verification information generated after the processor completes the first startup stage, the first startup stage is any startup stage among the multiple startup stages except the last startup stage, and the first verification information corresponding to different startup stages is different.

[0009] In some exemplary embodiments, after receiving the first verification information sent by the processor, the program startup method also includes: determining second verification information corresponding to the first startup stage, wherein the second verification information is verification information pre-stored in the baseboard management controller; comparing the first verification information and the second verification information, and determining that the first startup stage is fault-free if the first verification information and the second verification information are consistent.

[0010] In some exemplary embodiments, sending the image file to the processor includes: after determining that the first startup stage is fault-free, sending the image file corresponding to the second startup stage to the processor, wherein the second startup stage is a startup stage in the plurality of startup stages whose startup sequence is after the first startup stage and adjacent to the first startup stage.

[0011] In some exemplary embodiments, after determining that the first startup phase has no faults, the program startup method further includes: generating a first log file corresponding to the first startup phase, wherein the first log file is used to record that the first startup phase is successfully started.

[0012] In some exemplary embodiments, after comparing the first verification information and the second verification information, the program startup method further includes: determining that the first startup phase has failed to start if the first verification information is inconsistent with the second verification information; generating a second log file corresponding to the first startup phase, wherein the second log file is used to record identification information of the first startup phase, as well as the first verification information and the second verification information corresponding to the first startup phase; and sending the second log file to a target device, wherein the target device is used to determine whether the target program has started successfully.

[0013] In some exemplary embodiments, the baseboard management controller sends startup indication information to the processor, including: determining the switch state of the target switch, wherein the switch state includes a first state and a second state, the first state is used to indicate that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state is used to indicate that the processor alone completes the startup process of the target program; and sending startup indication information to the processor based on the switch state.

[0014] In some exemplary embodiments, sending startup indication information to the processor based on the switch state includes: when the switch state is determined to be a first state, the baseboard management controller sends startup indication information to the processor; when the switch state is determined to be a second state, no startup indication information is sent to the processor, and when the processor independently completes the startup process of the target program, first verification information sent by the processor is received; and a third log file is generated based on the first verification information, wherein the third log file is used to record process information of the startup process.

[0015] In some exemplary embodiments, before the baseboard management controller sends the startup indication information to the processor, the program startup method also includes: obtaining the image file of the target program; obtaining second verification information, and the correspondence between the second verification information and the startup stage, and storing the second verification information in a preset byte position of the image file.

[0016] According to another embodiment of the present application, a program startup method is provided, including: a processor receiving startup indication information sent by a baseboard management controller, wherein the baseboard management controller stores an image file of a target program, and the startup indication information is used to instruct the processor to start the target program based on the image file; during the startup process of the target program started by the processor, first verification information is sent to the baseboard management controller, wherein the first verification information is used to indicate whether there is a fault during the startup process of the target program; receiving the image file sent by the baseboard management controller based on the first verification information, and completing the startup process based on the image file.

[0017] In some exemplary embodiments, the startup process includes multiple startup stages, the first verification information is the verification information generated after the processor completes the first startup stage, the first startup stage is any startup stage among the multiple startup stages except the last startup stage, and the first verification information corresponding to different startup stages is different.

[0018] In some exemplary embodiments, the baseboard management controller stores second verification information corresponding to the first startup phase, and determines that there is no fault in the first startup phase if the first verification information is consistent with the second verification information.

[0019] In some exemplary embodiments, before the processor receives the startup indication information sent by the baseboard management controller, the program startup method also includes: determining the switch state of the target switch, wherein the switch state includes a first state and a second state, the first state is used to indicate that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state is used to indicate that the processor alone completes the startup process of the target program; when it is determined that the switch state is the first state, receiving the startup indication information sent by the baseboard management controller; when it is determined that the switch state is the second state, directly executing the startup process of the target program.

[0020] In some exemplary embodiments, the boot process of directly executing the target program includes: after completing any boot phase, sending first verification information to the baseboard management controller, and continuing to execute the boot process until all boot phases are completed.

[0021] According to another embodiment of the present application, a server is provided, comprising: a baseboard management controller, a processor, and a target switch, wherein the baseboard management controller is configured to store an image file of a target program; the processor is configured to complete a startup process of the target program; the switch state of the target switch comprises a first state and a second state, the first state being used to indicate that the startup process of the target program is completed jointly by the baseboard management controller and the processor, and the second state being used to indicate that the startup process of the target program is completed alone by the processor; the baseboard management controller is further used to send startup indication information to the processor when the switch state is the first state, wherein the startup indication information is used to instruct the processor to start the target program based on the image file; during the startup process of the target program started by the processor, first verification information sent by the processor is received, wherein the first verification information is used to indicate whether there is a fault in the startup process of the target program; when it is determined based on the first verification information that there is no fault in the startup process of the target program, the image file is sent to the processor until the processor completes the startup process.

[0022] In some exemplary embodiments, when the switch state is the second state, the processor independently completes the startup process of the target program and sends first verification information to the baseboard management controller during the startup process; the baseboard management controller is used to generate a log file for recording process information of the startup process based on the first verification information.

[0023] In some exemplary embodiments, the baseboard management controller includes a storage module, which is used to store an image file of a target program and store second verification information in a preset byte position of the image file of the target program, wherein the second verification information is used together with the first verification information to indicate whether there is a fault in the startup process.

[0024] In some exemplary embodiments, when the switch state is the first state, the baseboard management controller is further configured to generate a log file for recording whether a startup process fails according to the first verification information and the second verification information.

[0025] In some exemplary embodiments, the server further includes an alarm device, wherein the alarm device is connected to the baseboard management controller, and after the baseboard management controller determines that there is a fault during the startup process of the target program, the alarm device is used to generate alarm information under the control of the target program.

[0026] In some exemplary embodiments, the baseboard management controller and the processor are connected via a wired communication link.

[0027] According to another embodiment of the present application, a program startup device is provided, including: a first processing module for sending startup indication information to a processor, wherein an image file of a target program is stored in a baseboard management controller, and the startup indication information is used to instruct the processor to start the target program based on the image file; a second processing module for receiving first verification information sent by the processor during the startup process of the target program started by the processor, wherein the first verification information is used to determine whether there is a fault in the startup process of the target program; and a third processing module for sending the image file to the processor when it is determined that there is no fault in the startup process based on the first verification information, until the processor completes the startup process.

[0028] According to another embodiment of the present application, a non-volatile readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when running.

[0029] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0030] Through the present application, since during the startup process of the target program, the processor needs to send first verification information for determining whether there is a fault in the startup process to the baseboard management controller, and receive the image file sent by the baseboard management controller after determining that there is no fault, and then continue to execute the startup process according to the image file, it can solve the problem in the related technology that the startup process of the BIOS program runs independently, resulting in the inability to quickly and accurately locate the stage where the fault occurs when the BIOS program fails to start, and achieve the effect of quickly locating the fault stage when the BIOS program fails to start. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] FIG1 is a flowchart of a program startup method according to an embodiment of the present application;

[0032] FIG2 is a schematic diagram of a BIOS program startup phase according to an embodiment of the present application;

[0033] FIG3 is a schematic diagram of a BIOS program startup process according to an embodiment of the present application;

[0034] FIG4 is a flowchart of another program startup method according to an embodiment of the present application;

[0035] FIG5 is a structural block diagram of a server according to an embodiment of the present application;

[0036] FIG6 is a structural block diagram of a program starting device according to an embodiment of the present application;

[0037] FIG7 is a schematic structural diagram of a non-volatile readable storage medium according to an embodiment of the present application;

[0038] FIG8 is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0039] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts should fall within the scope of protection of this application.

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising 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 devices.

[0041] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:

[0042] BIOS: The BIOS (Basic Input / Output System) is a set of programs stored on a ROM chip on the computer's motherboard. It stores the computer's most important basic input / output (BIO) routines, the post-boot self-test program, and the system startup routine. It can also read and write system settings. The BIOS is the precursor to booting the operating system (OS) and is the first step in starting a server or other electronic device.

[0043] BMC: Also known as the baseboard management controller, the BMC is the server's overall monitoring system, used to monitor the server's operating status. It can obtain various server information and provide it to maintenance personnel when the system is not powered on, down, or operating abnormally, providing early warning and alerts.

[0044] In related technologies, the BIOS program usually only requires standby voltage to start up, and the BIOS program is controlled by the circuit logic of a CPLD (Complex Programming Logic Device). It will start up after the CPLD receives the POWER_ON signal. During the entire startup process, there is no connection with other devices or modules, such as the BMC, and the BMC cannot monitor the startup status of the BIOS. If the BIOS encounters a fault during the startup process, resulting in a BIOS startup failure, since the BMC and other devices are not connected to the startup process of the BIOS program, it is impossible to quickly and accurately determine at which startup stage of the startup process the BIOS failed to start, and it is impossible to promptly feedback the fault situation. The operation and maintenance personnel must check the log files themselves to determine the startup stage of the failure.

[0045] In order to solve the above problems, this embodiment provides a method for starting a program of a baseboard management controller running in an electronic device, which may be a server, a terminal device, etc. FIG1 is a flow chart of the method for starting a program according to an embodiment of the present application. As shown in FIG1 , the process includes the following steps:

[0046] Step S102: The baseboard management controller sends startup instruction information to the processor, wherein the baseboard management controller stores an image file of the target program, and the startup instruction information is used to instruct the processor to start the target program according to the image file;

[0047] It should be noted that, in some exemplary embodiments, the baseboard management controller and the processor can be connected and information exchanged using a wired communication link, thereby reducing the probability of transmission failure problems that may occur during information transmission. The above-mentioned wired communication link can be eSPI (Enhanced Serial Peripheral Interface), LPC (Low pin count Bus) or I2C (Inter-Integrated Circuit, two-wire serial bus), etc. In addition, the target program in this application can be a BIOS program, or it can be any other program that can be started in stages. In the embodiments, for the sake of convenience of description, the optional implementation methods of this application are introduced by taking the BIOS program as an example, but it does not mean that the program startup method provided in this application is only applicable to the BIOS program.

[0048] In the technical solution provided in step S102, before the baseboard management controller sends the startup indication information to the processor, it is also necessary to store the image file of the target program and the verification code corresponding to each startup stage in the startup process of the target program in the baseboard management controller, including the following steps: obtaining the image file of the target program; obtaining the second verification information, and the correspondence between the second verification information and the startup stage, and storing the second verification information in the preset byte position of the image file.

[0049] Since the image file required to start the BIOS program is stored in the baseboard management controller, the baseboard management controller can monitor the startup process of the BIOS program and, when it determines that the BIOS program startup is abnormal, not provide the image file to the processor, thereby avoiding greater losses caused by the abnormal BIOS program startup.

[0050] Optionally, the image file of the target program can be stored in the ROM (Read Only Memory) of the baseboard management controller, and a stage check code that the processor will return after each startup stage is completed is stored in a fixed byte position in the image file. The form of the stage check code can be determined based on the selected encryption method. The encryption method and the form of the verification code are not limited herein, that is, any known encryption method can be used in this embodiment. In addition, the baseboard management controller also stores the correspondence between each stage check code and the corresponding startup stage. The storage form can be the byte position of the stage check code and the identification information of the startup stage as a set of corresponding data. In this way, during the startup process of the BIOS program, the required stage check code can be quickly queried through this correspondence, or the stage where the fault occurred can be quickly determined in the event of a fault.

[0051] In some exemplary embodiments, the baseboard management controller and the processor are further connected to a target switch, which can be used to control how the processor starts the BIOS program. Optionally, when the baseboard management controller sends the startup instruction information to the processor, it can first determine the switch state of the target switch, where the switch state includes a first state and a second state, the first state indicating that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state indicating that the processor alone completes the startup process of the target program; the startup instruction information is sent to the processor based on the switch state.

[0052] The first state may be a switch closed state, and the second state may be a switch open state, or the first state may be a switch open state, and the second state may be a switch closed state.

[0053] Optionally, sending startup indication information to the processor based on the switch state includes: when the switch state is determined to be the first state, the baseboard management controller sends startup indication information to the processor; when the switch state is determined to be the second state, not sending startup indication information to the processor, and when the processor independently completes the startup process of the target program, receiving first verification information sent by the processor; generating a third log file based on the first verification information, wherein the third log file is used to record process information of the startup process.

[0054] Step S104: receiving first verification information sent by the processor during the startup process of the target program, wherein the first verification information is used to determine whether there is a fault during the startup process of the target program;

[0055] In some exemplary embodiments, as shown in FIG2 , the startup process of the BIOS program includes multiple startup phases, such as the SEC (Security Phase) phase, the PEI (Pre-EFI Initialization) phase, the DXE (driver execution environment) phase, the BDS (Boot Device Selection) phase, the RT (Run Time) phase, and the AL (After Life) phase. The first verification information is the verification information generated after the processor completes the first startup phase. The first startup phase is any startup phase except the last startup phase among the multiple startup phases, and the first verification information corresponding to different startup phases is different. It should be noted that the startup phase shown in FIG2 is for illustration only and does not mean that the startup process of the program started using the method provided in the present application must be the above-mentioned startup phase. For programs whose startup phases are partially different or completely different from those in FIG2 , the present application is still applicable.

[0056] As an optional implementation, when the processor fails to complete the current startup phase within a preset time, it may be considered that an abnormality exists in the startup phase, and first verification information with empty content or preset information is sent to the baseboard management controller.

[0057] In some exemplary embodiments, when the state of the target switch is the first state, the startup process of the BIOS program is shown in Figure 3. The entire startup process requires the baseboard management controller and the processor to complete together. As can be seen from Figure 3, after receiving the first verification information sent by the processor, the baseboard management controller will determine the second verification information corresponding to the first startup phase, wherein the second verification information is the verification information pre-stored in the baseboard management controller; compare the first verification information and the second verification information, and if the first verification information and the second verification information are consistent, determine that the first startup phase is fault-free. That is, in the first state, except for the self-starting SEC phase, each remaining startup phase requires the baseboard management controller to complete the verification and determine that the first verification information and the second verification information are consistent. After that, the processor can obtain the file from the baseboard management controller and continue to complete the startup phase corresponding to the image file based on the obtained image file.

[0058] By verifying information after each startup stage to determine whether the startup stage is abnormal, and sending the image file of the next stage to the processor after confirming that there is no abnormality, not only can the startup stage where the failure occurs be accurately located, but the startup process can also be terminated in time when the BIOS program startup is abnormal, avoiding greater losses.

[0059] As an optional implementation method, during the startup process of the BIOS program, each time the processor completes a startup phase, it will send a corresponding first check code to the baseboard management controller. After receiving the first check code, the baseboard management controller can determine whether there is a check code identical to the first check code among all the second check codes stored in the ROM, and if it is determined that there is, it determines the currently completed startup phase based on the second check code and sends the image file of the next startup phase to the processor. When the check code identical to the first check code is not found, it can be determined that during this startup process, the second check code that was most recently matched and verified to be passed can be determined, and the startup phase corresponding to the second check code can be determined based on the second check code itself or its corresponding fixed byte position of the most recently matched second check code, and the next startup phase after this startup phase can be determined to be the phase where the failure occurred.

[0060] In order to improve the security of the boot process and avoid leakage of the verification code, the storage position corresponding to the second verification code stored in the BMC can be periodically adjusted according to a preset adjustment rule. For example, multiple alternative storage byte positions can be provided for each second verification code, and each second verification code can be transferred from the current storage byte position to any alternative storage byte position at a certain interval or after N boot processes.

[0061] As an optional implementation, after determining that there is no fault in the first startup phase, the program startup method further includes: generating a first log file corresponding to the first startup phase, wherein the first log file is used to record the successful startup of the first startup phase.

[0062] Optionally, after the first check code (first verification information) and the second check code (second verification information) are consistent, the baseboard management controller confirms that the first startup phase is successful, generates information for recording "XX phase check code matches successfully", and allows the processor to obtain the image file of the next phase.

[0063] In some exemplary embodiments of the present application, when the first verification information and the second verification information are inconsistent, the baseboard management controller will determine that the first startup phase has failed to start, and generate a second log file corresponding to the first startup phase, wherein the second log file is used to record the identification information of the first startup phase, as well as the first verification information and the second verification information corresponding to the first startup phase; and send the second log file to the target device, wherein the target device is used to determine whether the target program has started successfully.

[0064] The target device is a terminal device or monitoring device used by maintenance personnel. After receiving the second log file, the target device generates a warning message to alert the maintenance personnel of a BIOS startup failure and determines the startup phase in which the failure occurred based on the contents of the second log file. As can be seen, by having the baseboard management controller perform verification after each startup phase of the BIOS program and generating a log file based on the verification results to record the verification results, the failure phase can be quickly and accurately determined when the BIOS program fails to start, eliminating the need for maintenance personnel to consult log files that may contain a large amount of irrelevant data.

[0065] In some exemplary embodiments, when the switch is in the second state, the processor independently completes the BIOS startup process. During the entire startup process, the baseboard management controller cannot control the BIOS startup process and can only passively obtain the first verification information from the processor and generate a log file based on the first and second verification information. In other words, when the switch is in the second state, the baseboard management controller can only perform a logging function and cannot interrupt the BIOS startup process.

[0066] Step S106: When it is determined that there is no fault during the startup process, the image file is sent to the processor until the processor completes the startup process.

[0067] In the technical solution provided in step S106, the step of sending the image file to the processor includes: after determining that there is no fault in the first startup stage, sending the image file corresponding to the second startup stage to the processor, wherein the second startup stage is a startup stage in the multiple startup stages whose startup order is after the first startup stage and adjacent to the first startup stage.

[0068] Since the BIOS program is started in the first startup phase and the first verification information and the second verification information are consistent, the processor can obtain the image file of the next phase from the baseboard management controller. In this way, when the BIOS program is attacked by a Trojan program, the abnormality can be discovered in time through the verification information, and the image file of the next phase will no longer be sent to the processor, thereby avoiding the leakage of the image file of the BIOS program and protecting the security of the server.

[0069] A startup instruction message is sent to the processor via a baseboard management controller, wherein the baseboard management controller stores an image file of a target program, and the startup instruction message is used to instruct the processor to start the target program according to the image file; during the startup process of the target program started by the processor, first verification information sent by the processor is received, wherein the first verification information is used to determine whether there is a fault during the startup process of the target program; if it is determined that there is no fault during the startup process, the image file is sent to the processor until the processor completes the startup process, thereby solving the problem in the related art that the startup process of the BIOS program runs independently, resulting in the inability to quickly and accurately locate the stage where the fault occurs when the BIOS program fails to start, thereby achieving the effect of quickly locating the fault stage when the BIOS program fails to start.

[0070] The execution subject of the above steps may be a baseboard management controller in electronic equipment such as a server or a terminal, but is not limited thereto.

[0071] In this embodiment, a method for starting a program running on a processor configured to run a target program in an electronic device is provided. The electronic device may be a server, a terminal device, etc. FIG4 is a flow chart of the method for starting a program according to an embodiment of the present application. As shown in FIG4 , the flow chart includes the following steps:

[0072] Step S402: The processor receives startup instruction information sent by the baseboard management controller, wherein the baseboard management controller stores an image file of the target program, and the startup instruction information is used to instruct the processor to start the target program according to the image file;

[0073] In the technical solution provided in step S402, before the processor receives the startup indication information sent by the baseboard management controller, the program startup method also includes: determining the switch state of the target switch, wherein the switch state includes a first state and a second state, the first state is used to indicate that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state is used to indicate that the processor alone completes the startup process of the target program; when it is determined that the switch state is the first state, receiving the startup indication information sent by the baseboard management controller; when it is determined that the switch state is the second state, directly executing the startup process of the target program.

[0074] In some embodiments of the present application, the startup process of directly executing the target program includes: after completing any startup phase, sending first verification information to the baseboard management controller, and continuing to execute the startup process until all startup phases are completed.

[0075] Step S404: During the startup process of the target program by the processor, first verification information is sent to the baseboard management controller, wherein the first verification information is used to indicate whether there is a fault during the startup process of the target program;

[0076] In the technical solution provided in step S404, the startup process includes multiple startup stages, the first verification information is the verification information generated after the processor completes the first startup stage, the first startup stage is any startup stage among the multiple startup stages except the last startup stage, and the first verification information corresponding to different startup stages is different.

[0077] As an optional implementation manner, the baseboard management controller stores second verification information corresponding to the first startup phase, and determines that there is no fault in the first startup phase when the first verification information is consistent with the second verification information.

[0078] Step S406 , receiving the image file sent by the baseboard management controller according to the first verification information, and completing the startup process according to the image file.

[0079] Before the processor receives the startup indication information sent by the baseboard management controller, the program startup method also includes: determining the switch state of the target switch, wherein the switch state includes a first state and a second state, the first state is used to indicate that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state is used to indicate that the processor alone completes the startup process of the target program; when it is determined that the switch state is the first state, receiving the startup indication information sent by the baseboard management controller; when it is determined that the switch state is the second state, directly executing the startup process of the target program, which solves the problem in the related art that the startup process of the BIOS program runs independently, resulting in the inability to quickly and accurately locate the stage where the fault occurs when the BIOS program fails to start, and achieves the effect of quickly locating the fault stage when the BIOS program fails to start.

[0080] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0081] In this embodiment, a server is further provided, which is configured to implement the above embodiments and implementation methods, and details that have been explained will not be repeated. FIG5 is a block diagram of a server according to an embodiment of the present application. As shown in FIG5 , the server includes a baseboard management controller 50, a processor 52, and a target switch 54, wherein the baseboard management controller 50 is configured to store an image file of a target program; the processor 52 is configured to complete a startup process of the target program; the switch state of the target switch 54 includes a first state and a second state, the first state is used to indicate that the baseboard management controller 50 and the processor 52 jointly complete the startup process of the target program, and the second state is used to indicate that the processor 52 alone completes the startup process of the target program; the baseboard management controller 50 is further configured to send startup instruction information to the processor 52 when the switch state is the first state, wherein the startup instruction information is used to instruct the processor 52 to start the target program based on the image file; during the startup process of the target program started by the processor 52, the server receives first verification information sent by the processor 52, wherein the first verification information is used to indicate whether there is a fault during the startup process of the target program; when it is determined based on the first verification information that there is no fault during the startup process of the target program, the server sends the image file to the processor 52 until the processor 52 completes the startup process.

[0082] In some exemplary embodiments, when the switch state is the second state, the processor 52 independently completes the startup process of the target program and sends first verification information to the baseboard management controller 50 during the startup process; the baseboard management controller 50 is configured to generate a log file for recording process information of the startup process based on the first verification information.

[0083] In some exemplary embodiments, the baseboard management controller 50 includes a storage module, which is configured to store an image file of a target program and store second verification information in a preset byte position of the image file of the target program, wherein the second verification information is used together with the first verification information to indicate whether there is a fault in the startup process.

[0084] In some exemplary embodiments, when the switch state is the first state, the baseboard management controller 50 is further configured to generate a log file for recording whether the startup process fails according to the first verification information and the second verification information.

[0085] In some exemplary embodiments, the server further includes an alarm device, wherein the alarm device is connected to the baseboard management controller 50, and after the baseboard management controller determines that there is a fault during the startup process of the target program, the alarm device is configured to generate an alarm message under the control of the target program.

[0086] In some exemplary embodiments, the baseboard management controller 50 and the processor 52 are connected via a wired communication link.

[0087] In this embodiment, a program startup device is also provided, which is configured to implement the above-mentioned embodiments and implementation methods. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0088] Figure 6 is a structural block diagram of a program startup device according to an embodiment of the present application. As shown in Figure 6, the device includes a first processing module 60, which is configured to send startup indication information to the processor, wherein the baseboard management controller stores an image file of the target program, and the startup indication information is used to instruct the processor to start the target program based on the image file; a second processing module 62, which is configured to receive first verification information sent by the processor during the startup process of the processor starting the target program, wherein the first verification information is used to determine whether there is a fault in the startup process of the target program; a third processing module 64, which is configured to send the image file to the processor when it is determined that there is no fault in the startup process based on the first verification information, until the processor completes the startup process.

[0089] In some exemplary embodiments, before the baseboard management controller sends the startup indication information to the processor, the first processing module 60 is also configured to: obtain the image file of the target program; obtain the second verification information, and the correspondence between the second verification information and the startup stage, and store the second verification information in the preset byte position of the image file.

[0090] In some exemplary embodiments, the first processing module 60 in the baseboard management controller sends startup indication information to the processor, including: determining the switch state of the target switch, wherein the switch state includes a first state and a second state, the first state is used to indicate that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state is used to indicate that the processor alone completes the startup process of the target program; and sending startup indication information to the processor based on the switch state.

[0091] In some embodiments of the present application, the first processing module 60 sends startup indication information to the processor based on the switch state, including: when the switch state is determined to be the first state, the baseboard management controller sends startup indication information to the processor; when the switch state is determined to be the second state, no startup indication information is sent to the processor, and when the processor independently completes the startup process of the target program, the first verification information sent by the processor is received; and a third log file is generated based on the first verification information, wherein the third log file is used to record process information of the startup process.

[0092] In some embodiments of the present application, the startup process includes multiple startup stages, the first verification information is the verification information generated after the processor completes the first startup stage, the first startup stage is any startup stage among the multiple startup stages except the last startup stage, and the first verification information corresponding to different startup stages is different.

[0093] In some embodiments of the present application, after receiving the first verification information sent by the processor, the second processing module 62 is further configured to: determine second verification information corresponding to the first startup phase, wherein the second verification information is verification information pre-stored in the baseboard management controller; compare the first verification information and the second verification information, and determine that the first startup phase is fault-free if the first verification information and the second verification information are consistent.

[0094] In some embodiments of the present application, after determining that there is no fault in the first startup phase, the second processing module 62 is further configured to: generate a first log file corresponding to the first startup phase, wherein the first log file is used to record the successful startup of the first startup phase.

[0095] In some embodiments of the present application, after comparing the first verification information and the second verification information, the second processing module 62: if the first verification information and the second verification information are inconsistent, determines that the first startup phase has failed to start; generates a second log file corresponding to the first startup phase, wherein the second log file is used to record identification information of the first startup phase, as well as the first verification information and the second verification information corresponding to the first startup phase; sends the second log file to the target device, wherein the target device is configured to determine whether the target program has started successfully.

[0096] In some exemplary embodiments, the step of the third processing module 64 sending the image file to the processor includes: after determining that the first startup stage is fault-free, sending the image file corresponding to the second startup stage to the processor, wherein the second startup stage is a startup stage in the multiple startup stages whose startup sequence is after the first startup stage and adjacent to the first startup stage.

[0097] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0098] An embodiment of the present application also provides a non-volatile readable storage medium, which stores a computer program, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running, for example, it can be configured to execute the following program startup method: a baseboard management controller sends startup indication information to a processor, wherein the baseboard management controller stores an image file of a target program, and the startup indication information is used to instruct the processor to start the target program based on the image file; during the startup process of the processor starting the target program, first verification information sent by the processor is received, wherein the first verification information is used to determine whether there is a fault during the startup process of the target program; when it is determined that there is no fault during the startup process, the image file is sent to the processor until the processor completes the startup process.

[0099] In some embodiments, when the above-mentioned computer program is executed, the following program startup method can also be executed: the processor receives startup indication information sent by the baseboard management controller, wherein the baseboard management controller stores an image file of the target program, and the startup indication information is used to instruct the processor to start the target program based on the image file; during the startup process of the target program started by the processor, first verification information is sent to the baseboard management controller, wherein the first verification information is used to indicate whether there is a fault during the startup process of the target program; the image file sent by the baseboard management controller based on the first verification information is received, and the startup process is completed based on the image file.

[0100] In some exemplary embodiments, the non-volatile readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard drive, a magnetic disk, or an optical disk. Furthermore, as shown in FIG7 , the non-volatile readable storage medium includes at least a reading module 70 and a storage module 72 , wherein the storage module is configured to store computer programs, etc., and the reading module is configured to interact with other devices or other components within the same device, so that other devices or other components can call the programs in the storage module 72 .

[0101] An embodiment of the present application further provides an electronic device, as shown in FIG8 , comprising a processor 802 and a memory 804, wherein the memory 104 stores a computer program, and the processor 102 is configured to execute the computer program to perform the steps of any of the above method embodiments. For example, the following program startup method may be executed: a baseboard management controller sends startup instruction information to the processor, wherein the baseboard management controller stores an image file of a target program, and the startup instruction information is used to instruct the processor to start the target program based on the image file; during the startup process of the processor starting the target program, first verification information sent by the processor is received, wherein the first verification information is used to determine whether there is a fault during the startup process of the target program; if it is determined that there is no fault during the startup process, the image file is sent to the processor until the processor completes the startup process.

[0102] In some embodiments, the above-mentioned processor 802 can also run the following program startup method: the processor receives startup indication information sent by the baseboard management controller, wherein the baseboard management controller stores an image file of the target program, and the startup indication information is used to instruct the processor to start the target program based on the image file; during the startup process of the target program started by the processor, first verification information is sent to the baseboard management controller, wherein the first verification information is used to indicate whether there is a fault during the startup process of the target program; the image file sent by the baseboard management controller based on the first verification information is received, and the startup process is completed based on the image file.

[0103] In some exemplary embodiments, as shown in FIG8 , the electronic device may further include a transmission device 806 and an input / output device 808 , wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0104] For optional examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementations, and this embodiment will not be described in detail here.

[0105] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0106] The above are merely optional embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may be subject to various modifications and variations. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A program startup method, characterized in that: include: The baseboard management controller sends startup instruction information to the processor, wherein the baseboard management controller stores an image file of the target program, and the startup instruction information is used to instruct the processor to start the target program according to the image file; During the process of the processor starting the target program, receiving first verification information sent by the processor, wherein the first verification information is used to determine whether there is a fault during the process of starting the target program; When it is determined that there is no fault in the startup process, the image file is sent to the processor until the processor completes the startup process.

2. The program startup method according to claim 1, characterized in that: The startup process includes multiple startup stages, the first verification information is verification information generated after the processor completes the first startup stage, the first startup stage is any startup stage among the multiple startup stages except the last startup stage, and the first verification information corresponding to different startup stages is different.

3. The program startup method according to claim 2, characterized in that: After receiving the first verification information sent by the processor, the program startup method further includes: Determining second verification information corresponding to the first startup phase, wherein the second verification information is verification information pre-stored in the baseboard management controller; The first verification information and the second verification information are compared, and when the first verification information and the second verification information are consistent, it is determined that there is no fault in the first startup phase.

4. The program startup method according to claim 3, characterized in that: Sending the image file to the processor includes: After determining that there is no fault in the first startup phase, sending an image file corresponding to a second startup phase to the processor, wherein the second startup phase is a startup phase in the multiple startup phases whose startup sequence is after the first startup phase and adjacent to the first startup phase.

5. The program startup method according to claim 3, characterized in that: After determining that there is no fault in the first startup phase, the program startup method further includes: A first log file corresponding to the first startup phase is generated, wherein the first log file is used to record that the first startup phase is successfully started.

6. The program startup method according to claim 3, characterized in that: After comparing the first verification information with the second verification information, the program startup method further includes: If the first verification information is inconsistent with the second verification information, determining that the first startup phase fails to start; Generate a second log file corresponding to the first startup phase, wherein the second log file is used to record identification information of the first startup phase, and first verification information and second verification information corresponding to the first startup phase; The second log file is sent to a target device, wherein the target device is used to determine whether the target program is started successfully.

7. The program startup method according to claim 1, characterized in that: The baseboard management controller sends the startup instruction information to the processor, including: Determine a switch state of a target switch, wherein the switch state includes a first state and a second state, the first state is used to indicate that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state is used to indicate that the processor alone completes the startup process of the target program; The startup indication information is sent to the processor according to the switch state.

8. The program startup method according to claim 7, characterized in that: Sending the startup indication information to the processor according to the switch state includes: When determining that the switch state is the first state, the baseboard management controller sends the startup instruction information to the processor; When it is determined that the switch state is the second state, not sending the startup instruction information to the processor, and when the processor independently completes the startup process of the target program, receiving the first verification information sent by the processor; A third log file is generated according to the first verification information, wherein the third log file is used to record process information of the startup process.

9. The program startup method according to claim 1, characterized in that: Before the baseboard management controller sends the startup instruction information to the processor, the program startup method further includes: Obtaining the image file of the target program; The second verification information and the corresponding relationship between the second verification information and the startup phase are obtained, and the second verification information is stored in a preset byte position of the image file.

10. A program startup method, characterized in that: include: The processor receives the startup instruction information sent by the baseboard management controller, wherein the baseboard management controller stores an image file of the target program, and the startup instruction information is used to instruct the processor to start the target program according to the image file; During the process of the processor starting the target program, sending first verification information to the baseboard management controller, wherein the first verification information is used to indicate whether there is a fault during the process of starting the target program; The image file sent by the baseboard management controller according to the first verification information is received, and the startup process is completed according to the image file.

11. The program startup method according to claim 10, characterized in that: The startup process includes multiple startup stages, the first verification information is verification information generated after the processor completes the first startup stage, the first startup stage is any startup stage among the multiple startup stages except the last startup stage, and the first verification information corresponding to different startup stages is different.

12. The program startup method according to claim 11, characterized in that: The baseboard management controller stores second verification information corresponding to the first startup phase, and determines that there is no fault in the first startup phase when the first verification information is consistent with the second verification information.

13. The program startup method according to claim 11, characterized in that: Before the processor receives the startup instruction information sent by the baseboard management controller, the program startup method further includes: Determine a switch state of a target switch, wherein the switch state includes a first state and a second state, the first state is used to indicate that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state is used to indicate that the processor alone completes the startup process of the target program; When determining that the switch state is the first state, receiving the startup instruction information sent by the baseboard management controller; When it is determined that the switch state is the second state, the startup process of the target program is directly executed.

14. The program startup method according to claim 13, characterized in that: The startup process of directly executing the target program includes: After any one of the startup phases is completed, the first verification information is sent to the baseboard management controller, and the startup process is continued until all the startup phases are completed.

15. A server, characterized in that: Includes a baseboard management controller, a processor, and a target switch, wherein: The baseboard management controller is configured to store an image file of a target program; The processor is configured to complete a startup process of the target program; The switch state of the target switch includes a first state and a second state, the first state is used to indicate that the baseboard management controller and the processor jointly complete the startup process of the target program, and the second state is used to indicate that the processor alone completes the startup process of the target program; The baseboard management controller is further configured to, when the switch state is in the first state, provide a The method comprises the steps of: sending startup indication information to a processor, wherein the startup indication information is used to instruct the processor to start the target program according to the image file; receiving first verification information sent by the processor during the startup process of the target program by the processor, wherein the first verification information is used to indicate whether there is a fault in the startup process of the target program; and sending the image file to the processor when it is determined that there is no fault in the startup process of the target program according to the first verification information, until the processor completes the startup process.

16. The server according to claim 15, characterized in that When the switch state is the second state, the processor independently completes the startup process of the target program, and sends the first verification information to the baseboard management controller during the startup process; The baseboard management controller is configured to generate a log file for recording process information of the startup process according to the first verification information.

17. The server according to claim 15, characterized in that The baseboard management controller includes a storage module, which is configured to store an image file of the target program and store second verification information in a preset byte position of the image file of the target program, wherein the second verification information is used to indicate together with the first verification information whether there is a fault in the startup process.

18. The server according to claim 17, characterized in that: When the switch state is the first state, the baseboard management controller is further configured to generate a log file for recording whether the startup process fails according to the first verification information and the second verification information.

19. The server according to claim 15, characterized in that The server also includes an alarm device, wherein: The alarm device is connected to the baseboard management controller. After the baseboard management controller determines that a fault exists during the startup of the target program, the alarm device is configured to generate alarm information under the control of the target program.

20. The server according to claim 15, characterized in that The baseboard management controller and the processor are connected via a wired communication link.

21. A program startup device, suitable for use in a baseboard management controller, characterized in that: include: A first processing module is configured to send startup instruction information to a processor, wherein an image file of a target program is stored in the baseboard management controller, and the startup instruction information is used to instruct the processor to start the target program according to the image file; A second processing module is configured to receive first verification information sent by the processor during the startup process of the processor executing the target program, wherein the first verification information is used to determine whether there is a fault during the startup process of the target program; The third processing module is configured to send the image file to the processor when it is determined that no fault exists in the startup process, until the processor completes the startup process.

22. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented, or the steps of the method described in any one of claims 10 to 14 are implemented.

23. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processor implements the steps of the method described in any one of claims 1 to 9, or implements the steps of the method described in any one of claims 10 to 14.

Citation Information

Patent Citations

  • BIOS (Basic Input Output System) image file obtaining method and device

    CN103365696A

  • BIOS starting method and system and related device

    CN113064646A

  • Control method and control device

    CN113111343A

  • Server starting fault detection system, method and device and medium

    CN116107819A

  • Program starting method and device, server and nonvolatile storage medium

    CN116340957A