Mass production methods, devices, terminal equipment, and computer media for storage hardware
By building a simulated mass production tool on a simulation testing platform and outputting mass production instructions to virtual storage hardware, the problem of complex mass production operations for storage hardware is solved, and the technical effect of simplifying simulation testing and simulated mass production operations is achieved.
Patent Information
- Application Number
- CN202210721230.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2042-06-22
AI Technical Summary
Mass production of existing storage hardware is complex and cannot simulate abnormal situations during operation in a timely manner, resulting in low simulation testing efficiency.
By building a simulated mass production tool on the simulation test platform, mass production instructions are output to the virtual storage hardware, the mass production firmware in the virtual storage hardware is called to execute the instructions and obtain the target mass production data, and the boot program is loaded to perform virtual mass production operations, thus simplifying the simulation test process.
It enables simplified simulation testing and simulated mass production operations for storage hardware before it leaves the factory, improving testing efficiency and allowing for timely simulation of abnormal situations.
Smart Images

Figure CN115186453B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of memory technology, and in particular to a method, apparatus, terminal device, and computer-readable storage medium for mass production of storage hardware. Background Technology
[0002] Storage hardware is one of the most commonly used storage media, widely used in personal computers, servers, and other computer devices. Correspondingly, the mass production process of storage hardware before it leaves the factory is becoming increasingly important. Currently, the mass production process for storage hardware mainly involves using a simulation testing platform developed based on Microsoft Visual Studio 2007. This involves inputting TCM (Tightly Coupled Memory) data, DDR (Double Data Transfer Rate) data, and bad block table information from the solid-state storage hardware to perform simulation tests. Then, mass production is executed based on the simulation test results. This process is relatively complex and cannot simulate abnormal situations that may occur during the operation of the storage hardware in a timely manner. Summary of the Invention
[0003] The present invention provides a method, apparatus, terminal device and computer-readable storage medium for mass production of storage hardware, aiming to simplify the simulation testing process before storage hardware leaves the factory and enable simulated mass production operation of storage hardware.
[0004] This invention provides a method for mass production of storage hardware, the method comprising the following steps:
[0005] Output the preset mass production instructions to the virtual storage hardware corresponding to the target storage hardware;
[0006] The mass production firmware within the virtual storage hardware is invoked to execute the mass production instructions and obtain the target mass production data of the virtual storage hardware.
[0007] The bootloader within the virtual storage hardware is read to load the running firmware within the virtual storage hardware, and the running firmware is invoked to perform a virtual mass production operation according to the target mass production data.
[0008] Furthermore, before the step of outputting the preset mass production command to the virtual storage hardware corresponding to the target storage hardware, the method further includes:
[0009] Obtain the target topology data of the target storage hardware and the bad block status data of each flash memory in the target storage hardware;
[0010] Based on the target topology data, configure the virtual topology data of the virtual storage hardware corresponding to the target storage hardware, and configure the virtual bad block status data of the virtual storage hardware based on the bad block status data.
[0011] Further, the step of calling the mass production firmware within the virtual storage hardware to execute the mass production instructions and obtain the target mass production data of the virtual storage hardware includes:
[0012] The system calls the mass production firmware to read the preset mass production parameters in the mass production instruction, constructs a system block based on the virtual topology data, and constructs a bad block table based on the virtual bad block status data.
[0013] The target mass production data is obtained by inputting the mass production parameters, the system block, and the bad block table into the mass production firmware.
[0014] Further, the step of reading the bootloader within the virtual storage hardware to load the running firmware within the virtual storage hardware includes:
[0015] The boot program within the virtual storage hardware is read using the target mass production data.
[0016] The bootloader loads the running firmware within the virtual storage hardware.
[0017] Further, the step of reading the boot program within the virtual storage hardware using the target mass production data includes:
[0018] Simulate a power outage operation on the virtual storage hardware;
[0019] An additional thread of the simulation test platform is invoked to simulate the main control chip of the virtual storage hardware in order to read the boot program from the flash memory within the virtual storage hardware.
[0020] Furthermore, the method includes:
[0021] A simulated mass production tool is built based on a simulation testing platform. The simulated mass production tool is used to perform simulation testing operations on the target storage hardware and to perform virtual mass production operations on the virtual storage hardware corresponding to the target storage hardware.
[0022] Furthermore, the step of building a simulated mass production tool based on a simulation testing platform includes:
[0023] The first thread of the simulation test platform is invoked to simulate the normal mass production operation of the target storage hardware, and the second thread of the simulation test platform is invoked to simulate the virtual storage hardware.
[0024] The simulated mass production tool is obtained by interacting between the first thread and the second thread.
[0025] Furthermore, to achieve the above objectives, the present invention also provides a mass production apparatus for storage hardware, the apparatus comprising:
[0026] Program building module: Used to output preset mass production instructions to the virtual storage hardware corresponding to the target storage hardware;
[0027] Virtual mass production module: used to call the mass production firmware in the virtual storage hardware to execute the mass production instructions and obtain the target mass production data of the virtual storage hardware;
[0028] Firmware runtime module: used to read the boot program in the virtual storage hardware to load the runtime firmware in the virtual storage hardware, and call the runtime firmware to perform virtual mass production operation according to the target mass production data.
[0029] In addition, to achieve the above objectives, the present invention also provides a terminal device, the terminal device comprising: a memory, a processor, and a mass production program for storage hardware stored in the memory and executable on the processor, wherein the processor executes the mass production program for the storage hardware to implement the steps of the mass production method for the storage hardware as described above.
[0030] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a mass production program for storage hardware, wherein the mass production program for storage hardware, when executed by a processor, implements the steps of the mass production method for storage hardware as described above.
[0031] The mass production method, apparatus, terminal device, and computer-readable storage medium for storage hardware provided in this invention involve: outputting a preset mass production instruction to a virtual storage hardware corresponding to the target storage hardware; calling the mass production firmware within the virtual storage hardware to execute the mass production instruction and obtain the target mass production data of the virtual storage hardware; reading the boot program within the virtual storage hardware to load the running firmware within the virtual storage hardware; and calling the running firmware to perform a virtual mass production operation according to the target mass production data.
[0032] In this embodiment, during operation, the terminal device first uses a simulated mass production tool built on a simulation testing platform to output preset mass production instructions to the virtual storage hardware corresponding to the target storage hardware on the simulation testing platform. The terminal device then calls the mass production firmware in the virtual storage hardware to execute the mass production instructions and obtain the target mass production data of the virtual storage hardware. Afterward, the simulated mass production tool reads a preset boot program from the flash memory in the virtual storage hardware, and the boot program loads and runs the running firmware in the virtual storage hardware to perform virtual mass production operations according to the target mass production data.
[0033] Thus, by constructing a simulated mass production tool on a simulation testing platform, and having this simulated mass production tool output mass production instructions to the virtual storage hardware corresponding to the target storage hardware to obtain the target mass production data of the virtual storage hardware, and loading the running firmware in the virtual storage hardware based on the target mass production data, the present invention eliminates the need to input information such as TCM data, DDR data, and bad block table of the solid-state storage hardware to complete the simulation test. This achieves the technical effect of simplifying the simulation testing process before the storage hardware leaves the factory and enabling simulated mass production operations on the storage hardware. Attached Figure Description
[0034] Figure 1 This is a schematic diagram of the structure of the terminal device in the hardware operating environment involved in the embodiments of the present invention;
[0035] Figure 2 This is a flowchart illustrating an embodiment of the mass production method for the storage hardware of the present invention.
[0036] Figure 3 This is a detailed flowchart of step S20 in an embodiment of the mass production method of the storage hardware of the present invention.
[0037] Figure 4 This is a detailed flowchart of step S30 in an embodiment of the mass production method of the storage hardware of the present invention.
[0038] Figure 5 This is a schematic diagram of the functional modules involved in an embodiment of the mass production method of the storage hardware of the present invention.
[0039] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0040] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0041] Please refer to Figure 1 , Figure 1This is a schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiments of the present invention.
[0042] It should be noted that, Figure 1 This can be a schematic diagram of the hardware operating environment of the terminal device. In this embodiment of the invention, the terminal device can be a PC equipped with a simulation testing platform. Of course, the terminal device can also be a mobile terminal, a data storage and control terminal, or a portable computer, etc.
[0043] like Figure 1 As shown, the terminal device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0044] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the terminal device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0045] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a mass production program for the storage hardware. The operating system is a program that manages and controls the hardware and software resources of the sample terminal device, and supports the mass production program for the storage hardware as well as the operation of other software or programs.
[0046] exist Figure 1In the terminal device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and memory 1005 in the terminal device of the present invention can be set in the terminal device, and the terminal device calls the mass production program of the storage hardware stored in the memory 1005 through the processor 1001 and performs the following operations:
[0047] Output the preset mass production instructions to the virtual storage hardware corresponding to the target storage hardware;
[0048] The mass production firmware within the virtual storage hardware is invoked to execute the mass production instructions and obtain the target mass production data of the virtual storage hardware.
[0049] The bootloader within the virtual storage hardware is read to load the running firmware within the virtual storage hardware, and the running firmware is invoked to perform a virtual mass production operation according to the target mass production data.
[0050] Furthermore, the processor 1001 can call the mass production program for the storage hardware stored in the memory 1005, and also perform the following operations:
[0051] Obtain the target topology data of the target storage hardware and the bad block status data of each flash memory in the target storage hardware;
[0052] Based on the target topology data, configure the virtual topology data of the virtual storage hardware corresponding to the target storage hardware, and configure the virtual bad block status data of the virtual storage hardware based on the bad block status data.
[0053] Furthermore, the processor 1001 can call the mass production program for the storage hardware stored in the memory 1005, and also perform the following operations:
[0054] The system calls the mass production firmware to read the preset mass production parameters in the mass production instruction, constructs a system block based on the virtual topology data, and constructs a bad block table based on the virtual bad block status data.
[0055] The target mass production data is obtained by inputting the mass production parameters, the system block, and the bad block table into the mass production firmware.
[0056] Furthermore, the processor 1001 can call the mass production program for the storage hardware stored in the memory 1005, and also perform the following operations:
[0057] The boot program within the virtual storage hardware is read using the target mass production data.
[0058] The bootloader loads the running firmware within the virtual storage hardware.
[0059] Furthermore, the processor 1001 can call the mass production program for the storage hardware stored in the memory 1005, and also perform the following operations:
[0060] Simulate a power outage operation on the virtual storage hardware;
[0061] An additional thread of the simulation test platform is invoked to simulate the main control chip of the virtual storage hardware in order to read the boot program from the flash memory within the virtual storage hardware.
[0062] Furthermore, the processor 1001 can call the mass production program for the storage hardware stored in the memory 1005, and also perform the following operations:
[0063] A simulated mass production tool is built based on a simulation testing platform. The simulated mass production tool is used to perform simulation testing operations on the target storage hardware and to perform virtual mass production operations on the virtual storage hardware corresponding to the target storage hardware.
[0064] Furthermore, the processor 1001 can call the mass production program for the storage hardware stored in the memory 1005, and also perform the following operations:
[0065] The first thread of the simulation test platform is invoked to simulate the normal mass production operation of the target storage hardware, and the second thread of the simulation test platform is invoked to simulate the virtual storage hardware.
[0066] The simulated mass production tool is obtained by interacting between the first thread and the second thread.
[0067] Based on the above structure, various embodiments of the mass production method of the storage hardware of the present invention are proposed.
[0068] It should be noted that in this embodiment, storage hardware is one of the most commonly used storage media, widely used in computer devices such as personal computers and servers. Correspondingly, the mass production operation of storage hardware before leaving the factory has become increasingly important. Currently, the mass production operation of storage hardware mainly involves simulating and testing the storage hardware on a simulation test platform developed based on the VS2007 tool by inputting information such as the TCM data, DDR data, and bad block table of the solid-state storage hardware. Then, the mass production operation is performed on the storage hardware based on the simulation test results. Thus, the mass production operation process of storage hardware is relatively complex and cannot simulate abnormal situations that occur during the operation of storage hardware in a timely manner.
[0069] To address the aforementioned issues, this application provides a method, apparatus, terminal device, and computer-readable storage medium for mass production of storage hardware. The method involves: outputting a preset mass production instruction to virtual storage hardware corresponding to the target storage hardware; executing the mass production instruction using the mass production firmware within the virtual storage hardware to obtain target mass production data for the virtual storage hardware; loading the running firmware within the virtual storage hardware based on the target mass production data; and executing a virtual mass production operation using the running firmware according to the target mass production data.
[0070] In this embodiment, during operation, the terminal device first uses a simulated mass production tool built on a simulation testing platform to output preset mass production instructions to the virtual storage hardware corresponding to the target storage hardware on the simulation testing platform. The terminal device then calls the mass production firmware in the virtual storage hardware to execute the mass production instructions and obtain the target mass production data of the virtual storage hardware. Afterward, the simulated mass production tool reads a preset boot program from each flash memory in the virtual storage hardware based on the target mass production data. The boot program loads and runs the running firmware in the virtual storage hardware to perform virtual mass production operations according to the target mass production data.
[0071] Thus, by constructing a simulated mass production tool on a simulation testing platform, and having the simulated mass production tool output mass production instructions to the virtual storage hardware corresponding to the target storage hardware to obtain the target mass production data of the virtual storage hardware, and loading the running firmware in the virtual storage hardware based on the target mass production data, the present invention achieves the technical effect of simplifying the simulation testing process before the storage hardware leaves the factory and enabling simulated mass production operations on the storage hardware.
[0072] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the mass production method for the storage hardware of the present invention.
[0073] It should be understood that although the logical order is shown in the flowchart, in some cases the mass production method of the storage hardware of the present invention may of course perform the steps shown or described in a different order than that shown here.
[0074] Step S10: Output the preset mass production command to the virtual storage hardware corresponding to the target storage hardware;
[0075] In this embodiment, during operation, the terminal device receives a user-triggered instruction to perform virtual mass production on the virtual storage hardware. The terminal device reads the instruction to obtain the mass production instruction carried within it, and then outputs the mass production instruction to the virtual storage hardware corresponding to the target storage hardware on the simulation test platform within the terminal device.
[0076] For example, during operation, the terminal device outputs a visual interface to the mobile terminal bound to the user. The user triggers a command to perform virtual mass production on the virtual storage hardware through the visual interface. The terminal device receives and reads the command to obtain the mass production command carried in the command. The terminal device outputs the mass production command to the virtual storage hardware corresponding to the target storage hardware on the simulation test platform through the simulation mass production tool mounted on the simulation test platform within the terminal device.
[0077] Furthermore, in a feasible embodiment, prior to step S10 above, the mass production method of the storage hardware of the present invention may further include:
[0078] Step A01: Obtain the target topology data of the target storage hardware and the bad block status data of each flash memory in the target storage hardware.
[0079] In this embodiment, the terminal device reads the target topology data of the target storage hardware through the simulation test platform. At the same time, the simulation test platform tests each flash memory in the target storage hardware to obtain the bad block status data of each flash memory.
[0080] Step A02: Configure virtual topology data of virtual storage hardware corresponding to the target storage hardware based on the target topology data, and configure virtual bad block status data of the virtual storage hardware based on each bad block status data;
[0081] In this embodiment, the terminal device calls the aforementioned simulation test platform to read the aforementioned target topology data, and configures the virtual topology data of the virtual storage hardware on the simulation test platform based on the target topology data. At the same time, the simulation test platform reads the aforementioned bad block status data, and configures the virtual bad block status data of the virtual storage hardware based on the bad block status data.
[0082] For example, a terminal device calls a simulation testing platform to perform simulation testing on the aforementioned virtual storage hardware and obtains simulation test results. The terminal device then calls a simulated mass production tool within the simulation testing platform to read the simulation test results and obtain the target topology data of the target storage hardware. Simultaneously, the simulation testing platform tests each flash memory within the target storage hardware to obtain bad block status data for each flash memory. Afterward, the simulated mass production tool reads the target topology data and configures the virtual topology data of the virtual storage hardware on the simulation testing platform based on the target topology data. At the same time, the simulated mass production tool reads the bad block status data and configures the virtual bad block status data of the virtual storage hardware based on the bad block status data, so that the virtual topology data and virtual bad block status data of the virtual storage hardware are consistent with the target topology data and bad block status data of the target storage hardware.
[0083] It should be noted that, in this embodiment, users can also configure the virtual topology data and virtual bad block status data of the virtual storage hardware in various ways according to the actual mass production operation needs, so as to meet different testing requirements. The mass production method of the storage hardware of the present invention does not limit the configuration of the virtual topology data and virtual bad block status data of the virtual storage hardware.
[0084] Step S20: Invoke the mass production firmware in the virtual storage hardware to execute the mass production instruction and obtain the target mass production data of the virtual storage hardware;
[0085] In this embodiment, after the terminal device outputs the mass production instruction to the virtual storage hardware, the terminal device calls the mass production firmware in the virtual storage hardware to receive and respond to the mass production instruction, and reads the mass production parameters, virtual topology data and virtual bad block status data contained in the instruction through the mass production firmware, and obtains the target mass production data corresponding to the virtual storage hardware based on the data.
[0086] For example, after the terminal device outputs the mass production instruction to the virtual storage hardware, the terminal device calls the mass production firmware in the virtual storage hardware to receive and respond to the mass production instruction, and reads the mass production parameters, virtual topology data and virtual bad block status data contained in the instruction through the mass production firmware. The mass production firmware first reads the preset ini configuration file contained in the mass production parameters. At the same time, the mass production firmware constructs a system block and a bad block table according to the instruction. The mass production firmware obtains the target mass production data of the virtual storage hardware based on the ini configuration file, the system block and the bad block table.
[0087] Further, please refer to Figure 3 , Figure 3This is a detailed flowchart illustrating step S20 of an embodiment of the mass production method for storage hardware of the present invention. In one feasible embodiment, step S20 may specifically include:
[0088] Step S201: Call the mass production firmware to read the preset mass production parameters in the mass production instruction, and construct a system block based on the virtual topology data, and construct a bad block table based on the virtual bad block status data;
[0089] In this embodiment, the terminal device calls the mass production firmware in the virtual storage hardware to receive and respond to the mass production instruction. At the same time, the mass production firmware reads the user-preset mass production parameters, virtual topology data and virtual bad block status data carried in the mass production instruction. The mass production firmware constructs the system block of the virtual storage hardware according to the virtual topology data, and constructs the bad block table of the virtual storage hardware according to the virtual bad block status data.
[0090] Step S202: Input each of the mass production parameters, the system block, and the bad block table into the mass production firmware to calculate the target mass production data;
[0091] In this embodiment, the control system integrated in the terminal device reads the aforementioned mass production parameters, the aforementioned system block, and the aforementioned bad block table, and inputs the aforementioned mass production parameters, the aforementioned system block, and the aforementioned bad block table into the aforementioned mass production firmware. The mass production firmware calculates the target mass production data for performing virtual mass production operations based on the aforementioned mass production parameters, the aforementioned system block, and the aforementioned bad block table.
[0092] For example, the terminal device calls the mass production firmware within the virtual storage hardware to receive and respond to the mass production instruction. Simultaneously, the mass production firmware reads the user-preset ini configuration file carried in the mass production instruction. The mass production firmware obtains various mass production parameters, such as factory information data, storage hardware parameter information data, and storage hardware capacity information data, for mass production operations on the target storage hardware through the ini configuration file. At the same time, the mass production firmware obtains the virtual topology data and the virtual bad block status data according to the instruction. The mass production firmware constructs the system block of the virtual storage hardware based on the virtual topology data and constructs the bad block table of the virtual storage hardware based on the virtual bad block status data. Then, the control system integrated in the terminal device reads the mass production parameters, the system block, and the bad block table, and inputs the mass production parameters, the system block, and the bad block table into the mass production firmware. At the same time, the mass production firmware calls the calculation model within the simulated mass production tool of the simulation test platform to calculate the target mass production data for virtual mass production operations.
[0093] It should be noted that, in addition to the factory information data, storage hardware parameter information data, and storage hardware capacity information data carried in the above-mentioned ini configuration file, it can also carry other types of data used for mass production operations of the storage hardware. The mass production method of the storage hardware of the present invention does not limit the type of mass production parameters.
[0094] Step S30: Read the boot program in the virtual storage hardware to load the running firmware in the virtual storage hardware, and call the running firmware to perform virtual mass production operation according to the target mass production data;
[0095] In this embodiment, after the terminal device obtains the target mass production data, the terminal device simulates the main control chip of the virtual storage hardware through the simulation test platform, and reads the user-preset boot program in the virtual storage hardware through the main control chip. The boot program reads the target mass production data and loads the running firmware. At the same time, the terminal device calls the running firmware to perform virtual mass production operation according to the target mass production data.
[0096] For example, after acquiring the target mass production data, the terminal device simulates the main control chip of the virtual storage hardware using the simulated mass production tool in the simulation test platform. The terminal device then reads the user-preset boot program from each flash memory in the virtual storage hardware through the main control chip. After that, the boot program reads the target mass production data and loads the aforementioned running firmware. Finally, the terminal device calls the running firmware and performs virtual mass production operations according to the target mass production data through the running firmware.
[0097] Further, please refer to Figure 4 , Figure 4 This is a detailed flowchart illustrating step S30 of an embodiment of the mass production method for storage hardware of the present invention. In one feasible embodiment, step S30 may specifically include:
[0098] Step S301: Read the boot program in the virtual storage hardware using the target mass production data;
[0099] In this embodiment, the terminal device inputs the target mass production data obtained above into the simulation test platform, which then calls the simulated mass production tool to simulate the main control chip of the virtual storage hardware based on the target mass production data. The terminal device then reads the boot program in the virtual storage hardware through the main control chip.
[0100] Step S302: The bootloader loads the running firmware within the virtual storage hardware;
[0101] In this embodiment, after reading the bootloader, the terminal device calls the bootloader to load the firmware. The terminal device then uses the firmware to perform virtual mass production on the virtual storage hardware according to the target mass production data.
[0102] For example, the terminal device inputs the target mass production data obtained above into the simulation test platform, and the simulated mass production tool in the simulation test platform reads the target mass production data. The terminal device uses the simulated mass production tool to simulate the main control chip of the virtual storage hardware on the simulation test platform. The terminal device uses the main control chip to read each flash memory in the virtual storage hardware to obtain the user-preset boot program. Then, the terminal device calls the boot program to load the running firmware. The terminal device uses the running firmware to perform virtual mass production operations on the virtual storage hardware according to the target mass production data.
[0103] Furthermore, in a feasible embodiment, step S301 specifically includes:
[0104] Step B01: Simulate a power failure operation on the virtual storage hardware;
[0105] In this embodiment, after obtaining the target mass production data, the terminal device calls the simulation test platform to perform a simulated power-off operation on the virtual storage hardware to obtain the virtual storage hardware in a power-off state.
[0106] Step B02: Call an additional thread of the simulation test platform to simulate the main control chip of the virtual storage hardware to read the boot program from the flash memory within the virtual storage hardware;
[0107] In this embodiment, the terminal device calls an additional thread of the simulation test platform to simulate the main control chip of the virtual storage hardware in a power-off state, and reads each flash memory in the virtual storage hardware through the simulated main control chip to read the user-preset boot program in each flash memory.
[0108] For example, after obtaining the target mass production data, the terminal device calls the simulated mass production tool in the simulation test platform to simulate a power-off operation on the virtual storage hardware to obtain the virtual storage hardware in a power-off state. Then, the terminal device calls an additional thread in the simulation test platform to simulate the main control chip of the virtual storage hardware in a power-off state. The terminal device reads each flash memory in the virtual storage hardware through the main control chip to obtain the user-preset boot program in each flash memory.
[0109] Furthermore, in one feasible embodiment, the mass production method of the storage hardware of the present invention may further include:
[0110] Step C: Build a simulated mass production tool based on the simulation test platform, wherein the simulated mass production tool is used to perform simulation test operations on the target storage hardware and to perform virtual mass production operations on the virtual storage hardware corresponding to the target storage hardware;
[0111] In this embodiment, the user pre-packages a simulation test platform that can simulate and test the target storage hardware without requiring input of various target data and output simulation test results into a data packet. This data packet is then output to the terminal device via another terminal device bound to the terminal device. The terminal device parses the data packet and installs the simulation test platform to perform simulation operations on the target storage hardware and virtual mass production operations on the virtual storage hardware corresponding to the target storage hardware. Simultaneously, the terminal device calls its built-in development tools to build a simulated mass production tool based on the simulation test data packet.
[0112] For example, a user pre-packages a simulation test platform that can simulate and test the target storage hardware without requiring input of various target data and output simulation test results into a data packet. The user outputs the data packet to the terminal device via a local gateway protocol through another terminal device bound to the terminal device. The terminal device calls the control system to receive and read the simulation test platform in the data packet, and installs the simulation test platform in the terminal device for simulating the target storage hardware and performing virtual mass production operations on the virtual storage hardware corresponding to the target storage hardware. Afterwards, the terminal device calls the built-in Mptools development tool, and the terminal device uses the Mptools development tool to build a simulated mass production tool based on the simulation test platform.
[0113] Furthermore, in one feasible embodiment, step C above may specifically include:
[0114] Step C01: Call the first thread of the simulation test platform to simulate the normal mass production operation of the target storage hardware, and at the same time, call the second thread of the simulation test platform to simulate the virtual storage hardware;
[0115] In this embodiment, the terminal device reads the aforementioned development tool, obtains the first thread of the aforementioned simulation test platform through the development tool, and controls the first thread to simulate the user-preset conventional mass production operation. At the same time, the terminal device obtains the second thread of the simulation test platform through the development tool and controls the second thread to simulate the aforementioned virtual storage hardware.
[0116] Step C02: Interact the first thread with the second thread to obtain the simulated mass production tool;
[0117] In this embodiment, the terminal device controls the first thread to output conventional mass production operation data. At the same time, the terminal device calls the development tool to control the second thread to output virtual storage hardware data. The development tool is used to set the first thread and the second thread to interact with each other according to a preset interaction method to obtain the mass production tool.
[0118] For example, the terminal device reads the aforementioned Mptools development tool. The terminal device obtains all threads within the aforementioned simulation test platform through the Mptools development tool, and within each thread, obtains the first thread of the simulation test platform. The terminal device calls the Mptools development tool to set the first thread to output conventional storage hardware mass production operation data. Simultaneously, the terminal device calls the Mptools development tool to set and obtain the second thread of the simulation test platform to output virtual storage hardware data. At the same time, the terminal device calls the Mptools development tool to set the interaction between the first thread and the second thread for the aforementioned data.
[0119] In this embodiment, during operation, the terminal device receives a user-triggered instruction to perform virtual mass production on the virtual storage hardware. The terminal device reads the instruction to obtain the mass production instructions carried within it. The terminal device then outputs these mass production instructions to the virtual storage hardware corresponding to the target storage hardware on the simulation test platform within the terminal device. After outputting the mass production instructions to the virtual storage hardware, the terminal device invokes the mass production firmware within the virtual storage hardware to receive and respond to the mass production instructions. It then reads the mass production parameters, virtual topology data, and virtual bad block status data contained within the instructions through the mass production firmware, and obtains the target mass production data corresponding to the virtual storage hardware based on this data. Finally, after obtaining the target mass production data, the terminal device simulates the main control chip of the virtual storage hardware through the simulation test platform and reads the user-preset boot program within the virtual storage hardware through the main control chip. The boot program reads the target mass production data and loads the aforementioned running firmware. Simultaneously, the terminal device invokes the running firmware to perform the virtual mass production operation according to the target mass production data.
[0120] Thus, by constructing a simulated mass production tool on a simulation testing platform, and having the simulated mass production tool output mass production instructions to the virtual storage hardware corresponding to the target storage hardware to obtain the target mass production data of the virtual storage hardware, and loading the running firmware in the virtual storage hardware based on the target mass production data, the present invention achieves the technical effect of simplifying the simulation testing process before the storage hardware leaves the factory and enabling simulated mass production operations on the storage hardware.
[0121] Furthermore, the present invention also provides a mass production apparatus for storage hardware, please refer to... Figure 5 The present invention also proposes a mass production apparatus for storage hardware, the storage hardware mass production apparatus of the present invention comprising:
[0122] Program building module: Used to output preset mass production instructions to the virtual storage hardware corresponding to the target storage hardware;
[0123] Virtual mass production module: used to call the mass production firmware in the virtual storage hardware to execute the mass production instructions and obtain the target mass production data of the virtual storage hardware;
[0124] Firmware runtime module: used to read the boot program in the virtual storage hardware to load the runtime firmware in the virtual storage hardware, and call the runtime firmware to perform virtual mass production operation according to the target mass production data.
[0125] Furthermore, the program building modules include:
[0126] Status acquisition unit: used to acquire target topology data of the target storage hardware and bad block status data of each flash memory in the target storage hardware;
[0127] Status configuration unit: used to configure virtual topology data of virtual storage hardware corresponding to the target storage hardware based on the target topology data, and to configure virtual bad block status data of the virtual storage hardware based on each bad block status data.
[0128] Furthermore, the virtual mass production module includes:
[0129] Parameter configuration unit: used to call the mass production firmware to read the preset mass production parameters in the mass production instruction, and to construct a system block based on the virtual topology data, and to construct a bad block table based on the virtual bad block status data;
[0130] Parameter acquisition unit: used to input the mass production parameters, the system block and the bad block table into the mass production firmware to calculate the target mass production data.
[0131] Furthermore, the firmware runtime module includes:
[0132] Program acquisition unit: used to read the boot program in the virtual storage hardware through the target mass production data;
[0133] Firmware loading unit: used to load the running firmware within the virtual storage hardware by the bootloader.
[0134] Furthermore, the program acquisition unit includes:
[0135] Simulated power failure unit: used to simulate power failure operation of the virtual storage hardware;
[0136] Program reading subunit: used to call an additional thread of the simulation test platform to simulate the main control chip of the virtual storage hardware to read the boot program from the flash memory within the virtual storage hardware.
[0137] Furthermore, the program building module also includes:
[0138] Tool building unit: used to build a simulated mass production tool based on the simulation test platform, wherein the simulated mass production tool is used to perform simulation test operations on the target storage hardware and virtual mass production operations on the virtual storage hardware corresponding to the target storage hardware.
[0139] Furthermore, the tool building blocks include:
[0140] Thread simulation subunit: used to call the first thread of the simulation test platform to simulate the normal mass production operation of the target storage hardware, and at the same time, call the second thread of the simulation test platform to simulate the virtual storage hardware;
[0141] Thread interaction subunit: used to enable the first thread and the second thread to interact to obtain the simulated mass production tool.
[0142] Furthermore, the present invention also provides a terminal device having a mass production program for storage hardware that can run on a processor. When the terminal device executes the mass production program for the storage hardware, it implements the steps of the mass production method for the storage hardware as described in any of the above embodiments.
[0143] The specific embodiments of the terminal device of the present invention are basically the same as the embodiments of the mass production method of the storage hardware described above, and will not be repeated here.
[0144] Furthermore, the present invention also provides a computer-readable storage medium storing a mass production program for storage hardware, wherein the mass production program for storage hardware, when executed by a processor, implements the steps of the mass production method for storage hardware as described in any of the above embodiments.
[0145] The specific embodiments of the computer-readable storage medium of this invention are basically the same as the embodiments of the mass production method of the storage hardware described above, and will not be described in detail here.
[0146] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0147] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0148] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which can be a PC equipped with a simulation testing platform; of course, the terminal device can also be a mobile terminal, data storage control terminal, or portable computer, etc.) to execute the methods described in the various embodiments of the present invention.
[0149] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for mass-producing storage hardware, characterized in that, The mass production method for the storage hardware includes the following steps: Obtain the target topology data of the target storage hardware and the bad block status data of each flash memory in the target storage hardware; Based on the target topology data, configure the virtual topology data of the virtual storage hardware corresponding to the target storage hardware, and configure the virtual bad block status data of the virtual storage hardware based on the bad block status data of each bad block. A simulated mass production tool is built based on a simulation testing platform. The simulated mass production tool is used to perform simulation testing operations on the target storage hardware and virtual mass production operations on the virtual storage hardware. The simulated mass production tool outputs preset mass production instructions to the virtual storage hardware. The mass production firmware of the virtual storage hardware is invoked to read the preset mass production parameters, virtual topology data, virtual bad block status data and preset ini configuration files in the mass production instructions, and the system block and bad block table are constructed by the mass production firmware according to the mass production instructions. The ini configuration file, the system block, and the bad block table are input into the mass production firmware, and the mass production firmware calls the calculation model in the simulated mass production tool to calculate the target mass production data. Simulate a power outage operation on the virtual storage hardware; The simulation test platform calls an additional thread to simulate the main control chip of the virtual storage hardware to read a preset boot program from the flash memory within the virtual storage hardware; The bootloader loads the running firmware within the virtual storage hardware and calls the running firmware to perform a virtual mass production operation according to the target mass production data.
2. The mass production method for storage hardware as described in claim 1, characterized in that, The steps for building a simulated mass production tool based on a simulation testing platform include: The first thread of the simulation test platform is invoked to simulate the normal mass production operation of the target storage hardware, and the second thread of the simulation test platform is invoked to simulate the virtual storage hardware. The simulated mass production tool is obtained by interacting between the first thread and the second thread.
3. A mass production apparatus for storage hardware, characterized in that, The device includes: The program construction module is used to acquire target topology data of the target storage hardware and bad block status data of each flash memory within the target storage hardware; configure virtual topology data of the virtual storage hardware corresponding to the target storage hardware based on the target topology data, and configure virtual bad block status data of the virtual storage hardware based on each bad block status data; construct a simulated mass production tool based on a simulation testing platform, wherein the simulated mass production tool is used to perform simulation testing operations on the target storage hardware and virtual mass production operations on the virtual storage hardware; and output preset mass production instructions to the virtual storage hardware through the simulated mass production tool. Virtual mass production module: Used to call the mass production firmware of the virtual storage hardware to read the preset mass production parameters, virtual topology data, virtual bad block status data and preset INI configuration files in the mass production instructions, and to construct system blocks and bad block tables according to the mass production instructions through the mass production firmware; input the INI configuration files, system blocks and bad block tables into the mass production firmware, and call the mass production firmware to call the calculation model in the simulated mass production tool to calculate the target mass production data; Firmware execution module: used to simulate power failure operation of the virtual storage hardware; call the additional thread of the simulation test platform to simulate the main control chip of the virtual storage hardware to read the preset boot program in the flash memory of the virtual storage hardware; the boot program loads the running firmware in the virtual storage hardware, and calls the running firmware to perform virtual mass production operation according to the target mass production data.
4. A terminal device, characterized in that, The terminal device includes: a memory, a processor, and a mass production program for the storage hardware stored in the memory and executable on the processor. When the mass production program for the storage hardware is executed by the processor, it implements the steps of the mass production method for the storage hardware as described in claim 1 or 2.
5. A computer storage medium, characterized in that, The computer storage medium stores a mass production program for the storage hardware, which, when executed by a processor, implements the steps of the mass production method for the storage hardware as described in claim 1 or 2.
Citation Information
Patent Citations
Device and method for mass production of flash memory equipment
CN102214108A
Method of testing life cycle of Nand flash
CN106205737A