A server testing method, a server and a storage medium

By pre-programming the built-in test operating system into the BMC mountable EMMC memory, configuring the test indicator circuit, and automatically starting the production test script, the problem of not being able to test the server network card before installation is solved, realizing simple testing and error diagnosis without the need for network setup.

CN115525558BActive Publication Date: 2025-12-05INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211206836.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2025-12-05
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

In existing technologies, servers cannot pass PXE testing before the network card is installed during assembly. This requires a fully functional network and relies on the setup of a PXE server, making the testing process complex and inconvenient.

Method used

The built-in test operating system is pre-programmed into the EMMC memory that can be mounted by the BMC. The test indicator circuit is configured and the built-in test operating system is automatically mounted by the virtual multimedia system through the BMC. The BIOS boots the built-in production test operating system during the POST process and executes the production test script for testing.

Benefits of technology

It enables testing while the server is assembled, including the basic components of the operating system, without waiting for the network card to be installed, simplifying the testing process. It is also independent of PXE servers and network setup, and supports unified testing of different types of servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115525558B_ABST
    Figure CN115525558B_ABST
Patent Text Reader

Abstract

The application relates to a server testing method, a server and a storage medium. A built-in testing operating system is pre-burned to an EMMC memory which can be mounted by a BMC; before production testing, a testing indication circuit connected with the BMC on a mainboard or a BMC small plate is configured to indicate production testing; after production testing, the testing indication circuit is configured according to a production testing result; the BMC detects a testing indication circuit signal on the mainboard or the BMC small plate to analyze whether production testing is needed; if it is analyzed that production testing is needed, the BMC automatically starts a virtual multimedia to self-mount the built-in testing operating system in the EMMC memory; during a POST process of BIOS starting, the built-in production testing operating system in the EMMC memory mounted on the BMC is detected, then the built-in production testing operating system is started to guide, and a production testing script preset in the production testing operating system is executed to test. No network configuration is needed for a server without a to-be-tested server, and pre-assembly before installation of a network card can be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server testing, and more particularly to a server testing method, a server, and a storage medium. Background Technology

[0002] Current factory production testing primarily relies on PXE booting of the server to enter the PXE operating system. Within this PXE operating system, production test scripts and environments are configured for production testing. For a server to boot into PXE, its network functionality must be robust and connected to a PXE server. The PXE server must be pre-configured to provide the PXE operating system for the machine under test; this indicates that the server has a network card installed or its IP address configured to ensure normal network function. The server's network card connection structure dictates that the network card is not a priority component during assembly. Therefore, the pre-installation process before installing the server network card cannot be tested using PXE testing methods. Summary of the Invention

[0003] To solve the above-mentioned technical problems, or at least partially solve them, the present invention provides a server testing method, a server, and a storage medium.

[0004] In a first aspect, the present invention provides a server testing method, comprising: pre-writing a built-in test operating system to an EMMC memory that can be mounted by a BMC; before production testing, configuring a test indicator circuit connected to the BMC on the motherboard or BMC board to indicate production testing; after production testing, configuring the test indicator circuit according to the production test results; the BMC detecting the test indicator circuit signal on the motherboard or BMC board to analyze whether production testing is required; if production testing is required, the BMC automatically starts virtual multimedia and mounts the built-in test operating system in the EMMC memory; during the POST process, the BIOS detects the built-in production test operating system in the EMMC memory mounted on the BMC, and then guides the startup of the built-in production test operating system to execute a preset production test script in the production test operating system for testing.

[0005] Furthermore, the GPIO connector of the BMC is connected to the test indicator circuit, which is a jumper or a hot-erasable programmable read-only memory reserved on the motherboard or BMC board for connecting the GPIO connector; the jumper or hot-erasable programmable read-only memory provides at least two signals to the GPIO connector of the BMC, one signal triggers production testing, and the other signal triggers no production testing.

[0006] Furthermore, the built-in test operating system pre-sets production test scripts for different types of servers or different server components under test. The built-in test operating system obtains the server model or the model of the server component under test, and selects the corresponding production test script as the target production test script for execution based on the server model or the model of the server component under test.

[0007] Furthermore, after production testing is completed and passes, the BMC is controlled to format the EMMC memory and remove the built-in test operating system.

[0008] Furthermore, after production testing is completed and passed, the built-in test operating system in the EMMC memory is retained. The BMC is configured with a program triggered by a server error diagnosis command. When a server error diagnosis command is sent to the BMC via in-band or out-of-band means, the program is executed. The program shuts down the current operating system of the server, starts the BMC virtual multimedia system to automatically mount the built-in test operating system in the EMMC memory, and controls the server to restart. During the POST process at startup, the server BIOS detects the built-in production test operating system in the EMMC memory mounted on the BMC and then boots the built-in production test operating system to perform error diagnosis by executing production test scripts and / or diagnostic scripts that can be used for error diagnosis.

[0009] Furthermore, before executing production test scripts and / or diagnostic scripts that can be used for error diagnosis, it checks whether the user has customized the server and configures the relevant customizations for the production test scripts and / or diagnostic scripts that can be used for error diagnosis.

[0010] Furthermore, the program checks whether the operating system configured in the EMMC memory is a recorded built-in production test operating system. If it is not a recorded built-in production test operating system, it prompts the user whether to continue error diagnosis. If the user selects yes, the program records the built-in production test operating system in the EMMC memory.

[0011] Furthermore, when recording the built-in production test operating system in the EMMC memory, record the adaptability of the production test scripts and diagnostic scripts of the built-in production test operating system in the EMMC memory to the error diagnosis of various components of the server.

[0012] Secondly, the present invention provides a server, wherein the server BMC and BIOS are respectively configured with storage units, and computer programs are respectively configured in the storage units, including: the BMC is configured with a loadable EMMC memory, and before production testing, the EMMC memory is pre-programmed with a built-in test operating system; a test indicator circuit connected to the BMC and disposed on the motherboard or BMC board, and before production testing, the test indicator circuit connected to the BMC on the motherboard or BMC board is configured to indicate production testing; after production testing, the test indicator circuit is configured according to the production test results; the BMC and BIOS processors execute the computer programs in their respective storage units to implement the server testing method as described above.

[0013] Thirdly, the present invention provides a storage medium for implementing a server testing method, the storage medium being configured with a computer program, the computer program being executed by a processor including a BMC, a BIOS processor, and a related processor of the component to be tested in the server to implement the server testing method.

[0014] The technical solutions provided in the embodiments of the present invention have the following advantages compared with the prior art:

[0015] Compared to the traditional PXE-based test system configuration and startup method, this application pre-programs a built-in production test operating system into the EMMC memory mountable by the BMC. Before production testing, the test indicator circuit connected to the BMC on the motherboard or BMC board is configured to indicate the start of production testing. After production testing, the test indicator circuit is configured based on the test results. The BMC detects the test indicator circuit signal on the motherboard or BMC board and analyzes whether production testing is required. If production testing is required, the BMC automatically starts the virtual multimedia and mounts the built-in test operating system in the EMMC memory. During the POST process, the BIOS detects the built-in production test operating system in the EMMC memory mounted on the BMC and boots it, executing the preset production test scripts. This application allows testing of the server when the assembled components include the basic components for running the operating system, eliminating the need to wait for the network card installation to complete before testing. Furthermore, the testing does not require configuring a PXE server or a network between the PXE server and the server under test.

[0016] This application has a built-in test operating system with pre-set production test scripts for different types of servers or different server components under test. For all types of servers produced, the built-in test operating system is uniformly configured in the EMMC storage that can be mounted on the server BMC, which is easy to configure.

[0017] This application's BMC configuration is triggered by a server error diagnosis command. Upon startup, the program shuts down the server's current operating system, launches the BMC virtual multimedia system to automatically mount the built-in test operating system from the eMMC memory, and controls the server restart. During the POST (Power-On Self-Service) process, the server BIOS detects the built-in production test operating system in the eMMC memory mounted on the BMC and boots it. Error diagnosis is then performed by executing production test scripts and / or diagnostic scripts that can be used for error diagnosis. This facilitates error diagnosis for users during server operation. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 A flowchart of a server testing method provided in an embodiment of the present invention;

[0021] Figure 2 A flowchart for configuring a test indication circuit according to production testing conditions is provided in an embodiment of the present invention;

[0022] Figure 3 A flowchart for server diagnosis is provided as an embodiment of the present invention;

[0023] Figure 4 This is a schematic diagram of a server that can implement a server testing method according to an embodiment of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0026] Example 1

[0027] See Figure 1 As shown, the present invention provides a server testing method, including:

[0028] The built-in test operating system is pre-programmed onto the EMMC memory that can be mounted by the BMC. Specifically, the built-in test operating system is pre-programmed with production test scripts for different types of servers or different server components under test, so that the built-in test operating system can meet the production test requirements of multiple types of servers and multiple types of components. For all types of servers produced, the built-in test operating system can be uniformly configured in the EMMC memory that can be mounted by the server BMC to meet the production test conditions.

[0029] Before production testing, the test indicator circuit connected to the BMC on the motherboard or BMC board is configured to indicate the start of production testing. After production testing, the test indicator circuit is configured according to the test results. Specifically, the BMC's GPIO connectors are connected to the test indicator circuit. This test indicator circuit is either a jumper or a CEPROM (Cyclic Erasable Programmable Read-Only Memory) reserved on the motherboard or BMC board for connecting to the GPIO connectors. Both the jumper and the CEPROM provide at least two signals to the BMC's GPIO connectors: one signal triggers production testing, and the other signal prevents production testing. (See also...) Figure 2 As shown, the test indication circuit is configured according to the production test situation as follows: after executing any production test item, it checks whether all production tests are completed. Otherwise, it configures the test indication circuit to indicate that production tests should be performed. Otherwise, it continues to check whether all production test results are passed. If all production test results are passed, it configures the test indication circuit to indicate that production tests should not be performed. If there are any production test results that are not passed, it configures the test indication circuit to indicate that production tests should be performed.

[0030] The BMC detects the test indicator circuit signals on the motherboard or BMC board to analyze whether production testing is required. If production testing is required, the BMC automatically starts the virtual multimedia and loads the built-in test operating system in the eMMC memory. During the POST process, the BIOS detects the built-in production test operating system in the eMMC memory mounted on the BMC and boots it, executing the preset production test scripts. If production testing is not required, the BIOS boots the server operating system. Specifically, before performing production testing using the production test scripts, the built-in test operating system obtains the server model or the model of the server component under test (DUT). Based on the server model or DUT model, it selects the corresponding production test script as the target production test script and controls its execution based on test requirements to achieve production testing. In a preferred implementation, a script execution control script is pre-configured in the built-in test operating system based on test requirements. This script execution control script executes the target production test script according to preset order and conditions.

[0031] The built-in test operating system records production test results through test logs. In one feasible implementation, the built-in test operating system configures corresponding test pass criteria for different types of servers and different types of server components under test. The built-in test operating system obtains the corresponding test pass criteria based on the server model or server component under test model, compares and analyzes the test results to determine whether the test passed.

[0032] In one feasible implementation, after production testing is completed and passed, the BMC is controlled to format the EMMC memory and delete the built-in test operating system. Specifically, the built-in test operating system sends the completion and passing results of the production test to the BMC. In response to this notification, the BMC automatically formats the EMMC memory and deletes the built-in test operating system.

[0033] As one possible implementation method, see [link / reference] Figure 3As shown, after production testing is completed and passed, the built-in test operating system in the eMMC memory is retained. The BMC is configured with a program triggered by a server error diagnosis command. This program can configure the BIOS to prioritize booting the server operating system or the built-in test operating system. After responding to the server error diagnosis command and being triggered to start, the program configures the BIOS to prioritize booting the built-in test operating system. The program then starts the BMC virtual multimedia system and automatically mounts the built-in test operating system from the eMMC memory. The program shuts down the current server operating system and restarts the server. During the POST (Power-On Self-Service) process, the server BIOS detects the built-in production test operating system in the eMMC memory mounted on the BMC and boots it. Error diagnosis is performed by executing production test scripts and / or diagnostic scripts that can be used for error diagnosis. After error diagnosis is completed, the program configures the BIOS to prioritize booting the server operating system.

[0034] In one preferred implementation, before executing production test scripts and / or diagnostic scripts that can be used for error diagnosis, the built-in production test operating system checks whether the user has customized the server, and configures the relevant customized settings for the production test scripts and / or diagnostic scripts. Error diagnosis is then performed based on the user's customized configuration.

[0035] In one preferred embodiment, after the product leaves the factory, when a problem occurs, the user sends a server error diagnosis command to the BMC using in-band or out-of-band means. The server error diagnosis command triggers the program to start error diagnosis.

[0036] In a preferred implementation, when using a server, the server network configuration is generally complete, and the manufacturer provides a production test script and environment library. The production test scripts and their required environments are differentiated for different server component configurations and for different built-in production test operating systems. Users can select the appropriate production test scripts and environments from the library based on their own modifications to the server configuration, and customize the built-in production test operating system. Custom configuration of the built-in production test operating system is supported.

[0037] The BMC manages the built-in production test operating system. Management methods include: the BMC records the operating system type, operating system environment, and diagnostic scripts configured within the operating system. Before performing error diagnosis using the built-in production test operating system, the program checks if the operating system configured in the EMMC memory is a recorded built-in production test operating system. If it is not, the program prompts the user whether to continue error diagnosis. If the user selects yes, the program boots the built-in production test operating system in the EMMC memory and records it. If the user selects not to continue error diagnosis, the user restores the system using a custom configuration based on the recorded built-in production test operating system.

[0038] In one preferred embodiment, when recording the built-in production test operating system in the EMMC memory, the adaptability of the production test scripts and diagnostic scripts of the built-in production test operating system to the error diagnosis of various server components is recorded. Based on adaptability, the built-in production test operating system filters redundant production test scripts or diagnostic scripts for use in diagnosis. The built-in production test operating system determines which user-defined production test scripts or diagnostic scripts can be used for diagnosis based on adaptability.

[0039] Example 2

[0040] See Figure 4 As shown, this embodiment of the invention provides a server, wherein the server BMC and BIOS processor are respectively configured with storage units, and computer programs are respectively configured in the storage units, including: the BMC is configured with a loadable EMMC memory, and before production testing, the EMMC memory is pre-programmed with a built-in test operating system; a test indicator circuit connected to the BMC and disposed on the motherboard or BMC board, the test indicator circuit is configured to issue a signal indicating to conduct production testing before production testing, and the test indicator circuit is configured according to the production testing situation after production testing; the BMC and BIOS processor execute the computer programs in their respective storage units to implement the server testing method.

[0041] Example 3

[0042] This invention provides a storage medium for implementing a server testing method. The storage medium is configured with a computer program, which is executed by a processor including a BMC, a BIOS processor, and related processors of the component to be tested in the server to implement the server testing method.

[0043] In the embodiments provided by this invention, it should be understood that the disclosed modules and units can be implemented in other ways. For example, the structural embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.

[0044] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0045] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0046] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.

Claims

1. A server testing method characterized by, The application comprises the following steps: Pre-burn the built-in test operation system to the EMMC memory which can be mounted by the BMC; Before the production test, configure the test indication circuit connected with the BMC on the motherboard or the BMC small board to indicate the production test, and after the production test, configure the test indication circuit according to the production test result; the BMC detects the test indication circuit signal on the motherboard or the BMC small board to analyze whether the production test is needed, if the production test is needed, the BMC automatically starts the virtual multimedia to mount the built-in test operation system in the EMMC memory; During the POST process of the BIOS startup, the built-in production test operation system in the EMMC memory mounted by the BMC is detected, then the built-in production test operation system is started, and the production test script preset in the production test operation system is executed for testing.

2. The server testing method of claim 1, wherein, The GPIO connector of the BMC is connected with the test indication circuit, and the test indication circuit is the jumper cap or the electrically erasable programmable read-only memory reserved for the GPIO connector on the motherboard or the BMC small board; the jumper cap or the electrically erasable programmable read-only memory provides at least two signals to the GPIO connector of the BMC, one signal triggers the production test, and the other signal triggers the production test.

3. The server testing method of claim 1, wherein, The built-in test operation system presets the production test script for different types of servers or different server components to be tested, and the built-in test operation system is configured in the EMMC memory mounted by the server BMC for all types of servers; the built-in test operation system obtains the server model or the server component to be tested before the production test, and selects the corresponding production test script as the target production test script based on the server model or the server component to be tested.

4. The server testing method of claim 1, wherein, After the production test is completed and passed, the BMC formats the EMMC memory and deletes the built-in test operation system.

5. The server testing method of claim 1, wherein, After the production test is completed and passed, the built-in test operation system in the EMMC memory is reserved, the BMC configures a program triggered by the server error diagnosis instruction, the program starts to shut down the current operation system of the server, the program starts the built-in test operation system in the EMMC memory mounted by the BMC virtual multimedia, and the program controls the server to restart; during the POST process of the server BIOS startup, the built-in production test operation system in the EMMC memory mounted by the BMC is detected, then the built-in production test operation system is started, and the production test script and / or the diagnosis script which can be used for error diagnosis are executed for error diagnosis.

6. The server testing method of claim 5, wherein, Before the production test script and / or the diagnosis script which can be used for error diagnosis are executed for error diagnosis, it is detected whether the server is personalized configured by the user, and the personalized configuration involved in the production test script and / or the diagnosis script which can be used for error diagnosis is configured.

7. The server testing method of claim 5, wherein, The program detects whether the operating system configured in the EMMC memory is a recorded built-in production test operating system, if not, prompts whether the non-recorded built-in production test operating system in the EMMC memory continues to perform error diagnosis, if the user selects yes, guides to start the built-in production test operating system in the EMMC memory and records the built-in production test operating system.

8. The server testing method of claim 7, wherein, When recording the built-in production test operating system in the EMMC memory, record the adaptability of the production test script and the diagnosis script to the error diagnosis of each component of the server.

9. A server, the server BMC and BIOS are respectively configured with storage units, the storage units are respectively configured with computer programs, characterized in that, The application comprises: The BMC configures the loadable EMMC memory, and the built-in test operating system is pre-burned in the EMMC memory before production test; the test indication circuit connected with the BMC is arranged on the mainboard or the BMC small board, and the test indication circuit connected with the BMC on the mainboard or the BMC small board is configured to indicate production test before production test; the BMC and the BIOS execute the computer programs in the respective storage units to realize the server test method as claimed in any one of claims 1-8.

10. A storage medium which realizes a server test method, the storage medium configuring a computer program, characterized by, The computer programs are executed by the BMC, the BIOS processor and the related processors of the components to be tested in the server to realize the server test method as claimed in any one of claims 1-8.

Citation Information

Patent Citations

  • Computer testing method without hard disc

    CN101281485A

  • Embedded server test method

    CN105843719A