CN112667442B - Control method, device and equipment based on nonvolatile memory device starting system - Google Patents
Control method, device and equipment based on nonvolatile memory device starting system Download PDFInfo
- Publication number
- CN112667442B CN112667442B CN202011604384.XA CN202011604384A CN112667442B CN 112667442 B CN112667442 B CN 112667442B CN 202011604384 A CN202011604384 A CN 202011604384A CN 112667442 B CN112667442 B CN 112667442B
- Authority
- CN
- China
- Prior art keywords
- nonvolatile memory
- memory device
- target nonvolatile
- address range
- address
- 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.)
- Active
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
The invention discloses a control method, a device, equipment and a computer readable storage medium based on a nonvolatile memory device starting system, which are characterized in that a kernel mirror image file is stored by a target nonvolatile memory device to obtain a faster starting speed, after a basic input/output system is electrified, the target nonvolatile memory device is determined according to address information of the pre-stored kernel mirror image file, and then address range inspection is carried out on the target nonvolatile memory device according to the address information of the kernel mirror image file to obtain an address range inspection result of the target nonvolatile memory device, if the target nonvolatile memory device has uncorrectable errors, the information of system starting failure caused by the failure of the target nonvolatile memory device is output, so that whether the target nonvolatile memory device has uncorrectable errors or not can be rapidly judged after the equipment is started and a user is informed, and the situation that the user cannot timely cope with the equipment failure caused by the starting failure causes of the problems is avoided.
Description
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a control method, apparatus, device, and computer readable storage medium for a nonvolatile memory device-based startup system.
Background
In a storage system, to ensure the reliability of system startup, the operating system kernel of the device is typically stored on a nonvolatile Memory (DCPMM) device of a Dual-Inline-Memory-Modules (DIMM) slot.
However, the data on the nonvolatile memory device may be permanently lost, i.e., uncorrectable errors (uncorrectable error, UC) occur in the data, and the device may be in a difficulty state that it cannot be started, and the user cannot learn the reason of the start failure, so that the device failure of this type cannot be dealt with in time.
Disclosure of Invention
The invention aims to provide a control method, a device, equipment and a computer readable storage medium based on a nonvolatile memory device starting system, which are used for timely finding out the fault condition of a target nonvolatile memory device storing a kernel image file in the nonvolatile memory device starting system so as to enable a user to learn the fault cause and timely process the fault cause.
In order to solve the above technical problems, the present invention provides a control method based on a nonvolatile memory device start-up system, based on a basic input/output system, including:
after power-on, determining a target nonvolatile memory device for storing the kernel image file according to address information of the pre-stored kernel image file;
performing address range inspection on the target nonvolatile memory device according to the address information of the kernel mirror file to obtain an address range inspection result of the target nonvolatile memory device;
and if the address range inspection result shows that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device.
Optionally, the determining, according to address information of a pre-stored kernel image file, a target nonvolatile memory device storing the kernel image file specifically includes:
and determining the target nonvolatile memory device according to the prestored system physical address of the kernel mirror file.
Optionally, the performing address range inspection on the target nonvolatile memory device according to the address information of the kernel image file to obtain an address range inspection result of the target nonvolatile memory device specifically includes:
converting the system physical address of the kernel mirror file into a device physical address on the target nonvolatile memory device;
and performing address range inspection on the target nonvolatile memory device according to the equipment physical address and the length of the kernel image file to obtain an address range inspection result.
Optionally, the performing address range inspection on the target nonvolatile memory device according to the device physical address and the length of the kernel image file to obtain the address range inspection result specifically includes:
sending a specific range address range patrol command to the target nonvolatile memory device;
after receiving the signal of finishing the inspection of the address range in the specific range sent by the target nonvolatile memory device, sending an inquiry command of the inspection result of the address range in the specific range to the target nonvolatile memory device;
if a uncorrectable error list returned by the target nonvolatile memory device is received, determining that uncorrectable errors exist in the target nonvolatile memory device as the address range inspection result;
if a successful mark of the address range inspection of the specific range returned by the target nonvolatile memory device is received, determining that the address range inspection result is that the target nonvolatile memory device has no uncorrectable error;
the command parameters of the specific range address range inspection command comprise the physical address of the equipment and the length of the kernel mirror file.
Optionally, the method further comprises:
and if the uncorrectable error list returned by the target nonvolatile memory device is received, recording information in the uncorrectable error list in a platform error interface table of an advanced configuration and power interface.
Optionally, the target nonvolatile memory device is specifically a plurality of nonvolatile memory devices;
correspondingly, if the address range inspection result indicates that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device, specifically:
and if the address range inspection result shows that uncorrectable errors exist in each target nonvolatile memory device, outputting information of system start failure caused by the failure of the target nonvolatile memory device.
Optionally, the target nonvolatile memory device specifically includes a main target nonvolatile memory device and a standby target nonvolatile memory device;
correspondingly, the address range inspection is performed on the target nonvolatile memory device according to the address information of the kernel image file to obtain an address range inspection result of the target nonvolatile memory device, which specifically includes:
performing address range inspection on the main target nonvolatile memory device to obtain an address range inspection result of the main target nonvolatile memory device;
if the address range inspection result of the main target nonvolatile memory device is that uncorrectable errors exist in the main target nonvolatile memory device, continuing to perform address inspection on the standby target nonvolatile memory device to obtain the address range inspection result of the standby target nonvolatile memory device;
correspondingly, if the address range inspection result indicates that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device, specifically:
and if the address range inspection result of the standby target nonvolatile memory device is that uncorrectable errors exist in the address range inspection result of the standby target nonvolatile memory device, outputting information of system start failure caused by the failure of the target nonvolatile memory device.
In order to solve the technical problem, the present invention further provides a control device based on a nonvolatile memory device start-up system, including:
the determining unit is used for determining a target nonvolatile memory device for storing the kernel image file according to the address information of the pre-stored kernel image file after the basic input and output system is powered on;
the inspection unit is used for performing address range inspection on the target nonvolatile memory device according to the address information of the kernel mirror file to obtain an address range inspection result of the target nonvolatile memory device;
and the output unit is used for outputting information of system start failure caused by the failure of the target nonvolatile memory device if the address range inspection result shows that the target nonvolatile memory device has uncorrectable errors.
In order to solve the above technical problem, the present invention further provides a control device based on a nonvolatile memory device start-up system, including:
a memory for storing instructions, the instructions comprising the steps of any one of the above control methods for a nonvolatile memory device-based startup system;
and the processor is used for executing the instructions.
To solve the above technical problem, the present invention further provides a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of the control method for starting up a system based on a nonvolatile memory device as described in any one of the above.
According to the control method based on the nonvolatile memory device starting system, the kernel mirror image file is stored by the target nonvolatile memory device to obtain a faster starting speed, after the basic input output system is powered on, the target nonvolatile memory device is determined according to the address information of the pre-stored kernel mirror image file, the target nonvolatile memory device is further subjected to address range inspection according to the address information of the kernel mirror image file to obtain an address range inspection result of the target nonvolatile memory device, if the address range inspection result is that the target nonvolatile memory device has uncorrectable errors, the information of system starting failure caused by the failure of the target nonvolatile memory device is output, so that whether the target nonvolatile memory device storing the kernel mirror image file has uncorrectable errors or not can be rapidly judged after equipment is started, and the situation that a user cannot learn the starting failure cause caused by the problem and cannot respond to the equipment failure in time is avoided.
The invention also provides a control device, equipment and a computer readable storage medium based on the nonvolatile memory device starting system, which have the beneficial effects and are not repeated here.
Drawings
For a clearer description of embodiments of the invention or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a control method for a non-volatile memory device based startup system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a specific implementation of step S102 in FIG. 1 according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a control device based on a nonvolatile memory device start-up system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a control device based on a nonvolatile memory device start-up system according to an embodiment of the present invention.
Detailed Description
The invention provides a control method, a device, equipment and a computer readable storage medium based on a nonvolatile memory device starting system, which are used for timely finding out the fault condition of a target nonvolatile memory device storing a kernel image file in the nonvolatile memory device starting system so as to enable a user to learn the fault cause and timely process the fault cause.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
FIG. 1 is a flow chart of a control method for a non-volatile memory device based startup system according to an embodiment of the present invention; fig. 2 is a flowchart of a specific implementation of step S102 in fig. 1 according to an embodiment of the present invention.
As shown in fig. 1, based on a basic I/O system (BIOS), a control method based on a nonvolatile memory device boot system according to an embodiment of the present invention includes:
s101: after power-on, determining a target nonvolatile memory device for storing the kernel image file according to address information of the pre-stored kernel image file.
S102: and performing address range inspection on the target nonvolatile memory device according to the address information of the kernel image file to obtain an address range inspection result of the target nonvolatile memory device.
S103: if the address range inspection result shows that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device.
To cope with uncorrectable errors in data, advanced configuration and power interface (Advanced Configuration and Power Interfac, ACPI) defines an address range patrol (address range scrub, ARS) mechanism for nonvolatile memory devices. The current method for executing the address range inspection mainly comprises two methods, namely, executing the address range inspection of the full address range in the background by the basic input/output system when the system is started, and periodically executing the address range inspection of the full address range or the address range inspection of the specific address range during the operation of the operating system. In the embodiment of the invention, in order to obtain a faster starting speed, the computer system stores the kernel image file in the nonvolatile memory device, if uncorrectable errors occur in the nonvolatile memory device, the above two address range inspection modes cannot avoid the difficulty that the system cannot be started, and the uncorrectable errors of the nonvolatile memory device storing the kernel image file cannot be found in time due to the inspection of the full-range address range, so that a user cannot learn the reason of the system starting failure in time.
Therefore, in the control method based on the nonvolatile memory device starting system provided by the embodiment of the invention, firstly, the address range inspection of the specific address is carried out on the target nonvolatile memory device storing the kernel image file, whether the uncorrectable error exists in the target nonvolatile memory device storing the kernel image file is rapidly judged, and after the uncorrectable error exists in the target nonvolatile memory device is checked, the user is timely prompted for the system starting failure reason, so that the user can conveniently and accurately deal with the type of starting failure in advance.
In a specific implementation, for step S101, address information of the kernel image file (for example, where the kernel image file is specifically stored in the target nonvolatile memory device) is saved to the bios through an internal command of the os in advance. After the basic input/output system is powered on, firstly, determining a nonvolatile memory device where the memory kernel image file is stored, namely a target nonvolatile memory device, according to address information of the pre-stored kernel image file. Specifically, the target nonvolatile memory device may be determined based on a system physical address (system physical address, SPA) of a pre-stored kernel image file.
For step S102, the bios initiates address range inspection for the target nonvolatile memory device according to the address information of the kernel image file, that is, performs address range inspection in a specific range for the data of the kernel image file portion on the target nonvolatile memory device. If the address information of the kernel image file adopted in step S101 is a system physical address, as shown in fig. 2, step S102 may specifically include:
s201: the system physical address of the kernel image file is translated to a device physical address (device physical address, DPA) on the target nonvolatile memory device.
S202: and performing address range inspection on the target nonvolatile memory device according to the physical address of the device and the length of the kernel mirror image file to obtain an address range inspection result.
The step S202 may specifically include:
sending a specific range address range inspection command to a target nonvolatile memory device;
after receiving a signal that the inspection of the address range in a specific range is finished, which is sent by the target nonvolatile memory device, sending an inquiry command of the inspection result of the address range in the specific range to the target nonvolatile memory device;
if an uncorrectable error list returned by the target nonvolatile memory device is received, determining that the address range inspection result is uncorrectable errors of the target nonvolatile memory device;
if a successful mark of the address range inspection of the specific range returned by the target nonvolatile memory device is received, determining that the address range inspection result is that the target nonvolatile memory device has no uncorrectable error;
the command parameters of the specific range address range inspection command comprise the physical address of the device and the length of the kernel mirror file.
The basic input/output system takes the physical address of the device and the length of the kernel mirror image file as command parameters, and after sending the address range inspection command of a specific range to the target nonvolatile memory device, the target nonvolatile memory device notifies the basic input/output system after the address range inspection is completed according to the address range inspection command of the specific range. And then, the basic input/output system sends a query command of the inspection result of the address range in a specific range to the target nonvolatile memory device, if the target nonvolatile memory device finds uncorrectable errors in the data of the kernel image file, the uncorrectable error list expressed by the physical address of the equipment is returned, and otherwise, a success mark is returned.
Further, the control method based on the nonvolatile memory device starting system provided by the embodiment of the invention may further include:
if an uncorrectable error list returned by the target nonvolatile memory device is received, information in the uncorrectable error list is recorded in a table of a platform error interface (ACPI Platform Error Interfaces, APEI) of the high-level configuration and power interface.
If the uncorrectable error list is received, the BIOS converts the uncorrectable error list into a uncorrectable error list expressed by a system physical address and records the uncorrectable error list in a platform error interface table of a high-level configuration and power interface.
According to the control method based on the nonvolatile memory device starting system, the kernel mirror image file is stored by the target nonvolatile memory device to obtain a faster starting speed, after the basic input output system is powered on, the target nonvolatile memory device is determined according to the address information of the pre-stored kernel mirror image file, the address range inspection is carried out on the target nonvolatile memory device according to the address information of the kernel mirror image file to obtain an address range inspection result of the target nonvolatile memory device, if the address range inspection result is that the target nonvolatile memory device has uncorrectable errors, the information of system starting failure caused by the failure of the target nonvolatile memory device is output, so that whether the target nonvolatile memory device storing the kernel mirror image file has uncorrectable errors or not can be rapidly judged after equipment is started, and the situation that a user cannot learn the starting failure cause caused by the problem and cannot cope with the equipment failure in time is avoided.
Based on the above embodiments, in order to improve the usability of the system, in the control method based on the nonvolatile memory device start-up system provided in the embodiment of the present invention, the target nonvolatile memory devices are specifically a plurality of nonvolatile memory devices.
Accordingly, step S103: if the address range inspection result indicates that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device, specifically:
if the address range inspection result shows that uncorrectable errors exist in all the target nonvolatile memory devices, outputting information of system start failure caused by the failure of the target nonvolatile memory devices.
According to the control method for the starting system based on the nonvolatile memory device, provided by the embodiment of the invention, the kernel image files are stored by setting a plurality of target nonvolatile memory devices, and if one kernel image file without uncorrectable errors exists in the kernel image files, the normal starting of the system can be ensured. Only when uncorrectable errors exist in the kernel image files on all the target nonvolatile memory devices, the problem that system startup cannot be performed due to the damage of the kernel image files is caused.
In a specific implementation, after the basic input/output system is powered on, determining a target nonvolatile memory device corresponding to the basic input/output system according to the address information of the plurality of kernel image files, and then performing address range inspection of specific addresses on the kernel image file parts on all the target nonvolatile memory devices together, or performing address range inspection of specific addresses on the kernel image file parts on the target nonvolatile memory device one by one according to a certain sequence.
If the target nonvolatile memory devices are sequentially inspected one by one, the target nonvolatile memory devices can be divided into a main target nonvolatile memory device and a standby target nonvolatile memory device.
Accordingly, step S102: performing address range inspection on the target nonvolatile memory device according to the address information of the kernel image file to obtain an address range inspection result of the target nonvolatile memory device, wherein the method specifically comprises the following steps:
performing address range inspection on the main target nonvolatile memory device to obtain an address range inspection result of the main target nonvolatile memory device;
if the address range inspection result of the main target nonvolatile memory device is that the main target nonvolatile memory device has uncorrectable errors, continuing to carry out address inspection on the standby target nonvolatile memory device to obtain the address range inspection result of the standby target nonvolatile memory device;
accordingly, step S103: if the address range inspection result indicates that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device, specifically:
if the address range inspection result of the standby target nonvolatile memory device is that uncorrectable errors exist in the address range inspection result of the standby target nonvolatile memory device, outputting information of system start failure caused by the failure of the target nonvolatile memory device.
The invention further discloses a control device, equipment and a computer readable storage medium based on the nonvolatile memory device starting system, which correspond to the control method.
Fig. 3 is a schematic structural diagram of a control device based on a nonvolatile memory device start-up system according to an embodiment of the present invention.
As shown in fig. 3, a control device based on a nonvolatile memory device start-up system according to an embodiment of the present invention includes:
a determining unit 301, configured to determine, after powering on the bios, a target nonvolatile memory device storing the kernel image file according to address information of the pre-stored kernel image file;
the patrol unit 302 is configured to perform address range patrol on the target nonvolatile memory device according to the address information of the kernel image file, so as to obtain an address range patrol result of the target nonvolatile memory device;
and the output unit 303 is configured to output information of system start failure caused by the failure of the target nonvolatile memory device if the address range inspection result indicates that the target nonvolatile memory device has an uncorrectable error.
Further, the control device based on the nonvolatile memory device starting system provided by the embodiment of the invention may further include:
and the recording unit is used for recording the information in the uncorrectable error list in a platform error interface table of the high-level configuration and power interface if the uncorrectable error list returned by the target nonvolatile memory device is received.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Fig. 4 is a schematic structural diagram of a control device based on a nonvolatile memory device start-up system according to an embodiment of the present invention.
As shown in fig. 4, a control device based on a nonvolatile memory device start-up system according to an embodiment of the present invention includes:
a memory 410 for storing instructions comprising the steps of the method for controlling a nonvolatile memory device-based activation system according to any one of the embodiments described above;
and a processor 420 for executing the instructions.
Processor 420 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc., among others. The processor 420 may be implemented in at least one hardware form of digital signal processing DSP (Digital Signal Processing), field programmable gate array FPGA (Field-Programmable Gate Array), programmable logic array PLA (Programmable Logic Array). Processor 420 may also include a main processor, which is a processor for processing data in an awake state, also referred to as central processor CPU (Central Processing Unit), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 420 may be integrated with an image processor GPU (Graphics Processing Unit), a GPU for use in responsible for rendering and rendering of the content required to be displayed by the display screen. In some embodiments, the processor 420 may also include an artificial intelligence AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 410 may include one or more computer-readable storage media, which may be non-transitory. Memory 410 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 410 is at least used for storing a computer program 411, where the computer program 411, when loaded and executed by the processor 420, can implement relevant steps in the control method based on the nonvolatile memory device start-up system disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 410 may further include an operating system 412, data 413, and the like, where the storage manner may be transient storage or permanent storage. The operating system 412 may be Windows. The data 413 may include, but is not limited to, data related to the above-described method.
In some embodiments, the control device of the nonvolatile memory device based on the start-up system may further include a display 430, a power supply 440, a communication interface 450, an input/output interface 460, a sensor 470, and a communication bus 480.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not limiting of the control device of the non-volatile memory device based activation system and may include more or less components than those shown.
The control device based on the nonvolatile memory device starting system provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the control method based on the nonvolatile memory device starting system when executing a program stored in the memory, and the effects are the same as the above.
It should be noted that the apparatus and device embodiments described above are merely exemplary, and for example, the division of modules is merely a logic function division, and there may be other division manners in actual implementation, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms. The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present invention.
To this end, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements steps of a control method, such as starting up a system based on a nonvolatile memory device.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (ram) RAM (Random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer program included in the computer readable storage medium provided in this embodiment can implement the steps of the control method for starting up the system based on the nonvolatile memory device as described above when executed by the processor, and the effects are the same as above.
The control method, the device, the equipment and the computer readable storage medium based on the nonvolatile memory device starting system provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. The apparatus, device and computer readable storage medium of the embodiments are described more simply because they correspond to the methods of the embodiments, and the description thereof will be given with reference to the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Claims (7)
1. A control method based on a nonvolatile memory device start-up system, comprising:
after power-on, determining a target nonvolatile memory device for storing the kernel image file according to address information of the pre-stored kernel image file;
performing address range inspection on the target nonvolatile memory device according to the address information of the kernel mirror file to obtain an address range inspection result of the target nonvolatile memory device;
if the address range inspection result shows that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device;
the method for determining the target nonvolatile memory device for storing the kernel mirror file according to the address information of the pre-stored kernel mirror file specifically comprises the following steps: determining the target nonvolatile memory device according to a prestored system physical address of the kernel mirror file;
and performing address range inspection on the target nonvolatile memory device according to the address information of the kernel mirror file to obtain an address range inspection result of the target nonvolatile memory device, wherein the method specifically comprises the following steps:
converting the system physical address of the kernel mirror file into a device physical address on the target nonvolatile memory device;
performing address range inspection on the target nonvolatile memory device according to the equipment physical address and the length of the kernel image file to obtain an address range inspection result;
and performing address range inspection on the target nonvolatile memory device according to the equipment physical address and the length of the kernel image file to obtain an address range inspection result, wherein the address range inspection result comprises the following steps:
sending a specific range address range patrol command to the target nonvolatile memory device;
after receiving the signal of finishing the inspection of the address range in the specific range sent by the target nonvolatile memory device, sending an inquiry command of the inspection result of the address range in the specific range to the target nonvolatile memory device;
if a uncorrectable error list returned by the target nonvolatile memory device is received, determining that uncorrectable errors exist in the target nonvolatile memory device as the address range inspection result;
if a successful mark of the address range inspection of the specific range returned by the target nonvolatile memory device is received, determining that the address range inspection result is that the target nonvolatile memory device has no uncorrectable error;
the command parameters of the specific range address range inspection command comprise the physical address of the equipment and the length of the kernel mirror file.
2. The control method according to claim 1, characterized by further comprising:
and if the uncorrectable error list returned by the target nonvolatile memory device is received, recording information in the uncorrectable error list in a platform error interface table of an advanced configuration and power interface.
3. The control method according to claim 1, wherein the target nonvolatile memory device is specified in plural;
correspondingly, if the address range inspection result indicates that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device, specifically:
and if the address range inspection result shows that uncorrectable errors exist in each target nonvolatile memory device, outputting information of system start failure caused by the failure of the target nonvolatile memory device.
4. The control method according to claim 3, wherein the target nonvolatile memory device specifically includes a main target nonvolatile memory device and a standby target nonvolatile memory device;
correspondingly, the address range inspection is performed on the target nonvolatile memory device according to the address information of the kernel image file to obtain an address range inspection result of the target nonvolatile memory device, which specifically includes:
performing address range inspection on the main target nonvolatile memory device to obtain an address range inspection result of the main target nonvolatile memory device;
if the address range inspection result of the main target nonvolatile memory device is that uncorrectable errors exist in the main target nonvolatile memory device, continuing to perform address inspection on the standby target nonvolatile memory device to obtain the address range inspection result of the standby target nonvolatile memory device;
correspondingly, if the address range inspection result indicates that the target nonvolatile memory device has uncorrectable errors, outputting information of system start failure caused by the failure of the target nonvolatile memory device, specifically:
and if the address range inspection result of the standby target nonvolatile memory device is that uncorrectable errors exist in the address range inspection result of the standby target nonvolatile memory device, outputting information of system start failure caused by the failure of the target nonvolatile memory device.
5. A control apparatus for a nonvolatile memory device-based startup system, comprising:
the determining unit is used for determining a target nonvolatile memory device for storing the kernel image file according to the address information of the pre-stored kernel image file after the basic input and output system is powered on;
the inspection unit is used for performing address range inspection on the target nonvolatile memory device according to the address information of the kernel mirror file to obtain an address range inspection result of the target nonvolatile memory device;
the output unit is used for outputting information of system start failure caused by the fault of the target nonvolatile memory device if the address range inspection result shows that the target nonvolatile memory device has uncorrectable errors;
the method for determining the target nonvolatile memory device for storing the kernel mirror file according to the address information of the pre-stored kernel mirror file specifically comprises the following steps: determining the target nonvolatile memory device according to a prestored system physical address of the kernel mirror file;
and performing address range inspection on the target nonvolatile memory device according to the address information of the kernel mirror file to obtain an address range inspection result of the target nonvolatile memory device, wherein the method specifically comprises the following steps:
converting the system physical address of the kernel mirror file into a device physical address on the target nonvolatile memory device;
performing address range inspection on the target nonvolatile memory device according to the equipment physical address and the length of the kernel image file to obtain an address range inspection result;
and performing address range inspection on the target nonvolatile memory device according to the equipment physical address and the length of the kernel image file to obtain an address range inspection result, wherein the address range inspection result comprises the following steps:
sending a specific range address range patrol command to the target nonvolatile memory device;
after receiving the signal of finishing the inspection of the address range in the specific range sent by the target nonvolatile memory device, sending an inquiry command of the inspection result of the address range in the specific range to the target nonvolatile memory device;
if a uncorrectable error list returned by the target nonvolatile memory device is received, determining that uncorrectable errors exist in the target nonvolatile memory device as the address range inspection result;
if a successful mark of the address range inspection of the specific range returned by the target nonvolatile memory device is received, determining that the address range inspection result is that the target nonvolatile memory device has no uncorrectable error;
the command parameters of the specific range address range inspection command comprise the physical address of the equipment and the length of the kernel mirror file.
6. A control apparatus for starting up a system based on a nonvolatile memory device, comprising:
a memory for storing instructions, the instructions comprising the steps of the control method for a nonvolatile memory device-based startup system according to any one of claims 1 to 4;
and the processor is used for executing the instructions.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, realizes the steps of the control method for starting up a system based on a nonvolatile memory device as claimed in any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011604384.XA CN112667442B (en) | 2020-12-29 | 2020-12-29 | Control method, device and equipment based on nonvolatile memory device starting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011604384.XA CN112667442B (en) | 2020-12-29 | 2020-12-29 | Control method, device and equipment based on nonvolatile memory device starting system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112667442A CN112667442A (en) | 2021-04-16 |
CN112667442B true CN112667442B (en) | 2023-08-04 |
Family
ID=75410669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011604384.XA Active CN112667442B (en) | 2020-12-29 | 2020-12-29 | Control method, device and equipment based on nonvolatile memory device starting system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112667442B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113821369A (en) * | 2021-11-23 | 2021-12-21 | 苏州浪潮智能科技有限公司 | Method, device and medium for memory polling |
CN114489851B (en) * | 2022-01-20 | 2024-02-20 | 飞腾信息技术有限公司 | Memory chip starting method and device, computer equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258789A (en) * | 2020-01-19 | 2020-06-09 | 苏州浪潮智能科技有限公司 | Method, apparatus, device and medium for predicting remaining life of nonvolatile memory device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9558010B2 (en) * | 2013-03-14 | 2017-01-31 | International Business Machines Corporation | Fast hot boot of a computer system |
-
2020
- 2020-12-29 CN CN202011604384.XA patent/CN112667442B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258789A (en) * | 2020-01-19 | 2020-06-09 | 苏州浪潮智能科技有限公司 | Method, apparatus, device and medium for predicting remaining life of nonvolatile memory device |
Non-Patent Citations (1)
Title |
---|
新型非易失存储的安全与隐私问题研究综述;徐远超;闫俊峰;万虎;孙凤芸;张伟功;李涛;;计算机研究与发展(09);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112667442A (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10514930B2 (en) | Setting a startup parameter and controlling startup of a mainboard | |
US9274788B2 (en) | Information processing apparatus, method for controlling the same, and storage medium | |
US9128729B1 (en) | System and method for automatically configuring bios performance profiles | |
US9239725B2 (en) | System and method for installing an OS via a network card supporting PXE | |
US20140325203A1 (en) | Backing up firmware during initialization of device | |
US9658863B2 (en) | Information processing apparatus and control method therefor | |
JP2013520744A (en) | Method and apparatus for generating minimum boot image | |
CN112667442B (en) | Control method, device and equipment based on nonvolatile memory device starting system | |
WO2016101519A1 (en) | Method and device for realizing restart of operating system | |
CN112506745B (en) | Memory temperature reading method and device and computer readable storage medium | |
JP2010140266A (en) | Electronic device system and electronic device | |
CN111475215A (en) | Server starting method, device and related equipment | |
WO2018059565A1 (en) | Method and system for backing up flash memory data | |
US20130229681A1 (en) | Information processing apparatus, image forming apparatus, non-transitory computer readable medium storing program, and information processing method | |
US9904559B2 (en) | Information processing apparatus and activation method therefor for processing data of a hibernation image | |
CN110825421A (en) | Firmware upgrading method and system and readable storage medium | |
CN114780166A (en) | Pin configuration method, related device, equipment and readable storage medium | |
CN112784276B (en) | Method and device for realizing trusted measurement | |
CN114415939A (en) | Hard disk control method, hard disk control device, computer equipment, storage medium and program product | |
TW201426544A (en) | Electronic system and boot management method | |
KR101249831B1 (en) | Computer system and method for booting the same | |
CN111400093B (en) | Configuration method, configuration device and configuration equipment of NVDIMM (noise, voltage and noise memory Module) | |
CN112540889B (en) | Method, device, equipment and medium for adjusting hard disk starting sequence in user mode | |
CN118069057A (en) | Data writing method, device, equipment and medium | |
CN117311844A (en) | Menu option modification method and device, BIOS system, device and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |