CN101872326A - Data storage management method for OTP flash memory under embedded environment - Google Patents

Data storage management method for OTP flash memory under embedded environment Download PDF

Info

Publication number
CN101872326A
CN101872326A CN 201010207917 CN201010207917A CN101872326A CN 101872326 A CN101872326 A CN 101872326A CN 201010207917 CN201010207917 CN 201010207917 CN 201010207917 A CN201010207917 A CN 201010207917A CN 101872326 A CN101872326 A CN 101872326A
Authority
CN
China
Prior art keywords
address
page
flash memory
physical
district
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
Application number
CN 201010207917
Other languages
Chinese (zh)
Other versions
CN101872326B (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.)
Jinan University
University of Jinan
Original Assignee
University of Jinan
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 University of Jinan filed Critical University of Jinan
Priority to CN2010102079170A priority Critical patent/CN101872326B/en
Publication of CN101872326A publication Critical patent/CN101872326A/en
Application granted granted Critical
Publication of CN101872326B publication Critical patent/CN101872326B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a data storage management method for an OTP flash memory under an embedded environment, which comprises the following steps of: performing classification management on a file system area and a user data area, and performing different data storage management methods on the two areas so as to realize effective management of the OTP flash memory. In common data storage, address mapping can be implemented by simple calculation and combination of a bad block table and a page replacing table so as to simplify the management algorithm complexity; and the consumption of system resources is reduced by adopting a forward programming method in a file system.

Description

A kind of data storage and management method of OTP flash memory under embedded environment
Technical field
The present invention relates under a kind of embedded environment in the method for the enterprising line data storage administration of OTP flash memory, wherein OTP refers to One Time Programmable, and the meaning is an One Time Programmable.
Background technology
At present aspect Computer Storage, used storage medium mainly comprises: magnetic medium (hard disk), light medium (CD) and now obtaining popularizing rapidly with flash memory (Flash, claim flash memory again) be the solid storage medium of representative, wherein swift and violent with the solid-state storage development.Along with popularizing of flash media, corresponding, its price is also in rapid decline, the trend that SSD (solid-state disk) progressively replaces hard disk occurred in some field; Being mainly used in media releasing of CD comprise software, multimedia, data etc., but there is big, the flimsy shortcoming of volume in CD, carries out media releasing with CD simultaneously and is not easy to realize copyright protection at present.Under this background; using flash media substitute disc that present cost reduces rapidly carries out media releasing and has broad application prospects; because flash media not only has advantages such as volume is little, low in energy consumption, access speed is fast, can also utilize advanced digital copyright protection technology (DRM) to safeguard publisher's interests simultaneously.
The characteristic of flash memory: flash memory, there is bad piece usually in the particularly the most frequently used NAND type, OTP type flash memory is no exception, must carry out the identification of bad piece and reject when information stores.Because the existence of bad piece, the piece that can cause flash memory to use is discontinuous on physical address, and this can bring inconvenience in application, because be logical address from the address that host side such as windows operating system send, logical address is continuous, can not have the notion of bad piece.The physical address of flash memory can be divided into physical block address and physical page address again, corresponds to also to have LBA (Logical Block Addressing) and logical page address in the logical address.Usually need carry out the mapping of physical address space and logical address space with the mode of look-up table, reject bad piece physically, for operating system provides continuous logical address space.
When carrying out media releasing with flash memory, the OTP flash memory is a kind of suitable selection, and with respect to repeatedly repeating erasable flash memory, it is lower that the OTP flash memory has a cost, the characteristics that security is higher.But the management of the information stores on the OTP flash memory has very big difference with traditional flash memory management.Traditional form of look is very effective to repeatedly erasable flash memory management, because the operation of write data can cause the frequent updating of corresponding relation in the look-up table, this renewal can be written in the flash memory at any time to reflect the change of this mapping relations; But in the OTP flash memory, this situation is just different, because OTP can only one-time write, and the renewal of the table of comparisons and be written to the minimizing that flash memory can cause the flash memory free space, frequent renewal operation will cause the significant wastage of OTP free space.But, from application point of view, needing to realize that this will cause file system data to be rewritten to the operations such as file interpolation on the flash memory, file data renewals etc. therefore must the new this contradiction of data storage management algorithm process of design.
Summary of the invention
Therefore, the present invention has proposed a kind of satisfied OTP flash data memory management method that carries out the demand of media releasing with the OTP flash memory in order to overcome OTP flash memory the problems referred to above in storing process.
The present invention is by the following technical solutions:
This invention is the OTP flash data memory management method under the embedded environment, this method is based on the FAT file system, generate bad piece substitution table and page or leaf substitution table by initial low-level formatting, and with flash memory space from the 0th page to the OTP management algorithm reserve area that finishes to be divided into successively first district, the flash memory system reserved area in second district, the user data area in the file system area in the 3rd district and catalogue reserved area and the 4th district, wherein said bad piece substitution table and page or leaf substitution table are stored in first district, the 3rd district is with DBR, create reserve sector, and with FAT and FAT copy, create root directory, and in first district with the flash memory system software configuration information and store the address search table of file system area, and then this method may further comprise the steps:
A. flash memory system is power-up to readyly, waits for the main frame read write command;
B. receive the main frame read write command, change step C1 if read instruction, write command changes step C2;
If C1. read file system area, then change step D1; Otherwise change step D2;
If C2. the written document system region then changes step e 1; Otherwise change step e 2;
D1. according to the address search table of file system area, find physical address corresponding, change steps A after the reading of data;
D2. the instruction that is received by flash memory system draws logical address, calculate physical address according to logical address to the computing formula of physical address, and judge whether this physical address appears in bad piece substitution table and the page or leaf substitution table, if return steps A after then finding corresponding physical address reading of data according to these two tables; If not, then, return steps A after the reading of data according to the physical address that calculates;
E1. on the basis of current physical address, seek next available page or leaf forward, file system data is write, simultaneously the logical page address of described current physical address is written to the free area of this page, upgrade the file system address look-up table in the flash memory system internal memory, and whether the update times of judging this address search table reaches setting threshold, if reach, then this address search table is updated to the address search table of the file system area in first district, turn back to steps A after finishing;
E2. judge that the instruction that flash memory receives is that data are added or Data Update, if the former then changes step F 1, if the latter then changes step F 2;
F1. the instruction that is received by flash memory system draws logical address, calculate physical address according to logical address to the computing formula of physical address, next judge whether this physical address appears in the bad piece substitution table, if then find corresponding physical address, return steps A after writing data according to the piece substitution table; Otherwise,, return steps A after writing data then according to the physical address that calculates;
F2. on the basis of the current physical address in second district, search an available page or leaf forward and write data updated, return steps A after writing first district simultaneously with the page or leaf substitution table renewal in first district, and with this page substitution table.
The institute of technical solution of the present invention is a kind of type of NAND cheaply flash memory according to the OTP flash memory, and its erasable operation can only allow once; And it is disposablely to write continuously that writing of flash memory recommended operation, supports the operation of follow-up interpolation file repeatedly simultaneously, and to add this number be limited; Especially the renewal of file is the operation of not recommending.
File system area and user data area Classification Management, these two districts are adopted different data storage and management methods according to the data storage and management method of the OTP flash memory under embedded environment of technical solution of the present invention, realize effective management of OTP flash memory.In the general data storage, just can realize map addresses, the streamlining management algorithm complex by simple calculating and in conjunction with bad block table and page or leaf substitution table; Get the consumption that the method that adopts the forward direction programming reduces system resource in file system.
A memory page is made of data field and space, free area (spare area) in the flash memory, and in application, the data field is used for store data, and the free area then is used to deposit corresponding configuration data and redundant correcting information etc.At file system area, the present invention provides headspace for the renewal of file system area.File system area of the present invention is set up an address search table separately, is stored in first district.Because the renewal of file system is the most frequent, if all upgrade corresponding address search table when file upgrades at every turn, then headspace will deplete very soon.At this situation, in conjunction with the characteristics of OTP write-once, the present invention has designed the management method based on the forward direction programming.The implication of forward direction programming has two kinds, one, when general data programme, the address that programme be on the basis, current address forward (direction that the address increases) search one available page, write then; Two, when file system was upgraded, the address search table needed to upgrade, but this table can't immediate updating in flash memory, but temporarily remain in the memory headroom.Simultaneously, seek a new page or leaf forward on the basis of original page address, and the file system data that upgrades is write this page or leaf, logical page address originally will be written to the free area of this page, and the Data Update operation of such file system is finished.When the update times of file system address look-up table reaches threshold value of default, just this table in the memory headroom is written in flash memory first district, so just saved the resource consumption that the address search table upgrades greatly.
Said method, described first district and second district are hiding sightless to host computer system, are the flash memory system reserved area.
Said method if the logical address that general data writes exists, then is judged as Data Update in flash memory.
The method of obtaining physical page address is according to the piece of current flash configuration and the corresponding relation of page or leaf, obtains corresponding physical block address according to given logical address; If the physical block address that obtains is not in bad piece substitution table, the physical block address that then obtains is correct physical block address, otherwise obtains the physical block address of replacement according to the piece substitution table; After obtaining physical block address, obtain physical page address according to the page or leaf offset address in the given logical address, if physical page address not in the page or leaf substitution table, then be correct physical page address, otherwise, from the page or leaf substitution table, find the physical page address of the replacement of correspondence.
Described file system address look-up table all will be rebuild when flash memory powers at every turn, this process of reconstruction at first finds the physical block address that is used to deposit the file system address look-up table of reservation, rule according to the forward direction programming finds up-to-date address stored look-up table one by one, find the logical page address that takes out one by one again behind the address search table wherein, and then in the 3rd district, search from back to front from file system area, when finding this logical page address for the first time, it is added in the corresponding address search list item go, this search procedure that circulates, the start address that is reduced to file system area until physical page address just stops.
The data that are complementary that described configuration information writes for the host-host protocol according to flash memory system.
The number of times that data are added is a limited number of time.
Description of drawings
Below in conjunction with Figure of description in detail technical scheme of the present invention is described in detail, wherein:
Fig. 1 is for realizing the hardware block diagram of technical solution of the present invention
Fig. 2 is the OTP flash memory address subregion synoptic diagram according to technical solution of the present invention.
Fig. 3 writes process flow diagram for flash data.
Fig. 4 is for reading the flash data process flow diagram.
Embodiment
With reference to Figure of description 1 to 4, according to technical scheme of the present invention, a kind of data storage and management method of OTP flash memory under embedded environment, this method is based on the FAT file system, generate bad piece substitution table and page or leaf substitution table by initial low-level formatting, and with flash memory space from the 0th page to the OTP management algorithm reserve area that finishes to be divided into successively first district, the flash memory system reserved area in second district, the user data area in the file system area in the 3rd district and catalogue reserved area and the 4th district, wherein said bad piece substitution table and page or leaf substitution table are stored in first district, the 3rd district is with DBR, create reserve sector, and with FAT and FAT copy, create root directory, and in first district with the flash memory system software configuration information and store the address search table of file system area, and then this method may further comprise the steps (is the example explanation to read and write single page or leaf):
A. flash memory system is power-up to readyly, waits for the main frame read write command;
B. receive the main frame read write command, change step C1 if read instruction, write command changes step C2;
If C1. read file system area, then change step D1; Otherwise change step D2;
If C2. the written document system region then changes step e 1; Otherwise change step e 2;
D1. according to the address search table of file system area, find physical address corresponding, change steps A after the reading of data;
D2. the instruction that is received by flash memory system draws logical address, calculate physical address according to logical address to the computing formula of physical address, and judge whether this physical address appears in bad piece substitution table and the page or leaf substitution table, if return steps A after then finding corresponding physical address reading of data according to these two tables; If not, then, return steps A after the reading of data according to the physical address that calculates;
E1. on the basis of current physical address, seek next available page or leaf forward, file system data is write, simultaneously the logical page address of described current physical address is written to the free area of this page, upgrade the file system address look-up table in the flash memory system internal memory, and whether the update times of judging this address search table reaches setting threshold, if reach, then this address search table is updated to the address search table of the file system area in first district, turn back to steps A after finishing;
E2. judge that the instruction that flash memory receives is that data are added or Data Update, if the former then changes step F 1, if the latter then changes step F 2;
F1. the instruction that is received by flash memory system draws logical address, calculate physical address according to logical address to the computing formula of physical address, next judge whether this physical address appears in the bad piece substitution table, if then find corresponding physical address, return step after writing data according to the piece substitution table
A; Otherwise,, return steps A after writing data then according to the physical address that calculates;
F2. on the basis of the current physical address in second district, search an available page or leaf forward and write data updated, return steps A after writing first district simultaneously with the page or leaf substitution table renewal in first district, and with this page substitution table.
DBR refers to DOS BOOT RECORD, it is dos boot record, in the FAT file system, can obtain FAT number and hiding sector number according to DBR information, can determine the start address of root directory according to these information, can determine the start address in normal user data district in this subregion again according to the item number in the root directory, so just to distinguish be the visit in file system area and general data district to the logical address of the main frame that can receive according to flash memory system.
Low-level formatting is only undertaken by the special system instrument when flash memory system powers on for the first time.The step and the content of operation comprise:
1. bad block scan from first BOB(beginning of block), carry out bad block scan, until the whole address space of traversal.The labeling method of bad piece also was not quite similar when different vendor dispatched from the factory at flash memory, specifically need carry out the judgement of bad piece according to the handbook of manufacturer.If if if any manufacturer definition when dispatching from the factory certain blocks of data for complete zero then this piece is a bad piece.If find a bad piece, then in table 1 (bad piece substitution table), add a record, write down the address of bad piece, replace with the good piece in the flash memory system reserved area in Fig. 2 second district simultaneously, so just realized the shielding of bad piece, when system has access to the address of bad piece, look-up table 1, know that then this piece is a bad piece, can not visit that the address of visit should forward the corresponding replace block that table 1 provides to.After whole address space traversal is finished, form complete bad piece substitution table and store among Fig. 2 and go in the first district OTP management algorithm reserve area.If bad block scan process can not be finished or the quantity of bad piece reaches certain numerical value, judge that then changing flash memory is waste product, can not use.
The bad piece substitution table of table 1
Bad piece physical address ??BadBlock_1 ??BadBlock_2 ??BadBlock_3 ...
The replace block physical address ??SubBlock_1 ??SubBlock_2 ??Sub_Block_3 ...
Table 2 page substitution table
Logical page address ?BadPage_1 ??BadPage_2 ??BadPage_3 ...
Physical page address ?SubPage_1 ??SubPage_2 ??SubPage_3 ...
The data structure of table 3 Hash memory pages
Figure BSA00000177848700061
Table 4 file system address look-up table
Logical page address ?Page_1 ??Page_2 ??Page_3 ...
Physical page address ?SubPage_1 ??SubPage_2 ??SubPage_3 ...
2. set the address space range in Fig. 2 Zhong Ge district, flash memory system had just been decided user's free space after address realm was set and finished.
3. written document system data the 3rd district in Fig. 2, content comprises and writes DBR, creates reserve sector, writes FAT and FAT copy, creates root directory.
4. according to the host-host protocol (as USB, SD etc.) of flash memory system, write the data relevant first district in Fig. 2, as the configuration information of system software with system transport protocol.
Flash memory system powers on once more and just can finish the loading of formatted message automatically through after the low-level formatting, and flash memory system will be finished following operation steps automatically:
1. read among Fig. 2 one, two, three, the address space range configuration information in Si Ge district.
2. from Fig. 2 first district, be written into bad piece substitution table (table 1), page or leaf substitution table (table 2).
3. reset file system address look-up table (table 4) in the flash memory system internal memory.
4. initialization system communications protocol.According to the communication interface of system, and the configuration information initialize communications module that deposits in of low-level formatting stage.
The characteristic that the OTP flash memory is different from universal nand flash memory is that its erasable number of times can only be for once, this specific character makes map addresses and the universal nand flash memory in the OTP flash memory management have bigger difference: in universal nand flash memory, address mapping table can be frequent renewal, with functions such as the erasable balanced algorithm of realizing flash memory, performance optimizations; In the OTP flash memory management, do not need to consider erasable balanced algorithm, but the redesign that will shine upon according to the characteristic of OTP is divided into two kinds to the data in the flash memory: file system area and data field in design process of the present invention.Different management methods is taked in two zones, reason is can not wipe once more after the OTP flash memory writes, therefore no longer change after the content of data area stores writes, main operation is to append new file on using, so not frequent in the address mapping relation change of data field; But at file system area, file each time adds or renewal all can cause the data of FAT table and directory area to change.So each time change all needs address mapping relation is upgraded, and the frequency that this map addresses is upgraded operation is more frequent.According to above-mentioned analysis, in the present invention the flash memory volume inside is divided into different functional areas, as shown in Figure 2.
The map addresses in general data district: in the general data district, we define a piece substitution table (table 1) and a page or leaf substitution table (table 2).When bad piece existed, the project in the updating form 1 also left Fig. 2 first district OTP management algorithm reserve area in; When page or leaf write error or page address replacement, updating form 2 also leaves Fig. 2 first district OTP management algorithm reserve area in.According to the characteristic of OTP flash memory, the map addresses strategy of adopt simplifying among the design is write fashionablely carrying out data, always searches a new available address on the direction that increases in the address and writes i.e. forward direction programming.Can realize the mapping one to one between the logic and physical address so substantially, and then details such as bad piece and page or leaf replacement are adjusted.Concrete address mapping method is as follows:
Page addressing in the flash memory can be according to the configuration information of concrete flash memory type, according to the corresponding relation of piece with page or leaf, and obtains corresponding page address according to the page or leaf side-play amount.Suppose that the logical address that host computer system is come is defined as LBA, unit is the sector, and the physical block address of flash memory is defined as PBA, defines and can deposit s sectors of data in each Hash memory pages, and the page or leaf offset address in the piece is defined as poffset.To one, two, 33 districts of Fig. 2, we stipulate that their space is the piece alignment, and just they all take the space of an integer piece, suppose that these three districts account for m piece altogether.Have n page or leaf to constitute in each piece, then the basic calculating formula that obtains physical block address according to logical address is exactly (/ expression is divided exactly):
PBA=(LBA/s)/n+m formula (1)
Poffset=(LBA-PBA*n*s)/s formula (2)
If in bad piece substitution table 1, the physical block address that then calculates is not correct physical block address to the physical block address that calculates, otherwise need be according to the physical block address of table 1 acquisition replacement.After obtaining physical block address, just can calculate page or leaf offset address in physical block according to formula (2), if exist page or leaf to replace (page address appears in the table 2), then need to obtain correct page address according to table 2 page substitution table.
The file system area map addresses: a memory page is made of data field and space, free area (spare area) in the flash memory as previously mentioned, in application, the data field is used for store data, and the free area then is used to deposit corresponding configuration data and redundant correcting information etc., and is as shown in table 3.At file system area, shown in the 3rd district among Fig. 2, the present invention provides headspace for the renewal of file system area.File system area of the present invention is set up an address search table separately, is stored in zone shown in Fig. 2 first district.The address search table of file system is as shown in table 4.But because the renewal of file system is the most frequent, if all upgrade corresponding look-up table when file upgrades at every turn, then the headspace in Fig. 2 first district will deplete very soon.At this situation, in conjunction with the characteristics of OTP write-once, the present invention has designed the management method based on the forward direction programming.The implication of forward direction programming has two kinds, one, when general data programme, the address that programme be on the basis, current address forward (direction of address increase) search an available piece, write then; Two, when the renewal of address search table promptly appears in the file system renewal, table 4 can't immediate updating in flash memory, but be temporarily stored in the internal memory of flash memory system, and seeking a new page or leaf (in the zone in Fig. 2 the 3rd district appointment) on the basis of original page address forward, and the file system content that upgrades write this page or leaf, simultaneously original logical page address is written to the free area of this page.When the update times of file system address look-up table reaches threshold value of default, just this table is written in Fig. 2 first district.So just saved the resource consumption that look-up table upgrades greatly.
Described first district and second district are hiding sightless to host computer system, are the flash memory system reserved area, are beneficial to the Object Operations management.
Simply, if the logical address that general data writes exists, then be judged as Data Update in flash memory.
File system address look-up table based on the forward direction programming is rebuild: because the free area that the address mapping relation of file system is dispersion is present in each page, therefore need when powering on, each flash memory system carry out the reconstruction of file system address look-up table, and synchronous with the map addresses that keeps flash memory system.The process of rebuilding is based on forward direction programming and retrospective search strategy, and is written to the logical page address in the free area in programming process.As shown in table 4, the index of file system address look-up table is a logical page address, and corresponding physical page address is the content of form.In process of reconstruction, system at first finds the physical block address that is used to deposit look-up table of reservation, rule according to the forward direction programming finds up-to-date address stored look-up table one by one, find the logical page address that takes out one by one again behind the address table wherein, in Fig. 2 the 3rd district from after retrospective search forward, promptly do not begin to search to the direction that the address reduces for complete 1 physical page address from last data of file system area, when in the data of the free area of certain page address, finding this logical page address for the first time, this physical page address is just filled in the corresponding address search list item and is gone, because it is more frequent that file system is upgraded operation, may find in the follow-up search procedure and find identical logical page address in the different physical page address, but have only the physical page address that finds for the first time to be only up-to-date data.The process that look-up table is searched reconstruction just stops up to the start address that physical page address is reduced to file system area, can guarantee the integrality that the file system look-up table is rebuild like this.
The number of times that data are added is a limited number of time: because the OTP flash memory can only one-time write, therefore the interpolation of data operation not only will consume the user's space of flash memory, be the space in Fig. 2 the 4th district, because Data Update causes the space that correspondent file system is upgraded also needs to consume Fig. 2 the 3rd district.Therefore the number of times that data are added on the OTP flash memory is limited.The present invention effectively reduces the resource consumption that file system area upgrades by the difference management in file system area and general data district, can realize that the file of limited number of times adds operation, satisfies the demand of practical application.

Claims (7)

1. the data storage and management method of an OTP flash memory under embedded environment, it is characterized in that this method is based on the FAT file system, generate bad piece substitution table and page or leaf substitution table by initial low-level formatting, and with flash memory space from the 0th page to the OTP management algorithm reserve area that finishes to be divided into successively first district, the flash memory system reserved area in second district, the user data area in the file system area in the 3rd district and catalogue reserved area and the 4th district, wherein said bad piece substitution table and page or leaf substitution table are stored in first district, the 3rd district is with DBR, create reserve sector, and with FAT and FAT copy, create root directory, and in first district with the flash memory system software configuration information and store the address search table of file system area, and then this method may further comprise the steps:
A. flash memory system is power-up to readyly, waits for the main frame read write command;
B. receive the main frame read write command, change step C1 if read instruction, write command changes step C2;
If C1. read file system area, then change step D1; Otherwise change step D2;
If C2. the written document system region then changes step e 1; Otherwise change step e 2;
D1. according to the address search table of file system area, find physical address corresponding, change steps A after the reading of data;
D2. the instruction that is received by flash memory system draws logical address, calculate physical address according to logical address to the computing formula of physical address, and judge whether this physical address appears in bad piece substitution table and the page or leaf substitution table, if return steps A after then finding corresponding physical address reading of data according to these two tables; If not, then, return steps A after the reading of data according to the physical address that calculates;
E1. on the basis of current physical address, seek next available page or leaf forward, file system data is write, simultaneously the logical page address of described current physical address is written to the free area of this page, upgrade the file system address look-up table in the flash memory system internal memory, and whether the update times of judging this address search table reaches setting threshold, if reach, then this address search table is updated to the address search table of the file system area in first district, turn back to steps A after finishing;
E2. judge that the instruction that flash memory receives is that data are added or Data Update, if the former then changes step F 1, if the latter then changes step F 2;
F1. the instruction that is received by flash memory system draws logical address, calculate physical address according to logical address to the computing formula of physical address, next judge whether this physical address appears in the bad piece substitution table, if then find corresponding physical address, return steps A after writing data according to the piece substitution table; Otherwise,, return steps A after writing data then according to the physical address that calculates;
F2. on the basis of the current physical address in second district, search an available page or leaf forward and write data updated, return steps A after writing first district simultaneously with the page or leaf substitution table renewal in first district, and with this page substitution table.
2. method according to claim 1 is characterized in that: described first district and second district are hiding sightless to host computer system, are the flash memory system reserved area.
3. method according to claim 2 is characterized in that: if the logical address that general data writes exists in flash memory, then be judged as Data Update.
4. method according to claim 1 is characterized in that: the method for obtaining physical page address is according to the piece of current flash configuration and the corresponding relation of page or leaf, obtains corresponding physical block address according to given logical address; If the physical block address that obtains is not in bad piece substitution table, the physical block address that then obtains is correct physical block address, otherwise obtains the physical block address of replacement according to the piece substitution table; After obtaining physical block address, obtain physical page address according to the page or leaf offset address in the given logical address, if physical page address not in the page or leaf substitution table, then be correct physical page address, otherwise, from the page or leaf substitution table, find the physical page address of the replacement of correspondence.
5. method according to claim 1, it is characterized in that: described file system address look-up table all will be rebuild when flash memory powers at every turn, this process of reconstruction at first finds the physical block address that is used to deposit the file system address look-up table of reservation, rule according to the forward direction programming finds up-to-date address stored look-up table one by one, find the logical page address that takes out one by one again behind the address search table wherein, and then in the 3rd district, search from back to front from file system area, when finding this logical page address for the first time, it is added in the corresponding address search list item go, this search procedure that circulates, the start address that is reduced to file system area until physical page address just stops.
6. method according to claim 1 is characterized in that: the data that are complementary that described configuration information writes for the host-host protocol according to flash memory system.
7. method according to claim 1 is characterized in that: the number of times that data are added is a limited number of time.
CN2010102079170A 2010-06-24 2010-06-24 Data storage management method for OTP flash memory under embedded environment Expired - Fee Related CN101872326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102079170A CN101872326B (en) 2010-06-24 2010-06-24 Data storage management method for OTP flash memory under embedded environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102079170A CN101872326B (en) 2010-06-24 2010-06-24 Data storage management method for OTP flash memory under embedded environment

Publications (2)

Publication Number Publication Date
CN101872326A true CN101872326A (en) 2010-10-27
CN101872326B CN101872326B (en) 2012-04-04

Family

ID=42997195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102079170A Expired - Fee Related CN101872326B (en) 2010-06-24 2010-06-24 Data storage management method for OTP flash memory under embedded environment

Country Status (1)

Country Link
CN (1) CN101872326B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559231A (en) * 2013-10-23 2014-02-05 华为技术有限公司 File system quota managing method, device and system
CN103678604A (en) * 2013-12-13 2014-03-26 深圳市博实结电子有限公司 Bad cluster processing method and device based on pre-distribution FAT file system
CN104020964A (en) * 2014-06-18 2014-09-03 浪潮集团有限公司 Embedded video storage method
CN105117306A (en) * 2015-08-31 2015-12-02 联想(北京)有限公司 Information processing method and electronic apparatus
CN106909519A (en) * 2017-02-24 2017-06-30 济南浪潮高新科技投资发展有限公司 A kind of Nand Flash memory mapped systems based on FPGA
CN107451009A (en) * 2013-04-12 2017-12-08 高通股份有限公司 For improving the reliability of flash memory and the system and method in life-span
CN107832090A (en) * 2017-11-13 2018-03-23 北京四方继保自动化股份有限公司 A kind of method for the human-computer interaction module toggle speed for improving faulted-phase judgment device
CN108170366A (en) * 2016-12-06 2018-06-15 华为技术有限公司 Storage medium management method, device and storage device in storage device
CN108664578A (en) * 2018-05-03 2018-10-16 中北大学 A kind of file cycle storage method and system
CN108804344A (en) * 2018-05-18 2018-11-13 记忆科技(深圳)有限公司 The flash memory storage method and device of tape file system
CN109408416A (en) * 2018-09-20 2019-03-01 新华三技术有限公司 A kind of address of cache list item page management method and device
CN109783017A (en) * 2015-01-27 2019-05-21 华为技术有限公司 It is a kind of to store the processing method of equipment bad block, device and storage equipment
CN110377530A (en) * 2019-07-17 2019-10-25 深圳忆联信息系统有限公司 A kind of method and device thereof based on mapping table storage SSD system data
CN113821458A (en) * 2021-09-18 2021-12-21 日立楼宇技术(广州)有限公司 Data operation method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093611A1 (en) * 2001-11-13 2003-05-15 Eastman Kodak Company Method for providing extensible dos-fat system structures on one-time programmable media
US20070226400A1 (en) * 2006-03-24 2007-09-27 Megachips Lsi Solutions Inc. Information processing apparatus and method of using otp memory
US20100077012A1 (en) * 2008-09-10 2010-03-25 Infinite Memories Ltd. Method For Using An OTP Storage Device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093611A1 (en) * 2001-11-13 2003-05-15 Eastman Kodak Company Method for providing extensible dos-fat system structures on one-time programmable media
US20070226400A1 (en) * 2006-03-24 2007-09-27 Megachips Lsi Solutions Inc. Information processing apparatus and method of using otp memory
US20100077012A1 (en) * 2008-09-10 2010-03-25 Infinite Memories Ltd. Method For Using An OTP Storage Device

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451009A (en) * 2013-04-12 2017-12-08 高通股份有限公司 For improving the reliability of flash memory and the system and method in life-span
CN107451009B (en) * 2013-04-12 2020-09-29 高通股份有限公司 System and method for improving reliability and lifetime of flash memory
CN103559231A (en) * 2013-10-23 2014-02-05 华为技术有限公司 File system quota managing method, device and system
CN103559231B (en) * 2013-10-23 2018-03-09 华为技术有限公司 A kind of file system quota management method, apparatus and system
CN103678604B (en) * 2013-12-13 2017-02-08 深圳市博实结电子有限公司 Bad cluster processing method and device based on pre-distribution FAT file system
CN103678604A (en) * 2013-12-13 2014-03-26 深圳市博实结电子有限公司 Bad cluster processing method and device based on pre-distribution FAT file system
CN104020964A (en) * 2014-06-18 2014-09-03 浪潮集团有限公司 Embedded video storage method
CN109783017A (en) * 2015-01-27 2019-05-21 华为技术有限公司 It is a kind of to store the processing method of equipment bad block, device and storage equipment
CN109783017B (en) * 2015-01-27 2021-05-18 华为技术有限公司 Storage device bad block processing method and device and storage device
CN105117306A (en) * 2015-08-31 2015-12-02 联想(北京)有限公司 Information processing method and electronic apparatus
US10901629B2 (en) 2016-12-06 2021-01-26 Huawei Technologies Co., Ltd. Method and apparatus for managing health of a storage medium in a storage device
CN108170366A (en) * 2016-12-06 2018-06-15 华为技术有限公司 Storage medium management method, device and storage device in storage device
CN106909519A (en) * 2017-02-24 2017-06-30 济南浪潮高新科技投资发展有限公司 A kind of Nand Flash memory mapped systems based on FPGA
CN107832090A (en) * 2017-11-13 2018-03-23 北京四方继保自动化股份有限公司 A kind of method for the human-computer interaction module toggle speed for improving faulted-phase judgment device
CN107832090B (en) * 2017-11-13 2021-02-26 北京四方继保自动化股份有限公司 Method for improving starting speed of man-machine interaction module of fault information processing device
CN108664578A (en) * 2018-05-03 2018-10-16 中北大学 A kind of file cycle storage method and system
CN108664578B (en) * 2018-05-03 2020-10-20 中北大学 File circulating storage method and system
CN108804344A (en) * 2018-05-18 2018-11-13 记忆科技(深圳)有限公司 The flash memory storage method and device of tape file system
CN109408416A (en) * 2018-09-20 2019-03-01 新华三技术有限公司 A kind of address of cache list item page management method and device
CN109408416B (en) * 2018-09-20 2021-01-26 新华三技术有限公司 Address mapping table entry page management method and device
WO2020057479A1 (en) * 2018-09-20 2020-03-26 新华三技术有限公司 Address mapping table item page management
CN110377530A (en) * 2019-07-17 2019-10-25 深圳忆联信息系统有限公司 A kind of method and device thereof based on mapping table storage SSD system data
CN110377530B (en) * 2019-07-17 2021-06-08 深圳忆联信息系统有限公司 Method and device for storing SSD system data based on mapping table
CN113821458A (en) * 2021-09-18 2021-12-21 日立楼宇技术(广州)有限公司 Data operation method and device, computer equipment and storage medium
CN113821458B (en) * 2021-09-18 2023-09-05 日立楼宇技术(广州)有限公司 Data operation method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN101872326B (en) 2012-04-04

Similar Documents

Publication Publication Date Title
CN101872326B (en) Data storage management method for OTP flash memory under embedded environment
EP2605142B1 (en) Lba bitmap usage
TWI425355B (en) Data access method, memory controller, memory storage system
CN101169751B (en) System with flash memory device and data recovery method thereof
CN101739352B (en) Method for managing storage device and related storage device thereof
CN102693184B (en) Handling dynamic and static data for a system having a non-volatile memory
Chung et al. A survey of flash translation layer
CN102135942B (en) Method for realizing wear-leveling in storage equipment as well as the storage equipment
US9164887B2 (en) Power-failure recovery device and method for flash memory
CN101382873B (en) Management method and system of storage location
TWI435219B (en) Data protecting method, memory controller and portable memory storage device
CN101980177B (en) Method and device for operating Flash
CN100426259C (en) Virtual access method of storage document data
CN103577574B (en) High-reliability linear file system based on nand flash
TWI385667B (en) Block accessing method for flash memory and storage system and controller using the same
CN101634967B (en) Block management method for flash memory, storage system and controller
CN104246764A (en) Method and apparatus utilizing non-uniform hash functions for placing records in non-uniform access memory
CN101238431A (en) Mass data storage system
CN103996412A (en) Power-fail protection method applied to intelligent-card nonvolatile memories
CN103106143A (en) Solid storing device and logic-to-entity corresponding table establishment method thereof
CN101123116A (en) Memory device and its reading and writing method
CN107239526A (en) File system implementation method, scrap cleaning method, operating position localization method
CN102737715A (en) Data brown-out protection method for NOR flash memory
CN101364166A (en) Method and device for simulating Nand flash of 2048 byte page into hard disk
CN105718206A (en) Flash translation layer capable of perceiving RAID (Redundant Array of Independent Disks) and implementation method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120404

Termination date: 20150624

EXPY Termination of patent right or utility model