CN100435108C - Firmware repairing method for memory device - Google Patents

Firmware repairing method for memory device Download PDF

Info

Publication number
CN100435108C
CN100435108C CNB2004100604008A CN200410060400A CN100435108C CN 100435108 C CN100435108 C CN 100435108C CN B2004100604008 A CNB2004100604008 A CN B2004100604008A CN 200410060400 A CN200410060400 A CN 200410060400A CN 100435108 C CN100435108 C CN 100435108C
Authority
CN
China
Prior art keywords
firmware
hotfix
memory
function
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2004100604008A
Other languages
Chinese (zh)
Other versions
CN1797362A (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.)
XUNJIE SCIENCE AND TECHNOLOGY Co Ltd
Original Assignee
XUNJIE SCIENCE AND TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XUNJIE SCIENCE AND TECHNOLOGY Co Ltd filed Critical XUNJIE SCIENCE AND TECHNOLOGY Co Ltd
Priority to CNB2004100604008A priority Critical patent/CN100435108C/en
Publication of CN1797362A publication Critical patent/CN1797362A/en
Application granted granted Critical
Publication of CN100435108C publication Critical patent/CN100435108C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a method for repairing firmware of a storage device. One or a plurality of function repairing programs are stored in erasable storage locations in a storage device to be used for correcting or updating function programs in firmware. Once the function needs to be used, the programs stored in the storage locations can be directly used without needing to reburn or displace the whole firmware. As a result, the present invention achieves the purposes of reducing the cost and simplifying updated firmware.

Description

Memory storage firmware method for repairing and mending
Technical field
The present invention is stored in memory location erasable in the memory storage with the function Hotfix, so as to revising or upgrading function program in the firmware, reaches reduce cost purpose with simple and easy renewal firmware of the present invention.
Background technology
The data of Computer Processing more and more complicated now, little or the not portative memory storage of the existing capacity access of generic-document inadequately uses, the computer equipment merchant promptly seeks the up-to-date Portable technology of rewritable again, Portable has jumbo device again like this, the host-host protocol and the interface of also must arrange in pairs or groups a convenience and general implementation.So general commercially available portable memory storage just arises at the historic moment, as the employed storage card of digital video camera/camera, convenient portable USB flash disk (USBdrive) or recording pen etc., nearly all be to use flash memory (flash memory) to be used as the main body memory storage.
See also existing USB flash disk structure shown in Figure 1 (as TaiWan, China patent 555047); USB flash disk main body 10 is wherein arranged; connect the USB connector 14 of computer universal serial bus (USB) interface and the lid 12 of protection thereof; and main body 10 more comprises many control circuits and memory element; as be shown in memory substrate 16 among the figure; be used for carrying a memory chip 15; other has control basal plate 18; be used for carrying the control chip (not indicating among the figure) of this USB flash disk; control chip is the function and the signal transmission that writes of reading of control USB flash disk internal memory; the instruction that wherein needs some microprogram codes (micro code) to be used as controlling; the internal memory that maybe can only store once with the less ROM (read-only memory) of cost is stored these program codes mostly; promptly so-called between between hardware and software the firmware (firmware) of bridge; in a single day the problem that software and hardware is compatible or damage takes place in this firmware; whole device can't be operated; not that will to change chip be exactly burning again when the time comes, all do not have to ensure for the cost or the consumer of various kinds.
See also the structural representation of the dynamic method for repairing and mending (TaiWan, China patent 330291) of prior art chip firmware shown in Figure 2, the shortcoming need replacing or to abandon can't be repaired or be damaged because of part to this prior art for the built-in ROM (read-only memory) that solves digital signal processing chip (DSP) or microprocessor (MPU), part manufacturer uses the mode of expensive burning again or replaces ROM (read-only memory) with flash memory, and this prior art then provides the erasable internal memory of an a small amount of to repair the defective of original ROM (read-only memory).Comprise a chip ROM (read-only memory) 24 in the Reference numeral, one error module 23 is wherein arranged, this example is exactly the erasable internal memory 20 that is provided with or adds an a small amount of in device, planning has a control zone 21 and a patch area 22 in this erasable internal memory 20, deposit a repairing module 221 in the patch area 22 for fix errors module 23,21 hardware addresss for definition chip ROM (read-only memory) 24 each program and module in control zone further point to patch area 22 and the address of wherein repairing module 221 by control zone 21.
Said structure finds error module 23 wherein in chip ROM (read-only memory) 24 in running, then directly be transferred to according to the corresponding address that defines and repair module 221 continuation execution.
Though prior art shown in Figure 2 has solved the problem that ROM (read-only memory) need be changed, but still increased the cost of this erasable internal memory 20, no matter and original ROM (read-only memory) whether good, all needs when making built-in or add the cost of this internal memory.Have be difficult to avoid wrong in the making of the present invention in view of the firmware program in the internal memory control chip or in following the problem that may upgrade of time-evolution, and cost is saved in consideration, deposit Hotfix by the former erasable interior nonresident portion capacity that is used as data storage in the memory storage, do not need to reach the purpose of repairing or renewal firmware with extra internal memory.
Summary of the invention
The present invention is a kind of memory storage firmware method for repairing and mending, its principal character is that one or more function Hotfixs are stored in memory location erasable in the memory storage, so as to revising or upgrading function program in the firmware, reach reduce cost purpose with simple and easy renewal firmware of the present invention.
This firmware method for repairing and mending step is as follows: initialization system; Whether the firmware function that detects one or more memory storages needs to repair; Select to use this firmware function; Judge whether this firmware function has Hotfix; Use and load the Hotfix of this memory block corresponding to the firmware function.
The invention provides a kind of memory storage firmware method for repairing and mending, this memory storage comprises a memory block and wherein a Hotfix block, a microprocessor and a firmware at least, wherein this method for repairing and mending step includes: initialization system, comprising the Installed System Memory that earlier driver in this firmware is loaded in the computer system; Initialization one microprocessor; And define the address of this Hotfix block; Whether detect is fix-up mode; If not, enter a system running pattern; If, enter this fix-up mode, load the Hotfix block of a Hotfix in this memory block earlier, and, set up one or more indicia, the firmware function that defines this memory storage is replaced by the Hotfix of correspondence; Select to use this firmware function; According to the indicia of being set up, judge whether this firmware function has Hotfix; If, then do not use the firmware function program that originally is stated from this firmware in advance; If yes, then continue to select to use the step of this firmware function; And use loads the Hotfix of this memory block corresponding to the firmware function.
The present invention provides a kind of memory storage firmware method for repairing and mending again, it is characterized in that, loading a Hotfix includes in the method for repairing and mending step of memory block: initialization system, comprising the Installed System Memory that earlier driver in this firmware is loaded in the computer system; Initialization one microprocessor; And define the address of a Hotfix block; The firmware function that detects one or more memory storages needs to repair; Load the Hotfix block of Hotfix in this memory block of this firmware function; Judge whether this Hotfix is correct; If, do not prolong with function program in the former firmware; If yes, the firmware function that defines this memory storage is replaced by the Hotfix of correspondence; Set up one or more indicia; And this Hotfix that will be stored in this Hotfix block or this firmware is loaded on execution repairing in the Installed System Memory.
Description of drawings
Fig. 1 is the USB flash disk structure of prior art;
Fig. 2 is the dynamic method for repairing and mending structural representation of prior art chip firmware;
Fig. 3 is a memory storage firmware repair apparatus synoptic diagram of the present invention;
Fig. 4 is a memory storage firmware Hotfix load store block process flow diagram of the present invention;
Fig. 5 is the System Operation process flow diagram of memory storage firmware method for repairing and mending of the present invention.
Description of reference numerals
10 main bodys
12 lids
The 14USB connector
15 memory chips
16 memory substrates
18 control basal plate
20 erasable internal memories
21 control zones
22 patch areas
23 error modules
24 block region
221 repair module
30 memory storages
31 memory block
33 control modules
35 signal pins
311 Hotfixs
331 microprocessors
333 firmwares
Embodiment
The present invention is the storage card (SD that continues to use existing USB flash disk or storage card, CF, MS...etc.) framework, and utilization memory device stores Hotfix wherein, when the firmware in the device is carried out certain function, discovery needs to repair (patch), and the present invention promptly uses the Hotfix of depositing in the erasable memory block to achieve the goal, and need not change or burning firmware originally again.
Be illustrated in figure 3 as memory storage firmware repair apparatus synoptic diagram of the present invention, memory storage 30 can roughly divide into three partly among the figure, one is a memory block 31, position for data storage, an i.e. readable non-voltile memory of writing (non-volatile) is as existing flash memory (flash memory); Other is a control module 33, for controlling the output input signal and the data transfer of this memory storage 30, and the data access function in the memory block 31, the microprocessor 331 that wherein comprises a digital signal processing at least, firmware 333 with storage microprogram control code, program code is the instruction as control in this firmware 33, stores these program codes with the internal memory that the less ROM (read-only memory) of cost maybe can only be stored once mostly; Memory storage 30 1 ends electrically connect a plurality of signal pins (pin) 35, and so as to connecting the connectivity port of equipment such as computer system, all programmed instruction and data stream are all passed through signal pins 35 interface transmission.
In the above-mentioned memory block 31, the present invention is be pre-defined partial continuous or discontinuous Hotfix block 311 in design, wherein by defining a plurality of marks (flag) to indicate the program state of this Hotfix block 311 for program code in the firmware 333, if function program need repair or upgrade in the firmware 333, then Hotfix is stored in predefined position by a burning program, and mark is made as 1 (on), with apprizing system, when the needs function, and this function be labeled as 1, then replace originally old programs in the firmware 333 with the function programs in the Hotfix block 311.
Fig. 4 is the flow chart illustration of memory storage firmware Hotfix load store block of the present invention.Under the fix-up mode of memory storage:
Step 41: when system activates, the action of one system initialization is arranged, the program that is about in the firmware is written into microprocessor, is ready to receive the control signal of the equipment that connects this memory storage and the information of storage data access, more includes the step of this Hotfix block address of planning in advance of definition;
Step 42: afterwards, does the firmware function in the detection of stored device have the data of renewal or the situation of damage is arranged and needs to repair?
Step 43: if expression has to be needed to repair, promptly utilize function that this burn recording software repairs at needs that the function program of repairing is loaded on Hotfix block in the memory block, just before the position of planning in advance;
Step 44: judge whether this Hotfix correct? comprise whether Hotfix version or compatibility correct?
Step 45: if not, represent this Hotfix damage or version error and compatible problem occur, promptly prolong with function program in the former firmware;
Step 46: if yes, the position of this loading set up be labeled as 1 (on), the step that this sets up one or more indicia is to be replaced by the Hotfix of correspondence for the firmware function that defines memory storage;
Repairing step by the above-mentioned steps cycling reaches the repairing that each needs function.
Step 47:, promptly repair and finish if need not repair.
Fig. 5 is the System Operation process flow diagram of memory storage firmware method for repairing and mending of the present invention, and this memory storage comprises memory block and Hotfix block wherein, microprocessor and the firmware in the control module at least, and wherein this method for repairing and mending step includes:
Step 51: after system opens, promptly carry out initialization, be that driver in the firmware (driver) is loaded on the Installed System Memory (system memory) in the computer system that memory storage therewith connects, be generally random access memory (RAM), and the initialization microprocessor, further comprise the step that defines this Hotfix block address of planning in advance;
Step 52: judge whether to be fix-up mode again?
Step 53: if be judged as fix-up mode, promptly enter the step of loading Hotfix shown in Figure 4, enter to step 54 again and select function in the using system according to need;
Step 54: if non-, promptly enter the System Operation pattern, the user selects the function in the using system;
Is step 55: the mark of being set up by each function in the firmware (flag) that 0 (off) or 1 (on) judge that this function has Hotfix?
Step 56: if yes, represent that this function has Hotfix, promptly use to be written into the Hotfix of this memory block, and carry out step 58 that the program that it is corresponding is loaded into the Installed System Memory execution of the computer system of memory storage connection therewith corresponding to the firmware function;
Step 57:, then use the firmware function program that originally is stated from this firmware in advance if not, promptly this function does not have corresponding Hotfix; Proceed step 58, the function program of this preload is loaded into internal memory;
Step 58:, the function program that is stored in Hotfix block or the firmware is loaded on the Installed System Memory execution according to the situation of step 56 and 57;
Afterwards, entering one selects in the loop program (loop) of function in the using system.Or further continue to judge whether to use other firmware function, with the step that judges whether Hotfix.
The present invention deposits Hotfix by script in the memory storage as the erasable interior nonresident portion capacity of data storage, does not need to reach with extra internal memory the purpose of repairing or renewal firmware.
In sum, the present invention is rare invention article in fact, has practicality, novelty and creativeness on the industry, meets the application for a patent for invention condition fully, so file an application in accordance with the law, would like to ask detailed survey and authorizes this case patent, to ensure inventor's rights and interests.
But the above only is a preferable possible embodiments of the present invention; not so limit to claim of the present invention; so the equivalent structure that every utilization instructions of the present invention and accompanying drawing content have been done changes, and all in like manner is contained in the claim protection domain of the present invention.

Claims (4)

1. memory storage firmware method for repairing and mending, this memory storage comprise a memory block and wherein a Hotfix block, a microprocessor and a firmware at least, and wherein this method for repairing and mending step includes:
Initialization system is comprising the Installed System Memory that earlier driver in this firmware is loaded in the computer system; Initialization one microprocessor; And define the address of this Hotfix block;
Whether detect is fix-up mode;
If not, enter a system running pattern;
If, enter this fix-up mode, load the Hotfix block of a Hotfix in this memory block earlier, and, set up one or more indicia, the firmware function that defines this memory storage is replaced by the Hotfix of correspondence;
Select to use this firmware function;
According to the indicia of being set up, judge whether this firmware function has Hotfix;
If, then do not use the firmware function program that originally is stated from this firmware in advance;
If yes, then continue to select to use the step of this firmware function; And
Use and load the Hotfix of this memory block corresponding to the firmware function.
2. memory storage firmware method for repairing and mending as claimed in claim 1 is characterized in that, loads this memory block in described use and further includes corresponding to the step after the Hotfix of firmware function:
Loading this firmware function program carries out in an Installed System Memory; And
Judge whether to use other firmware function.
3. a memory storage firmware method for repairing and mending is characterized in that, loads a Hotfix and includes in the method for repairing and mending step of memory block:
Initialization system is comprising the Installed System Memory that earlier driver in this firmware is loaded in the computer system; Initialization one microprocessor; And define the address of a Hotfix block;
The firmware function that detects one or more memory storages needs to repair;
Load the Hotfix block of Hotfix in this memory block of this firmware function;
Judge whether this Hotfix is correct;
If, do not prolong with function program in the former firmware;
If yes, the firmware function that defines this memory storage is replaced by the Hotfix of correspondence;
Set up one or more indicia; And
This Hotfix that is stored in this Hotfix block or this firmware is loaded on execution repairing in the Installed System Memory.
4. memory storage firmware method for repairing and mending as claimed in claim 3 is characterized in that described Hotfix block is the some of a memory block.
CNB2004100604008A 2004-12-22 2004-12-22 Firmware repairing method for memory device Expired - Fee Related CN100435108C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100604008A CN100435108C (en) 2004-12-22 2004-12-22 Firmware repairing method for memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100604008A CN100435108C (en) 2004-12-22 2004-12-22 Firmware repairing method for memory device

Publications (2)

Publication Number Publication Date
CN1797362A CN1797362A (en) 2006-07-05
CN100435108C true CN100435108C (en) 2008-11-19

Family

ID=36818403

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100604008A Expired - Fee Related CN100435108C (en) 2004-12-22 2004-12-22 Firmware repairing method for memory device

Country Status (1)

Country Link
CN (1) CN100435108C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714104B (en) * 2008-10-08 2012-09-05 英业达股份有限公司 Firmware burning device of computer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10307726A (en) * 1997-05-02 1998-11-17 Nec Corp System for firmware recovery at time of start error
CN1208194A (en) * 1997-08-08 1999-02-17 华邦电子股份有限公司 Patch device for program in embedded microprocessor system
CN1529847A (en) * 2001-07-16 2004-09-15 任宇清 Embedded software update system
CN1534685A (en) * 2002-12-02 2004-10-06 三星电子株式会社 Flash storage including guiding program copy and equipment and method for protecting flash storage system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10307726A (en) * 1997-05-02 1998-11-17 Nec Corp System for firmware recovery at time of start error
CN1208194A (en) * 1997-08-08 1999-02-17 华邦电子股份有限公司 Patch device for program in embedded microprocessor system
CN1529847A (en) * 2001-07-16 2004-09-15 任宇清 Embedded software update system
CN1534685A (en) * 2002-12-02 2004-10-06 三星电子株式会社 Flash storage including guiding program copy and equipment and method for protecting flash storage system

Also Published As

Publication number Publication date
CN1797362A (en) 2006-07-05

Similar Documents

Publication Publication Date Title
CN101650662B (en) Memory device of embedded system and staring method and upgrading of firmware
CN101739266B (en) Firmware updating method
EP1938200B1 (en) Initialization of flash storage via an embedded controller
CN101814318B (en) Multi level cell NAND flash storage system as well as controller and access method thereof
CN101373451B (en) Computer system for protecting double-basic input /output system program and control method thereof
CN103377129B (en) Method for writing data, Memory Controller and memorizer memory devices
US20070258288A1 (en) Flash programmer for programming NAND flash and NOR/NAND combined flash
JP2000123599A (en) Non-volatile semiconductor memory ic and its burn-in test method
US20060195833A1 (en) Data-burning method and system thereof based on auto-detection of computer platform
US20120166706A1 (en) Data management method, memory controller and embedded memory storage apparatus using the same
CN102592670B (en) Method for writing data, Memory Controller and memorizer memory devices
CN107729071A (en) A kind of method and device for initializing network interface card
CN102346677A (en) Method for upgrading field programmable gate array (FPGA) program
CN105224309A (en) A kind of method and apparatus transferring function
CN107315607B (en) Drive self-adaptation loading system
CN111459744A (en) Firmware burning method and firmware debugging method of video processing chip
CN100435108C (en) Firmware repairing method for memory device
CN103577344A (en) Data writing method, memory controller and memory storage device
CN102857817B (en) Set-top box production system and method capable of realizing dynamical loading
US20060224377A1 (en) ROM emulator
CN100533418C (en) Method and apparatus for modifying the contents of a revision identification register
CN100452008C (en) Switching equipment of read-only storage
CN100498710C (en) Method for reading and electing read only memory program code on self-storing mechanism
CN102109965A (en) Flash memory storage system, flash memory controller, computer system and simulation method
CN102467459B (en) Data write method, memory controller and memory device

Legal Events

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

Granted publication date: 20081119

Termination date: 20201222

CF01 Termination of patent right due to non-payment of annual fee