CN113851183A - Solid state disk testing method and device based on UEFI environment and computer equipment - Google Patents

Solid state disk testing method and device based on UEFI environment and computer equipment Download PDF

Info

Publication number
CN113851183A
CN113851183A CN202111120141.3A CN202111120141A CN113851183A CN 113851183 A CN113851183 A CN 113851183A CN 202111120141 A CN202111120141 A CN 202111120141A CN 113851183 A CN113851183 A CN 113851183A
Authority
CN
China
Prior art keywords
uefi
environment
solid state
state disk
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111120141.3A
Other languages
Chinese (zh)
Inventor
霍开源
石骁
李杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN202111120141.3A priority Critical patent/CN113851183A/en
Publication of CN113851183A publication Critical patent/CN113851183A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • G11C2029/5602Interface to device under test

Abstract

The application relates to a solid state disk testing method, a solid state disk testing device, computer equipment and a storage medium based on a UEFI environment, wherein the method comprises the following steps: the method comprises the steps of obtaining a solid state disk test request based on a UEFI environment, wherein the test request comprises test items of a solid state disk to be tested; building a UEFI development environment according to the solid state disk test request based on the UEFI environment; developing a corresponding UEFI hard disk test interface according to the test items in the test request; and after the virtual UEFI environment is built, setting and testing the items of the solid state disk to be tested in the virtual UEFI environment. The UEFI environment deployment and startup provided by the invention only needs tens of seconds, and the NVME interfaces are basically all opened, so that the solid state disk can be tested or set in the UEFI environment, and the test efficiency can be improved on the basis of ensuring the coverage rate of the test.

Description

Solid state disk testing method and device based on UEFI environment and computer equipment
Technical Field
The invention relates to the technical field of hard disk testing, in particular to a solid state disk testing method and device based on a UEFI environment, computer equipment and a storage medium.
Background
With the development of computer technology, computer equipment has become the most powerful utility tool for people today, and the safety and stability of computer equipment are necessary guarantees when people work with computers. Nowadays, the solid state disk is also more and more widely applied due to the characteristics of quick reading and writing, light weight, low energy consumption, small size and the like. The solid state disk is one of core hardware devices in a computer device, and the stability and reliability of the solid state disk greatly affect the security and stability of the whole computer device, so that the solid state disk in the computer device needs to be subjected to system testing before the computer device leaves a factory.
At present, when the solid state disk is tested in Windows by the traditional technology, due to the limitation of Microsoft drive, many tests or settings cannot be covered, and the test coverage rate is insufficient. In addition, if some tests or settings are directly performed by using Linux, due to the fact that a system is large, deployment time is long, testing efficiency is not high enough, and the Linux has different defects under different testing environments.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a solid state disk testing method and apparatus based on UEFI environment, a computer device, and a storage medium.
A solid state disk testing method based on a UEFI environment comprises the following steps:
the method comprises the steps of obtaining a solid state disk test request based on a UEFI environment, wherein the test request comprises test items of a solid state disk to be tested;
building a UEFI development environment according to the solid state disk test request based on the UEFI environment;
developing a corresponding UEFI hard disk test interface according to the test items in the test request;
and after the virtual UEFI environment is built, setting and testing the items of the solid state disk to be tested in the virtual UEFI environment.
In one embodiment, the step of building the UEFI development environment according to the UEFI environment-based solid state disk test request includes:
and building a UEFI development environment on the Windows platform through an embedded development kit, and simultaneously building a compiling environment and a virtual UEFI environment.
In one embodiment, the step of developing a corresponding UEFI hard disk test interface according to the test item in the test request further includes:
and developing a test interface under a UEFI environment through an NVME development kit, wherein the test interface comprises interface development of an Admin command and an IO command.
In one embodiment, after the virtual UEFI environment is built, the step of setting and item testing the solid state disk to be tested in the virtual UEFI environment further includes:
and setting and testing the items of the solid state disk to be tested through the test interface, and generating a corresponding test log after the test is finished.
A solid state disk testing device based on UEFI environment, the device includes:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a solid state disk test request based on a UEFI environment, and the test request comprises test items of a solid state disk to be tested;
the environment building module is used for building a UEFI development environment according to the solid state disk test request based on the UEFI environment;
the interface development module is used for developing a corresponding UEFI hard disk test interface according to the test items in the test request;
and the project testing module is used for setting and testing the project of the solid state disk to be tested in the virtual UEFI environment after the virtual UEFI environment is built.
In one embodiment, the environment construction module is further configured to:
and building a UEFI development environment on the Windows platform through an embedded development kit, and simultaneously building a compiling environment and a virtual UEFI environment.
In one embodiment, the interface development module is further configured to:
and developing a test interface under a UEFI environment through an NVME development kit, wherein the test interface comprises interface development of an Admin command and an IO command.
In one embodiment, the project testing module is further configured to:
and setting and testing the items of the solid state disk to be tested through the test interface, and generating a corresponding test log after the test is finished.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above methods when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods described above.
The solid state disk testing method and device based on the UEFI environment, the computer equipment and the storage medium obtain a solid state disk testing request based on the UEFI environment, wherein the testing request comprises testing items of a solid state disk to be tested; building a UEFI development environment according to the solid state disk test request based on the UEFI environment; developing a corresponding UEFI hard disk test interface according to the test items in the test request; and after the virtual UEFI environment is built, setting and testing the items of the solid state disk to be tested in the virtual UEFI environment. The UEFI environment deployment and startup provided by the invention only needs tens of seconds, and the NVME interfaces are basically all opened, so that the solid state disk can be tested or set in the UEFI environment, and the test efficiency can be improved on the basis of ensuring the coverage rate of the test.
Drawings
FIG. 1 is a conceptual diagram of a solid state disk testing method based on UEFI environment in the present invention;
FIG. 2 is a flowchart illustrating a solid state disk testing method based on a UEFI environment in one embodiment;
fig. 3 is a schematic flowchart of a solid state disk testing method based on UEFI environment in another embodiment;
FIG. 4 is a block diagram illustrating a solid state disk testing apparatus based on a UEFI environment according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
At present, when the solid state disk is tested in Windows by the traditional technology, due to the limitation of Microsoft drive, many tests or settings cannot be covered, and the test coverage rate is insufficient. In addition, if some tests or settings are directly performed by using Linux, due to the fact that a system is large, deployment time is long, testing efficiency is not high enough, and the Linux has different defects under different testing environments.
Based on the solid state disk test method based on the UEFI environment, the invention aims to meet the test coverage rate and improve the test efficiency. Specifically, referring to a conceptual schematic diagram of a solid state disk testing method based on the UEFI environment shown in fig. 1, first, a UEFI development environment is established; then, developing a UEFI hard disk test interface; and finally, testing or setting the solid state disk in the UEFI environment.
In one embodiment, as shown in fig. 2, a solid state disk testing method based on UEFI environment is provided, where the method includes:
step 202, obtaining a solid state disk test request based on a UEFI environment, wherein the test request comprises test items of a solid state disk to be tested;
step 204, building a UEFI development environment according to the solid state disk test request based on the UEFI environment;
step 206, developing a corresponding UEFI hard disk test interface according to the test items in the test request;
and 208, after the virtual UEFI environment is built, setting and testing the items of the solid state disk to be tested in the virtual UEFI environment.
In this embodiment, a method for testing a solid state disk based on a UEFI environment is provided, and the method is specifically implemented as follows:
firstly, a solid state disk test request based on a UEFI environment is obtained, wherein the test request comprises test items of a solid state disk to be tested. Specifically, UEFI (Unified Extensible Firmware Interface) is a specification of a personal computer system, and is used to define a software Interface between an operating system and system Firmware, as an alternative to BIOS. The extensible firmware interface is responsible for power-on self-test (POST), contacting the operating system, and providing an interface to connect the operating system to the hardware.
And then, building a UEFI development environment according to the solid state disk test request based on the UEFI environment. Specifically, a UEFI development environment can be built on a Windows platform based on EDK, and a compiling environment and a virtual UEFI environment are built at the same time. EDK (Embedded Development Kit) is a tool for xilinx corporation to develop Embedded systems. An embedded development kit is a comprehensive solution for designing embedded programmable systems. The suite comprises an embedded software tool and technical documents and IP required by an embedded IBM PowerPC hardware processor core and/or a Xilinx MicroBlaze software processor core for Xilinx platform FPGA design.
And then, developing a corresponding UEFI hard disk test interface according to the test items in the test request. Specifically, a test interface may be developed under UEFI through an NVME development kit, and specifically, interface development of Admin commands and IO commands may be included.
And finally, after the virtual UEFI environment is built, setting and testing the items of the solid state disk to be tested in the virtual UEFI environment.
In one embodiment, after the virtual UEFI environment is built, the step of setting and item testing the solid state disk to be tested in the virtual UEFI environment further includes: and setting and testing the items of the solid state disk to be tested through the test interface, and generating a corresponding test log after the test is finished.
In the embodiment, a solid state disk test request based on a UEFI environment is obtained, wherein the test request comprises test items of a solid state disk to be tested; building a UEFI development environment according to the solid state disk test request based on the UEFI environment; developing a corresponding UEFI hard disk test interface according to the test items in the test request; and after the virtual UEFI environment is built, setting and testing the items of the solid state disk to be tested in the virtual UEFI environment. The UEFI environment deployment and startup provided by the scheme only needs tens of seconds, and the NVME interfaces are basically all opened, so that the solid state disk can be tested or set in the UEFI environment, and the test efficiency can be improved on the basis of ensuring the coverage rate of the test.
In one embodiment, as shown in fig. 3, a solid state disk testing method based on UEFI environment is provided, where the method includes:
step 302, obtaining a solid state disk test request based on a UEFI environment, wherein the test request comprises test items of a solid state disk to be tested;
304, building a UEFI development environment on a Windows platform through an embedded development kit, and simultaneously building a compiling environment and a virtual UEFI environment;
step 306, developing a test interface under a UEFI environment through an NVME development kit, wherein the test interface comprises interface development of an Admin command and an IO command;
and 308, setting and testing the items of the solid state disk to be tested through the test interface, and generating a corresponding test log after the testing is finished.
In this embodiment, a method for testing a solid state disk based on a UEFI environment is provided, where the method includes the following steps:
step one, building a UEFI development environment:
and building a UEFI development environment on the windows platform based on the EDK, and building a compiling environment and a virtual UEFI environment at the same time.
Step two, UEFI hard disk test interface development:
the test interface is developed under UEFI based on an NVME development kit, and the test interface specifically comprises interface development of an Admin command and an IO command.
Thirdly, testing or setting the solid state disk in the UEFI environment:
and recommending the test interface developed in the second step, and carrying out related test and setting on the solid state disk.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a solid state disk testing apparatus 400 based on UEFI environment, the apparatus comprising:
an obtaining module 401, configured to obtain a solid state disk test request based on a UEFI environment, where the test request includes test items of a solid state disk to be tested;
an environment building module 402, configured to build a UEFI development environment according to the UEFI environment-based solid state disk test request;
an interface development module 403, configured to develop a corresponding UEFI hard disk test interface according to the test item in the test request;
and the project testing module 404 is used for setting and project testing the solid state disk to be tested in the virtual UEFI environment after the virtual UEFI environment is built.
In one embodiment, environment construction module 402 is further configured to:
and building a UEFI development environment on the Windows platform through an embedded development kit, and simultaneously building a compiling environment and a virtual UEFI environment.
In one embodiment, the interface development module 403 is further configured to:
and developing a test interface under a UEFI environment through an NVME development kit, wherein the test interface comprises interface development of an Admin command and an IO command.
In one embodiment, the project testing module 404 is further operable to:
and setting and testing the items of the solid state disk to be tested through the test interface, and generating a corresponding test log after the test is finished.
For specific limitation of the solid state disk testing apparatus based on the UEFI environment, reference may be made to the above limitation on the solid state disk testing method based on the UEFI environment, and details are not described here again.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 5. The computer apparatus includes a processor, a memory, and a network interface connected by a device bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating device, a computer program, and a database. The internal memory provides an environment for the operation device in the nonvolatile storage medium and the execution of the computer program. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a solid state disk testing method based on a UEFI environment.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method embodiments when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above respective method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A solid state disk testing method based on UEFI environment is characterized by comprising the following steps:
the method comprises the steps of obtaining a solid state disk test request based on a UEFI environment, wherein the test request comprises test items of a solid state disk to be tested;
building a UEFI development environment according to the solid state disk test request based on the UEFI environment;
developing a corresponding UEFI hard disk test interface according to the test items in the test request;
and after the virtual UEFI environment is built, setting and testing the items of the solid state disk to be tested in the virtual UEFI environment.
2. The UEFI environment-based solid state disk testing method according to claim 1, wherein the step of building a UEFI development environment according to the UEFI environment-based solid state disk testing request comprises:
and building a UEFI development environment on the Windows platform through an embedded development kit, and simultaneously building a compiling environment and a virtual UEFI environment.
3. The UEFI environment-based solid state disk testing method of claim 2, wherein the step of developing a corresponding UEFI hard disk testing interface according to the test items in the test request further comprises:
and developing a test interface under a UEFI environment through an NVME development kit, wherein the test interface comprises interface development of an Admin command and an IO command.
4. The UEFI environment-based solid state disk testing method according to any one of claims 1-3, wherein the step of setting and item testing the solid state disk to be tested in the virtual UEFI environment after the virtual UEFI environment is built further comprises:
and setting and testing the items of the solid state disk to be tested through the test interface, and generating a corresponding test log after the test is finished.
5. The utility model provides a solid state hard drives testing arrangement based on UEFI environment, its characterized in that the device includes:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a solid state disk test request based on a UEFI environment, and the test request comprises test items of a solid state disk to be tested;
the environment building module is used for building a UEFI development environment according to the solid state disk test request based on the UEFI environment;
the interface development module is used for developing a corresponding UEFI hard disk test interface according to the test items in the test request;
and the project testing module is used for setting and testing the project of the solid state disk to be tested in the virtual UEFI environment after the virtual UEFI environment is built.
6. The UEFI environment-based solid state disk testing device according to claim 5, wherein the environment building module is further configured to:
and building a UEFI development environment on the Windows platform through an embedded development kit, and simultaneously building a compiling environment and a virtual UEFI environment.
7. The UEFI environment-based solid state disk testing apparatus of claim 6, wherein the interface development module is further configured to:
and developing a test interface under a UEFI environment through an NVME development kit, wherein the test interface comprises interface development of an Admin command and an IO command.
8. The UEFI environment-based solid state disk testing apparatus according to any one of claims 5-7, wherein the project testing module is further configured to:
and setting and testing the items of the solid state disk to be tested through the test interface, and generating a corresponding test log after the test is finished.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202111120141.3A 2021-09-24 2021-09-24 Solid state disk testing method and device based on UEFI environment and computer equipment Pending CN113851183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111120141.3A CN113851183A (en) 2021-09-24 2021-09-24 Solid state disk testing method and device based on UEFI environment and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111120141.3A CN113851183A (en) 2021-09-24 2021-09-24 Solid state disk testing method and device based on UEFI environment and computer equipment

Publications (1)

Publication Number Publication Date
CN113851183A true CN113851183A (en) 2021-12-28

Family

ID=78979676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111120141.3A Pending CN113851183A (en) 2021-09-24 2021-09-24 Solid state disk testing method and device based on UEFI environment and computer equipment

Country Status (1)

Country Link
CN (1) CN113851183A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115841842A (en) * 2022-12-16 2023-03-24 深圳市章江科技有限公司 Memory test method, system and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115841842A (en) * 2022-12-16 2023-03-24 深圳市章江科技有限公司 Memory test method, system and computer readable storage medium

Similar Documents

Publication Publication Date Title
US20110276829A1 (en) Client server and method for monitoring function tests thereof
CN101515316A (en) Trusted computing terminal and trusted computing method
US20110179260A1 (en) Method for integrating operating system into bios chip and method for booting operating system from server
US20150154033A1 (en) Computer system and boot method thereof
JP6701398B2 (en) Firmware update by remote utility
CN107818029B (en) Automatic test method for cloud hard disk data recovery consistency
CN114706661B (en) Disaster recovery backup method and system for virtual machine, computer equipment and storage medium
CN107135462B (en) Bluetooth pairing method of UEFI firmware and computing system thereof
US7783927B2 (en) Intelligent processing tools
CN113744797A (en) NAND test analysis method and device based on solid state disk and computer equipment
CN113851183A (en) Solid state disk testing method and device based on UEFI environment and computer equipment
CN111277476B (en) Gateway controller function verification method, gateway controller function verification device, computer equipment and storage medium
CN116166525A (en) Method and device for generating test script
CN114880177A (en) Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment
CN102479124A (en) Test method
CN113900722A (en) Automatic deployment method and device of trust and creation platform, computer equipment and storage medium
CN115629815A (en) FPGA prototype verification platform capable of verifying EMMC user interface
CN114420194A (en) Test method and device for power failure protection function of solid state disk and computer equipment
CN113760623A (en) Method and device for testing TCG (trusted computing group) protocol function of solid state disk and computer equipment
CN110826114B (en) User data testing method and device based on SSD after safe erasure
CN110109787B (en) Test method for storage particle consumption based on simulation of solid state disk in low power consumption state
CN111985010A (en) Interception verification method and device for notebook hard disk, computer equipment and storage medium
CN113377613B (en) Hard disk test monitoring method and device based on Windows system and computer equipment
CN113672526A (en) Method and device for acquiring solid state disk power failure protection triggering times and computer equipment
Guo et al. FeT: hybrid cloud-based mobile bank application testing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination