CN115295061B - Memory firmware overhauling method and system - Google Patents

Memory firmware overhauling method and system Download PDF

Info

Publication number
CN115295061B
CN115295061B CN202211225311.9A CN202211225311A CN115295061B CN 115295061 B CN115295061 B CN 115295061B CN 202211225311 A CN202211225311 A CN 202211225311A CN 115295061 B CN115295061 B CN 115295061B
Authority
CN
China
Prior art keywords
data
memory
parameter
overhauled
overhaul
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
Application number
CN202211225311.9A
Other languages
Chinese (zh)
Other versions
CN115295061A (en
Inventor
李庭育
陈育鸣
王展南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Huacun Electronic Technology Co Ltd
Original Assignee
Jiangsu Huacun Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Huacun Electronic Technology Co Ltd filed Critical Jiangsu Huacun Electronic Technology Co Ltd
Priority to CN202211225311.9A priority Critical patent/CN115295061B/en
Publication of CN115295061A publication Critical patent/CN115295061A/en
Application granted granted Critical
Publication of CN115295061B publication Critical patent/CN115295061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/02Detection or location of defective auxiliary circuits, e.g. defective refresh counters
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals

Abstract

The invention discloses a method and a system for overhauling firmware of a memory, wherein the method comprises the following steps: data extraction is carried out on a memory to be overhauled, and equipment data information of the memory to be overhauled is obtained; determining a first overhaul parameter, a second overhaul parameter and a third overhaul parameter according to the equipment data information; marking the first overhaul parameter, the second overhaul parameter and the third overhaul parameter by parameter labels respectively, and performing advanced optimization of data on the marked parameters to generate advanced overhaul parameters; performing service area scanning on a chip channel of the memory to be overhauled through the advanced overhaul parameters to obtain a scanning data set; performing firmware data filtering on the scanning data set to obtain target firmware data; and performing decoding data extraction on the target firmware data to obtain extracted decoding data, and performing mirror image extraction on logic data of the target firmware data based on the extracted decoding data.

Description

Memory firmware overhauling method and system
Technical Field
The invention relates to the field of data processing, in particular to a memory firmware overhauling method and system.
Background
Memory is a memory device used in modern information technology to hold information. The concept is wide, and has a plurality of layers, and in a digital system, the memory can be used as long as binary data can be stored; in an integrated circuit, a circuit without a real form and with a storage function is also called a memory, such as a RAM, a FIFO and the like; in the system, the storage device in physical form is also called a memory, such as a memory bank, a TF card and the like. All information in the computer, including the input raw data, the computer program, the intermediate run results and the final run results, is stored in memory.
The firmware refers to a device "driver" stored in the device, and the operating system can realize the running action of a specific machine according to the standard device driver through the firmware. In general, FLASH memory-based solid state disks employ FLASH chips as storage media, which are also known as SSDs. Its appearance can be made in a variety of patterns, for example: notebook hard disks, micro hard disks, memory cards, U disks and the like. The SSD solid state disk has the greatest advantages of being movable, being free of power control for data protection, being suitable for various environments and being suitable for individual users.
However, in the prior art, in the process of circulating and retrieving data by using a storage medium of a solid state disk, the data of a key sector covered by a chip channel cannot be quickly overhauled, so that the retrieval response rate of the data is greatly reduced.
Disclosure of Invention
The invention aims to provide a memory firmware overhauling method and a memory firmware overhauling system, which are used for solving the technical problem that in the prior art, key sector data covered by a chip channel cannot be quickly overhauled in the circulation and dispatching process of data by using a storage medium of a solid state disk, so that the dispatching response rate of the data is greatly reduced.
In view of the above problems, the present invention provides a memory firmware repair method and system.
In a first aspect, the present invention provides a memory firmware repair method, including: data extraction is carried out on a memory to be overhauled, and equipment data information of the memory to be overhauled is obtained; determining a first overhaul parameter, a second overhaul parameter and a third overhaul parameter according to the equipment data information; marking the first overhaul parameter, the second overhaul parameter and the third overhaul parameter by parameter labels respectively, and performing advanced optimization of data on the marked parameters to generate advanced overhaul parameters; performing service area scanning on a chip channel of the memory to be overhauled through the advanced overhaul parameters to obtain a scanning data set; performing firmware data filtering on the scanning data set to obtain target firmware data; and performing decoding data extraction on the target firmware data to obtain extracted decoding data, and performing mirror image extraction of logic data on the target firmware data based on the extracted decoding data.
In another aspect, the present invention further provides a memory firmware repair system for performing the memory firmware repair method according to the first aspect, wherein the system includes: the first extraction unit is used for extracting data of a memory to be overhauled to obtain equipment data information of the memory to be overhauled; the first determining unit is used for determining a first overhaul parameter, a second overhaul parameter and a third overhaul parameter according to the equipment data information; the first marking unit is used for respectively marking the first overhaul parameter, the second overhaul parameter and the third overhaul parameter by parameter labels, and performing high-level optimization on the marked parameters to generate high-level overhaul parameters; the first scanning unit is used for scanning a service area of a chip channel of the memory to be overhauled according to the high-level overhaul parameters to obtain a scanning data set; the first filtering unit is used for filtering the firmware data of the scanning data set to obtain target firmware data; and the second extraction unit is used for carrying out decoding data extraction on the target firmware data to obtain extracted decoding data, and carrying out mirror image extraction on the logic data of the target firmware data based on the extracted decoding data.
In a third aspect, an electronic device comprises a processor and a memory;
the memory is used for storing;
the processor is configured to execute the method according to any one of the first aspect above by calling.
In a fourth aspect, a computer program product comprises a computer program and/or instructions which, when executed by a processor, implement the steps of the method of any one of the first aspect described above.
One or more technical schemes provided by the invention at least have the following technical effects or advantages:
the method comprises the steps of extracting current data of a target memory, obtaining relevant data of a storage medium, screening and marking data of a key sector based on the relevant data, obtaining higher maintenance parameters, scanning a service area covered by a current chip channel of the target memory according to the maintenance parameters, filtering a specific program of the storage medium on the scanned data, decoding and extracting program running data obtained through filtering, contrasting and detecting extracted standard sector data and actual sector data, determining the defect position of the actual sector data, and timely maintaining, so that the key sector data covered by the chip channel are quickly maintained, and the technical effect of greatly improving the calling response rate of the data is achieved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only exemplary, and other drawings can be obtained by those skilled in the art without inventive efforts based on the provided drawings.
FIG. 1 is a schematic flow chart of a method for repairing a firmware of a memory according to the present invention;
FIG. 2 is a schematic diagram illustrating a process of obtaining decoded data according to a memory firmware repair method of the present invention;
FIG. 3 is a schematic flow chart of a data traversal screening model set up in the memory firmware repair method according to the present invention;
FIG. 4 is a schematic diagram of a memory firmware repair system according to the present invention;
fig. 5 is a schematic structural diagram of an exemplary electronic device of the present invention.
Description of reference numerals:
a first extraction unit 11, a first determination unit 12, a first marking unit 13, a first scanning unit 14, a first filtering unit 15, a second extraction unit 16, a bus 300, a receiver 301, a processor 302, a transmitter 303, a memory 304, a bus interface 305.
Detailed Description
The invention provides a method and a system for overhauling firmware of a memory, which solve the technical problem that in the prior art, in the process of circulating and calling data by using a storage medium of a solid state disk, the data of a key sector covered by a chip channel cannot be quickly overhauled, so that the calling response rate of the data is greatly reduced.
In the technical scheme of the invention, the acquisition, storage, use, processing and the like of the data all accord with relevant regulations of national laws and regulations.
The technical solutions in the present invention will be described below clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments of the present invention, and it should be understood that the present invention is not limited by the exemplary embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention. It should be further noted that, for the convenience of description, only some but not all of the elements associated with the present invention are shown in the drawings.
The invention provides a memory firmware overhauling method, which comprises the following steps: the method comprises the steps of extracting current data of a target memory, obtaining relevant data of a storage medium, screening and marking data of a key sector, obtaining higher maintenance parameters, scanning a service area covered by a current chip channel of the target memory through the maintenance parameters, filtering a specific program of the storage medium of the scanned data, decoding and extracting program running data obtained through filtering, contrasting and detecting extracted standard sector data and actual sector data, determining the defect position of the actual sector data, and timely maintaining.
Having described the general principles of the invention, reference will now be made in detail to various non-limiting embodiments of the invention, examples of which are illustrated in the accompanying drawings.
Example one
Referring to fig. 1, the present invention provides a method for repairing firmware of a memory, which specifically includes the following steps:
step S100: data extraction is carried out on a memory to be overhauled, and equipment data information of the memory to be overhauled is obtained;
further, step S100 includes:
step S110: traversing the memory to be overhauled to obtain a system storage data set of the memory to be overhauled;
step S120: obtaining a target application scene of the memory to be overhauled;
step S130: building a data traversal screening model based on the target application scene;
step S140: and inputting the system storage data set into the data traversal screening model for training to obtain the equipment data information.
In particular, memories are memory devices used in modern information technology for storing information. The concept is wide, and has a plurality of layers, and in a digital system, the memory can be used as long as binary data can be stored; in an integrated circuit, a circuit without a physical form and with a storage function is also called a memory, such as a RAM, a FIFO and the like; in the system, the storage device in physical form is also called a memory, such as a memory bank, a TF card and the like. All information in the computer, including the input raw data, the computer program, intermediate run results, and final run results, is stored in memory.
The firmware refers to a device "driver" stored in the device, and through the firmware, the operating system can implement the operation of a specific machine according to the standard device driver. In general, FLASH memory-based solid state disks employ FLASH chips as storage media, which are also known as SSDs. Its appearance can be made in a variety of patterns, for example: notebook hard disks, micro hard disks, memory cards, U disks and the like. The SSD solid state disk has the greatest advantages of being movable, being free of power control for data protection, being suitable for various environments and being suitable for individual users.
However, in the prior art, in the process of circulating and calling data by using a storage medium of a solid state disk, the data of a key sector covered by a chip channel cannot be quickly overhauled, so that the calling response rate of the data is greatly reduced.
In order to solve the problems, the application provides a memory firmware maintenance method, which can obtain related data of a storage medium by extracting current data of a target memory, on the basis of which, the data of a key sector is screened and marked, so as to obtain higher maintenance parameters, and further scan a service area covered by a current chip channel of the target memory by the maintenance parameters, further filter a specific program of the storage medium on the scanned data, decode and extract program running data obtained by filtering, and compare and detect the extracted standard sector data and actual sector data, so as to determine the defect position of the actual sector data, further timely maintain, achieve the technical effects of quickly maintaining the key sector data covered by the chip channel and greatly improving the retrieval response rate of the data.
Specifically, the memory to be overhauled is a storage device with functions of data storage, calling and the like, and includes devices such as a notebook hard disk, a micro hard disk, a memory card and a U disk, and the device data information is data circulation information of the device during normal operation, and includes a channel size, a data response rate and the like. When data extraction is performed on a memory to be overhauled, specifically, the memory to be overhauled can be traversed to obtain a system storage data set of the memory to be overhauled, wherein the system storage data set is information of a solid state disk system and a chip of the memory. Meanwhile, the target application scenario is a computing device that the storage device can be used for, exemplarily, if the storage device is a hard disk of a notebook computer, most of the stored data are internal system operation driving data, external application operation data and the like, and then a data traversal screening model can be set up based on the target application scenario, generally, the application devices of the storage device are different, so that the emphasis points of data circulation are different, the data traversal screening model can perform differential screening on circulation data of different application scenarios, so that sectors covered by chip channels corresponding to the target device are accurately locked and effectively screened, and the device data information can be obtained by inputting the system storage data set into the data traversal screening model for training.
Step S200: determining a first overhaul parameter, a second overhaul parameter and a third overhaul parameter according to the equipment data information;
step S300: marking the first overhaul parameter, the second overhaul parameter and the third overhaul parameter by parameter labels respectively, and performing advanced optimization of data on the marked parameters to generate advanced overhaul parameters;
specifically, after the equipment data information is obtained, the equipment data information needs to be screened for key feature overhaul data, wherein the first overhaul parameter, the second overhaul parameter and the third overhaul parameter are the screened key feature overhaul data, the first overhaul parameter can be understood as the number of chips, the second overhaul parameter can be understood as the number of channels, and the third overhaul parameter can be understood as the page size, and then parameter label marking is respectively performed on the first overhaul parameter, the second overhaul parameter and the third overhaul parameter, that is, the first overhaul parameter is marked as a label representing the number of chips, the second overhaul parameter is marked as a label representing the number of channels, the third overhaul parameter is marked as a label representing the page size, and then advanced optimization of data is performed on the three label, so that the three label labels are fused into one advanced overhaul parameter, and the advanced overhaul parameter can be realized in a feature fusion manner, and the advanced overhaul parameter covers the three label.
Step S400: scanning a service area of a chip channel of the memory to be overhauled through the high-level overhaul parameters to obtain a scanning data set;
step S500: performing firmware data filtering on the scanning data set to obtain target firmware data;
specifically, after the advanced overhaul parameters are obtained, service area scanning may be performed on a chip channel of the memory to be overhauled based on the advanced overhaul parameters, that is, a service area of data circulation of the memory chip is scanned, and a scanned data set may be obtained, where the scanned data set is a data set covered by the number of chips, a data covered by the number of channels, and a data set covered by the page size.
Furthermore, the scanning data set can be filtered to obtain target firmware data, that is, important firmware information is filtered for data covered by the number of chips, data covered by the number of channels, and data covered by the size of pages, and generally, software solidified on hardware is damaged, including bad blocks, read errors, module loss, logic bad tracks, verification errors and the like, and the corresponding repairing method includes methods of firmware repairing, chip data recombination, interface conversion, physical replacement and the like. Different technical solutions are used for different situations. Therefore, the target firmware data is damaged software data, including bad block data, read error data, module lost data, logic bad track data, check error data, and the like.
Step S600: and performing decoding data extraction on the target firmware data to obtain extracted decoding data, and performing mirror image extraction on logic data of the target firmware data based on the extracted decoding data.
Further, as shown in fig. 2, step S600 includes:
step S610: calling a first initialization instruction of the memory to be overhauled, and initializing the memory to be overhauled;
step S620: transmitting the sector data address of the target firmware data to the memory to be overhauled, and decoding the sector data address based on an embedded decoding table to obtain the extracted decoded data;
step S630: acquiring preset byte information of the sector data address;
step S640: obtaining conversion byte information of the extracted decoding data;
step S650: judging whether the conversion byte information and the preset byte information are consistent or not;
step S660: and if the converted byte information is consistent with the preset byte information, generating a first extraction instruction, and performing mirror image extraction on the logic data of the target firmware data.
Specifically, after the target firmware data is obtained, decoding data extraction needs to be performed on the target firmware data, specifically, a first initialization instruction of the memory to be overhauled may be called first, the memory to be overhauled is initialized, that is, circulation data of the storage device is initialized, and after the initialization is successful, a sector data address of the target firmware data may be transmitted to the memory to be overhauled, that is, a sector data address covered by damaged software data is uploaded to the storage device, data decoding is performed through a decoding table embedded in the storage device, that is, the sector data address is decoded, and the extracted decoding data is a result obtained by decoding.
Further, in order to verify the decoded result, the byte information before and after decoding may be compared and corrected, specifically, preset byte information of the sector data address may be obtained, the sector data address may be understood as a data address where program damage occurs, the preset byte information may be understood as the first four bytes of the data address where program damage occurs, the converted byte information is the first four bytes of a data overlay address where damage occurs in the decoded result, by determining whether the converted byte information and the preset byte information are consistent, in other words, after initialization is successful, the address of the sector data to be read is transmitted to the hard disk through an instruction, the inside of the hard disk is converted through a decoding table, then response data of the hard disk is read using the instruction, the flag of the conversion success is stored in the data, if the first four bytes of the returned data are addresses previously transmitted to the hard disk, the conversion is successful, otherwise, if the conversion is failed, the two are consistent, a first extraction instruction may be generated, and mirror image extraction of the target firmware data is performed, generally, a mirror image storage form is a type of a file, that is a redundant copy of the same disk. Many files can be made into an image file, and the image file and programs such as GHOST are placed in a disk and are restored into many files after being opened by software such as GHOST, and RAID 1 and RAID 10 use the image. Common image file formats are ISO, BIN, IMG, TAO, DAO, CIF, FCD. That is, by performing a mirror extraction of logical data on the target firmware data, data that has been corrupted by the program can be extracted against an identical copy on another disk.
Further, as shown in fig. 3, step S130 includes:
step S131: determining a data storage threshold value, a data calling threshold value and a data response frequency of the memory to be overhauled according to the target application scene;
step S132: marking the data storage threshold value as a first associated parameter, the data calling threshold value as a second associated parameter and the data response frequency as a third associated parameter;
step S133: collecting historical circulation data of the memory to be overhauled to obtain a historical circulation data set;
step S134: and taking the historical circulation data set as training data, taking the first association parameter, the second association parameter and the third association parameter as comparison identification data, performing comparison training on the training data, and building the data traversal screening model.
Wherein, step S134 includes:
step S1341: carrying out user-defined splitting on the training data to obtain a data training set and a data verification set;
step S1342: training the data training set based on the comparison identification data to generate a preliminary data traversal screening model;
step S1343: inputting the data verification set into the preliminary data traversal screening model, and performing data verification training to generate a first verification result;
step S1344: and optimizing the preliminary data traversal screening model according to the first verification result to generate the data traversal screening model.
Specifically, when the data traversal screening model is set up, specifically, a data storage threshold, a data retrieval threshold, and a data response frequency of the to-be-overhauled memory may be determined according to the target application scenario, where when the target usage scenario is applied to hard disk storage of a notebook computer, the data storage threshold is a size of a maximum capacity storage data space on the hard disk, the data retrieval threshold is a maximum retrieval threshold on the hard disk, the data response frequency is a response rate when the storage data on the hard disk is retrieved, and further, the data storage threshold may be marked as a first association parameter, the data retrieval threshold is marked as a second association parameter, and the data response frequency is marked as a third association parameter.
Meanwhile, historical circulation data of the memory to be overhauled can be collected to obtain a historical circulation data set, the historical circulation data set is the historical circulation data set on the hard disk of the notebook computer, and then the historical circulation data set can be used as training data, and the first correlation parameter, the second correlation parameter and the third correlation parameter are used as comparison identification data to conduct comparison training on the training data.
In the training process, in order to train a relatively accurate data traversal screening model, custom splitting can be performed on the training data to obtain a data training set and a data verification set, wherein the custom splitting can be understood as that the training data is divided in a custom mode according to actual data requirements, one part of the training data is used as the data training set and is used for training the data traversal screening model, and the rest part of the training data is used as the data verification set and is used for verifying the trained model. Specifically, after the user-defined splitting is finished, the data training set can be trained based on the comparison identification data to generate a preliminary data traversal screening model, the preliminary data traversal screening model is a product obtained by performing model training for the first time, and then the data verification set can be input into the preliminary data traversal screening model to perform data verification training to generate a first verification result, the first verification result represents the verification condition of the model training result and an actual production result, and if the first verification result is not matched with the actual production result, the preliminary data traversal screening model can be optimized to generate the data traversal screening model, the data traversal screening model is a model obtained by final training, and a system storage data set can be screened based on the model.
Further, step S660 includes:
step S661: performing mirror image extraction on the logic data of the target firmware data to obtain preset standard sector data of the memory to be overhauled;
step S662: based on the preset standard sector data, carrying out contrast detection on the target firmware data to obtain a first detection difference result;
step S663: and correspondingly overhauling the memory to be overhauled according to the first detection difference result.
Specifically, after the target firmware data is subjected to mirror image extraction of logic data, preset standard sector data of the memory to be overhauled can be obtained, the preset standard sector data is storage data in a standard mirror image file before occurrence of damaged data, the target firmware data is subjected to contrast detection through the preset standard sector data, a first detection difference result is obtained, namely the preset standard sector data is compared according to byte information of a sector data address, actual firmware data of the storage device is contrasted, a data difference represented by the two data differences can be obtained, namely the first detection difference result is obtained, the memory to be overhauled can be correspondingly overhauled on the basis, and quick overhaul of key sector data covered by a chip channel is achieved.
In summary, the method for repairing the firmware of the memory provided by the invention has the following technical effects:
the method comprises the steps of extracting current data of a target memory, obtaining relevant data of a storage medium, screening and marking data of a key sector, obtaining higher maintenance parameters, scanning a service area covered by a current chip channel of the target memory through the maintenance parameters, filtering a specific program of the storage medium of the scanned data, decoding and extracting program running data obtained through filtering, contrasting and detecting extracted standard sector data and actual sector data, determining the defect position of the actual sector data, and timely maintaining.
Example two
Based on the same inventive concept as the method for repairing the firmware of the memory in the foregoing embodiment, the present invention further provides a system for repairing the firmware of the memory, referring to fig. 4, where the system includes:
the first extraction unit 11 is used for extracting data of a memory to be overhauled to obtain equipment data information of the memory to be overhauled;
a first determining unit 12, where the first determining unit 12 is configured to determine a first overhaul parameter, a second overhaul parameter, and a third overhaul parameter according to the equipment data information;
the first marking unit 13 is configured to mark the first overhaul parameter, the second overhaul parameter, and the third overhaul parameter with parameter labels respectively, and perform advanced optimization on the marked parameters to generate advanced overhaul parameters;
the first scanning unit 14, where the first scanning unit 14 is configured to perform service area scanning on a chip channel of the memory to be overhauled according to the advanced overhaul parameter to obtain a scanning data set;
the first filtering unit 15, where the first filtering unit 15 is configured to perform firmware data filtering on the scan data set to obtain target firmware data;
a second extracting unit 16, where the second extracting unit 16 is configured to perform decoding data extraction on the target firmware data to obtain extracted decoding data, and perform mirror image extraction on logic data of the target firmware data based on the extracted decoding data.
Further, the system further comprises:
the first obtaining unit is used for traversing the memory to be overhauled to obtain a system storage data set of the memory to be overhauled;
the second obtaining unit is used for obtaining a target application scene of the memory to be overhauled;
the first building unit is used for building a data traversal screening model based on the target application scene;
the first input unit is used for inputting the system storage data set to the data traversal screening model for training to obtain the equipment data information.
Further, the system further comprises:
the second determining unit is used for determining a data storage threshold value, a data calling threshold value and a data response frequency of the memory to be overhauled according to the target application scene;
a second marking unit, configured to mark the data storage threshold as a first associated parameter, the data retrieval threshold as a second associated parameter, and the data response frequency as a third associated parameter;
the first acquisition unit is used for acquiring historical circulation data of the memory to be overhauled to obtain a historical circulation data set;
and the first training unit is used for performing comparison training on the training data by taking the historical circulation data set as training data and the first association parameter, the second association parameter and the third association parameter as comparison identification data, and building the data traversal screening model.
Further, the system further comprises:
the first splitting unit is used for carrying out user-defined splitting on the training data to obtain a data training set and a data verification set;
the second training unit is used for training the data training set based on the comparison identification data to generate a preliminary data traversal screening model;
the second input unit is used for inputting the data verification set to the preliminary data traversal screening model, performing data verification training and generating a first verification result;
and the first optimization unit is used for optimizing the preliminary data traversal screening model according to the first verification result to generate the data traversal screening model.
Further, the system further comprises:
the first calling unit is used for calling a first initialization instruction of the memory to be overhauled and initializing the memory to be overhauled;
and the first transmission unit is used for transmitting the sector data address of the target firmware data to the memory to be overhauled, decoding the sector data address based on an embedded decoding table, and acquiring the extracted decoded data.
Further, the system further comprises:
a third obtaining unit, configured to obtain preset byte information of the sector data address;
a fourth obtaining unit configured to obtain conversion byte information of the extracted decoded data;
the first judging unit is used for judging whether the converted byte information and the preset byte information are consistent or not;
and the first generation unit is used for generating a first extraction instruction and carrying out mirror image extraction on the logic data of the target firmware data if the conversion byte information is consistent with the preset byte information.
Further, the system further comprises:
the third extraction unit is used for performing mirror image extraction on the logic data of the target firmware data to obtain preset standard sector data of the memory to be overhauled;
the first detection unit is used for carrying out contrast detection on the target firmware data based on the preset standard sector data to obtain a first detection difference result;
and the first overhauling unit is used for correspondingly overhauling the memory to be overhauled according to the first detection difference result.
The embodiments in this specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the foregoing memory firmware repair method and specific example in the first embodiment of fig. 1 are also applicable to a memory firmware repair system in this embodiment, and a memory firmware repair system in this embodiment is clearly known to those skilled in the art through the foregoing detailed description of a memory firmware repair method, so for the sake of brevity of description, detailed descriptions are omitted here. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Exemplary electronic device
The electronic device of the present invention is described below with reference to fig. 5.
Fig. 5 illustrates a schematic structural diagram of an electronic device according to the present invention.
Based on the inventive concept of the memory firmware repair method in the foregoing embodiment, the present invention further provides a memory firmware repair system, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the foregoing memory firmware repair methods.
Wherein in fig. 5 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 305 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be one and the same element, i.e. a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
The invention provides a memory firmware overhauling method, which comprises the following steps: data extraction is carried out on a memory to be overhauled, and equipment data information of the memory to be overhauled is obtained; determining a first overhaul parameter, a second overhaul parameter and a third overhaul parameter according to the equipment data information; respectively marking the first overhaul parameter, the second overhaul parameter and the third overhaul parameter by parameter labels, and performing advanced optimization on the marked parameters to generate advanced overhaul parameters; performing service area scanning on a chip channel of the memory to be overhauled through the advanced overhaul parameters to obtain a scanning data set; performing firmware data filtering on the scanning data set to obtain target firmware data; and performing decoding data extraction on the target firmware data to obtain extracted decoding data, and performing mirror image extraction of logic data on the target firmware data based on the extracted decoding data. The technical problem that in the prior art, in the process of circulating and calling data by using a storage medium of a solid state disk, the data of a key sector covered by a chip channel cannot be quickly overhauled, so that the calling response rate of the data is greatly reduced is solved. The method comprises the steps of extracting current data of a target memory, obtaining relevant data of a storage medium, screening and marking data of a key sector, obtaining higher maintenance parameters, scanning a service area covered by a current chip channel of the target memory through the maintenance parameters, filtering a specific program of the storage medium of the scanned data, decoding and extracting program running data obtained through filtering, contrasting and detecting extracted standard sector data and actual sector data, determining the defect position of the actual sector data, and timely maintaining.
The invention also provides an electronic device, which comprises a processor and a memory;
the memory is used for storing;
the processor is configured to execute the method according to any one of the first embodiment through calling.
The invention also provides a computer program product comprising a computer program and/or instructions which, when executed by a processor, performs the steps of the method of any of the above embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely software embodiment, an entirely hardware embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention is in the form of a computer program product that may be embodied on one or more computer-usable storage media having computer-usable program code embodied therewith. And such computer-usable storage media include, but are not limited to: various media capable of storing program codes, such as a usb disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk Memory, a Compact Disc Read-Only Memory (CD-ROM), and an optical Memory.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction system which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the present invention and its equivalent technology, it is intended that the present invention also include such modifications and variations.

Claims (7)

1. A memory firmware repair method, the method comprising:
data extraction is carried out on a memory to be overhauled, and equipment data information of the memory to be overhauled is obtained;
determining a first overhaul parameter, a second overhaul parameter and a third overhaul parameter according to the equipment data information;
respectively marking the first overhaul parameter, the second overhaul parameter and the third overhaul parameter by parameter labels, and performing advanced optimization on the marked parameters to generate advanced overhaul parameters;
scanning a service area of a chip channel of the memory to be overhauled through the high-level overhaul parameters to obtain a scanning data set;
performing firmware data filtering on the scanning data set to obtain target firmware data;
performing decoding data extraction on the target firmware data to obtain extracted decoding data, and performing mirror image extraction of logic data on the target firmware data based on the extracted decoding data;
wherein, the data extraction of the memory to be overhauled comprises the following steps:
traversing the memory to be overhauled to obtain a system storage data set of the memory to be overhauled;
obtaining a target application scene of the memory to be overhauled;
building a data traversal screening model based on the target application scene;
inputting the system storage data set into the data traversal screening model for training to obtain the equipment data information;
the set-up data traversal screening model comprises the following steps:
determining a data storage threshold value, a data calling threshold value and a data response frequency of the memory to be overhauled according to the target application scene;
marking the data storage threshold as a first associated parameter, the data calling threshold as a second associated parameter and the data response frequency as a third associated parameter;
collecting historical circulation data of the memory to be overhauled to obtain a historical circulation data set;
taking the historical circulation data set as training data, taking the first correlation parameter, the second correlation parameter and the third correlation parameter as comparison identification data, performing comparison training on the training data, and building the data traversal screening model.
2. The method of claim 1, wherein the method comprises:
carrying out user-defined splitting on the training data to obtain a data training set and a data verification set;
training the data training set based on the comparison identification data to generate a primary data traversal screening model;
inputting the data verification set into the preliminary data traversal screening model, and performing data verification training to generate a first verification result;
and optimizing the preliminary data traversal screening model according to the first verification result to generate the data traversal screening model.
3. The method of claim 2, wherein said obtaining extracted decoded data comprises:
calling a first initialization instruction of the memory to be overhauled, and initializing the memory to be overhauled;
and transmitting the sector data address of the target firmware data to the memory to be overhauled, and decoding the sector data address based on an embedded decoding table to obtain the extracted decoded data.
4. The method of claim 3, wherein the method comprises:
acquiring preset byte information of the sector data address;
obtaining conversion byte information of the extracted decoding data;
judging whether the converted byte information is consistent with the preset byte information or not;
and if the converted byte information is consistent with the preset byte information, generating a first extraction instruction, and performing mirror image extraction on the logic data of the target firmware data.
5. The method of claim 4, wherein the method comprises:
performing mirror image extraction on the logic data of the target firmware data to obtain preset standard sector data of the memory to be overhauled;
based on the preset standard sector data, carrying out contrast detection on the target firmware data to obtain a first detection difference result;
and correspondingly overhauling the memory to be overhauled according to the first detection difference result.
6. A memory firmware repair system, the system comprising:
the first extraction unit is used for extracting data of a memory to be overhauled to obtain equipment data information of the memory to be overhauled;
the first determining unit is used for determining a first overhaul parameter, a second overhaul parameter and a third overhaul parameter according to the equipment data information;
the first marking unit is used for marking the first overhaul parameter, the second overhaul parameter and the third overhaul parameter with parameter labels respectively, and performing advanced optimization on the marked parameters to generate advanced overhaul parameters;
the first scanning unit is used for scanning a service area of a chip channel of the memory to be overhauled according to the high-level overhaul parameters to obtain a scanning data set;
the first filtering unit is used for filtering the firmware data of the scanning data set to obtain target firmware data;
a second extraction unit, configured to perform decoding data extraction on the target firmware data to obtain extracted decoding data, and perform mirror image extraction of logic data on the target firmware data based on the extracted decoding data;
the first obtaining unit is used for traversing the memory to be overhauled to obtain a system storage data set of the memory to be overhauled;
the second obtaining unit is used for obtaining a target application scene of the memory to be overhauled;
the first building unit is used for building a data traversal screening model based on the target application scene;
the first input unit is used for inputting the system storage data set to the data traversal screening model for training to obtain the equipment data information;
the second determining unit is used for determining a data storage threshold value, a data calling threshold value and a data response frequency of the memory to be overhauled according to the target application scene;
a second marking unit, configured to mark the data storage threshold as a first associated parameter, the data retrieval threshold as a second associated parameter, and the data response frequency as a third associated parameter;
the first acquisition unit is used for acquiring historical circulation data of the memory to be overhauled to obtain a historical circulation data set;
and the first training unit is used for performing comparison training on the training data by taking the historical circulation data set as training data and the first association parameter, the second association parameter and the third association parameter as comparison identification data, and building the data traversal screening model.
7. An electronic device comprising a processor and a memory;
the memory is used for storing;
the processor is used for executing the method of any one of claims 1 to 5 through calling.
CN202211225311.9A 2022-10-09 2022-10-09 Memory firmware overhauling method and system Active CN115295061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211225311.9A CN115295061B (en) 2022-10-09 2022-10-09 Memory firmware overhauling method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211225311.9A CN115295061B (en) 2022-10-09 2022-10-09 Memory firmware overhauling method and system

Publications (2)

Publication Number Publication Date
CN115295061A CN115295061A (en) 2022-11-04
CN115295061B true CN115295061B (en) 2022-12-16

Family

ID=83833164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211225311.9A Active CN115295061B (en) 2022-10-09 2022-10-09 Memory firmware overhauling method and system

Country Status (1)

Country Link
CN (1) CN115295061B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1053506A (en) * 1990-01-17 1991-07-31 国际商业机器公司 Servo with the sector display that data structure is irrelevant
CN104205232A (en) * 2012-03-30 2014-12-10 英特尔公司 On chip redundancy repair for memory devices
CN109003643A (en) * 2018-07-20 2018-12-14 郑州云海信息技术有限公司 A kind of data processing method and device
CN111045871A (en) * 2018-10-15 2020-04-21 深信服科技股份有限公司 Hard disk bad track detection method and system
CN112540869A (en) * 2019-09-20 2021-03-23 三星电子株式会社 Memory controller, memory device, and method of operating memory device
CN114329496A (en) * 2021-12-31 2022-04-12 龙芯中科(成都)技术有限公司 Trusted starting method of operating system and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1053506A (en) * 1990-01-17 1991-07-31 国际商业机器公司 Servo with the sector display that data structure is irrelevant
CN104205232A (en) * 2012-03-30 2014-12-10 英特尔公司 On chip redundancy repair for memory devices
CN109003643A (en) * 2018-07-20 2018-12-14 郑州云海信息技术有限公司 A kind of data processing method and device
CN111045871A (en) * 2018-10-15 2020-04-21 深信服科技股份有限公司 Hard disk bad track detection method and system
CN112540869A (en) * 2019-09-20 2021-03-23 三星电子株式会社 Memory controller, memory device, and method of operating memory device
CN114329496A (en) * 2021-12-31 2022-04-12 龙芯中科(成都)技术有限公司 Trusted starting method of operating system and electronic equipment

Also Published As

Publication number Publication date
CN115295061A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
US10366275B2 (en) Method and device for improving fingerprint template, and terminal device
JP6575132B2 (en) Information processing apparatus and information processing program
CN100541489C (en) External metadata is handled
CN109118420B (en) Watermark identification model establishing and identifying method, device, medium and electronic equipment
CN110399247B (en) Data recovery method, device and equipment and computer readable storage medium
JP2007086954A (en) Character recognition processing device, character recognition processing method, and computer program
CN117376632B (en) Data recovery method and system based on intelligent depth synthesis
CN110989938A (en) Fault disk identification method, device, equipment and computer readable storage medium
US20070230826A1 (en) Method and apparatus for processing image, and printed material
CN106205731A (en) Information processing method and storage device
CN115295061B (en) Memory firmware overhauling method and system
CN114299030A (en) Object detection model processing method, device, equipment and storage medium
CN116739022B (en) Decoding method and device for bar code image and electronic equipment
WO2018131451A1 (en) Image processing program, image recognition program, image processing device, image recognition device, image recognition method, and image processing method
CN113469005A (en) Recognition method of bank receipt, related device and storage medium
CN110348240B (en) Method and device for extracting and analyzing off-line data of duplicator
CN111178037A (en) Repeated defect report identification method and device and electronic equipment
CN116186263A (en) Document detection method, device, computer equipment and computer readable storage medium
CN111427328B (en) Method for reducing household system faults
CN116189109A (en) Model training method, road event detection method, device and related equipment
CN117234791B (en) Method and device for detecting data loss of memory chip
JP6801741B2 (en) Information processing equipment and information processing programs
CN113269101A (en) Bill identification method, device and equipment
CN102947805B (en) Data administrator and data managing method
US11327770B2 (en) Data storage devices, access device and data processing methods

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