A method and system for automatically testing the reliability of enterprise-level solid-state hard disk firmware refresh
Through the method and system of automated testing of firmware refresh, the problems of system restart and hidden fault detection during the solid-state drive firmware refresh process are solved, the reliability and stability of the firmware refresh process are automatically detected, and the reliability of the solid-state drive firmware refresh is improved. Reliability and testing efficiency.
Patent Information
- Application Number
- CN202410866256.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-01
AI Technical Summary
During the SSD firmware refresh process, it is difficult to ensure that the client system does not restart and detect hidden faults, which affects the reliability and stability of the firmware refresh.
An enterprise-level SSD firmware refresh reliability automatic testing method and system is designed to automatically test the reliability of firmware refresh, simulate interference scenarios, and perform stability checks after the refresh, including firmware version check and error log check. and JESD219A workload random read and write operations to ensure the success and stability of firmware refresh.
It greatly enhances the reliability detection of solid-state drive firmware refresh, reduces manual operation steps, improves testing efficiency, and provides test results through real-time remote monitoring, ensuring the success and stability of firmware refresh.
Smart Images

Figure CN118409919B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of solid state hard disks, and in particular to an enterprise-level solid state hard disk firmware refresh reliability automatic testing method and system. Background Art
[0002] For enterprise-level SSD firmware, firmware refresh will generally optimize performance, improve stability, enhance compatibility and other aspects, and sometimes fix faults to make up for the deficiencies and deficiencies in the research and development stage. Firmware refresh is an after-sales service. During the firmware refresh process, we cannot guarantee whether the user end will accidentally restart the system or update the system log during use, nor can we ensure whether there are hidden faults in the firmware. In order to ensure that the enterprise-level SSD has high-quality firmware refresh on the client side, it is also responsible for the user and the product. The enterprise-level SSD firmware refresh reliability automatic test system device of the present invention can automatically test the reliability of firmware refresh, simulate interference scenarios that may occur during the firmware refresh process, and the stability of the SSD after the firmware refresh. Summary of the invention
[0003] The object of the present invention is to provide an enterprise-level solid-state hard disk firmware refresh reliability automatic testing method and system to solve the problems raised in the above background technology.
[0004] An enterprise-level solid-state hard disk firmware refresh reliability automatic testing method, the method comprises the following steps:
[0005] S1. Firmware refresh preparation: insert the solid-state drive to be tested into the detection position of the automatic test system, and download the firmware image file to be refreshed in the specified path;
[0006] S2, power on and off: The automatic test system sends a firmware submission command and transmits the new firmware submission command to the enterprise-level solid-state drive to be tested, and enters the power-on preparation state. When the enterprise-level hard drive receives the firmware submission command and is about to activate the new firmware, the automatic test system performs a power-off action and waits for 3 seconds before powering on again;
[0007] S3, firmware version check: After power-on, the automatic test system sends a test command to the SSD device to check whether the firmware version number is the same as the firmware version before the update;
[0008] S4. Re-flash the firmware: After the first check is completed, the automatic test system will issue a firmware refresh submission command again without powering off. When the enterprise-level hard disk receives the firmware submission command and prepares to activate the new firmware, the automatic test system will display the state of the solid-state drive device preparing to refresh the firmware and will issue a test command to check the number of error logs at the same time;
[0009] S5. Error log check: The automatic test system shows that the SSD device is in the state of preparing to refresh the firmware, and sends a test command to check the number of error logs;
[0010] S6. Sending unsupported commands: If the number of error logs of the SSD device displayed by the automatic testing system is zero, a command that is not supported by the SSD device will be sent for testing;
[0011] S7, firmware refresh completed: the automatic test system displays that the SSD device has completed the firmware refresh and issued the non-supported command status, indicating that the SSD to be tested has completed the firmware refresh action, and the number of SSD device error logs has been checked during the firmware refresh process;
[0012] S8. Secondary check: check whether the updated firmware version number is the expected firmware version;
[0013] S9, Random Read and Write: The SSD device has completed the inspection after the firmware is refreshed, and the automatic test system performs JESD219A workload random read and write operations on the SSD;
[0014] S10, three checks: After the random full disk read and write operation is completed, the SSD device can be recognized normally, there is no new abnormal count in the error log, and no error is returned when executing the JESD219A workload read and write;
[0015] S11. Refresh completed: The automatic test system displays PASS or FAIL, and the corresponding test archive records can be queried in the specified path of the automatic test system.
[0016] As a further improvement of the present invention, in step S3, the firmware version number is the same as the firmware version before the update, and the solid-state hard disk device is ready to refresh the firmware again;
[0017] If the firmware version number is different from the firmware version before the update, it is determined that the solid state drive device is defective.
[0018] As a further improvement of the present invention, if the number of error logs in step S5 is non-zero, it is determined that the solid state hard disk device is defective;
[0019] If the number of error logs is zero, continue the off-site process to prepare for non-supported commands.
[0020] As a further improvement of the present invention, if the firmware version number after being refreshed in step S8 is the expected version number and the number of device error logs is zero, the solid-state hard disk device is determined to be a good product and the next station read and write test can be continued;
[0021] If the firmware version number after the refresh is not the expected version number and the number of device error logs is non-zero, the solid-state drive device is determined to be defective.
[0022] The present invention also discloses a system for an enterprise-level solid-state hard disk firmware refresh reliability automatic verification method, including an automatic verification system, the automatic verification system includes a host operating system, the host operating system is a computer program for managing and controlling the hardware and software resources of the system device, the host operating system operating environment is a Linux system, runs with administrator privileges, and Linux system tools need to be configured and installed.
[0023] As a further improvement of the present invention, the automatic testing system also includes auxiliary software, which includes a graphical interface for firmware refresh management, issuing inspections, and reading and writing operation instructions. The auxiliary software also includes support for enterprise-level solid-state hard drive device management functions.
[0024] As a further improvement of the present invention, the automatic testing system further includes a power on / off control module, which is a hardware module built into the host operating system and is used for power off and power on management.
[0025] As a further improvement of the present invention, the automatic testing system also includes a detection module, and the detection module is a data management center and a signal transmission center.
[0026] As a further improvement of the present invention, the automatic testing system also includes a device management module, which is used to manage enterprise-level solid-state hard drives. The hardware module of the device management module has a fixed slot for directly connecting the enterprise-level solid-state hard drive to be tested into the system device, and performing signal intercommunication through the serial port line detection module.
[0027] As a further improvement of the present invention, the graphical interface includes automatic scanning or manual triggering of scanning of solid state hard disk devices, a start command box, and a system device starting a firmware refresh reliability automatic verification process.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] During the solid-state hard disk firmware refresh process, the present invention cuts off power to the disk, refreshes the firmware after powering on again, and updates and checks the solid-state hard disk log at the same time to ensure that the solid-state hard disk firmware refresh is successful, and finally the reliability working ability of the enterprise-level solid-state hard disk firmware refresh is tested by executing the JESD219A workload read and write without return error, which greatly enhances the reliability strength of detecting enterprise-level solid-state hard disks. This firmware refresh reliability automatic test system automatically executes the test process and does not require personnel to perform step-by-step operations. The system device is a complete system device and does not need to build a test environment separately. It only needs to directly insert the solid-state hard disk to be tested into the device management slot of the automatic test system, prepare the firmware image file to be refreshed, and click the system device start button to execute the program. The automatic test system is simple to operate, and the system device configuration network terminal can remotely monitor the test status and results in real time, and the test efficiency is also significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a flow chart of the present invention;
[0031] Figure 2 This is a block diagram of the present invention. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] Example 1
[0034] See also Figure 1-2 , the present invention provides the following technical solutions: a system for an automatic verification method for the refresh reliability of enterprise-level solid-state hard disk firmware, including an automatic verification system, the automatic verification system including a host operating system, auxiliary software, a power on / off control module, a detection module and a device management module;
[0035] The host operating system is a computer program used to manage and control the hardware and software resources of the system device. The host operating system runs in the Linux system and is run with administrator privileges. Linux system tools need to be configured and installed, such as the open source disk IO performance test tool fio, the open source hard disk management tool Smartctl (Self-Monitoring, Analysis and Reporting Technology), nvme, and the open source command line tool nvme-cli for managing NVMe devices and drivers.
[0036] The auxiliary software includes a graphical interface for firmware refresh management, issuing inspections, and read and write operation instructions. The graphical interface includes automatic scanning or manual triggering of scanning of solid-state hard disk devices, a start command box, and a system device to start the automatic verification process for the reliability of firmware refresh. The auxiliary software also includes support for enterprise-level solid-state hard disk device management functions, such as NVMe namespace creation management, disk partition format management, etc. When the automatic verification system is started, it will automatically scan all enterprise-level solid-state hard disk devices in the system through the detection module and display them on the auxiliary software interface. The scan can also be manually triggered by the [Scan] button on the interface. In addition, the auxiliary software displays the power-off or power-on status of the monitoring power-on and power-off control module through the interface to issue corresponding power-off and power-on instructions. The auxiliary software displays the status of the detection module through the interface to issue firmware refresh, inspection, read and write and other operation instructions;
[0037] The power-on / off control module is a hardware module built into the host operating system, used for power-off management, to control the power-on / off switching of the device management module, and to prepare for power-on through commands issued by the auxiliary software. When the detection module receives the enterprise-level solid-state hard disk power-off reply signal from the device management module, it triggers the power-on / off control module to power off through the serial port signal. Wait for 3 seconds before powering on again, that is, powering on the solid-state hard disk device;
[0038] The detection module is the data management center and signal transmission center. The auxiliary software displays the status of the detection module through the interface to issue firmware refresh, inspection, read and write and other operation instructions. The status of the detection module includes: the status of the firmware refresh submission command process, the notification of the built-in power-on and power-off control module (power-off and power-on management) to prepare for power-on or power-off status, the completion of the test or update command status, the read and write execution status, etc.
[0039] The device management module is used to manage enterprise-level solid-state drives. There is a fixed slot on the hardware module of the device management module for directly connecting the enterprise-level solid-state drive to be tested to the system device. The signal is exchanged through the serial line detection module, and the built-in power-on and power-off control module receives the signal from the detection module to control the power-on and power-off switching. When the automatic test system is successfully started, the system auxiliary software interface will automatically scan the solid-state drive device. If the solid-state drive device to be tested is not detected, you can manually trigger the scan by manually clicking the [Scan] button on the auxiliary software interface until the solid-state drive device to be tested is detected.
[0040] Example 2
[0041] See also Figure 1-2 The present invention also provides the following technical solution: a method for automatically testing the reliability of enterprise-level solid-state hard disk firmware refresh, the method comprising the following steps:
[0042] S1. Preparation for firmware update: insert the solid-state drive to be tested into the detection position of the automatic test system, and use the auxiliary software to download the firmware image file to be updated from the specified path. The main instruction mode executed by the auxiliary software program is nvmefw-download / dev / nvmexxx -f xxxx.bin, where -f is followed by the firmware image file to be updated.
[0043] S2, power on and off: the auxiliary software sends a firmware submission command and notifies the detection module to transmit the new firmware submission command to the enterprise-level solid-state drive to be tested, and at the same time notifies the power-on and power-off control module (power-off and power-on management) to prepare for power-on. When the enterprise-level hard disk receives the firmware submission command and is about to execute the activation of the new firmware, the automatic detection system performs a power-off action, waits for 3 seconds and then powers on again, that is, the solid-state drive device to be tested is powered on. The main instruction mode executed by the auxiliary software program is nvme fw-commit / dev / nvmexxx -a 3. The instruction to activate the new firmware immediately without resetting the solid-state drive can be selected.
[0044] S3, firmware version check: After the SSD device displayed on its interface has been powered on, the auxiliary software can transmit the inspection instruction to the SSD device through the detection module. The auxiliary software program executes the main instruction mode smartctl -a / dev / nvmexxx to check whether the firmware version number is the same as the firmware version before the update;
[0045] The firmware version number is the same as the firmware version before the update, and the SSD device is ready to refresh the firmware again;
[0046] If the firmware version number is different from the firmware version before the update, it is determined that the solid state drive device is defective.
[0047] S4. Refresh the firmware: After the first check is completed, the auxiliary software detects that the SSD device displayed on its interface by the detection module has completed the first check, and will issue the firmware refresh submission command again, and notify the built-in power-on and power-off control module (power-off and power-on management) not to perform the power-off operation. When the enterprise-level hard disk receives the firmware submission command and prepares to execute the activation of the new firmware, the auxiliary software can detect that the SSD device displayed on its interface by the detection module is in the state of preparing to refresh the firmware, and will simultaneously issue a check instruction to view the number of error logs. The main instruction mode executed by the auxiliary software program is nvmefw-commit / dev / nvmexxx -a 3, and the instruction of the SSD to immediately activate the new firmware without resetting can be selected. At this stage, the firmware refresh is in progress and has not been completed.
[0048] S5. Error log check: The auxiliary software can check the number of error logs by detecting the state of the SSD device displayed on the interface of the module in which the module is preparing to refresh the firmware and issuing a check command at the same time;
[0049] If the number of error logs is non-zero, it is determined that the SSD device is faulty;
[0050] If the number of error log entries is zero, continue the off-site process to prepare for non-supported commands. The main instructions executed by the auxiliary software program can be viewed in num_err_log_entries;
[0051] S6. Sending unsupported commands: The auxiliary software can detect that the number of SSD device error logs displayed by the module on its interface is zero, and send commands that are not supported by the SSD device to check. The main instruction mode executed by the auxiliary software program is nvme get-feature / dev / nvmexxx -f 0xxx.
[0052] S7, firmware refresh completed: The automatic test system displays that the SSD device has completed the firmware refresh and sent the non-supported command status, indicating that the SSD under test has completed the firmware refresh action, and the number of SSD device error logs has been checked during the firmware refresh process.
[0053] S8. Secondary check: The auxiliary software program executes the main instruction mode smartctl -a / dev / nvmexxx to check whether the firmware version number after the update is the expected firmware version;
[0054] If the firmware version number after the update is the expected version number and the number of device error logs is zero, the SSD device is considered to be good and the read and write test can continue;
[0055] If the firmware version number after the refresh is not the expected version number and the number of device error logs is non-zero, the solid-state drive device is determined to be defective.
[0056] S9, Random read and write: The SSD device has completed the inspection after the firmware refresh. The automatic verification system performs JESD219A workload random read and write full disk operations on the SSD, including combinations of IO distributions with different weights from 4K to 64K.
[0057] S10. Three checks: After the random full disk read and write operations are completed, check that the auxiliary software SSD device can be normally identified, there are no new abnormal counts in the error log, and no errors are returned when executing JESD219A workload read and write.
[0058] S11. Refresh completed: The automatic test system displays PASS or FAIL, and the corresponding test archive records can be queried in the specified path of the automatic test system.
[0059] Before the firmware refresh starts, the present invention first connects the enterprise-level solid-state hard disk to be tested to the card slot to be tested of the device management module in a direct plug-in manner, and then powers on the external power supply of the automatic test system. If the automatic test system is powered on successfully, the solid-state hard disk device will be automatically scanned in the auxiliary software interface of the host operating system. If the solid-state hard disk device to be tested is not detected, the scan can be manually triggered by manually clicking the [Scan] button on the auxiliary software interface until the solid-state hard disk device to be tested is detected, and the firmware image file to be refreshed is stored in the path specified by the auxiliary software; finally, the [Start] command box is manually triggered in the auxiliary software interface, and the automatic test system starts the automatic test process of the firmware refresh reliability until the test process is completed. The test results will be intuitively displayed on the auxiliary software interface, such as [PASS] completion, or [FAIL] bad, and the test records can be integrated through the detection module (data management) and stored in the path specified by the auxiliary software. At the same time, the automatic test system is configured with network monitoring, which can be monitored in real time through the terminal.
[0060] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0061] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An automatic test method for the reliability of enterprise-level solid-state hard disk firmware refresh, characterized by: The method comprises the following steps: S1. Firmware refresh preparation: insert the solid-state drive to be tested into the detection position of the automatic test system, and download the firmware image file to be refreshed in the specified path; S2, power on and off: The automatic test system sends a firmware submission command and transmits the new firmware submission command to the enterprise-level solid-state drive to be tested, and enters the power-on preparation state. When the enterprise-level hard drive receives the firmware submission command and is about to activate the new firmware, the automatic test system performs a power-off action and waits for 3 seconds before powering on again; S3, firmware version check: After power-on, the automatic test system sends a test command to the SSD device to check whether the firmware version number is the same as the firmware version before the update; S4. Re-flash the firmware: After the first check is completed, the automatic test system will issue a firmware refresh submission command again without powering off. When the enterprise-level hard disk receives the firmware submission command and prepares to activate the new firmware, the automatic test system will display the state of the solid-state drive device preparing to refresh the firmware and will issue a test command to check the number of error logs at the same time; S5. Error log check: The automatic test system shows that the SSD device is in the state of preparing to refresh the firmware, and sends a test command to check the number of error logs; S6. Sending unsupported commands: If the number of error logs of the SSD device displayed by the automatic testing system is zero, a command that is not supported by the SSD device will be sent for testing; S7, firmware refresh completed: the automatic test system displays that the SSD device has completed the firmware refresh and issued the non-supported command status, indicating that the SSD to be tested has completed the firmware refresh action, and the number of SSD device error logs has been checked during the firmware refresh process; S8. Secondary check: check whether the updated firmware version number is the expected firmware version; S9, Random Read and Write: The SSD device has completed the inspection after the firmware refresh, and the automatic test system performs JESD219A workload random read and write full disk operations on the SSD; S10, three checks: After the random full disk read and write operation is completed, the SSD device can be normally identified, there is no new abnormal count in the error log, and no error is returned when executing the JESD219A workload read and write; S11. Refresh completed: The automatic test system displays PASS or FAIL, and the corresponding test archive records can be queried in the specified path of the automatic test system.
2. The enterprise-level solid-state drive firmware refresh reliability automatic testing method according to claim 1, characterized in that: In step S3, the firmware version number is the same as the firmware version before the update, and the solid-state hard disk device is ready to refresh the firmware again; If the firmware version number is different from the firmware version before the update, it is determined that the solid state drive device is defective.
3. The enterprise-level solid-state drive firmware refresh reliability automatic testing method according to claim 1, characterized in that: If the number of error logs in step S5 is non-zero, it is determined that the solid state drive device is defective; If the number of error logs is zero, continue the off-site process to prepare for non-supported commands.
4. The enterprise-level solid-state drive firmware refresh reliability automatic testing method according to claim 1, characterized in that: If the firmware version number after the update in step S8 is the expected version number and the number of device error logs is zero, the solid-state hard disk device is determined to be a good product and the read and write test can continue at the next station; If the firmware version number after the refresh is not the expected version number and the number of device error logs is non-zero, the solid-state drive device is determined to be defective.
5. A system for implementing the enterprise-level solid-state hard disk firmware refresh reliability automatic testing method as claimed in any one of claims 1 to 4, comprising an automatic testing system, characterized in that: The automatic testing system includes a host operating system, which is a computer program for managing and controlling the hardware and software resources of the system device. The host operating system operating environment is a Linux system, which is run with administrator privileges. Linux system tools need to be configured and installed.
6. The system according to claim 5, characterized in that: The automatic testing system also includes auxiliary software, which includes a graphical interface for firmware refresh management, issuing inspections, and reading and writing operation instructions. The auxiliary software also includes support for enterprise-level solid-state hard disk device management functions.
7. The system according to claim 5, characterized in that: The automatic testing system also includes a power on / off control module, which is a hardware module built into the host operating system and is used for power off and power on management.
8. The system according to claim 5, characterized in that: The automatic testing system also includes a detection module, which is a data management center and a signal transmission center.
9. The system according to claim 5 or 8, characterized in that: The automatic testing system also includes a device management module, which is used to manage enterprise-level solid-state hard drives. The hardware module of the device management module has a fixed slot for directly connecting the enterprise-level solid-state hard drive to be tested to the system device, and performing signal communication through the serial port line detection module.
10. The system according to claim 6, characterized in that: The graphical interface includes automatic scanning or manual triggering of scanning of solid state hard disk devices, a start command box, and a system device starting a firmware refresh reliability automatic verification process.
