CN103578566B - Memory storage apparatus and restorative procedure thereof - Google Patents

Memory storage apparatus and restorative procedure thereof Download PDF

Info

Publication number
CN103578566B
CN103578566B CN201210256371.7A CN201210256371A CN103578566B CN 103578566 B CN103578566 B CN 103578566B CN 201210256371 A CN201210256371 A CN 201210256371A CN 103578566 B CN103578566 B CN 103578566B
Authority
CN
China
Prior art keywords
write
physical location
storage apparatus
host computer
computer system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210256371.7A
Other languages
Chinese (zh)
Other versions
CN103578566A (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.)
Phison Electronics Corp
Original Assignee
Phison Electronics Corp
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 Phison Electronics Corp filed Critical Phison Electronics Corp
Priority to CN201210256371.7A priority Critical patent/CN103578566B/en
Publication of CN103578566A publication Critical patent/CN103578566A/en
Application granted granted Critical
Publication of CN103578566B publication Critical patent/CN103578566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

A kind of memory storage apparatus and restorative procedure thereof, memory storage apparatus has the reproducible nonvolatile memorizer module including multiple physical location, above-mentioned physical location includes at least one backup physical location, backup physical location is set to and can only pass through the incompatible access of special instruction collection, and storage has at least one customization data.The method is included in memory storage apparatus and is in when can receive and process from the state of the instruction of host computer system, receive from host computer system and be intended to read backup physical location and belong to the special reading instruction of special instruction set, and customization data therein are sent to host computer system.When receiving the write instruction being intended to write customization data from host computer system, the data write physical location to correspondence will be customized, so that memory storage apparatus recovery is to genuine state.

Description

Memory storage apparatus and restorative procedure thereof
Technical field
The present invention relates to the restorative procedure of a kind of memory storage apparatus, and can be client particularly to one Hold the method and the memorizer storage dress using the method recovered by memory storage apparatus to genuine state Put.
Background technology
Due to flash memory (Flash Memory), to have non-volatile, power saving, volume little and interior The characteristics such as portion's mechanical structure, are therefore widely used in various electronic installation.Having gets more and more such as deposits The portable memory such as card storage or portable disk is using flash memory as storage medium therein.
But, user is using the period of portable memory, is often possible to because of improper use et al. Portable memory is caused to occur for factor or the most expected various reason abnormal.Portable storage There is the abnormal part Missing data that gently then causes in device, heavy then may have the situation that cannot be started up accessing.Right This, owing to user cannot be repaired mostly voluntarily, therefore can only select to send portable memory Return original manufacturer to process.
The commodity repaiied are sent from various places owing to the maintaining unit of manufacturer must process, thereby increases and it is possible in default of The commodity relevant manufacturing information when producing, is the most also difficult to restore it into rapidly and customer demand phase The genuine state of symbol.For the angle of user, after problematic device is sent repairing, not only need Spend the expense repaired, more often have to wait for considerably long maintenance time.Base this, be necessary in fact research and development A set of mechanism that user can be allowed voluntarily storage device to be repaired.
Summary of the invention
In view of this, the present invention provides a kind of memory storage apparatus and restorative procedure thereof, can advantageously by Memory storage apparatus recovers to genuine state.
The present invention proposes the restorative procedure of a kind of memory storage apparatus, is used for having duplicative non-volatile The memory storage apparatus of property memory module, this reproducible nonvolatile memorizer module includes multiple Physical location, these physical locations include at least one backup physical location, and above-mentioned backup physical location sets Determine into and can only pass through the incompatible access of special instruction collection, and above-mentioned backup physical location storage has at least one customization Change data.The method is included in memory storage apparatus and is in and can receive and process the finger from host computer system During the state made, receive the special reading instruction being intended to read above-mentioned backup physical location from host computer system, this Special reading instruction belongs to special instruction set.The method also includes determining in above-mentioned backup physical location Inhibition and generation data are sent to host computer system.The method also includes when receiving customization to be write from host computer system During the write instruction of data, all customization data from host computer system are write to corresponding physics list Unit, so that memory storage apparatus recovers to genuine state.
From the point of view of another viewpoint, the present invention proposes a kind of memory storage apparatus, non-easily including duplicative The property lost memory module, adapter and Memory Controller.Memory Controller is electrically connected to answer Write formula non-volatile memory module and adapter.Wherein, reproducible nonvolatile memorizer module bag Including multiple physical location, above-mentioned physical location includes at least one backup physical location, and above-mentioned backup physics Unary system is set to can only pass through the incompatible access of special instruction collection, and storage has at least one customization data. Memory Controller is in order to be electrically connected with host computer system at memory storage apparatus by adapter, and is in When can receive and process from the state of the instruction of host computer system, Memory Controller receives from host computer system It is intended to read the special reading instruction of above-mentioned backup physical location, and by the customization in above-mentioned backup physical location Changing data and be sent to host computer system, the most special reading instruction belongs to special instruction set.Memorizer controls Device in order to receive from host computer system be intended to write the write instruction customizing data time, will be from main frame system All customization data write of system is to corresponding physical location, so that memory storage apparatus recovers to former Factory's state.
From the point of view of another viewpoint, the present invention proposes the restorative procedure of a kind of memory storage apparatus, Qi Zhongcun Reservoir storage device has reproducible nonvolatile memorizer module and boot rom (Boot And reproducible nonvolatile memorizer module includes multiple physical location, above-mentioned physical location ROM), Including at least one backup physical location, and above-mentioned backup physical location system is set to and can only pass through special instruction Collect incompatible access.The method is included in memory storage apparatus and is electrically connected to host computer system and is only capable of holding During driving code segment in row boot rom, receive from host computer system and be intended to read above-mentioned backup physics The special reading instruction of unit, the most special reading instruction belongs to special instruction set.The method also includes Customization data in above-mentioned backup physical location are sent to host computer system.The method also includes when from master Machine system receives when being intended to write the write instruction customizing data, by the customization number from host computer system According to write to corresponding physical location, so that memory storage apparatus recovers to genuine state.
From the point of view of another viewpoint, the present invention proposes a kind of memory storage apparatus, non-easily including duplicative The property lost memory module, adapter and Memory Controller.Memory Controller is electrically connected to answer Write formula non-volatile memory module and adapter.Wherein, reproducible nonvolatile memorizer module bag Including multiple physical location, above-mentioned physical location includes at least one backup physical location, and above-mentioned backup physics Unary system is set to can only pass through the incompatible access of special instruction collection, and wherein special instruction set includes special reading Instruction fetch.It is electrically connected to host computer system by adapter at memory storage apparatus, and memorizer control When device processed is only capable of performing the driving code segment in boot rom, arrive if received by adapter From host computer system and in order to read the special reading instruction of backup physical location, Memory Controller is in order to pass Send the customization data in backup physical location to host computer system.Memory Controller is in order to from main frame system System receives when belonging to the write instruction being intended to write customization data, by the customization number from host computer system According to write to corresponding physical location, so that memory storage apparatus recovers to genuine state.
Based on above-mentioned, the present invention is the customization data relevant to production information and Schema information additionally to be deposited Store up at the backup physical location limited by height access.After device to be stored storage device dispatches from the factory, if client End host computer system accesses above-mentioned backup physical location by special instruction set, and memory storage apparatus then can Previous backup is backfilling into corresponding storage address in the customization data of backup physical location.Accordingly, will Memory storage apparatus recovers to the genuine state meeting its production information and Schema information.
For the features described above of the present invention and advantage can be become apparent, special embodiment below, and coordinate Accompanying drawing is described in detail below.
Accompanying drawing explanation
Figure 1A is the main frame system using memory storage apparatus illustrated according to the present invention one exemplary embodiment The schematic diagram of system.
Figure 1B is according to computer, input/output device and the storage depicted in exemplary embodiment of the present invention The schematic diagram of device storage device.
Fig. 1 C is according to the host computer system depicted in another exemplary embodiment of the present invention and memorizer storage dress The schematic diagram put.
Fig. 2 is the schematic block diagram illustrating the memory storage apparatus shown in Figure 1A.
Fig. 3 is the schematic block diagram of the Memory Controller illustrated according to the present invention one exemplary embodiment.
Fig. 4 is the schematic diagram according to the management physical location depicted in one example of the present invention embodiment.
Fig. 5 is the schematic diagram according to the reduction structural table depicted in one example of the present invention embodiment.
Fig. 6 is the reparation side of the memory storage apparatus depicted in the first exemplary embodiment according to the present invention The flow chart of method.
Fig. 7 is that the data write that will customize depicted in the first exemplary embodiment according to the present invention uses district So that memory storage apparatus recovers the flow chart to genuine state.
Fig. 8 is the reparation side of the memory storage apparatus depicted in the second exemplary embodiment according to the present invention The flow chart of method.
Fig. 9 is that the data write that will customize depicted in the second exemplary embodiment according to the present invention uses district So that memory storage apparatus recovers the flow chart to genuine state.
[main element symbol description]
1000: host computer system
1100: computer
1102: microprocessor
1104: random access memory
1106: input/output device
1108: system bus
1110: data transmission interface
1112: main storage means
1202: mouse
1204: keyboard
1206: display
1208: printer
1212: portable disk
1214: storage card
1216: solid state hard disc
1310: digital camera
1312:SD card
1314:MMC card
1316: memory stick
1318:CF card
1320: embedded storage device
100: memory storage apparatus
102: adapter
104: Memory Controller
106: reproducible nonvolatile memorizer module
1041: host system interface
1043: memory management circuitry
1045: memory interface
1047: memory element
1047-1: boot rom
1047-3: random access memory
3002: error checking and correcting circuit
3006: electric power management circuit
1061: backup area
1063: use district
405 (1) ~ 405 (B): backup physical location
410 (0) ~ 410 (N): physical location
502: data field
504: idle district
506: system area
508: replace district
610 (0) ~ 610 (L): logical block
50: reduction structural table
53: customize data name field
55: logical address field
S610~S660: the restorative procedure of the memory storage apparatus described in the first embodiment of the present invention Each step
S710~S730: described in the first embodiment of the present invention will customize data write use district so that Memory storage apparatus recovers each step to genuine state
S810~S860: the restorative procedure of the memory storage apparatus described in the second embodiment of the present invention Each step
S910~S960: described in the second embodiment of the present invention will customize data write use district so that Memory storage apparatus recovers each step to genuine state
Detailed description of the invention
[the first exemplary embodiment]
It is said that in general, memory storage apparatus (also known as, storage system) includes that duplicative is non- Volatile and controller (also known as, control circuit).Be commonly stored device storage device be with Host computer system is used together, so that host computer system can write data into memory storage apparatus or from storage Device storage device reads data.
Figure 1A is according to the main frame using memory storage apparatus depicted in the present invention one exemplary embodiment The schematic diagram of system.
Host computer system 1000 includes computer 1100 and input/output (Input/Output, I/O) device 1106.Computer 1100 includes microprocessor 1102, random access memory (Random Access Memory, RAM) 1104, system bus 1108, data transmission interface 1110 and main storage means 1112.Input/output device 1106 includes mouse 1202 as shown in Figure 1B, keyboard 1204, display Device 1206 and printer 1208.It will be appreciated that the device unrestricted input/output dress shown in Figure 1B Putting 1106, input/output device 1106 can also include other devices.
In exemplary embodiment of the present invention, memory storage apparatus 100 is by data transmission interface 1110 It is electrically connected with other elements of host computer system 1000.By microprocessor 1102, random access memory Device 1104 and the running of input/output device 1106, host computer system 1000 can write data into depositing Reservoir storage device 100, or from memory storage apparatus 100, read data.Such as, memorizer is deposited Storage device 100 can be storage card 1214 as shown in Figure 1B, portable disk 1212 or solid state hard disc (Solid State Drive, SSD) 1216.
It is said that in general, host computer system 1000 is any system that can store data.Although implementing at this example In example, host computer system 1000 is to explain with computer system, but, implement at another example of the present invention In example, host computer system 1000 can also be that mobile phone, digital camera, video camera, communicator, audio frequency are broadcast Put the system such as device or video player.Such as, when host computer system is digital camera 1310, memorizer is deposited Storage device then blocks 1312 by its secure digital used (Secure Digital, SD), multimedia memory (Multimedia Card, MMC) blocks 1314, memory stick (Memory Stick) 1316, small-sized soon Dodge (Compact Flash, CF) and block 1318 or embedded storage device 1320(as shown in Figure 1 C). Embedded storage device 1320 includes embedded multi-media card (Embedded MMC, eMMC).Value Obtaining one to be mentioned that, embedded multi-media card is directly to be electrically connected on the substrate of host computer system.
Fig. 2 is the block chart illustrating the memory storage apparatus 100 shown in Figure 1A.Refer to Fig. 2, deposit Reservoir storage device 100 includes that adapter 102, Memory Controller 104 are non-volatile with duplicative Memory module 106.
Adapter 102 is electrically connected to Memory Controller 104, and is for electrically connecting to host computer system 1000.In this exemplary embodiment, the coffret kind that adapter 102 is supported is that universal sequence is total Line (Universal Serial Bus, USB) interface.But in other exemplary embodiment, adapter 102 Coffret kind can also be sequence advanced person's adnexa (Serial Advanced Technology Attachment, SATA) interface, multimedia storage card (Multimedia Card, MMC) interface, Parallel advanced adnexa (Parallel Advanced Technology Attachment, PATA) interface, electricity Gas and Electronic Engineering Association (Institute of Electrical and Electronic Engineers, IEEE) 1394 interfaces, peripheral component connect interface (Peripheral Component Interconnect Express, PCI Express) interface, secure digital (Secure Digital, SD) interface, memory stick (Memory Stick, MS) interface, compact flash (Compact Flash, CF) interface, or integrate Drive any applicable interfaces such as electronics (Integrated Drive Electronics, IDE) interface, at this It is not any limitation as.
Memory Controller 104 can perform in the form of hardware or multiple gates of form of firmware implementation or control System instruction, and according to the instruction of host computer system 1000 in reproducible nonvolatile memorizer module 106 Carry out the write of data, read and operate with erasing etc..Wherein, Memory Controller 104 particularly in order to According to the restorative procedure of this exemplary embodiment, backed up before memory storage apparatus 100 dispatches from the factory and produce And the significant data that Schema information is relevant, then assign and belong to special instruction collection obtaining host computer system 1000 During the instruction closed, the data of previous backup are utilized to recover memory storage apparatus 100 to genuine state.
Reproducible nonvolatile memorizer module 106 is electrically connected to Memory Controller 104.Can answer Write formula non-volatile memory module 106 and include multiple physical location.In an exemplary embodiment, each Physical location is made up of a physical blocks (physical blocks includes multiple physical page), but The invention is not limited in this.In other exemplary embodiment, each physical location also can be by several physics Block is formed, and is not any limitation as the composition of physical location at this.For example, duplicative is non- Volatile 106 is multistage memory cell (Multi Level Cell, MLC) NAND Flash Memory module, but the invention is not restricted to this, reproducible nonvolatile memorizer module 106 can also It is single-order memory cell (Single Level Cell, SLC) NAND quick-flash memory module, other quick flashings Memory module or any memory module with identical characteristics.
Fig. 3 is the schematic block diagram according to the Memory Controller depicted in the present invention one exemplary embodiment. Refer to Fig. 3, Memory Controller 104 include host system interface 1041, memory management circuitry 1043, Memory interface 1045, and memory element 1047.
Host system interface 1041 is electrically connected to memory management circuitry 1043, and by adapter 102 To be electrically connected with host computer system 1000.Host system interface 1041 is in order to receive and to identify host computer system 1000 The instruction transmitted and data.Accordingly, the instruction that host computer system 1000 is transmitted and data can pass through main frame System interface 1041 and be sent to memory management circuitry 1043.In this exemplary embodiment, main frame system The corresponding adapter 102 of system interface 1041 and be USB interface, and in other exemplary embodiment, main frame System interface 1041 can also be SATA interface, MMC interface, PATA interface, IEEE1394 Interface, PCI Express interface, SD interface, MS interface, CF interface, ide interface or meet it The interface of his interface standard.
Memory element 1047 is electrically connected to memory management circuitry 1043.Memory element 1047 is at least wrapped Include boot rom (Boot ROM) 1047-1 and random access memory 1047-3.Wherein, open Machine read only memory 1047-1 is in order to store driving code segment (Boot code).Random access memory 1047-3 can be static RAM (Static Random Access Memory, SRAM), Or dynamic random access memory (Dynamic Random Access Memory, DRAM) etc., this Invention is not any limitation as.Random access memory 1047-3 is configured to temporarily store and comes from host computer system 1000 Instruction and data, or temporary data coming from reproducible nonvolatile memorizer module 106.
Memory management circuitry 1043 is in order to control the overall operation of Memory Controller 104.Specifically, Memory management circuitry 1043 has multiple control instruction, is operated at memory storage apparatus 100 Time (power on), above-mentioned control instruction can be performed with to reproducible nonvolatile memorizer module 106 operate.
In this exemplary embodiment, the control instruction of memory management circuitry 1043 is with form of program code (also known as, firmware code) is stored in the specific region (example of reproducible nonvolatile memorizer module 106 As, reproducible nonvolatile memorizer module 106 is exclusively used in the system area of storage system data) in. Additionally, memory management circuitry 1043 has microprocessor unit (not illustrating).Work as Memory Controller 104 when being enabled, and microprocessor unit can first carry out the driving code in boot rom 1047-1 Section will be stored in the control instruction in reproducible nonvolatile memorizer module 106 and is loaded into and deposits at random In access to memory 1047-3.Afterwards, microprocessor unit can operate above-mentioned control instruction to respond main frame system The instruction of system 1000 accesses reproducible nonvolatile memorizer module 106.
In another exemplary embodiment of the present invention, the control instruction of memory management circuitry 1043 can also be consolidated Part form carrys out implementation.Such as, memory management circuitry 1043 have microprocessor unit (not illustrating) with Read only memory (does not illustrates), and above-mentioned control instruction is to be programmed in read only memory.Work as storage When device storage device 100 operates, above-mentioned control instruction can be performed to respond main frame by microprocessor unit The instruction of system 1000 accesses reproducible nonvolatile memorizer module 106.
Additionally, in another exemplary embodiment of the present invention, the control instruction of memory management circuitry 1043 is also An example, in hardware can carry out implementation.For example, memory management circuitry 1043 includes microcontroller, deposits Reservoir administrative unit, memorizer writing unit, memorizer read unit, memorizer erasing unit and data Processing unit.MMU, memorizer writing unit, memorizer read unit, memorizer is wiped Except unit and data processing unit are electrically connected to microcontroller.Wherein, MMU in order to The physical location of management reproducible nonvolatile memorizer module 106.Memorizer writing unit is in order to right It is non-to write data into duplicative that reproducible nonvolatile memorizer module 106 assigns write instruction In volatile 106.Memorizer reads unit in order to type nonvolatile Module 106 assigns reading instruction to read data from reproducible nonvolatile memorizer module 106. Memorizer erasing unit in order to assign erasing instruction to incite somebody to action to reproducible nonvolatile memorizer module 106 Data are wiped from reproducible nonvolatile memorizer module 106.And data processing unit is in order to process It is intended to write to the data of reproducible nonvolatile memorizer module 106 and non-volatile from duplicative The data read in memory module 106.
Memory interface 1045 is electrically connected to memory management circuitry 1043, so that Memory Controller 104 are electrically connected with reproducible nonvolatile memorizer module 106 phase.Accordingly, Memory Controller 104 can carry out relevant running to reproducible nonvolatile memorizer module 106.It is to say, be intended to write The data entered to reproducible nonvolatile memorizer module 106 can be converted to via memory interface 1045 The receptible form of reproducible nonvolatile memorizer module 106.
In another example of the present invention embodiment, Memory Controller 104 also includes error checking and school Positive circuit 3002.Error checking and correcting circuit 3002 are electrically connected to memory management circuitry 1043, In order to perform error checking with correction program to guarantee the correctness of data.Specifically, when memorizer pipe When reason circuit 1043 receives the write instruction from host computer system 1000, error checking and correcting circuit 3002 can be error checking and the correcting code (Error of the data generation correspondence of this write instruction corresponding Checking and Correcting Code, ECC Code), and memory management circuitry 1043 can be by right The data answering this write instruction are deposited to duplicative is non-volatile with correcting code write with corresponding error checking Memory modules 106.Afterwards when memory management circuitry 1043 is from reproducible nonvolatile memorizer module When reading data in 1 06, error checking corresponding to these data and correcting code, and mistake inspection can be read simultaneously Look into and can perform mistake inspection according to this error checking with the correcting code data to being read with correcting circuit 3002 Look into and correction program, to identify whether this pen data exists error bit.
In the another exemplary embodiment of the present invention, Memory Controller 104 also includes electric power management circuit 3006.Electric power management circuit 3006 is electrically connected to memory management circuitry 1043, in order to control storage The power supply of device storage device 100.
Fig. 4 is according to the management duplicative non-volatile memories depicted in one example of the present invention embodiment The schematic diagram of the physical location of device module.It is described below reproducible nonvolatile memorizer module 106 The running of physical location time, carry out operating physical list with the word such as " extraction ", " exchange ", " packet ", " rotating " Unit is concept in logic.It is to say, the physics list of reproducible nonvolatile memorizer module 106 The physical location of unit is not changed, but in logic to reproducible nonvolatile memorizer module 106 Physical location carries out aforesaid operations.
Refer to Fig. 4, Memory Controller 104 memory storage apparatus 100 production period (i.e., Before dispatching from the factory) just all physical locations of reproducible nonvolatile memorizer module 106 are at least divided For backup area 1061 and use district 1063.Wherein, backup area 1061 includes backing up physical location 405 (1) ~ 405 (B), B are positive integer.Backup physical location 405 (1) ~ 405 (B) is set to can only be by spy The different incompatible access of instruction set.Special instruction set includes that several manufacturers instruct (vendor command), The most special reading instruction, special write instruction and special erasing instruction.Special finger is belonged to unless obtained Order set instruction, otherwise Memory Controller 104 backup area 1061 will not be carried out data write, Read and operate with erasing etc..
District 1063 is used to include physical location 410 (0) ~ 410 (N).Storage in Memory Controller 104 Physical location 410 (0) ~ 410 (N) can be logically grouped into data field 502, leave unused by device management circuit 1043 District 504, system area 506 and replacement district 508.Wherein, F, S, R that Fig. 4 is indicated and N is for just Integer, represents the physical location quantity of each district configuration, and it can be by the manufacturer of memory storage apparatus 100 Set according to the capacity of the reproducible nonvolatile memorizer module 106 used.
The physical location logically belonging to data field 502 and idle district 504 is to store to come from main frame The data of system 1000.Specifically, the physical location of data field 502 is regarded as storing data Physical location, and the physical location in idle district 504 is the physical location writing new data.In other words Saying, the physical location in idle district 504 is empty or spendable physical location (no record data or be labeled as Invalid data the most useless).When receiving write instruction with the data to be write from host computer system 1000, Memory management circuitry 1043 meeting extracts physical unit from idle district 504, and write data into institute In the physical location extracted, with the physical location in replacement data district 502.Or, when needs are to a logic When unit performs data consolidation procedure, memory management circuitry 1043 can be from idle district 504 extracts physical list Unit also writes data into wherein, to replace original physical location mapping this logical block.
The physical location logically belonging to system area 506 is to record system data.For example, it is System data include the firmware code about reproducible nonvolatile memorizer module 106, manufacturer and type Number, the physical blocks number of reproducible nonvolatile memorizer module 106, the physics of each physical blocks The information such as page number.Must illustrate, although being to draw independent for backup area 1061 in the diagram Using outside district 1063, but it practice, backup physical location in backup area 1061 405 (1) ~ 405 (B) are belonging to the physical location of system area 506.The mode that illustrates of Fig. 4 is for only for ease of Clear explanation.
Logically belong to replace the physical location in district 508 be in order in data field 502, idle district 504 or When physical location in system area 506 is damaged, replacing damaged physical location.Specifically, in storage During device storage device 100 running, still there are normal physical location and data if replacing in district 508 When the physical location in district 502 damages, memory management circuitry 1043 can be extracted normally from replacing district 508 Physical location change in data field 502 damage physical location.The most therefore, at memorizer storage dress Put in the operation of 100, data field 502, idle district 504, system area 506 and replacement district 508 Physical location can dynamically change.Such as, can belong to changing in order to the physical location of storage data of rotating Data field 502 or idle district 504.
In order to host computer system 1000 can be accessed reproducible nonvolatile memorizer module 106, Memory management circuitry 1043 can configure several logical block 610 (0) ~ 610 (L) to map data field 502 In physical location 410 (0) ~ 410 (F-1).Specifically, memory management circuitry 1043 will be configured Logical block 610 (0) ~ 610 (L) is supplied to host computer system 1000, and service logic unit-physical location reflects Firing table (logical unit-physical unit mapping table) is to record logical block 610 (0) ~ 610 (L) Mapping relations with physical location 410 (0) ~ 410 (F-1).Therefore, patrol when host computer system 1000 is intended to access one When collecting address, memory management circuitry 1043 can find logic according to logical block-physical location mapping table The physical location that address is mapped accesses.
In this exemplary embodiment, before memory storage apparatus 100 dispatches from the factory, manufacturer can be to answering Write formula non-volatile memory module 106 to perform to open card program.Specifically, manufacturer uses volume production work Tool (Mass Production tool, MP tool) carrys out order Memory Controller 104 to using district 1063 In physical location 410 (0) ~ 410 (N) carry out initialization action.Such as, Memory Controller 104 can be by In physical location 410 (0) ~ 410 (N), the data of each page address are erased to 0 × FF data, and carry out magnetic Sweeping retouch (such as, do readwrite tests) to identify the physical location of normal physical location and damage, And by the customization data write relevant to the production information and Schema information of memory storage apparatus 100 Using district 1063(such as, write is exclusively used in the system area 506 of storage system data).Wherein, customization Change data include main start record (Master Boot Record, MBR), start magnetic region (Boot Sector), File configuration table (File Allocation Table), root (root directory), device specification are believed Breath (such as, the speed of memory storage apparatus 100, capacity, pattern, name of product etc.), customization Change application program, burn recording software (burner) and firmware code at least one.Furthermore, it is understood that It is during memory storage apparatus 100 is used that part customizes data, can respond user Read-write operation and by the data of indirect access.Such as, storage dress is write data into when user Put 100, during the data maybe to delete, revised in memory storage apparatus 100, though user is not straight Connect and file configuration table is modified, but the content of file configuration table also can be changed by correspondence therewith.Separately The customization data of a part are then the numbers relevant with the main running maintaining memory storage apparatus 100 According to, caing be compared to seems burn recording software and firmware code, and the customization data of this type then cannot be straight by user Connect or indirectly revise its content.And still some customization data are about memory storage apparatus The additional function (such as customizing application program) of 100, the customization data of this type then can be passed through Special instruction or instrument increase newly or delete.
In addition, production tool will be able to be performed by special instruction set command Memory Controller 104 Set up during opening card program and write and use all customization data in district 1063 additionally to write backup area Backup physical location 405 (1) ~ 405 (B) in 1061.For example, production tool first assigns special instruction Special erasing instruction in set, will be backed up physical location 405 (1) ~ 405 (B) by Memory Controller 104 In data erasing.Then, production tool assigns special write instruction again, with by Memory Controller 104 By above-mentioned customization data write backup physical location 405 (1) ~ 405 (B).Should be noted that, some is planted The customization data of class are using district 1063 to utilize a complete physical location to store, but it is actual Data volume less than the design capacity of a physical location.And in this exemplary embodiment, memorizer control Device 104 processed when by various customization data write backup area 1061, then can depend on the big of each customization data Little that it is whole and to backup physical location 405 (1) ~ 405 (B).It is to say, use in district 1063 in order to The physical location sum storing all customization data may be more than backup physical location 405 (1) ~ 405 (B) Quantity.As an example it is assumed that each physical location is a physical blocks, in this exemplary embodiment, Though device specification information only takes up two physical pages, but Memory Controller 104 can use district 1063 The middle whole physical blocks of use one is used as the memory space of device specification information, but by device specification During information write backup area 1061, Memory Controller 104 is the most e.g. by device specification information and file Other customization data such as allocation list write same backup physical blocks, that is, device specification information will not Take alone a backup physical location.
In addition, open card program the term of execution, production tool also can assign special write instruction with Order Memory Controller 104 sets up a reduction structural table each backup physical location 405 (1) ~ 405 (B), And reduce in structural table each data that customize that the backup physical location belonging to record recorded at this and patrol with one Collect the corresponding relation of address.Wherein, each logical address is to map individually the thing corresponding to each customization data Reason unit, that is respectively customization data are written into the physical location using district 1063.Fig. 5 is according to this The schematic diagram of the reduction structural table depicted in one exemplary embodiment of invention.Refer to Fig. 5, go back original structure Table 50 includes customizing data name field 53 and logical address field 55.Wherein, main start record The logical address that corresponding logical address is LBA (10), start magnetic region is corresponding is LBA (20), file is joined Putting the logical address that logical address corresponding to table is LBA (30), root is corresponding is LBA (40), device The logical address that specification information is corresponding is LBA (50), and customizes logical address corresponding to application program and be LBA(100)。
In another exemplary embodiment, it is each fixed that Memory Controller 104 also can record in reduction structural table Verification corresponding to inhibition and generation data and (checksum), such as, at the reduction structural table 50 shown in Fig. 5 In a newly-increased field with record each customization data verification and.Moreover, it is assumed that backup physical location The quantity of 405 (1) ~ 405 (B) is more than 1, and respectively reduction structural table also can record next backup physical location Physical address, such as, at the last newly-increased column data of the reduction structural table 50 shown in Fig. 5 with record The physical address of next backup physical location.
As it has been described above, before memory storage apparatus 100 not yet dispatches from the factory, Memory Controller 104 meeting All physical locations of reproducible nonvolatile memorizer module 106 mark off especially and is only capable of by spy The different incompatible backup area 1061 carrying out accessing of instruction set, and by open card program the term of execution produced Various customization data additional copy are to the backup physical location 405 (1) ~ 405 (B) in backup area 1061.
After memory storage apparatus 100 dispatches from the factory and sold to user, if user is in use Find that memory storage apparatus 100 has unusual condition, then can connect manufacturer by host computer system 1000 and carry The site for service of confession is to be downloaded to main storage means 1112 by a repairing applications.Or, if repairing Application program is stored in CD and sells in the lump to user, user with memory storage apparatus 100 Also the repairing applications in CD can be installed on main storage means 1112.By memory storage apparatus After 100 are connected to host computer system 1000, as long as user performs to repair application journey in host computer system 1000 Sequence, the Memory Controller 104 in memory storage apparatus 100 will be according to the finger of repairing applications Memory storage apparatus 100 is recovered to genuine state by order.It is to say, user can utilize reparation Application program to complete the recovery program of memory storage apparatus 100 voluntarily at user end.
Specifically, when memory storage apparatus 100 connects host computer system 1000, if memorizer storage Device 100 is in the state that can receive and process the instruction from host computer system 1000, represents memorizer control The instruction that device 104 processed can be assigned according to host computer system 1000 is to reproducible nonvolatile memorizer module 106 access.Now, once user starts repairing applications in host computer system 1000, repairs Memory storage apparatus 100 will be assigned and be intended to read backup physical location 405 (1) ~ 405 (B) by application program Special reading instruction.And Memory Controller 104 obtain above-mentioned special read instruction time, then can be by All customization data and reduction structural table in backup physical location 405 (1) ~ 405 (B) are back in the lump Host computer system 1000.For example, for each customization data, Memory Controller 104 can first certainly Reduction structural table obtain its verification and, and utilize such as cyclic redundancy check (CRC) (Cyclic Redundancy Check, CRC) program confirm this customize data correctness, and to be checked errorless after again by it It is sent to host computer system 1000.
Reduction structural table and the customization number of memory storage apparatus 100 passback is received in host computer system 1000 According to afterwards, repairing applications understands the content with reference to reduction structural table send several write instruction, to incite somebody to action Each use district 1063 customizing data write reproducible nonvolatile memorizer module 106.Wherein, The logical address that each write instruction to be write is to record in reduction structural table corresponding to the customization to be write The logical address of data.In this exemplary embodiment, repairing applications can be according to a particular order (example As, the importance of data) by each customization data write reproducible nonvolatile memorizer module 106 Use district 1063.
Data are customized when Memory Controller 104 receives to be assigned by host computer system 1000 and be intended to write During write instruction, write instruction will be write by Memory Controller 104 for each write instruction Customize data to be backfilled to use the physics being mapped in the logical address that write instruction to be write in district 1063 Unit.After the write of all customization data is used district 1063, just can make memory storage apparatus 100 Recover to the genuine state meeting production information and Schema information.
In an exemplary embodiment, when memory storage apparatus 100 is electrically connected to by adapter 102 Host computer system 1000, if host computer system 1000 inquires its device characteristic to memory storage apparatus 100, But receive memory storage apparatus 100 to send a storage medium and there is not (no media) message, then repair Application program then can first be assigned pre-formatting instruction and notify that Memory Controller 104 is to memorizer storage dress Put 100 and carry out pre-formatting (pre-format) program.Specifically, Memory Controller 104 is connecing After obtaining pre-formatting instruction, by all physical locations 410 (0) ~ 410 (N) in erasing use district 1063 Data, and to using all physical locations 410 (0) ~ 410 (N) in district 1063 to carry out disk scanning, according to This can therefrom identify the physical location of normal physical location and damage.And if normal physical location Corresponding active volume does not meets installed capacity (such as, the active volume of memory storage apparatus 100 Do not reach installed capacity), this message then can be returned to host computer system 1000 by Memory Controller 104, and (such as, more installed capacity, after obtaining above-mentioned message, can be updated to active volume by repairing applications Size field in new file configuration table), and control memory storage apparatus 100 and again check. Now, owing to installed capacity is consistent with active volume, device to be stored storage device 100 responds main frame system The inquiry of system 1000 and after recovering its device characteristic, repairing applications just can continue assign write instruction with Previously received customization data are write back the part physical unit used in district 1063.That is, at this In exemplary embodiment, at the physical location that the customization data from host computer system 1000 are backfilled to correspondence Before, Memory Controller 104 has the ability to receive and identify pre-formatting instruction, and can be according to or without receipts Judge whether to need memory storage apparatus 100 is carried out pre-formatting program to pre-formatting instruction. In the case of there is a need to perform pre-formatting program, then first carry out pre-formatting program, pass through the most again Backfill customizes the mode of data and recovers memory storage apparatus 100 to genuine state.
Fig. 6 is the reparation side of the memory storage apparatus depicted in the first exemplary embodiment according to the present invention The flow chart of method.
Refer to Fig. 6, first as shown in step S610, before memory storage apparatus 100 dispatches from the factory, Physical location all of in reproducible nonvolatile memorizer module 106 is drawn by Memory Controller 104 Being divided into backup area 1061 and use district 1063, wherein backup area 1061 includes more than one backup physics Unit 405 (1) ~ 405 (B), and backup physical location 405 (1) ~ 405 (B) can only be incompatible by special instruction collection Access.
Then, in step S620, manufacturer uses production tool to perform to open to memory storage apparatus 100 Card program.And as shown in step S630, Memory Controller 104, by special instruction set, will perform Set up during opening card program and write and use the various customization data in district 1063 additionally to write backup thing Reason unit 405 (1) ~ 405 (B).
After device to be stored storage device 100 dispatches from the factory, as shown in step S640, at memory storage apparatus 100 connect host computer system 1000 and are in the shape that can receive and process the instruction from host computer system 1000 During state, Memory Controller 104 receives backup physical location to be read from host computer system 1000 The special reading instruction of 405 (1) ~ 405 (B), this special reading instruction belongs to special instruction set.
In step S650, Memory Controller 104 will back up in physical location 405 (1) ~ 405 (B) Customize data and be sent to host computer system 1000.
As shown in step S660, Memory Controller 104 is intended to write receiving from host computer system 1000 When customizing the write instruction of data, the customization data from host computer system 1000 are write to correspondence Physical location, makes memory storage apparatus 100 recover to genuine state according to this.
Below by the detailed process of step S660 with Fig. 7 explanatory diagram 6.
Referring to Fig. 7, first in step S710, Memory Controller 104 judges whether to need depositing Reservoir storage device 100 carries out pre-formatting program.That is, it may be judged whether obtain host computer system 1000 times The pre-formatting instruction reached.
If it is, as shown in step S720, Memory Controller 104 erasing uses in district 1063 All physical locations 410 (0) ~ 410 (N), and to all physical locations used in district 1063 410 (0) ~ 410 (N) carry out disk scanning.
Treat that step S720 is finished, or the judged result of step S710 is no, then such as step S730 Shown in, for the follow-up each write instruction assigned of host computer system 1000, Memory Controller 104 will respectively be write Enter to instruct the customization data to be write to be backfilled in use district 1063 be mapped in the logical address to be write Physical location.
[the second exemplary embodiment]
In this exemplary embodiment, before memory storage apparatus 100 not yet dispatches from the factory, memorizer controls Device 104 also can mark off in reproducible nonvolatile memorizer module 106 and be only capable of by special instruction collection The incompatible backup area 1061 carrying out accessing, and by open card program the term of execution produced all fixed Inhibition and generation data additional copy is to the backup physical location 405 (1) ~ 405 (B) in backup area 1061.But, Second exemplary embodiment is in place of the difference of the first exemplary embodiment, and memory storage apparatus 100 exists Dispatch from the factory and after being sold to user, if because of firmware code damage or lose and cause Memory Controller 104 are only capable of performing the driving code segment in boot rom 1047-1, and user still can pass through Host computer system 1000 performs repairing applications to recover memory storage apparatus 100 to genuine state.
Fig. 8 is the reparation side of the memory storage apparatus depicted in the second exemplary embodiment according to the present invention The flow chart of method.
Refer to Fig. 8, due to the step S610 to S630 of the step S810 to S830 and Fig. 6 of Fig. 8 Same or similar, therefore do not repeat them here.
After device to be stored storage device 100 dispatches from the factory, as shown in step S840, at memory storage apparatus 100 are electrically connected to host computer system 1000, and Memory Controller 104 is only capable of performing read-only depositing of starting shooting During driving code segment in reservoir 1047-1, user can perform to repair application journey in host computer system 1000 Sequence.Repairing applications will send the spy being intended to read backup physical location 405 (1) ~ 405 (B) after being performed Very read instruction.Base this, Memory Controller 104 will be received from main frame system by adapter 102 System 1000 and the special reading instruction of reading backup physical location 405 (1) ~ 405 (B).
Then in step S850, although Memory Controller 104 is only capable of performing read-only storage of starting shooting at present Driving code segment in device 1047-1, but to directly read duplicative non-easily because driving code segment to be additionally arranged The function of the property lost memory module 106, therefore Memory Controller 104 still can respond special reading and refers to Order goes to read backup physical location 405 (1) ~ 405 (B), and will backup physical location 405 (1) ~ 405 (B) In customization data and reduction structural table be back to host computer system 1000.
After host computer system 1000 receives each customization data and reduction structural table, repairing applications will Send and be intended to use district 1063 by customize data write reproducible nonvolatile memorizer module 106 Write instruction.And as shown in step S860, when Memory Controller 104 receives from host computer system 1000 To when being intended to write the write instruction customizing data, Memory Controller 104 is according to patrolling in write instruction Collect the physical location that address is the most corresponding by customizing data write, so that memory storage apparatus 100 recovers To genuine state.
It is to say, in second exemplary embodiment of the present invention, even if because of memory storage apparatus 100 Firmware code damage or lose cause Memory Controller 104 to be only capable of going to boot rom Driving code segment in 1047-1, also can respond the special reading from host computer system 1000 and instruct answering The backup physical location 405 (1) ~ 405 (B) write in formula non-volatile memory module 106 is read out, and Backup customization data wherein are utilized to recover memory storage apparatus 100 to genuine state.
The detailed process of step S860 will be described with Fig. 9 below.
Referring to Fig. 9, in this exemplary embodiment, it is soft that repairing applications can first assign burning to be write Part and the write instruction of firmware code, therefore as shown in step S910, Memory Controller 104 is from main frame system System 1000 reception burn recording software to be write and the write instruction of firmware code.
Then, in step S920, Memory Controller 104 is by soft for the burning from host computer system 1000 Part is loaded into random access memory 1047-3.And as shown in step S930, Memory Controller 104 operates Burn recording software is write to be backfilled to the firmware code from host computer system 1000 use in district 1063 be mapped in Enter the physical location of the logical address that instruction to be write.From the point of view of another angle, repairing applications has Have with burning in system (In System Programming, ISP) that mode is revised or more new memory is deposited The function of the firmware code of storage device 100.Repairing applications is assigning write instruction with by firmware code After being stored in the physical location used in district 1063, the microprocessor unit in memory management circuitry 1043 Just the code segment that drives that can perform in boot rom 1047-1 will use the firmware in district 1063 Code is loaded into random access memory 1047-3, to complete correction or the renewal of firmware code.
Then in step S940, Memory Controller 104 judges whether to need memory storage apparatus 100 carry out pre-formatting program (that is, it may be judged whether have and receive the pre-form that host computer system 1000 is assigned Change instruction).
If it is, in step S950, Memory Controller 104 erasing uses the institute in district 1063 There is physical location 410 (0) ~ 410 (N), and to all physical locations 410 (0) ~ 410 (N) used in district 1063 Carry out disk scanning.
Then in step S960, for subsequently received each write instruction, Memory Controller 104 The customization data being intended to write are backfilled to use the thing being mapped in the logical address to be write in district 1063 Reason unit.
In sum, memory storage apparatus of the present invention and restorative procedure thereof are at memorizer storage dress Putting before dispatching from the factory, when will carry out open card program, produced customization data additionally write backup physical location. Owing to backup physical location is only capable of by the incompatible access of special instruction collection, so even at memorizer storage dress Putting after selling, the general accessing operation that memory storage apparatus is carried out by user can't change backup The content of physical location.Once memory storage apparatus breaks down or abnormal, and user can be at user side Host computer system performs the repairing applications that manufacturer provides, and the memorizer control in memory storage apparatus Backup can be sent in the customization data of backup physical location by device processed according to the instruction of repairing applications Host computer system, and each customization data write back and use district by the write instruction assigned according to repairing applications Physical location, returns to the genuine state of customer demand accordingly by memory storage apparatus.User is come Say, when finding memory storage apparatus exception, it is no longer necessary to back into genuine, as long as at user side Just can certainly be about to its restore to genuine state, quite facilitate save time.
Although the present invention is open as above with embodiment, so it is not limited to the present invention, this area skill Art personnel, without departing from the spirit and scope of the present invention, when making a little change and retouching, therefore this The protection domain of invention is when being as the criterion depending on the defined person of appended claims.

Claims (24)

1. a restorative procedure for memory storage apparatus, is used for having a duplicative non-volatile memories One memory storage apparatus of device module, this reproducible nonvolatile memorizer module includes multiple physics Unit, wherein these physical locations include at least one backup physical location, and this at least one backup physics list System of unit is set to and can only pass through an incompatible access of special instruction collection, and wherein this at least one backup physical location is deposited Containing at least one customization data, the method includes:
The state that can receive and process the instruction from a host computer system it is at this memory storage apparatus Time, the special reading instruction being intended to read this at least one backup physical location is received from this host computer system, its In this special reading instruction belong to this special instruction set;
Transmit these at least one customization data in this at least one backup physical location to this host computer system;With And
When receiving at least one write instruction being intended to write these at least one customization data from this host computer system Time, by this at least one customization data write from this host computer system to corresponding physical location, so that This memory storage apparatus recovers to a genuine state,
Wherein this at least one backup physical location has more stored a reduction structural table, this reduction structural table record This at least one customization data and corresponding relation of a logical address, wherein this logical address maps individually this At least one customizes the physical location corresponding to data.
2. the restorative procedure of memory storage apparatus as claimed in claim 1, wherein transmit this at least one These at least one customization data in backup physical location also include to the step of this host computer system:
By this reduction structural table with these at least one customization data in this at least one backup physical location in the lump It is sent to this host computer system.
3. the restorative procedure of memory storage apparatus as claimed in claim 2, is wherein tying this reduction Structure table is sent to this main frame system in the lump with these at least one customization data in this at least one backup physical location After the step of system, the method also includes:
Sent according to this reduction structural table by this host computer system be intended to write this at least one customize data this extremely A few write instruction, the logical address that wherein this at least one write instruction to be write is tied in this reduction for record Structure table corresponds to this logical address of the customization data to be write.
4. the restorative procedure of memory storage apparatus as claimed in claim 3, wherein this at least one customization Change data and include a main start record, start magnetic region, a file configuration table, a root, a device Specification information, one customize application program, a burn recording software and a firmware code at least one, And when receiving this at least one write instruction being intended to write these at least one customization data from this host computer system Time, by this at least one customization data write to corresponding physical location, so that this memory storage apparatus Recover to the step of this genuine state to include:
For this at least one write instruction, the customization data this at least one write instruction to be write backfill The physical location that the logical address to be write to this at least one write instruction is mapped, so that from this main frame This at least one customization data write of system is to corresponding physical location.
5. the restorative procedure of memory storage apparatus as claimed in claim 4, wherein by this at least one Customize the physical location that data write is the most corresponding, so that this memory storage apparatus recovers to this genuine shape Before the step of state, also include:
Judge whether to need this memory storage apparatus is carried out a pre-formatting program;And
If it is, all physical locations in erasing one use district, and to the property in this use district Reason unit carries out disk scanning.
6. the restorative procedure of memory storage apparatus as claimed in claim 1, wherein this at least one customization Change data relevant to a production information of this memory storage apparatus and a Schema information.
7. a memory storage apparatus, including:
One reproducible nonvolatile memorizer module, including multiple physical locations, wherein these physics lists Unit includes at least one backup physical location, and this at least one backup physical location system is set to and can only pass through one The incompatible access of special instruction collection, wherein this at least one backup physical location storage has at least one customization data;
A connector;And
One Memory Controller, is electrically connected to this reproducible nonvolatile memorizer module and is connected with this Device,
Wherein it is electrically connected with a host computer system at this memory storage apparatus by this adapter, and be in can Receiving with when processing from the state of the instruction of this host computer system, this Memory Controller is in order to from this main frame System receives and is intended to read the one of this at least one backup physical location and special reads instruction, and transmit this at least one These at least one customization data in backup physical location are to this host computer system, and wherein this special reading instructs Belong to this special instruction set,
This Memory Controller is also in order to be intended to write this and at least one customize number receiving from this host computer system According at least one write instruction time, at least one will customize data write to the most right from this of this host computer system The physical location answered, so that this memory storage apparatus recovers to a genuine state,
Wherein this at least one backup physical location has more stored a reduction structural table, this reduction structural table record This at least one customization data and corresponding relation of a logical address, wherein this logical address maps individually this At least one customizes the physical location corresponding to data.
8. memory storage apparatus as claimed in claim 7, wherein this Memory Controller is by this also Original structure table is sent to this master in the lump with these at least one customization data in this at least one backup physical location Machine system.
9. memory storage apparatus as claimed in claim 8, wherein this host computer system send this at least One write instruction system is intended to write this and at least one customizes data, and patrolling of being write of this at least one write instruction Collect this logical address that address is the record customization data corresponding to be write in this reduction structural table.
10. memory storage apparatus as claimed in claim 9, wherein this at least one customization packet includes One main start record, one start magnetic region, a file configuration table, a root, a device specification information, One customize application program, a burn recording software and a firmware code at least one, and this memorizer Controller is in order to for this at least one write instruction, the customization number this at least one write instruction to be write According to being backfilled to the physical location that the logical address that this at least one write instruction to be write is mapped, so that from This at least one customization data write of this host computer system is to corresponding physical location.
11. memory storage apparatus as claimed in claim 10, wherein this Memory Controller in order to Before this at least one customization data write to corresponding physical location, it may be judged whether need this storage Device storage device carries out a pre-formatting program,
If it is, all physical locations in this Memory Controller erasing one use district, and to this use All physical locations in district carry out disk scanning.
12. memory storage apparatus as claimed in claim 7, wherein this at least one customize data with should One production information of memory storage apparatus and a Schema information are correlated with.
The restorative procedure of 13. 1 kinds of memory storage apparatus, wherein this memory storage apparatus have one can Manifolding formula non-volatile memory module and a boot rom, and this duplicative is non-volatile deposits Memory modules includes multiple physical location, and wherein these physical locations include at least one backup physical location, And this at least one backup physical location system is set to and can only pass through an incompatible access of special instruction collection, the method Including:
It is electrically connected to a host computer system at this memory storage apparatus and is only capable of performing that this start is read-only deposits When in reservoir one drives code segment, receive from this host computer system and be intended to read this at least one backup physical location One special read instruction, wherein this special reading instruction belongs to this special instruction set;
Transmit at least one customization data in this at least one backup physical location to this host computer system;And
When receiving at least one write instruction being intended to write these at least one customization data from this host computer system Time, by this at least one customization data write from this host computer system to corresponding physical location, so that This memory storage apparatus recovers to a genuine state.
The restorative procedure of 14. memory storage apparatus as claimed in claim 13, wherein this is the most certain Inhibition and generation data are relevant to a production information of this memory storage apparatus and a Schema information.
The restorative procedure of 15. memory storage apparatus as claimed in claim 13, wherein this is at least one standby Part physical location has more stored a reduction structural table, these at least one customization data of this reduction structural table record With the corresponding relation of a logical address, wherein this logical address maps individually this at least one customization data institute Corresponding physical location, and transmit at least one customization data in this at least one backup physical location to being somebody's turn to do The step of host computer system also includes:
By this reduction structural table with these at least one customization data in this at least one backup physical location in the lump It is sent to this host computer system.
The restorative procedure of 16. memory storage apparatus as claimed in claim 15, wherein by this reduction Structural table is sent to this main frame in the lump with these at least one customization data in this at least one backup physical location After the step of system, the method also includes:
Sent according to this reduction structural table by this host computer system be intended to write this at least one customize data this extremely A few write instruction, the logical address that wherein this at least one write instruction to be write is tied in this reduction for record Structure table corresponds to this logical address of the customization data to be write.
The restorative procedure of 17. memory storage apparatus as claimed in claim 16, wherein this is the most certain Inhibition and generation data include a main start record, start magnetic region, a file configuration table, a root, a dress Put specification information, one customize application program, a burn recording software and a firmware code at least one, And when receiving this at least one write instruction being intended to write these at least one customization data from this host computer system Time, by this at least one customization data write to corresponding physical location, so that this memory storage apparatus Recover to the step of this genuine state to include:
The write instruction being intended to write this burn recording software with this firmware code is received from this host computer system;
The random access memory that this burn recording software from this host computer system is loaded into this memory storage apparatus is deposited Reservoir;
Operate this burn recording software so that this firmware code from this host computer system is backfilled to a use Qu Zhongying Penetrate the physical location of the logical address to be write in write instruction;And
For this subsequently received at least one write instruction, by determining that this at least one write instruction to be write Inhibition and generation data are backfilled to the physical location that the logical address that this at least one write instruction to be write is mapped, with Make the physical location of this at least one customization data write extremely correspondence from this host computer system.
The restorative procedure of 18. memory storage apparatus as claimed in claim 17, wherein in this burning that operates Recording software is to be backfilled to this firmware code from this host computer system in this use district be mapped in write instruction After the step of the physical location of the logical address to be write, also include:
Before backfilling the customization data that this at least one write instruction to be write, it may be judged whether need this Memory storage apparatus carries out a pre-formatting program;And
If it is, all physical locations wiped in this use district, and to the property in this use district Reason unit carries out disk scanning.
19. 1 kinds of memory storage apparatus, including:
One reproducible nonvolatile memorizer module, including multiple physical locations, wherein these physics lists Unit includes at least one backup physical location, and this at least one backup physical location system is set to and can only pass through one The incompatible access of special instruction collection;
A connector;And
One Memory Controller, is electrically connected to this reproducible nonvolatile memorizer module and is connected with this Device, this Memory Controller includes a boot rom,
Wherein it is electrically connected to a host computer system at this memory storage apparatus by this adapter, and is somebody's turn to do When Memory Controller is only capable of the driving code segment performing in this boot rom, if by being somebody's turn to do Adapter receives from this host computer system and the special reading being intended to read this at least one backup physical location Instruction, this Memory Controller is in order to transmit at least one customization number in this at least one backup physical location According to this host computer system, wherein this special reading instruction belongs to this special instruction set,
This Memory Controller is also in order to be intended to write this and at least one customize number receiving from this host computer system According at least one write instruction time, at least one will customize data write to the most right from this of this host computer system The physical location answered, so that this memory storage apparatus recovers to a genuine state.
20. memory storage apparatus as claimed in claim 19, wherein this at least one customize data with One production information of this memory storage apparatus and a Schema information are correlated with.
21. memory storage apparatus as claimed in claim 19, wherein this at least one backup physical location More storage has a reduction structural table, and these at least one customization data of this reduction structural table record are with one logically The corresponding relation of location, wherein this logical address maps individually this at least one customization physics corresponding to data Unit, and this Memory Controller is by this in this reduction structural table and this at least one backup physical location extremely Few customization data are sent to this host computer system in the lump.
22. memory storage apparatus as claimed in claim 21, wherein this host computer system send this extremely A few write instruction system is intended to write this and at least one customizes data, and this at least one write instruction to be write Logical address be record in this reduction structural table corresponding to the customization data to be write this logically Location.
23. memory storage apparatus as claimed in claim 22, wherein this at least one customization packet Include one main start record, one start magnetic region, a file configuration table, a root, a device specification information, One customize application program, a burn recording software and a firmware code at least one, this memorizer control Device processed, will in order to receive the write instruction being intended to write this burn recording software with this firmware code from this host computer system This burn recording software from this host computer system is loaded into a random access memory of this Memory Controller, fortune Turn this burn recording software to be backfilled in a use district be mapped in by this firmware code from this host computer system write Enter the physical location of logical address that instruction to be write, and write for subsequently received this at least Enter instruction, the customization data that this at least one write instruction to be write are backfilled to this at least one write instruction The physical location that the logical address to be write is mapped, so that from this at least one customization of this host computer system Change data write to corresponding physical location.
24. memory storage apparatus as claimed in claim 23, wherein at this burn recording software that operates to incite somebody to action This firmware code from this host computer system is backfilled in this use district be mapped in what write instruction to be write After the physical location of logical address, this Memory Controller is also in order to backfill this at least one write instruction Before the customization data to be write, it may be judged whether need this memory storage apparatus is carried out a pre-form Change program,
If it is, this Memory Controller wipes all physical locations in this use district, and to this use All physical locations in district carry out disk scanning.
CN201210256371.7A 2012-07-23 2012-07-23 Memory storage apparatus and restorative procedure thereof Active CN103578566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210256371.7A CN103578566B (en) 2012-07-23 2012-07-23 Memory storage apparatus and restorative procedure thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210256371.7A CN103578566B (en) 2012-07-23 2012-07-23 Memory storage apparatus and restorative procedure thereof

Publications (2)

Publication Number Publication Date
CN103578566A CN103578566A (en) 2014-02-12
CN103578566B true CN103578566B (en) 2016-08-24

Family

ID=50050164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210256371.7A Active CN103578566B (en) 2012-07-23 2012-07-23 Memory storage apparatus and restorative procedure thereof

Country Status (1)

Country Link
CN (1) CN103578566B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6073854B2 (en) * 2014-12-26 2017-02-01 京セラドキュメントソリューションズ株式会社 Electronic equipment and firmware recovery program
CN108572887A (en) * 2017-03-14 2018-09-25 上海骐宏电驱动科技有限公司 Data detection bearing calibration
CN108549543A (en) * 2018-04-16 2018-09-18 郑州云海信息技术有限公司 Enclosure chassis informations configuration method, medium and device
TWI698748B (en) * 2019-01-02 2020-07-11 慧榮科技股份有限公司 Data storage device, access device and data processing method
CN113495848A (en) * 2020-04-08 2021-10-12 慧荣科技股份有限公司 Flash memory device, card opening method of flash memory device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6591376B1 (en) * 2000-03-02 2003-07-08 Hewlett-Packard Development Company, L.P. Method and system for failsafe recovery and upgrade of an embedded operating system
CN1863095A (en) * 2005-03-21 2006-11-15 奔峰电子(北京)有限公司 Electric device and management system
CN102063940A (en) * 2009-11-16 2011-05-18 索尼公司 Nonvolatile memory and memory system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251617A1 (en) * 2004-05-07 2005-11-10 Sinclair Alan W Hybrid non-volatile memory system
US20120084601A1 (en) * 2010-09-30 2012-04-05 Yung-Chih Lee Computer system rescue method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6591376B1 (en) * 2000-03-02 2003-07-08 Hewlett-Packard Development Company, L.P. Method and system for failsafe recovery and upgrade of an embedded operating system
CN1863095A (en) * 2005-03-21 2006-11-15 奔峰电子(北京)有限公司 Electric device and management system
CN102063940A (en) * 2009-11-16 2011-05-18 索尼公司 Nonvolatile memory and memory system

Also Published As

Publication number Publication date
CN103578566A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
TWI425355B (en) Data access method, memory controller, memory storage system
TWI480733B (en) Data writing mehod, and memory controller and memory storage device using the same
CN104423888B (en) Method for writing data, memorizer control circuit unit and memory storage apparatus
TWI423026B (en) Data writing method, memory controller and memory storage apparatus
TWI479314B (en) Method of storing system data, and memory controller and memory storage apparatus using the same
TWI436212B (en) Data writing method, memory controller and memory storage apparatus
TWI479505B (en) Data management method, memory controller and memory storage apparatus
TWI498899B (en) Data writing method, memory controller and memory storage apparatus
TWI459393B (en) Data writing method for a non-volatile memory module, memory controller and memory storage apparatus
CN104699413A (en) Data management method, memorizer saving device and memorizer control circuit unit
CN103578566B (en) Memory storage apparatus and restorative procedure thereof
CN106469122A (en) Valid data merging method, Memory Controller and memorizer memory devices
TWI438630B (en) Data merging method for non-volatile memory and controller and stoarge apparatus using the same
CN103377129A (en) Data writing-in method, memory controller and memory storage device
US8255656B2 (en) Storage device, memory controller, and data protection method
CN103593296B (en) Data storage method, Memory Controller and memorizer memory devices
CN102890655A (en) Memory storage device, memory controller and valid data recognition method thereof
TW201344434A (en) Memory formatting method, memory controller and memory storage apparatus
TWI493341B (en) Memory storage device and repairing method thereof
CN102200946B (en) Data access method, memory controller and storage system
CN102902626A (en) Block management method, memory controller and memory storing device
CN103389941B (en) Storer formatting method, Memory Controller and memory storage apparatus
CN103106148B (en) Block management method, storage controller and storage storing device
CN105988950A (en) Memory management method, memory control circuit unit and memory storage device
CN102402396B (en) Combined type storage device as well as combined type storage media controller and addressing method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant