CN113297023A - EMMC (embedded multi media card) verification method, system and storage medium - Google Patents

EMMC (embedded multi media card) verification method, system and storage medium Download PDF

Info

Publication number
CN113297023A
CN113297023A CN202110697154.0A CN202110697154A CN113297023A CN 113297023 A CN113297023 A CN 113297023A CN 202110697154 A CN202110697154 A CN 202110697154A CN 113297023 A CN113297023 A CN 113297023A
Authority
CN
China
Prior art keywords
emmc
preset
random number
read
memory
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
CN202110697154.0A
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.)
Dongguan ELF Education Software Co Ltd
Original Assignee
Dongguan ELF Education Software 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 Dongguan ELF Education Software Co Ltd filed Critical Dongguan ELF Education Software Co Ltd
Priority to CN202110697154.0A priority Critical patent/CN113297023A/en
Publication of CN113297023A publication Critical patent/CN113297023A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides an EMMC (empirical mode memory) verification method, a system and a storage medium, wherein the method comprises the following steps: generating a random number by a random function; applying for a preset memory and assigning the content of the preset memory as the random number; writing the preset memory into a preset file, and storing the preset file into the EMMC; reading the preset file stored in the EMMC to obtain read content; and comparing the read content with the random number, and if the read content is different from the random number, judging that the EMMC hardware is abnormal. According to the scheme, when the EMMC is abnormal, whether the EMMC is in hardware or not is judged firstly, and the influence on normal maintenance and use of the EMMC caused by subsequent invalid detection is avoided.

Description

EMMC (embedded multi media card) verification method, system and storage medium
Technical Field
The present invention relates to the field of EMMC verification technologies, and in particular, to an EMMC verification method, an EMMC verification system, and a storage medium.
Background
The emmc (embedded Multi Media card) is the standard specification of the embedded memory that is established by the MMC association and mainly aims at products such as mobile phones or tablet computers. The EMMC consists of an embedded memory solution with MMC (MultiMediaCard) interface, flash memory device and host controller, all in a small BGA package, with interface speeds up to 400MBytes per second, with fast, scalable performance.
When one machine is used, the EMMC is possible to be abnormal or has problems in quality, the abnormality caused by the EMMC is random and irregular, if the detection direction of the abnormality is wrong, the waste of detection time is caused, and the normal maintenance and use of the EMMC are influenced. Therefore, there is a need for a method that can first eliminate the hardware problem of the EMMC itself to avoid subsequent invalid tests that would affect the normal maintenance and use of the EMMC.
Disclosure of Invention
The invention aims to provide an EMMC (embedded multi-media card) verification method, an EMMC verification system and a storage medium, which can firstly judge whether the EMMC is in the problem of hardware of the EMMC when the EMMC is abnormal, and avoid the influence on the normal maintenance and use of the EMMC caused by the subsequent invalid detection.
The technical scheme provided by the invention is as follows:
the invention provides an EMMC (empirical mode decomposition) verification method, which comprises the following steps:
generating a random number by a random function;
applying for a preset memory and assigning the content of the preset memory as the random number;
writing the preset memory into a preset file, and storing the preset file into the EMMC;
reading the preset file stored in the EMMC to obtain read content;
and comparing the read content with the random number, and if the read content is different from the random number, judging that the EMMC hardware is abnormal.
When one machine is used, the EMMC may be abnormal or have problems in quality, the abnormality caused by the EMMC is random and irregular, and if the detection direction of the abnormality is wrong, the detection time is wasted, so that whether the EMMC has problems in hardware or not needs to be judged at first.
The method comprises the steps of generating a random number through a random function, applying for a preset memory, assigning the content of the preset memory to be the random number, writing the preset memory to be a preset file, storing the preset file in the EMMC, obtaining read content by reading the preset file stored in the EMMC, comparing the read content with the random number, judging that EMMC hardware is abnormal if the content is changed, and indicating that the EMMC hardware is normal if the content is the same before and after reading and writing. According to the scheme, when the EMMC is abnormal, whether the EMMC is in hardware or not is judged firstly, and the influence on normal maintenance and use of the EMMC caused by subsequent invalid detection is avoided.
Specifically, when generating the random number, the rand may be used to generate a random number, and before testing, an entry of a testing scheme needs to be provided, so that an engineer may invoke the testing method.
Further, the applying for a preset memory specifically includes:
and applying for a GB-level preset memory to perform high-capacity read-write test of the EMMC.
Specifically, during the test, a high-capacity read-write test may be selected, for example, a 1G preset memory is selected, and the specific value is not limited herein. Generating a random number through rand, applying for a 1G memory, and assigning the content of the memory as the generated random number; writing the content stored in the block into a file and storing the file in the EMMC; reading the stored file, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Further, the applying for a preset memory specifically includes:
and applying for a KB-level preset memory to perform the small file read-write test of the EMMC.
Specifically, during the test, a small file read-write test may be selected, for example, a 10KB preset memory is selected, and the specific numerical value is not limited herein. Generating a random number through rand, applying for a 10KB memory, and assigning the content of the memory as the generated random number; writing the content stored in the block into a file and storing the file in the EMMC; reading the stored file, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Further, the applying for a preset memory specifically includes:
applying for a preset memory of MB level, and carrying out read-write test of the EMMC.
Specifically, during the test, a medium file read-write test may be selected, for example, a preset memory of 1MB is selected, and the specific value is not limited herein. Generating a random number through rand, applying for a 1MB memory, and assigning the content of the memory as the generated random number; writing the content stored in the block into a file and storing the file in the EMMC; reading the stored file, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Further, after assigning the content of the preset memory to the random number, the method further includes:
writing the preset memory into a plurality of preset files, and storing the preset files into the EMMC;
reading a plurality of preset files stored in the EMMC to obtain a plurality of read contents;
and comparing a plurality of read contents with the random number, and if the read contents are different from the random number, judging that the EMMC hardware is abnormal.
In addition, during testing, a plurality of file read-write tests can be carried out, a random number is generated through rand, a 1M memory is applied, the content in the memory is assigned as the generated random number, the content in the memory is written into a plurality of files and stored in the EMMC, namely a plurality of files with the same content and the size of 1M exist in the EMMC; reading the stored files, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Further, the method also comprises the following steps:
creating a plurality of threads, wherein each thread sequentially executes GB-level and/or KB-level and/or MB-level read-write tests, and if the test is interrupted, judging that the EMMC hardware is abnormal;
and waiting for the end of the test of each thread, and judging that the EMMC hardware is abnormal when the read content of the thread is different from the corresponding random number.
When the test is carried out, not only can a large-capacity read-write test, a small file read-write test, a medium file read-write test and a multi-file read-write test be carried out independently, but also each test can be carried out so as to judge whether the EMMC hardware is abnormal or not more accurately. The method comprises the steps that a plurality of threads are created, each thread sequentially executes GB-level and/or KB-level and/or MB-level read-write tests, if the tests are interrupted, the EMMC hardware is indicated to be abnormal, and after the tests of each thread are finished, if the read content of one or more threads is different from the corresponding random number, the EMMC hardware is indicated to be abnormal.
In addition, the present invention also provides an EMMC verification system, including:
the generating module is used for generating a random number through a random function;
the assignment module is connected with the generation module and used for applying for a preset memory and assigning the content of the preset memory as the random number;
the storage module is connected with the assignment module and used for writing the preset memory into a preset file and storing the preset file into the EMMC;
the reading module is connected with the storage module and used for reading the preset file stored in the EMMC to obtain read contents;
and the judging module is connected with the reading module and used for comparing the read content with the random number, and if the read content is different from the random number, judging that the EMMC hardware is abnormal.
When one machine is used, the EMMC may be abnormal or have problems in quality, the abnormality caused by the EMMC is random and irregular, and if the detection direction of the abnormality is wrong, the detection time is wasted, so that whether the EMMC has problems in hardware or not needs to be judged at first.
The method comprises the steps of generating a random number through a random function, applying for a preset memory, assigning the content of the preset memory to be the random number, writing the preset memory to be a preset file, storing the preset file in the EMMC, obtaining read content by reading the preset file stored in the EMMC, comparing the read content with the random number, judging that EMMC hardware is abnormal if the content is changed, and indicating that the EMMC hardware is normal if the content is the same before and after reading and writing. According to the scheme, when the EMMC is abnormal, whether the EMMC is in hardware or not is judged firstly, and the influence on normal maintenance and use of the EMMC caused by subsequent invalid detection is avoided.
Further, the preset memory is a GB-level preset memory, or a KB-level preset memory, or an MB-level preset memory.
Specifically, during the test, a high-capacity read-write test, a small-file read-write test, or a medium-file read-write test may be selected, for example, during the high-capacity read-write test, a preset memory of 1G is selected, during the small-file read-write test, a preset memory of 10KB is selected, and during the medium-file read-write test, a preset memory of 1MB is selected, and the specific numerical values are not limited herein. Generating a random number through rand, applying for a memory with corresponding capacity, and assigning the content of the memory as the generated random number; writing the content stored in the block into a file and storing the file in the EMMC; reading the stored file, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Furthermore, the storage module is further configured to write the preset memory into a plurality of preset files and store the preset files into the EMMC;
the reading module reads a plurality of preset files stored in the EMMC to obtain a plurality of read contents;
and the judging module compares a plurality of read contents with the random number, and judges that the EMMC hardware is abnormal if the read contents are different from the random number.
In addition, during testing, a plurality of file read-write tests can be carried out, a random number is generated through rand, a 1M memory is applied, the content in the memory is assigned as the generated random number, the content in the memory is written into a plurality of files and stored in the EMMC, namely a plurality of files with the same content and the size of 1M exist in the EMMC; reading the stored files, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
In addition, the present invention also provides a storage medium, where at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operations performed by the EMMC verification method.
According to the EMMC verification method, the EMMC verification system and the storage medium, a random number is generated through a random function, a preset memory is applied, the content of the preset memory is assigned to be the random number, then the preset memory is written into a preset file and stored in the EMMC, the read content is obtained by reading the preset file stored in the EMMC, the read content is compared with the random number, if the content is changed, the EMMC hardware is judged to be abnormal, and if the content is the same before and after reading and writing, the EMMC hardware is judged to be normal. According to the scheme, when the EMMC is abnormal, whether the EMMC is in hardware or not is judged firstly, and the influence on normal maintenance and use of the EMMC caused by subsequent invalid detection is avoided.
Drawings
The foregoing features, technical features, advantages and embodiments of the present invention will be further explained in the following detailed description of the preferred embodiments, which is to be read in connection with the accompanying drawings.
FIG. 1 is a schematic overall flow diagram of an embodiment of the present invention;
FIG. 2 is a schematic flow diagram of one embodiment of the present invention;
FIG. 3 is a schematic flow diagram of another embodiment of the present invention;
FIG. 4 is a schematic flow chart of yet another embodiment of the present invention;
FIG. 5 is a schematic flow chart of yet another embodiment of the present invention;
fig. 6 is a schematic system structure according to an embodiment of the present invention.
Reference numbers in the figures: 1-a generation module; 2-a value assignment module; 3-a storage module; 4-a reading module; and 5, a judgment module.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
Example 1
One embodiment of the present invention, as shown in fig. 1, provides an EMMC verification method, including the steps of:
s1, generating a random number by a random function.
Specifically, when generating the random number, the rand may be used to generate a random number, and before testing, an entry of a testing scheme needs to be provided, so that an engineer may invoke the testing method.
S2, applying for a preset memory and assigning the content of the preset memory as a random number.
The size of the preset memory is not fixed, and can be specifically adjusted according to test requirements, for example, during a high-capacity read-write test, a 1G preset memory is selected, during a small-file read-write test, a 10KB preset memory is selected, during a medium-file read-write test, a 1MB preset memory is selected, and specific numerical values are not limited herein.
And S3, writing the preset memory into a preset file and storing the preset file into the EMMC.
And S4, reading the preset file stored in the EMMC to obtain the read content.
And S5, comparing the read content with the random number, and if the read content is not the same as the random number, judging that the EMMC hardware is abnormal.
When one machine is used, the EMMC may be abnormal or have problems in quality, the abnormality caused by the EMMC is random and irregular, and if the detection direction of the abnormality is wrong, the detection time is wasted, so that whether the EMMC has problems in hardware or not needs to be judged at first.
The method comprises the steps of generating a random number through a random function, applying for a preset memory, assigning the content of the preset memory to be the random number, writing the preset memory to be a preset file, storing the preset file in the EMMC, obtaining read content by reading the preset file stored in the EMMC, comparing the read content with the random number, judging that EMMC hardware is abnormal if the content is changed, and indicating that the EMMC hardware is normal if the content is the same before and after reading and writing. According to the scheme, when the EMMC is abnormal, whether the EMMC is in hardware or not is judged firstly, and the influence on normal maintenance and use of the EMMC caused by subsequent invalid detection is avoided.
Example 2
One embodiment of the present invention, as shown in fig. 2, provides an EMMC verification method, including the steps of:
s1, generating a random number by a random function.
Specifically, when generating the random number, the rand may be used to generate a random number, and before testing, an entry of a testing scheme needs to be provided, so that an engineer may invoke the testing method.
And S21, applying for a GB-level preset memory, performing a high-capacity read-write test of the EMMC, and assigning the content of the preset memory as a random number.
And S3, writing the preset memory into a preset file and storing the preset file into the EMMC.
And S4, reading the preset file stored in the EMMC to obtain the read content.
And S5, comparing the read content with the random number, and if the read content is not the same as the random number, judging that the EMMC hardware is abnormal.
Specifically, during the test, a high-capacity read-write test may be selected, for example, a 1G preset memory is selected, and the specific value is not limited herein. Generating a random number through rand, applying for a 1G memory, and assigning the content of the memory as the generated random number; writing the content stored in the block into a file and storing the file in the EMMC; reading the stored file, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Example 3
One embodiment of the present invention, as shown in fig. 3, provides an EMMC verification method, including the steps of:
s1, generating a random number by a random function.
Specifically, when generating the random number, the rand may be used to generate a random number, and before testing, an entry of a testing scheme needs to be provided, so that an engineer may invoke the testing method.
S22, applying for a KB-level preset memory, performing read-write test on the small files of the EMMC, and assigning the content of the preset memory as a random number.
And S3, writing the preset memory into a preset file and storing the preset file into the EMMC.
And S4, reading the preset file stored in the EMMC to obtain the read content.
And S5, comparing the read content with the random number, and if the read content is not the same as the random number, judging that the EMMC hardware is abnormal.
Specifically, during the test, a small file read-write test may be selected, for example, a 10KB preset memory is selected, and the specific numerical value is not limited herein. Generating a random number through rand, applying for a 10KB memory, and assigning the content of the memory as the generated random number; writing the content stored in the block into a file and storing the file in the EMMC; reading the stored file, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Example 4
One embodiment of the present invention, as shown in fig. 4, provides an EMMC verification method, including the steps of:
s1, generating a random number by a random function.
Specifically, when generating the random number, the rand may be used to generate a random number, and before testing, an entry of a testing scheme needs to be provided, so that an engineer may invoke the testing method.
And S23, applying for an MB-level preset memory, performing read-write test of the EMMC, and assigning the content of the preset memory as a random number.
And S3, writing the preset memory into a preset file and storing the preset file into the EMMC.
And S4, reading the preset file stored in the EMMC to obtain the read content.
And S5, comparing the read content with the random number, and if the read content is not the same as the random number, judging that the EMMC hardware is abnormal.
Specifically, during the test, a medium file read-write test may be selected, for example, a preset memory of 1MB is selected, and the specific value is not limited herein. Generating a random number through rand, applying for a 1MB memory, and assigning the content of the memory as the generated random number; writing the content stored in the block into a file and storing the file in the EMMC; reading the stored file, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Example 5
One embodiment of the present invention, as shown in fig. 5, provides an EMMC verification method, including the steps of:
s1, generating a random number by a random function.
Specifically, when generating the random number, the rand may be used to generate a random number, and before testing, an entry of a testing scheme needs to be provided, so that an engineer may invoke the testing method.
S2, applying for a preset memory and assigning the content of the preset memory as a random number.
The size of the preset memory is not fixed, and can be specifically adjusted according to test requirements, for example, during a high-capacity read-write test, a 1G preset memory is selected, during a small-file read-write test, a 10KB preset memory is selected, during a medium-file read-write test, a 1MB preset memory is selected, and specific numerical values are not limited herein.
And S31, writing the preset memory into a plurality of preset files, and storing the preset files into the EMMC.
And S41, reading a plurality of preset files stored in the EMMC to obtain a plurality of read contents.
And S51, comparing the read contents with the random numbers, and if the read contents are different from the random numbers, judging that the EMMC hardware is abnormal.
In addition, during testing, a plurality of file read-write tests can be carried out, a random number is generated through rand, a 1M memory is applied, the content in the memory is assigned as the generated random number, the content in the memory is written into a plurality of files and stored in the EMMC, namely a plurality of files with the same content and the size of 1M exist in the EMMC; reading the stored files, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Example 6
An embodiment of the present invention, on the basis of any one of embodiments 1 to 5, further includes the steps of: creating a plurality of threads, wherein each thread sequentially executes GB-level and/or KB-level and/or MB-level read-write tests, and if the test is interrupted, judging that EMMC hardware is abnormal; and waiting for the end of the test of each thread, and judging that the EMMC hardware is abnormal when the read content of the existing thread is different from the corresponding random number.
When the test is carried out, not only can a large-capacity read-write test, a small file read-write test, a medium file read-write test and a multi-file read-write test be carried out independently, but also each test can be carried out so as to judge whether the EMMC hardware is abnormal or not more accurately. By creating a plurality of threads, each thread sequentially executes GB-level and/or KB-level and/or MB-level read-write tests, if the test is interrupted, EMMC hardware is abnormal, and after the test of each thread is finished, if the read content of one or more threads is different from the corresponding random number, EMMC hardware is abnormal.
Example 7
An embodiment of the present invention, as shown in fig. 6, further provides an EMMC verification system, which includes a generation module 1, an assignment module 2, a storage module 3, a reading module 4, and a determination module 5.
The generating module 1 is used for generating a random number by a random function.
Specifically, when generating the random number, the rand may be used to generate a random number, and before testing, an entry of a testing scheme needs to be provided, so that an engineer may invoke the testing method.
The assignment module 2 is connected to the generation module 1, and is configured to apply for a preset memory and assign the content of the preset memory as a random number.
The size of the preset memory is not fixed, and can be specifically adjusted according to test requirements, for example, during a high-capacity read-write test, a 1G preset memory is selected, during a small-file read-write test, a 10KB preset memory is selected, during a medium-file read-write test, a 1MB preset memory is selected, and specific numerical values are not limited herein.
The storage module 3 is connected with the assignment module 2, and is configured to write the preset memory into a preset file and store the preset file in the EMMC.
The reading module 4 is connected with the storage module 3 and is used for reading the preset file stored in the EMMC to obtain the read content.
The judging module 5 is connected with the reading module 4 and is used for comparing the read content with the random number, and if the read content is different from the random number, judging that the EMMC hardware is abnormal.
When one machine is used, the EMMC may be abnormal or have problems in quality, the abnormality caused by the EMMC is random and irregular, and if the detection direction of the abnormality is wrong, the detection time is wasted, so that whether the EMMC has problems in hardware or not needs to be judged at first.
The method comprises the steps of generating a random number through a random function, applying for a preset memory, assigning the content of the preset memory to be the random number, writing the preset memory to be a preset file, storing the preset file in the EMMC, obtaining read content by reading the preset file stored in the EMMC, comparing the read content with the random number, judging that EMMC hardware is abnormal if the content is changed, and indicating that the EMMC hardware is normal if the content is the same before and after reading and writing. According to the scheme, when the EMMC is abnormal, whether the EMMC is in hardware or not is judged firstly, and the influence on normal maintenance and use of the EMMC caused by subsequent invalid detection is avoided.
Example 8
In an embodiment of the present invention, based on embodiment 7, the preset memory is a GB-level preset memory, a KB-level preset memory, or an MB-level preset memory.
Specifically, during the test, a high-capacity read-write test, a small-file read-write test, or a medium-file read-write test may be selected, for example, during the high-capacity read-write test, a preset memory of 1G is selected, during the small-file read-write test, a preset memory of 10KB is selected, and during the medium-file read-write test, a preset memory of 1MB is selected, and the specific numerical values are not limited herein.
Specifically, a random number is generated through rand, a memory with corresponding capacity is applied, and the content is assigned as the generated random number; writing the content stored in the block into a file and storing the file in the EMMC; reading the stored file, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
Preferably, the storage module is further configured to write the preset memory into a plurality of preset files, and store the preset files into the EMMC; the reading module reads a plurality of preset files stored in the EMMC to obtain a plurality of read contents; the judging module compares the plurality of read contents with the random number, and if the read contents are different from the random number, the EMMC hardware is judged to be abnormal.
Specifically, during testing, a plurality of file read-write tests can be performed, a random number is generated through rand, a 1M internal memory is applied, the content in the internal memory is assigned as the generated random number, the content in the internal memory is written into a plurality of files and stored in the EMMC, namely a plurality of files with the same content and the size of 1M exist in the EMMC; reading the stored files, comparing the read content with a random number to see whether content change occurs, and if so, considering that the EMMC hardware is abnormal; if the contents are the same before and after reading and writing, the test is passed, and the EMMC hardware is normal.
In addition, when the test is carried out, not only can a large-capacity read-write test, a small file read-write test, a medium file read-write test and a multi-file read-write test be carried out independently, but also each test can be carried out, so that whether the EMMC hardware is abnormal or not can be judged more accurately. By creating a plurality of threads, each thread sequentially executes GB-level and/or KB-level and/or MB-level read-write tests, if the test is interrupted, EMMC hardware is abnormal, and after the test of each thread is finished, if the read content of one or more threads is different from the corresponding random number, EMMC hardware is abnormal.
Example 9
In addition, the present invention further provides a storage medium, where at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operations performed by the EMMC verification method according to any one of embodiments 1 to 4. For example, the computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like. They may be implemented in program code that is executable by a computing device such that it may be stored in a memory device and executed by the computing device, or they may be separately fabricated into various integrated circuit modules, or multiple modules or steps thereof may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. An EMMC verification method, comprising the steps of:
generating a random number by a random function;
applying for a preset memory and assigning the content of the preset memory as the random number;
writing the preset memory into a preset file, and storing the preset file into the EMMC;
reading the preset file stored in the EMMC to obtain read content;
and comparing the read content with the random number, and if the read content is different from the random number, judging that the EMMC hardware is abnormal.
2. The EMMC validation method according to claim 1, wherein the applying for a block of default memory specifically comprises:
and applying for a GB-level preset memory to perform high-capacity read-write test of the EMMC.
3. The EMMC validation method according to claim 1, wherein the applying for a block of default memory specifically comprises:
and applying for a KB-level preset memory to perform the small file read-write test of the EMMC.
4. The EMMC validation method according to claim 1, wherein the applying for a block of default memory specifically comprises:
applying for a preset memory of MB level, and carrying out read-write test of the EMMC.
5. The EMMC validation method according to claim 4, wherein: after assigning the content of the preset memory to the random number, the method further comprises the following steps:
writing the preset memory into a plurality of preset files, and storing the preset files into the EMMC;
reading a plurality of preset files stored in the EMMC to obtain a plurality of read contents;
and comparing a plurality of read contents with the random number, and if the read contents are different from the random number, judging that the EMMC hardware is abnormal.
6. The EMMC validation method according to claim 1, further comprising the steps of:
creating a plurality of threads, wherein each thread sequentially executes GB-level and/or KB-level and/or MB-level read-write tests, and if the test is interrupted, judging that the EMMC hardware is abnormal;
and waiting for the end of the test of each thread, and judging that the EMMC hardware is abnormal when the read content of the thread is different from the corresponding random number.
7. An EMMC validation system, comprising:
the generating module is used for generating a random number through a random function;
the assignment module is connected with the generation module and used for applying for a preset memory and assigning the content of the preset memory as the random number;
the storage module is connected with the assignment module and used for writing the preset memory into a preset file and storing the preset file into the EMMC;
the reading module is connected with the storage module and used for reading the preset file stored in the EMMC to obtain read contents;
and the judging module is connected with the reading module and used for comparing the read content with the random number, and if the read content is different from the random number, judging that the EMMC hardware is abnormal.
8. The EMMC validation system of claim 7, wherein: the preset memory is a GB-level preset memory, or a KB-level preset memory, or an MB-level preset memory.
9. The EMMC validation system of claim 7, wherein: the storage module is also used for writing the preset memory into a plurality of preset files and storing the preset files into the EMMC;
the reading module reads a plurality of preset files stored in the EMMC to obtain a plurality of read contents;
and the judging module compares a plurality of read contents with the random number, and judges that the EMMC hardware is abnormal if the read contents are different from the random number.
10. A storage medium, characterized by: the storage medium has stored therein at least one instruction that is loaded and executed by a processor to perform operations performed by the EMMC verification method of any one of claims 1-6.
CN202110697154.0A 2021-06-23 2021-06-23 EMMC (embedded multi media card) verification method, system and storage medium Pending CN113297023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110697154.0A CN113297023A (en) 2021-06-23 2021-06-23 EMMC (embedded multi media card) verification method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110697154.0A CN113297023A (en) 2021-06-23 2021-06-23 EMMC (embedded multi media card) verification method, system and storage medium

Publications (1)

Publication Number Publication Date
CN113297023A true CN113297023A (en) 2021-08-24

Family

ID=77329332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110697154.0A Pending CN113297023A (en) 2021-06-23 2021-06-23 EMMC (embedded multi media card) verification method, system and storage medium

Country Status (1)

Country Link
CN (1) CN113297023A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514958A (en) * 2012-12-31 2014-01-15 Tcl集团股份有限公司 Method for detecting service life of EMMC (embedded multi-media card) chip
CN105304140A (en) * 2014-06-13 2016-02-03 北京安兔兔科技有限公司 Method and apparatus for testing memory performance of electronic equipment
CN105446848A (en) * 2014-06-13 2016-03-30 北京安兔兔科技有限公司 Electronic device data processing performance test method and device
US20160162380A1 (en) * 2014-12-08 2016-06-09 International Business Machines Corporation Implementing processor functional verification by generating and running constrained random irritator tests for multiple processor system and processor core with multiple threads
US20160283711A1 (en) * 2013-12-04 2016-09-29 Huawei Device Co., Ltd. eMMC Monitoring Method and Apparatus
CN106294052A (en) * 2016-07-25 2017-01-04 北京联盛德微电子有限责任公司 The method of testing of a kind of depositor read-write and device
CN106294053A (en) * 2016-07-28 2017-01-04 浪潮电子信息产业股份有限公司 A kind of internal memory performance method of testing and device
CN108508349A (en) * 2018-03-16 2018-09-07 广州视源电子科技股份有限公司 Board stored response testing method, system, storage medium and computer equipment
CN109597731A (en) * 2018-12-10 2019-04-09 浪潮(北京)电子信息产业有限公司 A kind of state test method of processor
CN110188013A (en) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 A kind of log read-write capability test method, device and electronic equipment and storage medium
CN110865909A (en) * 2019-09-23 2020-03-06 福州瑞芯微电子股份有限公司 FPGA-based EMMC interface test device and method
CN112331253A (en) * 2020-10-30 2021-02-05 深圳市宏旺微电子有限公司 Chip testing method, terminal and storage medium
CN112395144A (en) * 2020-11-05 2021-02-23 深圳市鼎盛光电有限公司 Test method, test system, terminal equipment and readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514958A (en) * 2012-12-31 2014-01-15 Tcl集团股份有限公司 Method for detecting service life of EMMC (embedded multi-media card) chip
US20160283711A1 (en) * 2013-12-04 2016-09-29 Huawei Device Co., Ltd. eMMC Monitoring Method and Apparatus
CN105304140A (en) * 2014-06-13 2016-02-03 北京安兔兔科技有限公司 Method and apparatus for testing memory performance of electronic equipment
CN105446848A (en) * 2014-06-13 2016-03-30 北京安兔兔科技有限公司 Electronic device data processing performance test method and device
US20160162380A1 (en) * 2014-12-08 2016-06-09 International Business Machines Corporation Implementing processor functional verification by generating and running constrained random irritator tests for multiple processor system and processor core with multiple threads
CN106294052A (en) * 2016-07-25 2017-01-04 北京联盛德微电子有限责任公司 The method of testing of a kind of depositor read-write and device
CN106294053A (en) * 2016-07-28 2017-01-04 浪潮电子信息产业股份有限公司 A kind of internal memory performance method of testing and device
CN108508349A (en) * 2018-03-16 2018-09-07 广州视源电子科技股份有限公司 Board stored response testing method, system, storage medium and computer equipment
CN109597731A (en) * 2018-12-10 2019-04-09 浪潮(北京)电子信息产业有限公司 A kind of state test method of processor
CN110188013A (en) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 A kind of log read-write capability test method, device and electronic equipment and storage medium
CN110865909A (en) * 2019-09-23 2020-03-06 福州瑞芯微电子股份有限公司 FPGA-based EMMC interface test device and method
CN112331253A (en) * 2020-10-30 2021-02-05 深圳市宏旺微电子有限公司 Chip testing method, terminal and storage medium
CN112395144A (en) * 2020-11-05 2021-02-23 深圳市鼎盛光电有限公司 Test method, test system, terminal equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN111105840B (en) Method, device and system for testing abnormal power failure of solid state disk
US20200117559A1 (en) Data storage device and operating method thereof
CN104699417A (en) Data storage device and data access method thereof
US9047186B2 (en) Allocation method and apparatus of moderate memory
KR20060135036A (en) Test device and test method
US20210373810A1 (en) Data storage device and operating method thereof
CN115440294A (en) Multi-command hybrid test method for NAND Flash controller
CN115482876A (en) Storage device testing method and device, electronic device and storage medium
US7152129B2 (en) Apparatus having an inter-module data transfer confirming function, storage controlling apparatus, and interface module for the apparatus
US11036493B2 (en) Memory system and operating method thereof
CN115543894B (en) Storage system, data processing method and device, storage medium and electronic equipment
CN113297023A (en) EMMC (embedded multi media card) verification method, system and storage medium
US20080195821A1 (en) Method and system of fast clearing of memory using a built-in self-test circuit
CN110990207A (en) BPS memory test method, system, terminal and storage medium based on Whitley platform
CN113470725B (en) Method and device for testing dynamic random access memory
CN102841836B (en) Testing method and programmable processor
US11409473B2 (en) Data storage device and operating method thereof
CN105183398A (en) Storage device, electronic device and data processing method
CN112463042B (en) Data volume import data verification method, device, terminal and storage medium
CN101533372B (en) Data accessing system
CN113948146A (en) Test method and device for solid state disk and electronic equipment
CN103119564A (en) Method and apparatus for checking a main memory of a processor
CN107870736B (en) Method and device for supporting non-linear flash memory larger than 4GB
US20120026795A1 (en) Electronic Apparatus and Data Reading Method
CN110750215A (en) Method and device for improving random reading performance of solid state disk and computer equipment

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