CN104809037B - Quick start method and device of the eMMC based on special page - Google Patents
Quick start method and device of the eMMC based on special page Download PDFInfo
- Publication number
- CN104809037B CN104809037B CN201510242730.7A CN201510242730A CN104809037B CN 104809037 B CN104809037 B CN 104809037B CN 201510242730 A CN201510242730 A CN 201510242730A CN 104809037 B CN104809037 B CN 104809037B
- Authority
- CN
- China
- Prior art keywords
- mapping table
- special page
- emmc
- page
- special
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of quick start methods of eMMC based on special page to include:Setting preserves the threshold value of mapping table;When writing the data volume in eMMC and reaching the threshold value, mapping table is preserved to special page;When electrifying startup, the map information in the special page is read, recovers the mapping table;This method can reduce starting up's time of eMMC, improve the Information Security of eMMC;In addition, invention additionally discloses a kind of device for rapidly starting of eMMC based on special page.
Description
Technical field
The present invention relates to electronic technology field, more particularly to quick start method and dress of a kind of eMMC based on special page
Put.
Background technology
With the popularization of mobile electronic device, eMMC storages are also more and more common.Usual eMMC, which is used, is based on NAND
The mapping policy of the block of FLASH, by searching for fixed cache blocks in the power up of eMMC, and reads content therein
Recovered part mapping table.
Current eMMC powers on the method for recovering mapping table, is to look for fixed cache blocks, but due to NAND FLASH's
Characteristic, cache blocks are possible to be changed into bad block, then can bring risk to the data safety of eMMC.Simultaneously because this method is only extensive
Multiple part mapping table, still needs to recover remaining mapping table in reading and writing data, has not given play to the performance of eMMC.Therefore, eMMC
It is how complete, quick to start, it is those skilled in the art's technical issues that need to address.
The content of the invention
The object of the present invention is to provide a kind of quick start methods of eMMC based on special page, this method can reduce eMMC
Starting up's time, improve the Information Security of eMMC;It is a further object of the present invention to provide a kind of eMMC to be based on special page
Device for rapidly starting.
In order to solve the above technical problems, the present invention provides a kind of quick start methods of the eMMC based on special page, including:
Setting preserves the threshold value of mapping table;
When writing the data volume in eMMC and reaching the threshold value, mapping table is preserved to special page;
When electrifying startup, the map information in the special page is read, recovers the mapping table.
Wherein, described when writing the data volume in eMMC and reaching the threshold value, preserve mapping table includes to special page:
When writing the data volume in eMMC and reaching the threshold value, the special page of allocation map table size;
Mapping table is preserved to special page, and records the timestamp for preserving the mapping table.
Wherein, the map information read in the special page, recovering the mapping table includes:
By scanning block's attribute, the special page is found;
The map information in the special page is read, recovers the mapping table.
Wherein, the map information read in the special page, recovering the mapping table includes:
By scanning block's attribute, the special page is found;
The map information in the special page is read, recovers the mapping table;
Scan the NAND FLASH page after the special page timestamp, the recovered mapping table of renewal.
Wherein, the NAND FLASH page after the scanning special page timestamp, the recovered mapping of renewal
Table includes:
Judge after preserving the mapping table, before power-off between whether there are data to write eMMC;
If it is not, then the mapping table recovers complete;
If so, the NAND FLASH page after the special page timestamp are then scanned, the recovered mapping table of renewal.
The present invention also provides a kind of device for rapidly starting of eMMC based on special page, including:
Setting module, the threshold value of mapping table is preserved for setting;
Preserving module, for when writing the data volume in eMMC and reaching the threshold value, preserving mapping table to special page;
Recovery module, for when electrifying startup, reading the map information in the special page, being reflected described in recovery
Firing table.
Wherein, the preserving module includes:
Allocation unit, for when writing the data volume in eMMC and reaching the threshold value, allocation map table size it is special
Page;
Storage unit, for preserving mapping table to special page, and records the timestamp for preserving the mapping table.
Wherein, the recovery module includes:
Scanning element, for by scanning block's attribute, finding the special page;
Recovery unit, for reading the map information in the special page, recovers the mapping table.
Wherein, the recovery module further includes:
Updating block, for scanning the NAND FLASH page after the special page timestamp, recovered described of renewal
Mapping table.
Wherein, the updating block includes:
Judgment sub-unit, for judging after preserving the mapping table, before power-off between whether there are data to write eMMC;If
No, then the mapping table recovers complete;If so, then scanning the NAND FLASH page after the special page timestamp, renewal is
The mapping table recovered.
Quick start methods of a kind of eMMC based on special page provided by the present invention, during data write eMMC
According to data writing, mapping table is periodically preserved to special page.Complete mapping table can so be preserved;Power on Qi Shizhi
The map information read in special page is connect, so as to recover mapping table.Mapping table can completely be recovered, and using special page not
Occur that cache blocks cause the phenomenon of loss of data for bad block.Whereby, the present invention can reduce the electrifying startup time of eMMC, energy
The read write command of enough quick response hosts, improves the Information Security of eMMC.
Brief description of the drawings
, below will be to embodiment or existing for the clearer explanation embodiment of the present invention or the technical solution of the prior art
Attached drawing is briefly described needed in technology description, it should be apparent that, drawings in the following description are only this hair
Some bright embodiments, for those of ordinary skill in the art, without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of quick start methods of the eMMC provided in an embodiment of the present invention based on special page;
Fig. 2 is the flow diagram of preservation mapping table provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of recovery mapping table provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of device for rapidly starting of the eMMC provided in an embodiment of the present invention based on special page;
Fig. 5 is the structure diagram of preserving module provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of recovery module provided in an embodiment of the present invention.
Embodiment
The core of the present invention is to provide a kind of quick start methods of eMMC based on special page, and this method can reduce eMMC
Starting up's time, improve the Information Security of eMMC;It is a further object of the present invention to provide a kind of eMMC to be based on special page
Device for rapidly starting.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
All other embodiments obtained without making creative work, belong to the scope of protection of the invention.
EMMC is that Embedded MultiMediaCard are embedded memory standard specification ordered by MMC associations, main
If based on mobile phone products.A clear superiority of eMMC is to be integrated with a controller in a package, it provides standard
Interface simultaneously manages flash memory so that cell phone manufacturer just can be absorbed in the other parts of product development, and shorten to market and release product
Time.
Please refer to Fig.1, Fig. 1 is the flow of quick start methods of the eMMC provided in an embodiment of the present invention based on special page
Figure;This method can include:
Step s100, setting preserves the threshold value of mapping table;
Wherein, threshold value here can be set according to hardware configurations such as the capacity of eMMC, passages, can also basis
The occasion of application carries out rational given threshold.
Step s110, when writing the data volume in eMMC and reaching the threshold value, mapping table is preserved to special page;
Wherein, special page size here at least will be as the size of mapping table, and the size of mapping table and setting preserve
The threshold value of mapping table is related.Because complete mapping table is written in special page here.System environments triggering preserves mapping
Table acts, you can be threshold decision condition.
Step s120, when electrifying startup, the map information in the special page is read, recovers the mapping
Table.
Wherein, upon start up, the special page for preserving mapping table is found, the content for directly reading special page has recovered mapping
Table.
Based on above-mentioned technical proposal, eMMC provided in an embodiment of the present invention based on the quick start method of special page by
According to data writing during data write-in eMMC, mapping table is periodically preserved to special page.All data are corresponded to and are reflected
Firing table completely preserves mapping table after preserving, and can ensure the integrality of data;Power on and directly read when opening in special page
Map information, so as to recover mapping table.Mapping table can completely be recovered, and be not in that cache blocks are using special page
Bad block causes the phenomenon of loss of data.Whereby, the present invention can reduce the electrifying startup time of eMMC, be enable to respond quickly host
Read write command, improves the Information Security of eMMC.
Optionally, described when writing the data volume in eMMC and reaching the threshold value, preserve mapping table includes to special page:
When writing the data volume in eMMC and reaching the threshold value, the special page of allocation map table size;
Wherein, when the data in the mapping table are full, it is necessary to be distributed first to the mapping table at least of a size with it
Special page, space can be made full use of by selecting the special page of allocation map table size here, reduced and wasted.
Mapping table is preserved to special page, and records the timestamp for preserving the mapping table.
Wherein, mapping table is preserved and be written in the special page distributed, and record the time for preserving the mapping table
Stamp, the timestamp are conducive to subsequently judge mapping table integrality.
Optionally, the map information read in the special page, recovering the mapping table includes:
By scanning block's attribute, the special page is found;
Wherein, special page is present in block, and the special page can be quickly found using block's attribute.
The map information in the special page is read, recovers the mapping table.
Wherein, by the way that the information in the mapping table in the special page is read, i.e., by special page in mapping table
Recover.
Special page can be quickly found out by scanning block's attribute, you can with fast quick-recovery mapping table.
Optionally, the map information read in the special page, recovering the mapping table includes:
By scanning block's attribute, the special page is found;
The map information in the special page is read, recovers the mapping table;
Scan the NAND FLASH page after the special page timestamp, the recovered mapping table of renewal.
When wherein, due to being again saved in mapping table in special page, timestamp is have recorded, therefore, can continue to sweep here
The NAND FLASH page after the special page timestamp are retouched, if in having after the NAND FLASH page after the special page timestamp
Hold, then update the recovered mapping table.
Optionally, NAND FLASH page after the scanning special page timestamp, renewal it is recovered described in reflect
Firing table includes:
Judge after preserving the mapping table, before power-off between whether there are data to write eMMC;
If it is not, then the mapping table recovers complete;
If so, the NAND FLASH page after the special page timestamp are then scanned, the recovered mapping table of renewal.
That is method of the invention can include the process for preserving mapping table and recovering mapping table, pass through this hair of Fig. 2
The flow diagram for the preservation mapping table that bright embodiment provides;Fig. 3 flows provided in an embodiment of the present invention for recovering mapping table are shown
It is intended to;It is better understood upon the idiographic flow of this method.
Based on above-mentioned technical proposal, eMMC provided in an embodiment of the present invention based on the quick start method of special page by
According to data writing during data write-in eMMC, mapping table is periodically preserved to special page.All data are corresponded to and are reflected
Firing table completely preserves mapping table after preserving, and can ensure the integrality of data;Power on and directly read when opening in special page
Map information, so as to recover mapping table.By being monitored to the write-in for whether having data after timestamp, so as to complete
Whole recovery mapping table, and be not in that cache blocks are the phenomenon that bad block causes loss of data using special page.Whereby, it is of the invention
The electrifying startup time of eMMC can be reduced, is enable to respond quickly the read write command of host, improves the Information Security of eMMC.
An embodiment of the present invention provides quick start methods of the eMMC based on special page, be able to can be dropped by the above method
Starting up's time of low eMMC, improves the Information Security of eMMC.
Device for rapidly starting of the eMMC provided in an embodiment of the present invention based on special page is introduced below, is described below
EMMC can be mutual based on the device for rapidly starting of special page and quick start methods of the above-described eMMC based on special page
To should refer to.
Please refer to Fig.4, Fig. 4 is the structural frames of device for rapidly starting of the eMMC provided in an embodiment of the present invention based on special page
Figure;The device can include:
Setting module 100, the threshold value of mapping table is preserved for setting;
Preserving module 100, for when writing the data volume in eMMC and reaching the threshold value, preserving mapping table to special
Page;
Recovery module 300, for when electrifying startup, reading the map information in the special page, recovers institute
State mapping table.
Optionally, it refer to Fig. 5, Fig. 5 is the structure diagram of preserving module provided in an embodiment of the present invention, the preservation mould
Block can include:
Allocation unit 110, for when writing the data volume in eMMC and reaching the threshold value, the spy of allocation map table size
Different page;
Storage unit 120, for preserving mapping table to special page, and records the timestamp for preserving the mapping table.
Optionally, it refer to Fig. 6, Fig. 6 is the structure diagram of recovery module provided in an embodiment of the present invention, the recovery mould
Block can include:
Scanning element 310, for by scanning block's attribute, finding the special page;
Recovery unit 320, for reading the map information in the special page, recovers the mapping table.
Optionally, the recovery module 300 can also include:
Updating block, for scanning the NAND FLASH page after the special page timestamp, recovered described of renewal
Mapping table.
Optionally, the updating block can include:
Judgment sub-unit, for judging after preserving the mapping table, before power-off between whether there are data to write eMMC;If
No, then the mapping table recovers complete;If so, then scanning the NAND FLASH page after the special page timestamp, renewal is
The mapping table recovered.
Each embodiment is described by the way of progressive in specification, and what each embodiment stressed is and other realities
Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related part is referring to method part illustration
.
Professional further appreciates that, with reference to each exemplary unit of the embodiments described herein description
And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software, generally describes each exemplary composition and step according to function in the above description.These
Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical solution.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
Can directly it be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Quick start methods of the eMMC provided by the present invention based on special page and device are described in detail above.
Specific case used herein is set forth the principle of the present invention and embodiment, and the explanation of above example is simply used
Understand the method and its core concept of the present invention in help.It should be pointed out that for those skilled in the art,
Without departing from the principle of the present invention, some improvement and modification can also be carried out to the present invention, these are improved and modification
Fall into the protection domain of the claims in the present invention.
Claims (10)
- A kind of 1. quick start methods of eMMC based on special page, it is characterised in that including:The threshold value for preserving mapping table is set according to the size of mapping table;When writing the data volume in eMMC and reaching the threshold value, mapping table is preserved to special page;When electrifying startup, the map information in the special page is read, recovers the mapping table.
- 2. quick start method as claimed in claim 1, it is characterised in that the data volume when in write-in eMMC reaches institute When stating threshold value, preserve mapping table includes to special page:When writing the data volume in eMMC and reaching the threshold value, the special page of allocation map table size;Mapping table is preserved to special page, and records the timestamp for preserving the mapping table.
- 3. quick start method as claimed in claim 1, it is characterised in that the mapping read in the special page Table information, recovering the mapping table includes:By scanning block's attribute, the special page is found;The map information in the special page is read, recovers the mapping table.
- 4. quick start method as claimed in claim 2, it is characterised in that the mapping read in the special page Table information, recovering the mapping table includes:By scanning block's attribute, the special page is found;The map information in the special page is read, recovers the mapping table;Scan the NAND FLASH page after the special page timestamp, the recovered mapping table of renewal.
- 5. quick start method as claimed in claim 4, it is characterised in that after the scanning special page timestamp NAND FLASH page, the recovered mapping table of renewal include:Judge after preserving the mapping table, before power-off between whether there are data to write eMMC;If it is not, then the mapping table recovers complete;If so, the NAND FLASH page after the special page timestamp are then scanned, the recovered mapping table of renewal.
- A kind of 6. device for rapidly starting of eMMC based on special page, it is characterised in that including:Setting module, the threshold value of mapping table is preserved for being set according to the size of mapping table;Preserving module, for when writing the data volume in eMMC and reaching the threshold value, preserving mapping table to special page;Recovery module, for when electrifying startup, reading the map information in the special page, recovering the mapping Table.
- 7. device for rapidly starting as claimed in claim 6, it is characterised in that the preserving module includes:Allocation unit, for when writing the data volume in eMMC and reaching the threshold value, the special page of allocation map table size;Storage unit, for preserving mapping table to special page, and records the timestamp for preserving the mapping table.
- 8. device for rapidly starting as claimed in claim 6, it is characterised in that the recovery module includes:Scanning element, for by scanning block's attribute, finding the special page;Recovery unit, for reading the map information in the special page, recovers the mapping table.
- 9. device for rapidly starting as claimed in claim 7, it is characterised in that the recovery module further includes:Updating block, for scanning the NAND FLASH page after the special page timestamp, the recovered mapping of renewal Table.
- 10. device for rapidly starting as claimed in claim 9, it is characterised in that the updating block includes:Judgment sub-unit, for judging after preserving the mapping table, before power-off between whether there are data to write eMMC;If it is not, then The mapping table recovers complete;If so, then scanning the NAND FLASH page after the special page timestamp, renewal is recovered The mapping table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510242730.7A CN104809037B (en) | 2015-05-13 | 2015-05-13 | Quick start method and device of the eMMC based on special page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510242730.7A CN104809037B (en) | 2015-05-13 | 2015-05-13 | Quick start method and device of the eMMC based on special page |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104809037A CN104809037A (en) | 2015-07-29 |
CN104809037B true CN104809037B (en) | 2018-04-13 |
Family
ID=53693883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510242730.7A Active CN104809037B (en) | 2015-05-13 | 2015-05-13 | Quick start method and device of the eMMC based on special page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104809037B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275837A (en) * | 2018-03-15 | 2019-09-24 | 光宝电子(广州)有限公司 | The correspondence table management method of solid state storage device |
CN113050877B (en) * | 2019-12-27 | 2024-03-01 | 兆易创新科技集团股份有限公司 | Mapping table storage method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101154447A (en) * | 2006-09-28 | 2008-04-02 | 北京握奇数据系统有限公司 | Flash memory and its control method |
CN101169751A (en) * | 2006-10-25 | 2008-04-30 | 三星电子株式会社 | System with flash memory device and data recovery method thereof |
CN102043727A (en) * | 2009-10-10 | 2011-05-04 | 成都市华为赛门铁克科技有限公司 | Method and device for recovering solid-state hard disc mapping table |
WO2012008732A2 (en) * | 2010-07-12 | 2012-01-19 | (주)이더블유비엠코리아 | Device and method for managing flash memory using page unit mapping |
CN103425605A (en) * | 2013-07-26 | 2013-12-04 | 记忆科技(深圳)有限公司 | Solid-state disk power failure protection and quick start method and system |
CN103744795A (en) * | 2013-12-19 | 2014-04-23 | 记忆科技(深圳)有限公司 | Method for rapidly booting solid state disc and solid state disc thereof |
US8984247B1 (en) * | 2012-05-10 | 2015-03-17 | Western Digital Technologies, Inc. | Storing and reconstructing mapping table data in a data storage system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8788788B2 (en) * | 2011-08-11 | 2014-07-22 | Pure Storage, Inc. | Logical sector mapping in a flash storage array |
US8756458B2 (en) * | 2011-12-12 | 2014-06-17 | Apple Inc. | Mount-time reconciliation of data availability |
-
2015
- 2015-05-13 CN CN201510242730.7A patent/CN104809037B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101154447A (en) * | 2006-09-28 | 2008-04-02 | 北京握奇数据系统有限公司 | Flash memory and its control method |
CN101169751A (en) * | 2006-10-25 | 2008-04-30 | 三星电子株式会社 | System with flash memory device and data recovery method thereof |
CN102043727A (en) * | 2009-10-10 | 2011-05-04 | 成都市华为赛门铁克科技有限公司 | Method and device for recovering solid-state hard disc mapping table |
WO2012008732A2 (en) * | 2010-07-12 | 2012-01-19 | (주)이더블유비엠코리아 | Device and method for managing flash memory using page unit mapping |
US8984247B1 (en) * | 2012-05-10 | 2015-03-17 | Western Digital Technologies, Inc. | Storing and reconstructing mapping table data in a data storage system |
CN103425605A (en) * | 2013-07-26 | 2013-12-04 | 记忆科技(深圳)有限公司 | Solid-state disk power failure protection and quick start method and system |
CN103744795A (en) * | 2013-12-19 | 2014-04-23 | 记忆科技(深圳)有限公司 | Method for rapidly booting solid state disc and solid state disc thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104809037A (en) | 2015-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107844431B (en) | Mapping table updating method, memory control circuit unit and memory storage device | |
TWI467371B (en) | Memory module and utilizing method thereof, computer program and computer readable medium | |
US20150161039A1 (en) | Data erasing method, memory control circuit unit and memory storage apparatus | |
EP3142014B1 (en) | Method, device and user equipment for reading/writing data in nand flash | |
CN103064804B (en) | The access control method of data in magnetic disk and device | |
CN102521349A (en) | Pre-reading method of files | |
CN106201652B (en) | Data processing method and virtual machine | |
EP2565772A1 (en) | Storage array, storage system, and data access method | |
US9983826B2 (en) | Data storage device deferred secure delete | |
JP2015507798A (en) | Method for erasing data entities in a memory module | |
CN102136274B (en) | Mobile hard disk with two storage media | |
US20130311708A1 (en) | File protecting method and system, and memory controller and memory storage apparatus thereof | |
CN105630408A (en) | Solid-state drive control chip integrating MRAM (Magnetic Random Access Memory) and solid-state drive | |
CN107957852A (en) | A kind of method for lifting solid state hard disc consistency of performance | |
CN104809037B (en) | Quick start method and device of the eMMC based on special page | |
TW201039349A (en) | Data accessing method for flash memory and storage system and controller using the same | |
CN101620568B (en) | Storage device and data storage method | |
CN108710507B (en) | SSD host dormancy optimization method | |
US8595426B2 (en) | Handling commands within a write-once read-many storage device configuration | |
CN109408482A (en) | Data storage method, system, equipment and computer readable storage medium | |
CN103324445B (en) | Method and system, USB storage device that USB storage device is run | |
CN109508151A (en) | A method of promoting solid state hard disk performance | |
US8583862B2 (en) | Recording medium, drive device, and mounting method | |
CN109271100A (en) | A kind of flash storage date storage method and read method | |
CN105138294B (en) | A kind of hard disc apparatus and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |