CN107168650A - A kind of processing method and processing device of data in memory to BIOS - Google Patents
A kind of processing method and processing device of data in memory to BIOS Download PDFInfo
- Publication number
- CN107168650A CN107168650A CN201710326178.9A CN201710326178A CN107168650A CN 107168650 A CN107168650 A CN 107168650A CN 201710326178 A CN201710326178 A CN 201710326178A CN 107168650 A CN107168650 A CN 107168650A
- Authority
- CN
- China
- Prior art keywords
- memory
- data
- read
- write
- block
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0727—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a kind of processing method and processing device of the data in memory to BIOS, this method includes:One reserved storage space is set in memory, and reserved storage space includes at least one Prearranged elements;When carrying out write operation to memory, write data into the storage medium of memory, and verify whether the block in the storage medium that data take is correct, the label pad if incorrect, data are re-write in Prearranged elements, and corresponding rewrite information is written in reserved storage space;When carrying out read operation to memory, by examining rewrite information, judge whether the block pre-read is correct, as incorrect, read corresponding data from Prearranged elements by rewrite information.This method is effectively reduced read-write error when making memory-aided storage medium, can either be reduced the damage rate of storage medium, BIOS normal startup is ensure that again using the reserved storage space set in BIOS memory.
Description
Technical field
The present invention relates to the smart machine such as computer field, the more particularly to a kind of place of the data in memory to BIOS
Manage method and device.
Background technology
When being read to memory, generally due to memory quality or read-write mode the problem of, it is difficult
Exempt from can occur read-write error, must when especially memory crucial in the BIOS to smart machines such as computers is written and read operation
These read-write errors must be reduced as far as possible, once because mistake occurs for the more master data that BIOS can be caused to store of the read-write error
By mistake, the storage medium of BIOS memory and can be caused to damage when wrong more, so that the smart machine such as computer can not
Start, immeasurable loss is caused to economy.
The content of the invention
The purpose of the embodiment of the present invention is the processing method and processing device for providing the data in a kind of memory to BIOS,
This method can effectively reduce the read-write error of the storage medium of BIOS memory, reduce the damage rate of storage medium.
In order to solve the above-mentioned technical problem, the embodiment of the present invention employs following technical scheme:A kind of storage to BIOS
The processing method of data in device, this method includes:
One reserved storage space is set in the memory, and it is reserved single that the reserved storage space includes at least one
Member;
When carrying out write operation to the memory, in the storage medium for writing data into the memory, and verify
Whether the block in the storage medium that the data take is correct, the block as described in mark if incorrect, by the data
Re-write in the Prearranged elements, and corresponding rewrite information is written in the reserved storage space;
When carrying out read operation to the memory, by examining the rewrite information, judge that the block pre-read is
It is no correct, such as it is incorrect, corresponding data are read from the Prearranged elements by the rewrite information, and utilize reading
Data start the BIOS.
Preferably, block in the storage medium that the described checking data take whether be specially correctly:
The data for writing the block are tested, judge to write the data of the block and the data before corresponding write-in whether one
Cause, as inconsistent, determine that corresponding block is incorrect.
Corresponding rewrite information is written to the reserved storage space included preferably, described:Described pre-
Stay and mapping table is set up in memory space;The corresponding rewrite information of the block that will appear from mistake is written to the mapping table
In.
Preferably, carrying out also including before write operation to the memory:Write-in interface corresponding to the memory
Information is modified;Write operation is carried out to the memory according to amended said write interface message.
Preferably, carrying out also including before read operation to the memory:Reading interface corresponding to the memory
Information is modified, and carries out read operation to the memory according to the amended reading interface message.
Preferably, the memory is NVRAM, the storage medium is SPI ROM.
The embodiment of the present invention additionally provides a kind of processing unit of the data in memory to BIOS, and described device includes
Setup module, writing module, read through model and authentication module;
The setup module is configured in the memory set a reserved storage space, the reserved storage space bag
Include at least one Prearranged elements;
The writing module is configured to, when carrying out write operation to the memory, write data into depositing for the memory
In storage media, and verify whether the block in the storage medium that the data take is correct by the authentication module, such as
It is incorrect, the block is marked, the data are re-write in the Prearranged elements, and corresponding rewrite information is write
Enter into the reserved storage space;
The read through model is configured to, when carrying out read operation to the memory, examine described heavy by the authentication module
Write information, judges whether the block pre-read is correct, if incorrect by the rewrite information from the Prearranged elements
Corresponding data are read, so that the BIOS is started using the data read.
Preferably, the authentication module is further configured to, the data for writing the block are tested, judge to write
Whether the data for entering the block are consistent with the data before corresponding write-in, as inconsistent, determine that corresponding block is incorrect.
Preferably, the writing module is further configured to, mapping table is set up in the reserved storage space, be will appear from
The corresponding rewrite information of the block of mistake is written in the mapping table.
Preferably, the writing module has write-in interface, said write interface is configured to when the writing module is to described
Memory is carried out before write operation, corresponding write-in interface message is modified, so that the writing module is according to amended
Said write interface message carries out write operation to the memory.
Preferably, the read through model, which has, reads interface, the reading interface is configured to when the read through model is to described
Memory is carried out before read operation, corresponding reading interface message is modified, so that the read through model is according to amended
The reading interface message carries out read operation to the memory.
Preferably, the memory is NVRAM, the storage medium is SPI ROM.
The beneficial effect of the embodiment of the present invention is:Using the reserved storage space set in BIOS memory, effectively
Reduction makes read-write error during memory-aided storage medium, can either reduce the damage rate of storage medium, ensure that again
BIOS normal startup, so as to ensure the normal startup of the smart machines such as computer.
Brief description of the drawings
Fig. 1 for the embodiment of the present invention the memory to BIOS in data processing method flow chart;
Fig. 2 is the flow chart being written to corresponding rewrite information in reserved storage space of the embodiment of the present invention;
Fig. 3 is the embodiment of the present invention to the flow chart before memory progress write operation;
Fig. 4 for the embodiment of the present invention the memory to BIOS in data processing unit structured flowchart;
Fig. 5 is a kind of structural representation of the storage medium of the BIOS of embodiment of the present invention memory.
Description of reference numerals
1- processing unit 2- setup module 3- writing modules
4- read through model 5- authentication modules 6-BIOS
7- storage medium 8- mapping table 9- Prearranged elements
10- reserved storage spaces
Embodiment
To make those skilled in the art more fully understand the present invention, embodiments of the invention are carried out with reference to the accompanying drawings detailed
Describe in detail bright but not as a limitation of the invention.
The processing method of data in a kind of memory to BIOS 6 of the embodiment of the present invention, this method can be in upgrading
Or used when rewriteeing BIOS 6, needed such as when the BIOS 6 to smart machine computer is upgraded or is rewritten to BIOS 6
Middle write-in data are so that the smart machine such as computer can read the data newly write from BIOS 6 on startup, so that normally
Start the smart machines such as computer, the process needs to be written and read operation, such as Fig. 1, Fig. 4 and Fig. 5 to BIOS 6 corresponding program
Shown, this method includes:
S1, sets a reserved storage space 10 in memory, and reserved storage space 10 includes at least one Prearranged elements
9.Self-inspection after the program of the most important basic input and output of the smart machine such as in store computer, start in BIOS 6 memory
Program and system self-triggered program, provide bottom, direct hardware setting and control, at one for smart machines such as computers
On the block (data block or data cell) that these programs or data can be written in memory space in embodiment, and reserve
Said procedure can not be stored in memory space 10, it is possible to sky is predisposed in initialization, reserved storage space 10 is included extremely
Few Prearranged elements 9, can set according to actual use demand to the number of Prearranged elements 9.For example under certain situation
The size of BIOS 6 memory is 200K to 400K, now reserved storage space 10 can be set into 64K, and the reserved storage is empty
Between 10 include 8 Prearranged elements 9, each Prearranged elements 9 are 4K sizes, certain reserved storage space 10 and corresponding Prearranged elements
9 size can be adjusted according to actual use situation, not limited herein.
S2, when carrying out write operation to memory, writes data into the storage medium 7 of memory, and verify data
Whether the block in the storage medium 7 of occupancy is correct, and data are re-write Prearranged elements 9 by the label pad if incorrect
In, and corresponding rewrite information is written in reserved storage space 10.Carrying out write operation to memory can be into memory
Program used in BIOS 6 is write, in case the smart machine such as computer is used, BIOS 6 memory can be polytype,
In one embodiment, the type of the memory is NVRAM, i.e. nonvolatile random access memory (Non-Volatile
Random Access Memory), refer to a kind of RAM for remaining to keep data after power-off, the memory reliability of the type is high,
It is applicable to the mission-critical application of high-performance and high reliability.In one embodiment, the storage medium 7 of memory can
Think SPI ROM (Serial Peripheral Interface read-only memory), SPI ROM are that serial peripheral connects
The read-only storage of mouth.It can be write data into the storage medium 7 of the type when writing data, specifically by data
Have been written on the block in memory space (data block or data cell), the block to these write-in data is also needed to after write-in
Verified, judge whether the write-in of data is correct, the mode of checking can be a variety of, and such as the data for writing block are entered in itself
Row examination, or the data of write-in are tested by check code, or verify that data are accounted for by other direct or indirect modes
Whether the block in storage medium 7 is correct, as incorrect, marks the block of the write-in data, will appear from write error
Data re-write in corresponding Prearranged elements 9 in the correct way, in case subsequent reading, and by corresponding rewrite information
It is written in reserved storage space 10, rewrite information can be represented in many ways, such as mapping table 8, character string or other modes,
And the rewrite information can record the information for the block for write error occur, and to the processing for the related data for writing the block
The information such as mode, the data that such as will appear from write error have re-write into specific which Prearranged elements 9 in the correct way.
S3, when carrying out read operation to memory, by examining rewrite information, judges whether the block pre-read is correct, such as
It is incorrect, corresponding data are read from Prearranged elements 9 by rewrite information, and start BIOS 6 using the data read.Need
Use and read operation just is carried out to the data or program that are stored in BIOS 6 first when the data or program that are stored in BIOS 6, such as
Fruit needs to carry out read operation to certain block in storage medium 7, at this moment needs to check rewrite information, by examining rewrite information,
Judge whether the block that pre-reads is correct, i.e., whether the data that the block is stored are correct, as incorrect, searched by rewrite information
The corresponding Prearranged elements 9 of correct data are preserved, corresponding data are read from Prearranged elements 9, and (correct data are writing behaviour
As when be stored in Prearranged elements 9), rewrite information have recorded the data for needing to read and its corresponding block and corresponding pre-
The information of unit 9 is stayed, therefore corresponding correct data can quickly be read from Prearranged elements 9 by rewrite information, is protected
Correctness when reading data is demonstrate,proved, so as to ensure that using the data for including reading from Prearranged elements 9 to start BIOS 6, example
Such as start BIOS 6 using other data of the data combination memory storage preserved in Prearranged elements 9.Aforesaid operations can be with
Avoid being read out the data for write error occur, cause occur mistake in logic, be situated between so as to avoid or reduce storage
Physical damnification occurs for matter 7, reduces production cost.
In one embodiment of the invention, checking data take storage medium 7 in block whether be specially correctly:
The data for writing block are tested, judge whether the data for writing block are consistent with the data before corresponding write-in, if not
It is consistent then determine that corresponding block is incorrect.The verification mode is directly concise, can quickly judge block when writing data
Whether mistake there occurs.And because the space of block in itself is smaller, such as 4K sizes, contrast write-in block data with it is corresponding
Data before write-in can be quickly completed, and spend the time relatively low and efficiency high.
In one embodiment of the invention, with reference to Fig. 2 and Fig. 5, corresponding rewrite information is written to reserved storage empty
Between 10 include:S21, sets up mapping table 8 in reserved storage space 10;S22, corresponding rewrite of block that will appear from mistake is believed
Breath is written in mapping table 8.The mapping table 8 can record the position of the block of labeled appearance mistake, the information such as numbering,
The information of the data on being stored in the block can also be recorded, the data that write error is will appear from write-in can also be recorded
The relevant information re-write in which Prearranged elements 9, that is, it can obtain that what data is write from mapping table 8
Mistake is occurred in that when entering to which block, and to the processing mode of the data, which Prearranged elements such as re-write
9, including the information such as the numbering of the Prearranged elements 9 or position.
In one embodiment of the invention, as shown in figure 3, carrying out also including before write operation to memory:S23 is right
The corresponding write-in interface message of memory is modified;S24, row write behaviour is entered to memory according to amended write-in interface message
Make.Write-in interface message have recorded the step of carrying out write operation to memory and related procedure, and root is needed when carrying out write operation
According to write-in interface message carry out order operation, generally, needed number directly according to write-in interface message in write operation
According to or program be written on the block in BIOS 6 memory, in one embodiment of the invention, to write-in interface message
Modify so that can be according to above-mentioned write operation when carrying out write operation to memory the step of carry out, and can be according to
Default step completes described write operation, it is to avoid occurs during write operation chaotic or logic error occurs.
In one embodiment of the invention, memory is carried out also including before read operation:It is corresponding to memory to read
Take interface message to modify, and read operation is carried out to memory according to amended reading interface message.Read interface message
The step of read operation is carried out to memory and related procedure are have recorded, needs enter according to interface message is read when carrying out read operation
Row order is operated, generally, is needed directly from BIOS 6 memory according to reading interface message in read operation
Data or program are read on block, in one embodiment of the invention, with reference to shown in Fig. 5, is repaiied to reading interface message
Change, and described read operation can be completed according to default step, can such as first pass through inquiry mapping table 8 and check the area pre-read
Whether block is recorded in mapping table 8, illustrates that the block pre-read is writing behaviour if the block pre-read is have recorded in mapping table 8
As when there is mistake, can be carried out when reading the data of the block according to the read operation in the present embodiment, such as pass through rewrite information
Corresponding data are read from Prearranged elements 9, and start BIOS 6 using the data read, and then start the intelligence such as computer and are set
It is standby, it is to avoid the data of read error or the storage medium 7 to BIOS 6 cause to damage, so as to can not normally start the intelligence such as computer
Can equipment.
In one embodiment of the invention, memory is NVRAM, and storage medium 7 is SPI ROM.NVRAM, i.e., it is non-easy
The property lost random access storage device (Non-Volatile Random Access Memory), refers to remain to keep data after power-off
A kind of RAM, the memory reliability of the type is high, it is adaptable to need the mission-critical application of high-performance and high reliability.
SPI ROM (Serial Peripheral Interface read-only memory) are the read-only storages of Serial Peripheral Interface (SPI)
Device, with highly versatile, the features such as easy to use.
The processing unit 1 of data in a kind of memory to BIOS 6 of the embodiment of the present invention, the processing unit 1 can be with
Upgrade or rewrite BIOS 6 when use, needed such as when the BIOS 6 to smart machine computer is upgraded or is rewritten to
Data are write in BIOS 6 so that the smart machine such as computer can read the data newly write from BIOS 6 on startup, from
And normally starting the smart machines such as computer, the device needs to be written and read BIOS 6 corresponding program operation, such as Fig. 4 and figure
Shown in 5, the processing unit 1 includes setup module 2, writing module 3, read through model 4 and authentication module 5;
Setup module 2 is configured to set a reserved storage space 10 in memory, and reserved storage space 10 is included at least
One Prearranged elements 9.The journey of the most important basic input and output of the smart machine such as in store computer in BIOS 6 memory
Self-check program and system self-triggered program after sequence, start, bottom, direct hardware setting is provided for smart machines such as computers
And control, these programs or data can be written to block (data block or the data in memory space in one embodiment
Unit) on, and said procedure can not be stored in reserved storage space 10, it is possible to and sky is predisposed in initialization, it is pre- to retain
Storage space 10 can set and can also be independently arranged in memory, and reserved storage space 10 includes at least one Prearranged elements 9,
The number of Prearranged elements 9 can be set according to actual use demand.Such as under certain situation BIOS 6 memory
Size is 200K to 400K, now reserved storage space 10 can be set into 64K, and the reserved storage space 10 includes 8 and reserved
Unit 9, each Prearranged elements 9 are 4K sizes, and the size of certain reserved storage space 10 and corresponding Prearranged elements 9 can basis
Actual use situation is adjusted, and is not limited herein.
Writing module 3 is configured to, when carrying out write operation to memory, write data into the storage medium 7 of memory,
And pass through authentication module 5 and verify whether the block in the storage medium 7 that data take correct, as incorrect, marks the block,
Data are re-write in Prearranged elements 9, and corresponding rewrite information is written in reserved storage space 10.Writing module 3
Program used in BIOS 6 can be write into memory by carrying out write operation to memory, in case the smart machine such as computer makes
With BIOS 6 memory can be polytype, in one embodiment, and the type of the memory is NVRAM, i.e., non-volatile
Property random access storage device (Non-Volatile Random Access Memory), refer to remain to keep data after power-off
A kind of RAM, the memory reliability of the type is high, it is adaptable to need the mission-critical application of high-performance and high reliability.
In one embodiment, the storage medium 7 of memory can be SPI ROM (Serial Peripheral Interface read-
Only memory), SPI ROM are the read-only storages of Serial Peripheral Interface (SPI).Can be by data when writing module 3 writes data
It is written in the storage medium 7 of the type, the block (data that specifically writing module 3 has been write data into memory space
Block or data cell) on, authentication module 5 is also needed to after write-in the block of these write-in data is verified, judge data
Whether write-in is correct, and the mode of checking can be a variety of, such as the data for writing block be checked in itself, or pass through check code
Data to write-in are tested, or by other direct or indirect modes verify data take storage medium 7 in area
Whether block is correct, as incorrect, marks the block of the write-in data, and writing module 3 will appear from the data of write error with just
True mode is re-write in corresponding Prearranged elements 9, in case subsequent reading, and corresponding rewrite information is written to pre-
Stay in memory space 10, rewrite information can be represented in many ways, such as mapping table 8, character string or other modes, and this is heavy
Write information can record the information for the block for write error occur, and the processing of the related data of the block is write to writing module 3
The information such as mode, such as writing module 3 will appear from write error data re-write in the correct way to it is specific which reserve
In unit 9.
Read through model 4 is configured to, when carrying out read operation to memory, rewrite information be examined by authentication module 5, judges pre-
Whether the block of reading is correct, as incorrect, corresponding data is read from Prearranged elements 9 by rewrite information, so that BIOS 6
Started using the data of reading.Need to use number just first to being stored in BIOS 6 when the data or program that are stored in BIOS 6
According to or program carry out read operation, if read through model 4 need in storage medium 7 certain block carry out read operation, at this moment verify mould
Block 5 needs to check rewrite information, by examining rewrite information, judges whether the block pre-read is correct, i.e. the number of block storage
Correctly whether according to, read through model 4 will search the preservation corresponding Prearranged elements 9 of correct data by rewrite information if incorrect, from
Corresponding data (correct data have been stored in Prearranged elements 9 in write operation) are read in Prearranged elements 9, letter is rewritten
Breath, which have recorded, needs the information of data and its corresponding block and the corresponding Prearranged elements 9 read, therefore passes through rewrite information
Corresponding correct data can be quickly read from Prearranged elements 9, it is ensured that read through model 4 reads correctness during data, from
And ensure that using BIOS 6 is started including the data that are read from Prearranged elements 9, such as using being preserved in Prearranged elements 9
Other data of data combination memory storage start BIOS 6.It is wrong that aforesaid operations can avoid 4 pairs of read through model from write-in occur
Data are read out by mistake, cause occur mistake in logic, occur physical damnification so as to avoid or reduce storage medium 7,
Reduce production cost.
In one embodiment of the invention, authentication module 5 is further configured to, and the data for writing block are examined
Test, judge whether the data for writing block are consistent with the data before corresponding write-in, as inconsistent, determine corresponding block not
Correctly.The verification mode of the authentication module 5 is directly concise, can quickly judge whether block there occurs mistake when writing data
By mistake.And because the space of block in itself is smaller, such as 4K sizes, the data and the data before corresponding write-in of contrast write-in block
It can be quickly completed, spend the time relatively low and efficiency high.
In one embodiment of the invention, with reference to Fig. 5, writing module 3 is further configured to, in reserved storage space 10
Mapping table 8 is set up, the corresponding rewrite information of block that will appear from mistake is written in mapping table 8.The mapping table 8 can be recorded
The position of the block of labeled appearance mistake, the information such as numbering, can also record the letter of the data on being stored in the block
Breath, can also record writing module 3 and will appear from the related letter that the data of write error have been re-write in which Prearranged elements 9
Breath, that is, it can obtain that what data has been written into occurring in that mistake during which block from mapping table 8, and to this
The processing mode of data, has such as re-write the information such as which Prearranged elements 9, including the numbering of the Prearranged elements 9 or position.
In one embodiment of the invention, writing module 3 has write-in interface, and write-in interface is configured to work as 3 pairs of writing module
Memory is carried out before write operation, corresponding write-in interface message is modified, so that writing module 3 is according to amended write-in
Interface message carries out write operation to memory.Write-in interface message have recorded the step of carrying out write operation to memory and related streams
Journey, when writing module 3 carries out write operation, needs are according to write-in interface message carry out order operation, generally, in write operation
When according to write-in interface message need directly data or program are written on the block in BIOS 6 memory, in the present invention
One embodiment in, write-in interface message is modified, so that writing module 3 can be by when carrying out write operation to memory
The step of according to above-mentioned write operation, is carried out, and described write operation can be completed according to default step, it is to avoid writing module 3 is being write
Occur chaotic during operation or logic error occur.
Read through model 4, which has, reads interface, reads interface and is configured to before read through model 4 carries out read operation to memory, will
Corresponding reading interface message is modified, so that read through model 4 is read memory according to amended reading interface message
Operation.Read interface message and have recorded the step of read operation is carried out to memory and related procedure, read operation is carried out in read through model 4
When need according to read interface message carry out order operation, generally, read through model 4 carry out read operation when connect according to reading
Message breath can directly read data or program from the block in BIOS 6 memory, in one embodiment of the invention,
Modified to reading interface message, and read through model 4 can complete described read operation according to default step, with reference to Fig. 5
Shown, such as read through model 4 can first pass through inquiry mapping table 8 and check whether the block pre-read is recorded in mapping table 8, such as reflect
The block pre-read is have recorded in firing table 8 and then illustrates that the block pre-read has mistake in write operation, the data of the block are read
When can be carried out according to the read operation in the present embodiment, such as read through model 4 be read from Prearranged elements 9 accordingly by rewrite information
Data, and start BIOS 6 using the data read, and then start the smart machine such as computer, it is to avoid the data of read error or
BIOS 6 storage medium 7 is caused to damage, so as to can not normally start the smart machines such as computer.
In one embodiment of the invention, memory is NVRAM, and storage medium 7 is SPI ROM.NVRAM, i.e., it is non-easy
The property lost random access storage device (Non-Volatile Random Access Memory), refers to remain to keep data after power-off
A kind of RAM, the memory reliability of the type is high, it is adaptable to need the mission-critical application of high-performance and high reliability.
SPI ROM (Serial Peripheral Interface read-only memory) are the read-only storages of Serial Peripheral Interface (SPI)
Device, with highly versatile, the features such as easy to use.
Above example is only the exemplary embodiment of the present invention, is not used in the limitation present invention, protection scope of the present invention
It is defined by the claims.Those skilled in the art can make respectively in the essence and protection domain of the present invention to the present invention
Modification or equivalent substitution are planted, this modification or equivalent substitution also should be regarded as being within the scope of the present invention.
Claims (12)
1. a kind of processing method of the data in memory to BIOS, it is characterised in that including:
One reserved storage space is set in the memory, and the reserved storage space includes at least one Prearranged elements;
When carrying out write operation to the memory, in the storage medium for writing data into the memory, and verify described
Whether the block in the storage medium that data take is correct, the block as described in mark if incorrect, by the data again
It is written in the Prearranged elements, and corresponding rewrite information is written in the reserved storage space;
When carrying out read operation to the memory, by examining the rewrite information, whether just the block pre-read is judged
Really, as incorrect, corresponding data are read from the Prearranged elements by the rewrite information, and utilize the data read
Start the BIOS.
2. according to the method described in claim 1, it is characterised in that the storage medium that the described checking data take
In block whether be specially correctly:The data for writing the block are tested, judge the data of the write-in block with
Whether the data before corresponding write-in are consistent, as inconsistent, determine that corresponding block is incorrect.
3. according to the method described in claim 1, it is characterised in that described that corresponding rewrite information is written to described reserve
Memory space includes:Mapping table is set up in the reserved storage space;The block that will appear from mistake is corresponding described
Rewrite information is written in the mapping table.
4. according to the method described in claim 1, it is characterised in that the memory is carried out before write operation also to include:It is right
The corresponding interface message that writes of the memory is modified;According to amended said write interface message to the memory
Carry out write operation.
5. according to the method described in claim 1, it is characterised in that the memory is carried out before read operation also to include:It is right
The corresponding interface message that reads of the memory is modified, and according to the amended reading interface message to the storage
Device carries out read operation.
6. according to the method described in claim 1, it is characterised in that the memory is NVRAM, the storage medium is SPI
ROM。
7. the processing unit of the data in a kind of memory to BIOS, it is characterised in that described device includes setup module, writes
Module, read through model and authentication module;
The setup module is configured in the memory set a reserved storage space, and the reserved storage space is included extremely
Few Prearranged elements;
The writing module is configured to when carrying out write operation to the memory, and the storage for writing data into the memory is situated between
In matter, and pass through the authentication module and verify whether the block in the storage medium that the data take is correct, if not just
It is true then mark the block, the data are re-write in the Prearranged elements, and corresponding rewrite information is written to
In the reserved storage space;
The read through model is configured to, when carrying out read operation to the memory, examine described rewrite to believe by the authentication module
Breath, judges whether the block pre-read is correct, is read if incorrect by the rewrite information from the Prearranged elements
Corresponding data, so that the BIOS is started using the data read.
8. device according to claim 7, it is characterised in that the authentication module is further configured to, described to write-in
The data of block are tested, and judge whether the data for writing the block are consistent with the data before corresponding write-in, such as differ
Cause then determines that corresponding block is incorrect.
9. device according to claim 7, it is characterised in that the writing module is further configured to, in the pre- retention
Storage sets up mapping table in space, and the corresponding rewrite information of the block that will appear from mistake is written in the mapping table.
10. device according to claim 7, it is characterised in that the writing module has write-in interface, said write interface
It is configured to before the writing module carries out write operation to the memory, corresponding write-in interface message is modified, with
The writing module is set to carry out write operation to the memory according to amended said write interface message.
11. device according to claim 7, it is characterised in that the read through model, which has, reads interface, the reading interface
It is configured to before the read through model carries out read operation to the memory, corresponding reading interface message is modified, with
The read through model is set to carry out read operation to the memory according to the amended reading interface message.
12. device according to claim 7, it is characterised in that the memory is NVRAM, the storage medium is SPI
ROM。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710326178.9A CN107168650B (en) | 2017-05-10 | 2017-05-10 | Method and device for processing data in memory of BIOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710326178.9A CN107168650B (en) | 2017-05-10 | 2017-05-10 | Method and device for processing data in memory of BIOS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107168650A true CN107168650A (en) | 2017-09-15 |
CN107168650B CN107168650B (en) | 2020-05-01 |
Family
ID=59812602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710326178.9A Active CN107168650B (en) | 2017-05-10 | 2017-05-10 | Method and device for processing data in memory of BIOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107168650B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582488A (en) * | 2018-12-03 | 2019-04-05 | 郑州云海信息技术有限公司 | A kind of wrong prevention method and relevant apparatus of solid state hard disk |
CN111158589A (en) * | 2019-12-16 | 2020-05-15 | 绿晶半导体科技(北京)有限公司 | Dynamic management method and device for storage array |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1490793A (en) * | 2002-10-15 | 2004-04-21 | 联发科技股份有限公司 | Disc damage managing method |
CN103377129A (en) * | 2012-04-11 | 2013-10-30 | 群联电子股份有限公司 | Data writing-in method, memory controller and memory storage device |
CN103455386A (en) * | 2013-08-28 | 2013-12-18 | 华为技术有限公司 | Method and equipment for restoring error data |
CN104615550A (en) * | 2015-01-27 | 2015-05-13 | 华为技术有限公司 | Storage equipment bad block processing method and device and storage equipment |
-
2017
- 2017-05-10 CN CN201710326178.9A patent/CN107168650B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1490793A (en) * | 2002-10-15 | 2004-04-21 | 联发科技股份有限公司 | Disc damage managing method |
CN103377129A (en) * | 2012-04-11 | 2013-10-30 | 群联电子股份有限公司 | Data writing-in method, memory controller and memory storage device |
CN103455386A (en) * | 2013-08-28 | 2013-12-18 | 华为技术有限公司 | Method and equipment for restoring error data |
CN104615550A (en) * | 2015-01-27 | 2015-05-13 | 华为技术有限公司 | Storage equipment bad block processing method and device and storage equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582488A (en) * | 2018-12-03 | 2019-04-05 | 郑州云海信息技术有限公司 | A kind of wrong prevention method and relevant apparatus of solid state hard disk |
CN109582488B (en) * | 2018-12-03 | 2021-11-09 | 郑州云海信息技术有限公司 | Error prevention method and related device for solid state disk |
CN111158589A (en) * | 2019-12-16 | 2020-05-15 | 绿晶半导体科技(北京)有限公司 | Dynamic management method and device for storage array |
CN111158589B (en) * | 2019-12-16 | 2023-10-20 | 绿晶半导体科技(北京)有限公司 | Dynamic management method and device for storage array |
Also Published As
Publication number | Publication date |
---|---|
CN107168650B (en) | 2020-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104216791B (en) | A kind of method of verification Flash storages data | |
US8225067B2 (en) | Multilevel cell NAND flash memory storage system, and controller and access method thereof | |
TWI546666B (en) | Data storage device and flash memory control method | |
CN104025047B (en) | Information processor, information processing method and computer program | |
US8055834B2 (en) | Method for preventing read-disturb happened in non-volatile memory and controller thereof | |
JP2014038593A (en) | On-chip nand type flash memory and defective block management method therefor | |
CN109582216B (en) | Data storage device and data processing method of memory device | |
US9619380B2 (en) | Data writing method, memory control circuit unit and memory storage apparatus | |
US8667348B2 (en) | Data writing method for non-volatile memory module and memory controller and memory storage apparatus using the same | |
US9552287B2 (en) | Data management method, memory controller and embedded memory storage apparatus using the same | |
TWI486957B (en) | Method, device and operating system for processing, using a nand flash memory burn data | |
US9514843B2 (en) | Methods for accessing a storage unit of a flash memory and apparatuses using the same | |
CN103744744B (en) | The data verification method of data memory device and volatile memory | |
CN107195329A (en) | The wrong method and DRAM of storage array in DRAM are corrected in read operation | |
JP4196743B2 (en) | Semiconductor memory device | |
CN103177770A (en) | Memory structure, repair system and method for testing the same | |
CN107168650A (en) | A kind of processing method and processing device of data in memory to BIOS | |
CN102646453A (en) | Method and system for testing error correcting code module in NandFlash controller | |
JP4180757B2 (en) | Simulation device | |
CN103593252B (en) | The memory detected with dynamic error and corrected | |
US20030051193A1 (en) | Computer system with improved error detection | |
CN106971757A (en) | A kind of method and system of inspection Nand Flash mass | |
CN105867833B (en) | Data storage device and date storage method | |
CN207337927U (en) | A kind of dynamic random access memory that storage array mistake is corrected in read operation | |
CN112965853B (en) | Data storage and verification method, device and medium of intelligent card |
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 |