Soft environment deployment method and device, electronic equipment and storage medium
By obtaining the deployment instructions input by the user and generating deployment task information, the chip test board deployment soft environment is automatically controlled, which solves the problems of inflexible and low efficiency soft environment deployment in the existing technology, and realizes efficient customization applicable to all types of chip test boards. deploy.
Patent Information
- Application Number
- CN202410578983.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-08-23
AI Technical Summary
When the existing technology deploys firmware and operating systems on chip test boards, it is unable to achieve customization and flexibility of the soft environment, resulting in low deployment efficiency and inability to be applicable to all types of devices.
By obtaining the deployment instructions input by the user, the deployment task information of the target chip test board is generated, and the chip test board deployment soft environment is automatically controlled based on this information to achieve customization and efficient deployment of the soft environment.
It realizes the soft environment deployment of chip test boards that can be flexibly specified according to user needs. It is suitable for all types of chip test boards, reduces deployment time and manpower overhead, and improves deployment efficiency.
Smart Images

Figure CN118535178A
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip testing technology, and more specifically, to a soft environment deployment method, device, electronic device and storage medium. Background Art
[0002] In the field of chip design, chip software ecosystem testing is required. As the device under test (DUT) during chip software ecosystem testing, the chip test board needs to frequently deploy different iterations of the soft environment on the chip test board to test the function, performance, stability and other indicators of the soft environment. The soft environment may include, for example, firmware, operating system (OS), and out-of-core software.
[0003] In the prior art, when deploying firmware on a chip test board, a scanning program is mainly built into the baseboard management controller (BMC) of the server to automatically control the firmware update when there is a firmware update demand; when deploying OS or out-of-core software on a chip test board, the soft environment of all DUTs within the working range of a PXE (Preboot Execution Environment, remote boot technology) related server is usually unified, and customized deployment of the soft environment cannot be achieved, resulting in poor flexibility in the deployment of the DUT soft environment.
[0004] However, the deployment method for firmware in the prior art has the problem of not being applicable to all types of devices, and the deployment method for OS and out-of-core software has the problem of poor flexibility and failure to meet actual user needs. Summary of the invention
[0005] The purpose of this application is to provide a soft environment deployment method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to facilitate the customized and efficient deployment of the soft environment of batch chip test boards.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a soft environment deployment method, including:
[0008] Acquire a deployment instruction input by a user, where the deployment instruction is used to instruct to deploy at least one target soft environment on at least one target chip test board;
[0009] Generate deployment task information corresponding to each of the target chip test boards according to the deployment instructions, wherein the deployment task information is used to indicate control instructions involved in deploying each target soft environment by the target chip test board and the execution order of the control instructions;
[0010] According to the deployment task information corresponding to each target chip test board, each target chip test board is controlled to deploy each target soft environment.
[0011] Optionally, generating deployment task information corresponding to each target chip test board according to the deployment instruction includes:
[0012] According to the target soft environment indicated by the deployment instruction, obtaining a benchmark control instruction execution sequence of the target soft environment;
[0013] According to the equipment information of the target chip test board, the benchmark control instruction execution sequence is adapted to obtain the deployment task information corresponding to the target chip test board.
[0014] Optionally, generating deployment task information corresponding to each target chip test board according to the deployment instruction includes:
[0015] If the number of target soft environments indicated by the deployment instruction is multiple, then generating sub-deployment task information corresponding to each target soft environment respectively;
[0016] According to the preset deployment order between the target soft environments, the sub-deployment information corresponding to the target soft environments is combined into the deployment task information corresponding to the target chip test board.
[0017] Optionally, controlling each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board includes:
[0018] Controlling and starting the target chip test board, and monitoring the serial port output information of the target chip test board in real time;
[0019] According to the serial port output information and the deployment task information corresponding to the target chip test board, the target chip test board is controlled to deploy each target soft environment.
[0020] Optionally, the controlling and starting the target chip test board includes:
[0021] The target chip test board is started through a remote control module.
[0022] Optionally, if the target chip test board is a server-type test board, the remote control module is a baseboard management controller deployed on the server;
[0023] If the target chip test board is an embedded device or a fixed device, the remote control module is an independently deployed single-chip microcomputer or an embedded development board.
[0024] Optionally, controlling the target chip test board to deploy each target soft environment according to the serial port output information and the deployment task information corresponding to the target chip test board includes:
[0025] Parse the currently monitored serial port output information to determine feedback information indicated by the serial port output information, where the feedback information includes: a software environment to be deployed, or operational feedback during deployment;
[0026] According to the feedback information and the deployment task information, the target chip test board is controlled to deploy the target soft environment.
[0027] Optionally, controlling the target chip test board to deploy the target soft environment according to the feedback information and the deployment task information includes:
[0028] If the feedback information is a soft environment to be deployed, a start deployment instruction of the soft environment to be deployed is sent to the target chip test board according to the deployment task information.
[0029] Optionally, controlling the target chip test board to deploy the target soft environment according to the feedback information and the deployment task information includes:
[0030] If the feedback information is operation feedback during deployment, the target control instruction to be sent is determined according to the feedback information and the deployment task information, and the target control instruction is sent to the target chip test board.
[0031] Optionally, determining a target control instruction to be sent according to the feedback information and the deployment task information, and sending the target control instruction to the target chip test board includes:
[0032] If the soft environment to be deployed is out-of-core software, and the operation feedback during the deployment indicates that the address modification of the target chip test board is completed, then the target control instruction is determined to be downloading the out-of-core software, and the target control instruction is sent to the target chip test board so that the target chip test board downloads the out-of-core software from the soft environment server.
[0033] Optionally, according to the deployment task information corresponding to each target chip test board, controlling each target chip test board to deploy each target soft environment includes:
[0034] Controlling the start-up of the target chip test board, and monitoring in real time whether the target chip test board starts to deploy a specified type of soft environment;
[0035] If so, the target chip test board is controlled to deploy the specified type of soft environment according to the deployment task information corresponding to the target chip test board.
[0036] Optionally, controlling each target chip test board to deploy each target soft environment includes:
[0037] A process corresponding to each target chip test board is created, and the process corresponding to each target chip test board controls each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board.
[0038] Optionally, after generating the deployment task information corresponding to each of the target chip test boards according to the deployment instruction, the method further includes:
[0039] Writing the deployment task information corresponding to each of the target chip test boards into the task queue;
[0040] According to the deployment task information corresponding to each target chip test board, controlling each target chip test board to deploy each target soft environment includes:
[0041] Read the currently pending deployment task information from the task queue, and determine the target chip test board corresponding to the pending deployment task information;
[0042] According to the deployment task information to be processed, the target chip test board corresponding to the deployment task information to be processed is controlled to deploy each target soft environment.
[0043] In a second aspect, an embodiment of the present application further provides a soft environment deployment device, including: an acquisition module, a generation module and a control module;
[0044] The acquisition module is used to acquire a deployment instruction input by a user, wherein the deployment instruction is used to instruct to deploy at least one target soft environment on at least one target chip test board;
[0045] The generating module is used to generate deployment task information corresponding to each of the target chip test boards according to the deployment instruction, wherein the deployment task information is used to indicate the control instructions involved in the deployment of each target soft environment by the target chip test board and the execution order of the control instructions;
[0046] The control module is used to control each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board.
[0047] Optionally, the generating module is specifically configured to obtain a benchmark control instruction execution sequence of the target soft environment according to the target soft environment indicated by the deployment instruction;
[0048] According to the equipment information of the target chip test board, the benchmark control instruction execution sequence is adapted to obtain the deployment task information corresponding to the target chip test board.
[0049] Optionally, the generating module is specifically configured to generate sub-deployment task information corresponding to each target soft environment respectively if the number of target soft environments indicated by the deployment instruction is multiple;
[0050] According to the preset deployment order between the target soft environments, the sub-deployment information corresponding to the target soft environments is combined into the deployment task information corresponding to the target chip test board.
[0051] Optionally, the control module is specifically used to control the start-up of the target chip test board and monitor the serial port output information of the target chip test board in real time;
[0052] According to the serial port output information and the deployment task information corresponding to the target chip test board, the target chip test board is controlled to deploy each target soft environment.
[0053] Optionally, the control module is specifically configured to start the target chip test board via a remote control module.
[0054] Optionally, if the target chip test board is a server-type test board, the remote control module is a baseboard management controller deployed on the server;
[0055] If the target chip test board is an embedded device or a fixed device, the remote control module is an independently deployed single-chip microcomputer or an embedded development board.
[0056] Optionally, the control module is specifically used to parse the currently monitored serial port output information to determine feedback information indicated by the serial port output information, and the feedback information includes: a soft environment to be deployed, or operation feedback during deployment;
[0057] According to the feedback information and the deployment task information, the target chip test board is controlled to deploy the target soft environment.
[0058] Optionally, the control module is specifically configured to send a start deployment instruction of the soft environment to be deployed to the target chip test board according to the deployment task information if the feedback information is a soft environment to be deployed.
[0059] Optionally, the control module is specifically used to determine the target control instruction to be sent according to the feedback information and the deployment task information if the feedback information is operation feedback during deployment, and send the target control instruction to the target chip test board.
[0060] Optionally, the control module is specifically used to determine that the target control instruction is to download the out-core software if the soft environment to be deployed is out-core software and the operation feedback in the deployment indicates that the address modification of the target chip test board is completed, and send the target control instruction to the target chip test board so that the target chip test board downloads the out-core software from the soft environment server.
[0061] Optionally, the control module is specifically used to control the start-up of the target chip test board, and monitor in real time whether the target chip test board starts to deploy a specified type of soft environment;
[0062] If so, the target chip test board is controlled to deploy the specified type of soft environment according to the deployment task information corresponding to the target chip test board.
[0063] Optionally, the control module is specifically used to create a process corresponding to each target chip test board, and the process corresponding to each target chip test board controls each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board.
[0064] Optionally, the control module is further used to write the deployment task information corresponding to each target chip test board into a task queue;
[0065] Read the currently pending deployment task information from the task queue, and determine the target chip test board corresponding to the pending deployment task information;
[0066] According to the deployment task information to be processed, the target chip test board corresponding to the deployment task information to be processed is controlled to deploy each target soft environment.
[0067] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to implement the soft environment deployment method provided in the first aspect.
[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the soft environment deployment method provided in the first aspect is executed.
[0069] The beneficial effects of this application are:
[0070] The present application provides a soft environment deployment method, device, electronic device and storage medium, including: obtaining a deployment instruction input by a user, the deployment instruction is used to instruct the deployment of at least one target soft environment on at least one target chip test board; generating deployment task information corresponding to each target chip test board according to the deployment instruction; and controlling each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board. This solution can generate deployment task information of a specified target chip test board according to the deployment instruction input by the user, thereby automatically controlling the target chip test board to deploy a soft environment based on the generated deployment task information of the target chip test board. It realizes the flexible deployment of a specified soft environment by specifying a chip test board according to user needs, and different chip test boards can deploy different soft environments, realizing flexible deployment of soft environments of batch chip test boards, and deploying through automated control, reducing deployment time and manpower costs, and improving deployment efficiency.
[0071] Secondly, this solution implements the design of different remote control modules for different types of chip test boards, so that the solution can be applied to all types of chip test boards, expanding the application scenarios of the solution.
[0072] In addition, a corresponding process can be created for each target chip test board to control the deployment of the soft environment, thereby realizing the concurrent deployment and execution of batch chip test boards and improving the deployment efficiency of the soft environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0074] Figure 1 A schematic diagram of the architecture of a soft environment deployment system provided in an embodiment of the present application;
[0075] Figure 2 A flowchart of a soft environment deployment method provided in an embodiment of the present application;
[0076] Figure 3 A flowchart of another soft environment deployment method provided in an embodiment of the present application;
[0077] Figure 4 A flowchart of another soft environment deployment method provided in an embodiment of the present application;
[0078] Figure 5A flowchart of another soft environment deployment method provided in an embodiment of the present application;
[0079] Figure 6 A flowchart of another soft environment deployment method provided in an embodiment of the present application;
[0080] Figure 7 A flowchart of another soft environment deployment method provided in an embodiment of the present application;
[0081] Figure 8 A flowchart of another soft environment deployment method provided in an embodiment of the present application;
[0082] Fig. 9 A schematic diagram of a soft environment deployment device provided in an embodiment of the present application;
[0083] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0084] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0085] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0086] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0087] First, the relevant background of this application is explained:
[0088] In the iterative design process of the chip, timely feedback of the test results of the chip software ecosystem to the chip designers is of great significance to improving the functions of the chip and improving the performance and stability of the chip. In the chip software ecosystem test, the test room has various types of chip test boards, and it is often necessary to perform various tests on batches of different types of chip test boards. Among them, testing the functions, performance and stability of different iterative versions of firmware, kernel, and operating system distribution is an important part of the test. Therefore, during the test process, testers need to frequently deploy the soft environment of the specified chip test board, which may include the firmware, operating system, kernel of the chip test board, and the installation and configuration of software outside the kernel.
[0089] Currently, for batch automatic updates of firmware, a scanner is built into the BMC of each server to scan whether there is a need for firmware update in various connection scenarios, thereby automatically controlling the firmware update process.
[0090] The batch installation of operating systems and the installation and configuration of out-of-core software are mainly completed by presetting and dynamically modifying the configuration files of DHCP (Dynamic Host Configuration Protocol), TFTP (Trivial File Transfer Protocol) and kickstart (quick restart) configuration files of the relevant server for PXE (Preboot Execution Environment, remote boot technology). After the relevant configuration files are modified, all chip test boards within the scope of the server can complete the installation and configuration of the specified operating system and out-of-core software in batches.
[0091] However, the above method has the following defects:
[0092] With respect to automatic batch update of firmware, existing technologies are mainly targeted at servers and are not applicable to all types of devices, such as desktop computers, embedded devices, etc.
[0093] For batch installation of operating systems and installation configuration of out-of-core software, the prior art is an automatic installation method with fixed requirements, because the relevant server is shared by all chip test boards. Once the configuration of the relevant server is modified, the installation environment of all chip test boards within the working range of the PXE-related server is unified, which cannot meet the user's need to install different types of software environments on different types of chip test boards at the same time. In addition, the prior art configures the IP address of the chip test board by modifying the DHCP server configuration file, which is a pre-allocation and cannot allow users to flexibly modify it according to their needs.
[0094] Therefore, if the user needs to automatically install different software environments for different types of chip test boards at the same time, the existing technology still requires installation by steps, and the operation is not flexible, resulting in high deployment time and labor costs and low efficiency.
[0095] Based on this, this solution provides a soft environment deployment method, which can dynamically interact with related servers according to the user's soft environment deployment instructions. Different deployment tasks can be automatically executed on multiple chip test boards in parallel. After the operating system is installed, the static IP configuration and the installation of out-of-core software can also be automatically specified, which can meet the user's requirements for automatically installing the required soft environment on different types of chip test boards at the same time as needed. It reduces the time and manpower costs of soft environment deployment and improves the flexibility and efficiency of soft environment deployment.
[0096] Figure 1 This is a schematic diagram of the architecture of a soft environment deployment system provided in an embodiment of the present application. Figure 1 As shown, the soft environment deployment system may include: an automatic deployment server, a remote boot automatic installation system, a soft environment server, a network switch, at least one remote control module and at least one chip test board. Each remote control module interacts with the automatic deployment server, the remote boot automatic installation system and the soft environment server through the network switch.
[0097] The automatic deployment server may include: an automatic deployment front end, an automatic deployment task scheduling module, and an automatic deployment interaction module. The automatic deployment front end receives the user's deployment instructions, and converts the deployment instructions into deployment tasks and sends them to the automatic deployment task scheduling module; the automatic deployment task scheduling module stores the identification of each chip test board and the current status of each chip test board, the current status of each remote control module, and the remote communication method. When the automatic deployment task scheduling module receives the deployment task, it is responsible for calling the remote control module, remotely controlling the chip test board specified by the user, and monitoring the serial port output information of the chip test board. Based on the monitored serial port output information, the automatic deployment interaction module is called to interact with the chip test board by sending instructions.
[0098] The remote boot automatic installation system is responsible for completing the PXE boot installation request of the chip test board to specify the operating system. The remote boot automatic installation system is a system that combines the traditional PXE boot installation with the kickstart technology, including a DHCP server, a TFTP server, and an HTTP (Hypertext Transfer Protocol) server. The DHCP server is responsible for allocating a temporary IP address for the chip test board and providing the address of the TFTP server. TFTP stores the network boot program, GRUB (GRand Unified Bootloader, multi-operating system boot program) configuration file, and kernel files and initrd (initial root file system) files related to each operating system. The HTTP server stores the ISO (International Organization for Standardization) image files and kickstart configuration files of each operating system.
[0099] The soft environment server stores all software required for deploying the soft environment except the operating system, such as firmware, test software, etc., and provides HTTP download services.
[0100] The remote control module is responsible for remotely controlling the opening and closing of the chip test board and remotely communicating with the chip test board through the serial port. The remote control module and the chip test board are in a one-to-one or one-to-many relationship. Each remote control module is configured with a fixed IP address. Other networked devices can communicate with a chip test board controlled by the remote control module through the remote control module's IP address plus the port number.
[0101] Figure 2 A flowchart of a soft environment deployment method provided in an embodiment of the present application; the execution subject of this method can be the above Figure 1 The automatic deployment server in the system architecture shown. Figure 2 As shown, the method may include:
[0102] S101. Obtain a deployment instruction input by a user, where the deployment instruction is used to instruct to deploy at least one target soft environment on at least one target chip test board.
[0103] The user may input deployment instructions according to actual deployment requirements to indicate the target chip test board on which the soft environment deployment is required and the target soft environment to be deployed for the target chip test board.
[0104] S102. Generate deployment task information corresponding to each target chip test board according to the deployment instruction, where the deployment task information is used to indicate control instructions and an execution order of the control instructions involved when the target chip test board deploys each target soft environment.
[0105] For a deployment instruction input by a user, it may include multiple target chip test boards. Then, the deployment instruction may be converted into deployment task information according to the deployment instruction, wherein a deployment task information may be generated corresponding to each target chip test board to ensure the accurate execution of the deployment task.
[0106] In some embodiments, the deployment task information corresponding to the target chip test board may include deployment interaction instructions involved in deploying each target soft environment, which can be understood as a deployment operation sequence corresponding to the target soft environment. The deployment operation sequence may include control instructions arranged in sequence.
[0107] Exemplarily, the deployment operation sequence of the target soft environment 1 may be: step 1: perform operation a; step 2: perform operation b; step 3: perform operation c; deployment is completed, etc.
[0108] S103 . According to the deployment task information corresponding to each target chip test board, control each target chip test board to deploy each target soft environment.
[0109] Optionally, according to the generated deployment task information corresponding to each target chip test board, each target chip test board can be automatically controlled to deploy each target soft environment, thereby realizing the automatic and efficient deployment of the soft environment of batch chip test boards.
[0110] In summary, the soft environment deployment method provided by this embodiment includes: obtaining a deployment instruction input by a user, the deployment instruction is used to instruct the deployment of at least one target soft environment on at least one target chip test board; generating deployment task information corresponding to each target chip test board according to the deployment instruction; and controlling each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board. This solution can generate the deployment task information of the specified target chip test board according to the deployment instruction input by the user, thereby automatically controlling the target chip test board to deploy the soft environment based on the generated deployment task information of the target chip test board. It realizes the flexible deployment of the specified soft environment by specifying the chip test board according to the user's needs, and different chip test boards can deploy different soft environments, realizing the flexible deployment of the soft environment of batch chip test boards, and the deployment is carried out through automated control, which reduces the deployment time and manpower expenses and improves the deployment efficiency.
[0111] Figure 3A flowchart of another soft environment deployment method provided by an embodiment of the present application; Optionally, in step S102, generating deployment task information corresponding to each target chip test board according to the deployment instruction may include:
[0112] S201. Acquire a benchmark control instruction execution sequence of the target soft environment according to the target soft environment indicated by the deployment instruction.
[0113] The benchmark control instruction execution sequence of the target soft environment can be understood as a deployment operation instruction template of the target soft environment. The benchmark control instruction execution sequence of each soft environment can be pre-configured and stored in the database. The benchmark control instruction execution sequence includes operation instructions arranged in sequence. By executing the operation instructions in sequence according to the benchmark control instruction execution sequence, the deployment of the target soft environment can be completed.
[0114] S202 . Adapt the benchmark control instruction execution sequence according to the device information of the target chip test board to obtain the deployment task information corresponding to the target chip test board.
[0115] Since the acquired benchmark control instruction execution sequence of the target soft environment only contains general information when the target soft environment is deployed, and does not contain relevant information of the target chip test board, in order to deploy the target soft environment on the target chip test board, it is necessary to add relevant information of the target test board to the benchmark control instruction execution sequence to adapt the benchmark control instruction execution sequence of the target soft environment to the target chip test board, thereby generating deployment task information corresponding to the target chip test board.
[0116] This embodiment describes how to generate deployment task information corresponding to a target chip test board from the perspective of deploying a target soft environment on the target chip test board.
[0117] Figure 4 A flowchart of another soft environment deployment method provided in an embodiment of the present application; Optionally, in step S102, generating deployment task information corresponding to each target chip test board according to the deployment instruction may include:
[0118] S301: If the number of target soft environments indicated by the deployment instruction is multiple, then generate sub-deployment task information corresponding to each target soft environment respectively.
[0119] In some embodiments, when multiple target soft environments need to be deployed on the target test board, due to restrictions on the soft environment types and the deployment order of different types of soft environments, sub-deployment task information corresponding to each target soft environment may be generated first.
[0120] The generation method of the sub-deployment task information corresponding to any target soft environment can be implemented by referring to the above steps S201-S202.
[0121] S302: According to a preset deployment sequence between the target soft environments, the sub-deployment information corresponding to each target soft environment is combined into deployment task information corresponding to the target chip test board.
[0122] Based on the generated sub-deployment information corresponding to each target soft environment, the sub-deployment information corresponding to each target soft environment can be sequentially combined according to the preset deployment order between the target soft environments to obtain the deployment task information corresponding to the target chip test board.
[0123] For example, assuming that the target soft environment includes: operating system, firmware, and out-of-core software, when deploying the soft environment, it is necessary to deploy the hardware first and then the software. Then, the preset deployment order between the target soft environments can be: first deploy the firmware, then deploy the operating system, and then deploy the out-of-core software. Then, according to the deployment order, the sub-deployment information corresponding to each target soft environment can be combined to generate the deployment task information corresponding to the target chip test board.
[0124] Figure 5 A flow chart of another soft environment deployment method provided in an embodiment of the present application; Optionally, in step S103, according to the deployment task information corresponding to each target chip test board, controlling each target chip test board to deploy each target soft environment may include:
[0125] S401, control the start-up of the target chip test board, and monitor the serial port output information of the target chip test board in real time.
[0126] Optionally, after the deployment task information corresponding to the target chip test board is generated, the target chip test board may be controlled to be started, and the serial port output information of the target chip test board may be monitored in real time.
[0127] Combination Figure 1 When the automatic deployment task scheduling module receives the deployment task information corresponding to the target chip test board sent by the automatic deployment front end, it can call the remote control module connected to the target chip test board to remotely control and start the target chip test board, and the automatic deployment task scheduling module monitors the serial port output information of the target chip test board in real time.
[0128] S402 . Control the target chip test board to deploy each target soft environment according to the serial port output information and the deployment task information corresponding to the target chip test board.
[0129] When key information matching the deployment task information corresponding to the target chip test board is monitored from the serial port output information, the automatic deployment task scheduling module can call the automatic deployment interaction module to interact with the target chip test board by sending instructions.
[0130] Optionally, the automatic deployment interaction module can determine the interaction instructions matched by the key information from the deployment task information corresponding to the target chip test board based on the currently matched key information, and interact with the target chip test board according to the interaction instructions to complete the deployment of each target soft environment.
[0131] Optionally, in step S401, controlling to start the target chip test board may include: starting the target chip test board through a remote control module.
[0132] In some embodiments, the automatic deployment task scheduling module stores information of all chip test boards, including but not limited to the device identification of the chip test board, the current status of the chip test board, the remote communication method, the identification of the remote control module to which the chip test board is connected, etc.
[0133] The automatic deployment task scheduling module can call the remote control module connected to the target chip test board according to the device identification of the target chip test board to remotely control and start the target chip test board.
[0134] Optionally, if the target chip test board is a server-type test board, the remote control module is a baseboard management controller deployed on the server.
[0135] In one feasible method, when the target chip test board is a server-type test board, the above-mentioned remote control module can be implemented by the server's own baseboard management controller (Board Management Controller, referred to as BMC), and the remote control module and the chip test board can be a one-to-one relationship, that is, one remote control module controls one chip test board.
[0136] If the target chip test board is an embedded device or a fixed device, the remote control module is an independently deployed single-chip microcomputer or an embedded development board.
[0137] In another achievable manner, when the target chip test board is an embedded device or a fixed device (eg, a desktop computer), the remote control module may be a single-chip microcomputer or a small embedded development board.
[0138] The single-chip computer or small embedded development board is connected to the network, and the relevant GPIO (General-purpose input / output) control pins are connected to the power-on and power-off pins of the chip test board through Dupont lines, and the USB (Universal Serial Bus) to TTL (Transistor-Transistor Logic) serial port module is connected to the Debug serial port of the chip test board, and the power-on and power-off signals are sent to the power-on and power-off pins through programming to realize remote power-on and power-off, and realize the data conversion from the serial port to the network port. Among them, the data conversion from the serial port to the network port is realized, so that all the serial port output information of the chip test board from the moment of power on can be remotely transmitted to the server through the network.
[0139] It is worth noting that the number of GPIO pins and the number of USB interfaces on the microcontroller or small embedded development board determine the number of chip test boards that can be controlled by the remote control module.
[0140] A single-chip microcomputer or a small embedded development board can connect to multiple chip test boards. For example, assuming that there are 40 GPIO pins on the single-chip microcomputer or development board, two GPIO pins are required to control the power on and off of a chip test board. In this way, in theory, the remote control module can control 20 chip test boards. However, since the remote control module is also responsible for the serial port to network port of the chip test board, the serial port of the chip test board is connected to the USB interface of the remote control module via a TTL to USB cable. A remote control module has only 4 USB interfaces, so min(20, 4) = 4, that is, a remote control module with 40 GPIO pins and 4 USB interfaces can remotely control up to 4 chip test boards.
[0141] Through the design of the remote control module in this embodiment, the deployment of the soft environment can be applied to all types of devices, not limited to server-type devices, thereby improving the applicability of the solution.
[0142] Figure 6 A flowchart of another soft environment deployment method provided in an embodiment of the present application; optionally, in step S402, according to the serial port output information and the deployment task information corresponding to the target chip test board, controlling the target chip test board to deploy each target soft environment may include:
[0143] S501. Analyze the currently monitored serial port output information to determine feedback information indicated by the serial port output information, where the feedback information includes: a software environment to be deployed, or operation feedback during deployment.
[0144] The serial port output information will contain some keywords or key information, which can be used as feedback information and captured by the automatic deployment task scheduling module.
[0145] Feedback information can include two types: one is the soft environment to be deployed, and the other is the operational feedback during deployment. According to the different feedback information, the deployment instructions to be executed can be clarified.
[0146] S502: Control the target chip test board to deploy the target soft environment according to the feedback information and the deployment task information.
[0147] The deployment task information includes the deployment operation sequence of the target soft environment. The execution of each control instruction in the deployment operation sequence can be triggered by the currently matched feedback information. Therefore, according to the feedback information and the deployment task information, the control instructions can be driven and executed in sequence to control the target chip test board to deploy the target soft environment.
[0148] When the feedback information is the soft environment to be deployed (which may be the key startup information of a target soft environment), the deployment of the target soft environment is triggered; when the feedback information is the operation feedback during deployment, the control instructions to be executed can be queried based on the current feedback information to perform the deployment operation on the target soft environment.
[0149] Optionally, in step S502, controlling the target chip test board to deploy the target soft environment according to the feedback information and the deployment task information may include: if the feedback information is the soft environment to be deployed, sending a start deployment instruction of the soft environment to be deployed to the target chip test board according to the deployment task information.
[0150] Usually, each soft environment has unique startup deployment key information. For example, the startup deployment key information corresponding to the firmware is: shell>. When the feedback information is shell>, it means that the automatic deployment server can send the firmware command to be executed, such as the command to update the firmware, to start the deployment of the firmware.
[0151] Therefore, according to the soft environment to be deployed indicated by the feedback information, by matching the key information in the deployment task information, the current soft environment to be deployed can be determined, thereby sending a start deployment instruction of the soft environment to be deployed to the target chip test board.
[0152] Optionally, in step S502, controlling the target chip test board to deploy the target soft environment according to the feedback information and the deployment task information may include: if the feedback information is operation feedback during deployment, determining the target control instructions to be sent according to the feedback information and the deployment task information, and sending the target control instructions to the target chip test board.
[0153] The deployment operation sequence corresponding to each soft environment is also different, and the deployment operation sequence records in detail the various control instructions when deploying the soft environment, and the various control instructions can be recorded in sequence. The trigger key information corresponding to different control instructions is also different. Therefore, based on the operation feedback in the deployment indicated by the feedback information, and matching with the various trigger key information in the deployment operation sequence, the target control instruction to be sent can be determined, and the target control instruction can be sent to the target chip test board.
[0154] For example, taking the target software environment as an operating system, the deployment operation sequence of the operating system may be:
[0155] 1. Match the boot key string of the target chip test board;
[0156] 2. Send F3 to the target chip test board to enter the firmware shell;
[0157] 3. Enter the firmware command bootpxe to enter PXE boot;
[0158] 4. The target chip test board starts the PXE installation process;
[0159] 5. The OS prompt that appears after the PXE automatic installation is completed indicates that the installation was successful.
[0160] Then, when the feedback information is a boot key string, it can be determined that the target control instruction to be sent is to send F3 to the target chip test board to enter the firmware shell; then, the automatic deployment interaction module can be called to send F3 to the target chip test board to enter the firmware shell.
[0161] Optionally, in the above steps, the target control instruction to be sent is determined based on the feedback information and the deployment task information, and the target control instruction is sent to the target chip test board, which may include: if the soft environment to be deployed is out-of-core software, and the operation feedback during the deployment indicates that the address modification of the target chip test board is completed, then the target control instruction is determined to be downloading the out-of-core software, and the target control instruction is sent to the target chip test board, so that the target chip test board downloads the out-of-core software from the soft environment server.
[0162] When the user's deployment instruction indicates that out-of-core software needs to be deployed, the deployment instruction may include the identifier of the out-of-core software to be deployed, for example, the name of the out-of-core software to be deployed. Since all out-of-core software is pre-stored in the soft environment server, when the out-of-core software is started to be deployed on the target chip test board, the command of the IP address configuration file can be sent to the target chip test board through the automatic deployment interaction module to modify the IP address of the target chip test board to the specified address; then a command to download the out-of-core software is sent to the target chip test board, and the command can indicate the download address of the out-of-core software in the soft environment server, so that the target chip test board can download the out-of-core software from the soft environment server; finally, a command to decompress the software compressed package, compile and install it is sent to the target chip test board to control the target chip test board to install the out-of-core software.
[0163] Figure 7 A flow chart of another soft environment deployment method provided in an embodiment of the present application; Optionally, in step S103, according to the deployment task information corresponding to each target chip test board, controlling each target chip test board to deploy each target soft environment may include:
[0164] S601, controlling the start-up of a target chip test board, and monitoring in real time whether the target chip test board starts to deploy a specified type of soft environment.
[0165] In some embodiments, after generating deployment task information corresponding to the target chip test board based on the user's deployment instructions, the target chip test board can be started and monitored to see whether the target chip test board starts to deploy a specified type of soft environment, where the specified type of soft environment may refer to out-of-core software.
[0166] S602: If yes, control the target chip test board to deploy a specified type of soft environment according to the deployment task information corresponding to the target chip test board.
[0167] It should be noted that for certain types of soft environments, such as out-of-core software, the deployment interaction of the soft environment is usually one-way, and the automatic deployment interaction module can unilaterally send control instructions to the target chip test board, without the need to monitor the serial port output information of the target chip test board.
[0168] Then, when the deployment of the out-of-core software is started, the deployment control instructions can be executed only according to the deployment task information corresponding to the target chip test board to control the target chip test board to deploy a specified type of soft environment, without monitoring the serial port output information of the target chip test board.
[0169] Optionally, in step S103, controlling each target chip test board to deploy each target soft environment may include: creating a process corresponding to each target chip test board, and the process corresponding to each target chip test board controls each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board.
[0170] In one feasible method, each time a target chip test board is started, a corresponding processing process for the target chip test board can be created, thereby calling the automatic deployment interaction module through the processing process corresponding to each target chip test board to monitor the serial port output information of the target chip test board.
[0171] That is, when the user's deployment instructions include multiple target chip test boards and the soft environment needs to be deployed for multiple target chip test boards in batches at the same time, a corresponding processing process can be created for each target chip test board respectively, so that multiple processes can execute deployment tasks concurrently, thereby improving the deployment efficiency when the soft environment is deployed in batches for multiple target chip test boards.
[0172] Figure 8 A flowchart of another soft environment deployment method provided by an embodiment of the present application; optionally, in step S102, after generating deployment task information corresponding to each target chip test board according to the deployment instruction, the following may also be included:
[0173] S701, writing the deployment task information corresponding to each target chip test board into the task queue.
[0174] In one achievable manner, after receiving the deployment task information corresponding to each target chip test board, the automatic deployment task scheduling module may write the deployment task information corresponding to each target chip test board into the task queue.
[0175] In step S103, according to the deployment task information corresponding to each target chip test board, controlling each target chip test board to deploy each target soft environment may include:
[0176] S702: Read the currently pending deployment task information from the task queue, and determine the target chip test board corresponding to the pending deployment task information.
[0177] Therefore, when executing the deployment task, the deployment task information corresponding to each target chip test board can be read from the task queue in sequence.
[0178] Optionally, based on the currently read deployment task information to be processed, the target chip test board that currently needs to execute the deployment task can be determined.
[0179] S703 . According to the deployment task information to be processed, control the target chip test board corresponding to the deployment task information to be processed to deploy each target soft environment.
[0180] Based on the target chip test board that currently needs to execute the deployment task, the deployment of each target soft environment on the target chip test board can be controlled according to the deployment task information corresponding to the target chip test board.
[0181] The following is an auxiliary explanation of the steps of this solution with a specific example:
[0182] Step 1: The user sends two deployment instructions to the automatic deployment front end. The first deployment instruction includes the deployment instructions for target chip test board 1 and target chip test board 2. The relevant data format of the first deployment instruction is shown in Table 1 below. The second deployment instruction includes the deployment instructions for target chip test board 3 and target chip test board 4. The relevant data format of the second deployment instruction is shown in Table 2 below.
[0183] When the user enters the deployment instruction, when selecting the identification sequence of the target chip test board to be deployed, the user can check the list of all chip test boards listed in the automatic deployment front end; when selecting the name of the operating system to be deployed, the front end will also list the installable operating systems in sequence: Ubuntu desktop version, Ubuntu server version, OpenEuler server version. This order is consistent with the grub selection interface of PXE automatic installation. If you choose to update the firmware, you need to fill in the name of the new firmware. And you need to upload the local new firmware file in advance, by default, it is uploaded to the fixed directory of the soft environment server; if you do not upload, go to the fixed directory of the soft environment server to download the firmware file to be updated according to the given firmware file name. If you choose to configure the IP statically, you need to fill in the IP address in sequence (for example, in Table 1 below, static IP1 corresponds to target chip test board 1, which indicates that the static IP address of target chip test board 1 is changed to 192.168.1.100). If you choose to install the out-of-core software, you need to give the name of the out-of-core software, so that you can instruct the target chip test board to download the required out-of-core software from the fixed directory of the soft environment server according to the name of the out-of-core software.
[0184] Table 1: First deployment instructions
[0185]
[0186] Table 2: Second deployment instructions
[0187]
[0188] Step 2: After the automatic deployment front end receives the user's deployment instruction, it will generate deployment task information corresponding to each target chip test board according to the deployment instruction.
[0189] Table 3 and Table 4 respectively exemplarily show examples of two types of deployment task information. The deployment task information corresponding to the target test board 1 can be referred to as shown in Table 3, and the deployment task information corresponding to the target test board 3 can be referred to as shown in Table 4.
[0190] Step 3: The automatic deployment task scheduling module will write the deployment task information of each target chip test board generated above into the task queue, and start the target chip test boards in the task queue in order. Each time a target chip test board is started, a concurrent process will be created to call the automatic deployment interaction module to monitor the serial port output information of the target chip test board. When the key string (that is, the feedback information mentioned above) is matched, the target control instruction to be sent is determined from the deployment task information, and the target control instruction is sent to the target chip test board. During the entire deployment task process, there is no need to modify any configuration files related to the PXE automatic installation system, and the automatic deployment tasks of each target chip test board are executed in parallel.
[0191] Step 4: When the deployment task of any target chip test board is completed, the automatic deployment front end will return the information of successful deployment of the target chip test board to the user until the task queue is empty.
[0192] Table 3
[0193]
[0194] Table 4
[0195]
[0196] It is worth noting that the difference between this solution and the existing solution is that this solution does not need to modify the shared configuration file of the PXE automatic installation system. It dynamically interacts with the target chip test board through automation technology, and controls the deployment process of each target chip test board in parallel, so that each target chip test board can be deployed in accordance with the personalized deployment method defined by the user. The deployment process of each target chip test board can be parallel and does not affect each other. The existing technology needs to modify the shared configuration file of the server, which results in that the deployment of a batch of target chip test boards can only be carried out in the same deployment method in the same time period. For example, in the same time period, each can not choose the desired operating system to install. At the same time, the existing technology cannot automatically configure a static fixed IP, update firmware, and install and configure software outside the kernel after automatically installing the operating system. Users cannot flexibly choose and deploy with one click.
[0197] In summary, the soft environment deployment method provided by this embodiment includes: obtaining a deployment instruction input by a user, the deployment instruction is used to instruct the deployment of at least one target soft environment on at least one target chip test board; generating deployment task information corresponding to each target chip test board according to the deployment instruction; and controlling each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board. This solution can generate the deployment task information of the specified target chip test board according to the deployment instruction input by the user, thereby automatically controlling the target chip test board to deploy the soft environment based on the generated deployment task information of the target chip test board. It realizes the flexible deployment of the specified soft environment by specifying the chip test board according to the user's needs, and different chip test boards can deploy different soft environments, realizing the flexible deployment of the soft environment of batch chip test boards, and the deployment is carried out through automated control, which reduces the deployment time and manpower expenses and improves the deployment efficiency.
[0198] Secondly, this solution implements the design of different remote control modules for different types of chip test boards, so that the solution can be applied to all types of chip test boards, expanding the application scenarios of the solution.
[0199] In addition, a corresponding process can be created for each target chip test board to control the deployment of the soft environment, thereby realizing the concurrent deployment and execution of batch chip test boards and improving the deployment efficiency of the soft environment.
[0200] The following describes the devices, equipment, storage media, etc. used to execute the soft environment deployment method provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.
[0201] Fig. 9 Schematic diagram of a soft environment deployment device provided in an embodiment of the present application, the functions implemented by the soft environment deployment device correspond to the steps performed by the above method. The device can be understood as the above automatic deployment server, such as Fig. 9 As shown, the device may include: an acquisition module 910, a generation module 920 and a control module 930;
[0202] An acquisition module 910 is used to acquire a deployment instruction input by a user, where the deployment instruction is used to instruct to deploy at least one target soft environment on at least one target chip test board;
[0203] A generation module 920 is used to generate deployment task information corresponding to each target chip test board according to the deployment instruction, and the deployment task information is used to indicate the control instructions and the execution order of the control instructions involved in the deployment of each target soft environment by the target chip test board;
[0204] The control module 930 is used to control each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board.
[0205] Optionally, the generating module 920 is specifically configured to obtain a benchmark control instruction execution sequence of the target soft environment according to the target soft environment indicated by the deployment instruction;
[0206] According to the equipment information of the target chip test board, the benchmark control instruction execution sequence is adapted to obtain the deployment task information corresponding to the target chip test board.
[0207] Optionally, the generating module 920 is specifically configured to generate sub-deployment task information corresponding to each target soft environment respectively if the number of target soft environments indicated by the deployment instruction is multiple;
[0208] According to the preset deployment order between the target soft environments, the sub-deployment information corresponding to the target soft environments is combined into the deployment task information corresponding to the target chip test board.
[0209] Optionally, the control module 930 is specifically used to control the start-up of the target chip test board and monitor the serial port output information of the target chip test board in real time;
[0210] According to the serial port output information and the deployment task information corresponding to the target chip test board, the target chip test board is controlled to deploy each target soft environment.
[0211] Optionally, the control module 930 is specifically configured to start the target chip test board through a remote control module.
[0212] Optionally, if the target chip test board is a server-type test board, the remote control module is a baseboard management controller deployed on the server;
[0213] If the target chip test board is an embedded device or a fixed device, the remote control module is an independently deployed single-chip microcomputer or an embedded development board.
[0214] Optionally, the control module 930 is specifically used to parse the currently monitored serial port output information to determine feedback information indicated by the serial port output information, where the feedback information includes: a soft environment to be deployed, or operational feedback during deployment;
[0215] According to the feedback information and deployment task information, the target chip test board is controlled to deploy the target soft environment.
[0216] Optionally, the control module 930 is specifically configured to send a start deployment instruction of the soft environment to be deployed to the target chip test board according to the deployment task information if the feedback information is the soft environment to be deployed.
[0217] Optionally, the control module 930 is specifically configured to determine a target control instruction to be sent according to the feedback information and the deployment task information, and send the target control instruction to the target chip test board if the feedback information is operation feedback during deployment.
[0218] Optionally, the control module 930 is specifically used to determine that the target control instruction is to download the out-core software if the soft environment to be deployed is out-core software, and the operation feedback during the deployment indicates that the address modification of the target chip test board is completed, and send the target control instruction to the target chip test board so that the target chip test board downloads the out-core software from the soft environment server.
[0219] Optionally, the control module 930 is specifically used to control the start-up of the target chip test board and monitor in real time whether the target chip test board starts to deploy a specified type of soft environment;
[0220] If so, the target chip test board is controlled to deploy a specified type of soft environment according to the deployment task information corresponding to the target chip test board.
[0221] Optionally, the control module 930 is specifically used to create a process corresponding to each target chip test board, and the process corresponding to each target chip test board controls each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board.
[0222] Optionally, the control module 930 is further configured to write the deployment task information corresponding to each target chip test board into the task queue;
[0223] Read the current deployment task information to be processed from the task queue, and determine the target chip test board corresponding to the deployment task information to be processed;
[0224] According to the deployment task information to be processed, the target chip test board corresponding to the deployment task information to be processed is controlled to deploy each target soft environment.
[0225] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0226] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0227] The above modules can be connected or communicated with each other via a wired connection or a wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may include a connection in the form of a LAN, a WAN, Bluetooth, a ZigBee, or NFC, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. Those skilled in the art will clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application.
[0228] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, which may be a computing device with data processing capabilities.
[0229] The device includes: a processor 801 and a storage medium 802 .
[0230] The storage medium 802 is used to store programs, and the processor 801 calls the programs stored in the storage medium 802 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0231] Among them, the storage medium 802 stores program code, and when the program code is executed by the processor 801, the processor 801 executes various steps in the soft environment deployment method according to various exemplary embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0232] Processor 801 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DigitalSignal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.
[0233] Storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Storage medium may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type storage medium, random access storage medium (Random Access Memory, RAM), static random access storage medium (Static Random Access Memory, SRAM), programmable read-only storage medium (Programmable Read Only Memory, PROM), read-only storage medium (Read Only Memory, ROM), electrically erasable programmable read-only storage medium (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic storage medium, disk, optical disk, etc. Storage medium is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The storage medium 802 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0234] Optionally, the present application also provides a program product, such as a computer-readable storage medium, including a program, which is used to execute the above method embodiment when executed by a processor.
[0235] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0236] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0237] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0238] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only storage medium (English: Read-Only Memory, referred to as: ROM), random access storage medium (English: Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program code.
Claims
1. A soft environment deployment method, characterized in that: include: Acquire a deployment instruction input by a user, where the deployment instruction is used to instruct to deploy at least one target soft environment on at least one target chip test board; Generate deployment task information corresponding to each of the target chip test boards according to the deployment instructions, wherein the deployment task information is used to indicate control instructions involved in deploying each target soft environment by the target chip test board and the execution order of the control instructions; According to the deployment task information corresponding to each target chip test board, each target chip test board is controlled to deploy each target soft environment.
2. The soft environment deployment method according to claim 1, characterized in that: Generating deployment task information corresponding to each target chip test board according to the deployment instruction includes: According to the target soft environment indicated by the deployment instruction, obtaining a benchmark control instruction execution sequence of the target soft environment; According to the equipment information of the target chip test board, the benchmark control instruction execution sequence is adapted to obtain the deployment task information corresponding to the target chip test board.
3. The soft environment deployment method according to claim 1, characterized in that: Generating deployment task information corresponding to each target chip test board according to the deployment instruction includes: If the number of target soft environments indicated by the deployment instruction is multiple, then generating sub-deployment task information corresponding to each target soft environment respectively; According to the preset deployment order between the target soft environments, the sub-deployment information corresponding to the target soft environments is combined into the deployment task information corresponding to the target chip test board.
4. The soft environment deployment method according to claim 1, characterized in that: According to the deployment task information corresponding to each target chip test board, controlling each target chip test board to deploy each target soft environment includes: Controlling and starting the target chip test board, and monitoring the serial port output information of the target chip test board in real time; According to the serial port output information and the deployment task information corresponding to the target chip test board, the target chip test board is controlled to deploy each target soft environment.
5. The soft environment deployment method according to claim 4, characterized in that: The controlling and starting the target chip test board includes: The target chip test board is started through a remote control module.
6. The soft environment deployment method according to claim 5, characterized in that: If the target chip test board is a server-type test board, the remote control module is a baseboard management controller deployed on the server; If the target chip test board is an embedded device or a fixed device, the remote control module is an independently deployed single-chip microcomputer or an embedded development board.
7. The soft environment deployment method according to claim 4, characterized in that: The step of controlling the target chip test board to deploy each target soft environment according to the serial port output information and the deployment task information corresponding to the target chip test board includes: Parse the currently monitored serial port output information to determine feedback information indicated by the serial port output information, where the feedback information includes: a software environment to be deployed, or operational feedback during deployment; According to the feedback information and the deployment task information, the target chip test board is controlled to deploy the target soft environment.
8. The soft environment deployment method according to claim 7, characterized in that: The step of controlling the target chip test board to deploy the target soft environment according to the feedback information and the deployment task information includes: If the feedback information is a soft environment to be deployed, a start deployment instruction of the soft environment to be deployed is sent to the target chip test board according to the deployment task information.
9. The soft environment deployment method according to claim 7, characterized in that: The step of controlling the target chip test board to deploy the target soft environment according to the feedback information and the deployment task information includes: If the feedback information is operation feedback during deployment, the target control instruction to be sent is determined according to the feedback information and the deployment task information, and the target control instruction is sent to the target chip test board.
10. The soft environment deployment method according to claim 9, characterized in that: The step of determining the target control instruction to be sent according to the feedback information and the deployment task information, and sending the target control instruction to the target chip test board includes: If the soft environment to be deployed is out-of-core software, and the operation feedback during the deployment indicates that the address modification of the target chip test board is completed, then the target control instruction is determined to be downloading the out-of-core software, and the target control instruction is sent to the target chip test board so that the target chip test board downloads the out-of-core software from the soft environment server.
11. The soft environment deployment method according to claim 1, characterized in that: According to the deployment task information corresponding to each of the target chip test boards, controlling each of the target chip test boards to deploy each of the target soft environments includes: Controlling the start-up of the target chip test board, and monitoring in real time whether the target chip test board starts to deploy a specified type of soft environment; If so, the target chip test board is controlled to deploy the specified type of soft environment according to the deployment task information corresponding to the target chip test board.
12. The soft environment deployment method according to claim 1, characterized in that: The controlling each target chip test board to deploy each target soft environment includes: A process corresponding to each target chip test board is created, and the process corresponding to each target chip test board controls each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board.
13. The soft environment deployment method according to claim 1, characterized in that: After generating the deployment task information corresponding to each of the target chip test boards according to the deployment instruction, the method further includes: Writing the deployment task information corresponding to each of the target chip test boards into the task queue; According to the deployment task information corresponding to each target chip test board, controlling each target chip test board to deploy each target soft environment includes: Read the currently pending deployment task information from the task queue, and determine the target chip test board corresponding to the pending deployment task information; According to the deployment task information to be processed, the target chip test board corresponding to the deployment task information to be processed is controlled to deploy each target soft environment.
14. A soft environment deployment device, characterized in that: include: Acquisition module, generation module and control module; The acquisition module is used to acquire a deployment instruction input by a user, wherein the deployment instruction is used to instruct to deploy at least one target soft environment on at least one target chip test board; The generating module is used to generate deployment task information corresponding to each of the target chip test boards according to the deployment instruction, wherein the deployment task information is used to indicate the control instructions involved in the deployment of each target soft environment by the target chip test board and the execution order of the control instructions; The control module is used to control each target chip test board to deploy each target soft environment according to the deployment task information corresponding to each target chip test board.
15. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the program instructions to implement the soft environment deployment method as described in any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the soft environment deployment method according to any one of claims 1 to 13 is implemented.
