CN101344850A - Method for updating flash memory operating system based on mobile equipment memory card - Google Patents
Method for updating flash memory operating system based on mobile equipment memory card Download PDFInfo
- Publication number
- CN101344850A CN101344850A CNA2007100436190A CN200710043619A CN101344850A CN 101344850 A CN101344850 A CN 101344850A CN A2007100436190 A CNA2007100436190 A CN A2007100436190A CN 200710043619 A CN200710043619 A CN 200710043619A CN 101344850 A CN101344850 A CN 101344850A
- Authority
- CN
- China
- Prior art keywords
- flash memory
- storage card
- flash
- file
- mobile device
- 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.)
- Pending
Links
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention relates to a method for renewing a flash memory operation system based on the memory card of a mobile device. The method comprises the following steps of: connecting the flash memory with the memory card of the mobile device; electrifying the system and entering the operation system of the flash memory; selecting the flash memory operation system renewal function according to user operations by the system; performing flash memory renewal operation and copying operation system files into the flash memory by the system; and electrifying the system again to enter the renewed flash memory operation system. By adopting the method, flash memory operation system can be renewed by renewing writing files in the memory card; use of the computer is not needed after memory card renewal, thereby facilitating the carrying; both Nor Flash memories and Nand Flash memories can be renewed, thereby increasing the compatibility. In addition, the method of the invention effectively evades possible bad blocks in the Nand Flash memories so as to ensure writing accuracy and stability and therefore has wide application scope.
Description
Technical field
The present invention relates to technical field of memory, particularly flash memory renewal technology field specifically is meant a kind of method of upgrading the flash disk operation system based on the mobile device storage card.
Background technology
In the modern society, along with continuous progress in science and technology, increasing place has used flash memory (Flash), and has unique nonvolatile semiconductor memory member for this, conventional renewal process is extremely important, and often renewal speed is slower, and depends on more external unit.
Flash memory update method of the prior art mainly contains following several:
(1) utilizes JTAG (Joint Test Action Group, a kind of international standard test protocol is mainly used in chip internal test) and CCS (Code Composer Studio, a kind of developing software) come burning Nor Flash storer, often need to tear open machine, and replication rate is very slow;
(2) utilize UART interface burning Flash, often speed is slow, and needs more external unit, as UART Cable, and PC, Sled (a kind of peripheral interface expansion equipment) etc.;
(3) utilize operating system among the USB burning Flash, need the Windows of English edition to support at present, and need comparatively trivial step, be unfavorable for producing the line operation.
Simultaneously, in the above the whole bag of tricks, all need use a computer in burning Flash and carry out, so not only speed is slow, needed external unit complexity, and also system compatibility is poor, is unfavorable for the extensive popularization that Flash uses.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, provide a kind of can only need to the recordable paper in the storage card upgrade, be convenient for carrying, Flash upgrade kind extensively, burning upgrades method reliable and stable, usable range is upgraded the flash disk operation system comparatively widely based on the mobile device storage card.
In order to realize above-mentioned purpose, of the present invention to upgrade the method for flash disk operation system based on the mobile device storage card as follows:
Should upgrade the method for flash disk operation system based on the mobile device storage card, its principal feature is that described method may further comprise the steps:
(1) flash memory is connected with storage card on the mobile device;
(2) system powers on and enters the operating system of flash memory;
(3) system operates according to the user, selects flash disk operation system update function;
(4) system carries out flash memory renewal operation, and operating system file is copied in the flash memory;
(5) enter after system re-powers in the flash disk operation system after the renewal.
Should carry out flash memory based on the system that the mobile device storage card upgrades the method for flash disk operation system upgrades operation and may further comprise the steps:
(1) system judges whether the file system on the storage card is correct;
(2) if not, then flash memory upgrades failure, and returns; If then in this storage card of system searching whether required updating file is arranged;
(3) if not, then flash memory upgrades failure, and returns; If then wipe this flash memory, and mark bad piece according to the size of updating file;
(4) updating file is copied to this flash memory from storage card, and skip the bad piece that is marked.
Whether this correctly may further comprise the steps based on the file system on the storage card of judging that the mobile device storage card upgrades the method for flash disk operation system:
(1) fat that reads storage card shows information, judges whether this storage card fat table is correct;
(2) if correct, then return the correct result of file system on this storage card; Otherwise return the result of the file system error on this storage card.
This is further comprising the steps of before based on the step (5) that the mobile device storage card upgrades the method for flash disk operation system:
(51) judge that this operating system file is that version file or mirrored version file are installed;
(52) if the version file is installed, then carry out the automatic fitting operation of operating system.
This can be Nor Flash storer or Nand Flash storer based on the flash memory that the mobile device storage card upgrades the method for flash disk operation system.
That has adopted this invention upgrades the method for flash disk operation system based on the mobile device storage card, because it is mainly by being connected storage card with flash memory, and come control store card and flash memory by the operating system of mobile device itself, the process of duplicating simultaneously also is to be finished by mobile device self, get final product thereby when need upgrading, only need upgrade the recordable paper in the storage card to the flash disk operation system, after storage card upgrades, promptly need not to re-use computing machine simultaneously, be convenient for carrying; And method of the present invention both can have been upgraded Nor Flash storer, also can upgrade Nand Flash storer, strengthened compatibility, moreover, method of the present invention has also been avoided the bad piece that may exist in the Nand Flash storer effectively, thereby guaranteed the correctness and the stability of burning, the scope of application is comparatively extensive.
Description of drawings
Fig. 1 is the process flow diagram that upgrades the method for flash disk operation system based on the operating system installation version file in the mobile device storage card of the present invention.
Fig. 2 is the process flow diagram that upgrades the method for flash disk operation system based on the operating system mirrored version file in the mobile device storage card of the present invention.
Fig. 3 is the workflow diagram that utilizes storage card flash memory to be upgraded operation of the present invention.
Embodiment
In order more to be expressly understood technology contents of the present invention, describe in detail especially exemplified by following examples.
See also Fig. 1 to shown in Figure 3, should upgrade the method for flash disk operation system, may further comprise the steps based on the mobile device storage card:
(1) flash memory is connected with storage card on the mobile device;
(2) system powers on and enters the operating system of flash memory;
(3) system operates according to the user, selects flash disk operation system update function;
(4) system carries out flash memory renewal operation, and operating system file is copied in the flash memory; This flash memory upgrades operation and may further comprise the steps:
(a) system judges whether the file system on the storage card is correct, may further comprise the steps:
(i) read file allocation table (fat table) information of storage card, judge whether this storage card fat table is correct;
If (ii) correct, then return the correct result of file system on this storage card; Otherwise return the result of the file system error on this storage card;
(b) if not, then flash memory upgrades failure, and returns; If then in this storage card of system searching whether required updating file is arranged;
(c) if not, then flash memory upgrades failure, and returns; If then wipe this flash memory, and mark bad piece according to the size of updating file;
(d) updating file is copied to this flash memory from storage card, and skip the bad piece that is marked;
(51) judge that this operating system file is that version file or mirrored version file are installed;
(52) if the version file is installed, then carry out the automatic fitting operation of operating system;
(5) enter after system re-powers in the flash disk operation system after the renewal.
Simultaneously, should upgrade in the method for flash disk operation system based on the mobile device storage card, described flash memory (Flash) can be Nor Flash storer or Nand Flash storer.
Described Nor Flash and Nand Flash are two kinds of main nonvolatile flash memory technology on the present market.Intel Company at first developed NOR Flash technology in 1988, thoroughly changed the situation that was originally ruled all the land by EPROM and EEPROM.And then, 1989, Toshiba delivered NAND Flash structure, emphasized to reduce the cost of every bit, higher performance, and can easily upgrade by interface as disk.
Because in most cases flash memory just is used for storing a spot of code, at this moment the NOR flash memory is more suitable for.NAND then is the ideal solution of the high density of data storage.
The characteristics of Nor Flash are to carry out (XIP, eXecute In Place) in the chip, and application program can directly be moved in the Flash flash memory like this, needn't read code among the RAM of system again.The transfer efficiency of Nor Flash is very high, has very high cost benefit when the low capacity of 1~4MB, but the very low performance that has influenced it with erasing speed greatly that writes.
And Nand Flash structure can provide high cell density, can reach high storage density, and the speed that writes and wipe is also very fast.The difficulty of using Nand Flash is the management of Flash and needs special system interface.
The Flash flash memory is a nonvolatile memory, can carry out erasable and programming again to the memory cell block that is called piece.The write operation of any Flash device can only be carried out in sky or the unit of having wiped, so in most cases, must carry out earlier before carrying out write operation and wipe.It is foolproof that Nand Flash device is carried out erase operation, and Nor Flash then requires positions all in the object block all to be written as 0 earlier before wiping.
Because be that piece with 64~128KB carries out when wiping Nor Flash device, the time of carrying out a write/erase operation is 5s, in contrast, the piece of wiping Nand Flash device and being with 8~32KB carries out, and the execution identical operations at most only needs 4ms.
The difference of piece size had further widened the performance gap between Nor Flash and the Nand Flash when execution was wiped, statistics shows, for a given cover write operation (when especially upgrading small documents), more erase operation must carry out in based on the unit of Nor Flash.In a word:
● the read rate of NOR is faster slightly than NAND.
● the writing speed of NAND is fast more a lot of than NOR.
● the 4ms erasing speed of NAND is fast more than the 5s of NOR.
● most of write operations need be carried out erase operation earlier.
● the erase unit of NAND is littler, and corresponding erasing circuit is still less.
The unit size of Nand Flash almost is half of Nor Flash device, because production run is more simple, Nand Flash structure can provide higher capacity in given die size, has also just correspondingly reduced price.
In the middle of reality was used, specific implementation process of the present invention was as follows:
1, storage card upgrades Flash:
(1) reads storage card information, judge whether storage card fat table is correct;
(2) in storage card, search required file;
(3) read required fileinfo;
(4) wipe the Flash relevant range according to file size, mark bad piece (bad block);
(5) with required file copy in Flash, and according to (4) step mark skip bad block;
2, storage card upgrades operating system OS:
Upgrade the basis of Flash according to above-mentioned storage card, can be simultaneously upgrade or upgrade being stored in operating system OS on the Flash, more easier and fast than the burning mode of original use data line like this.
And OS is installed two kinds of methods are arranged by storage card renewal Flash:
(1) a kind of is that installation procedure is copied among the flash, has installation procedure to adorn OS automatically then;
(2) another kind of method is directly will install OS image copying afterwards in flash, omits installation process.
Below be that above-mentioned two kinds of relative merits of upgrading the OS method compare:
Method (1)---needed file is little, and flash is short update time, but has upgraded the process that also needs to install OS after the flash.
Method (2)---needed file is bigger, and flash is longer update time, but just can finish the renewal of OS after only needing to have upgraded flash, and keeps original data in the mirror image.
Adopted the above-mentioned method of upgrading the flash disk operation system based on the mobile device storage card, because it is mainly by being connected storage card with flash memory, and come control store card and flash memory by the operating system of mobile device itself, the process of duplicating simultaneously also is to be finished by mobile device self, get final product thereby when need upgrading, only need upgrade the recordable paper in the storage card to the flash disk operation system, after storage card upgrades, promptly need not to re-use computing machine simultaneously, be convenient for carrying; And method of the present invention both can have been upgraded Nor Flash storer, also can upgrade Nand Flash storer, strengthened compatibility, moreover, method of the present invention has also been avoided the bad piece that may exist in the Nand Flash storer effectively, thereby guaranteed the correctness and the stability of burning, the scope of application is comparatively extensive.
In this instructions, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.
Claims (5)
1, a kind ofly upgrade the method for flash disk operation system, it is characterized in that described method may further comprise the steps based on the mobile device storage card:
(1) flash memory is connected with storage card on the mobile device;
(2) system powers on and enters the operating system of flash memory;
(3) system operates according to the user, selects flash disk operation system update function;
(4) system carries out flash memory renewal operation, and operating system file is copied in the flash memory;
(5) enter after system re-powers in the flash disk operation system after the renewal.
2, according to claim 1ly upgrade the method for flash disk operation system based on the mobile device storage card, it is characterized in that, described system carries out flash memory and upgrades operation and may further comprise the steps:
(1) system judges whether the file system on the storage card is correct;
(2) if not, then flash memory upgrades failure, and returns; If then in this storage card of system searching whether required updating file is arranged;
(3) if not, then flash memory upgrades failure, and returns; If then wipe this flash memory, and mark bad piece according to the size of updating file;
(4) updating file is copied to this flash memory from storage card, and skip the bad piece that is marked.
3, according to claim 2ly upgrade the method for flash disk operation system, it is characterized in that, describedly judge whether the file system on the storage card correctly may further comprise the steps based on the mobile device storage card:
(1) fat that reads storage card shows information, judges whether this storage card fat table is correct;
(2) if correct, then return the correct result of file system on this storage card; Otherwise return the result of the file system error on this storage card.
4, according to claim 1ly upgrade the method for flash disk operation system, it is characterized in that described step (5) is further comprising the steps of before based on the mobile device storage card:
(51) judge that this operating system file is that version file or mirrored version file are installed;
(52) if the version file is installed, then carry out the automatic fitting operation of operating system.
5, according to each describedly upgrades the method for flash disk operation system based on the mobile device storage card in the claim 1 to 4, it is characterized in that described flash memory is Nor Flash storer or Nand Flash storer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100436190A CN101344850A (en) | 2007-07-10 | 2007-07-10 | Method for updating flash memory operating system based on mobile equipment memory card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100436190A CN101344850A (en) | 2007-07-10 | 2007-07-10 | Method for updating flash memory operating system based on mobile equipment memory card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101344850A true CN101344850A (en) | 2009-01-14 |
Family
ID=40246861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007100436190A Pending CN101344850A (en) | 2007-07-10 | 2007-07-10 | Method for updating flash memory operating system based on mobile equipment memory card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101344850A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102883220A (en) * | 2012-09-20 | 2013-01-16 | 深圳市九洲电器有限公司 | STB (Set Top Box) starting method and device |
CN102945174A (en) * | 2012-11-08 | 2013-02-27 | 大连捷成实业发展有限公司 | Method for upgrading singlechip program by means of connected off-chip Flash |
CN105117266A (en) * | 2015-09-22 | 2015-12-02 | Tcl移动通信科技(宁波)有限公司 | Reinstallation method and system for mobile terminal |
-
2007
- 2007-07-10 CN CNA2007100436190A patent/CN101344850A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102883220A (en) * | 2012-09-20 | 2013-01-16 | 深圳市九洲电器有限公司 | STB (Set Top Box) starting method and device |
CN102883220B (en) * | 2012-09-20 | 2015-11-11 | 深圳市九洲电器有限公司 | A kind of set top box starting method and device |
CN102945174A (en) * | 2012-11-08 | 2013-02-27 | 大连捷成实业发展有限公司 | Method for upgrading singlechip program by means of connected off-chip Flash |
CN105117266A (en) * | 2015-09-22 | 2015-12-02 | Tcl移动通信科技(宁波)有限公司 | Reinstallation method and system for mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8086787B2 (en) | Wear leveling method, and storage system and controller using the same | |
US8230160B2 (en) | Flash memory storage system and flash memory controller and data processing method thereof | |
US8234466B2 (en) | Flash memory storage system applying SLC NAND flash memory and MLC NAND flash memory and data writing method thereof | |
CN100458699C (en) | Method and system for updating fastener | |
CN101183337A (en) | Space management techniques based on NAND FLASH mobile terminal storage medium | |
CN101640069B (en) | Average wear method and average wear system for flash memory | |
WO2015070521A1 (en) | Method for making ubi format system file into factory burnt image file | |
US20100011153A1 (en) | Block management method, and storage system and controller using the same | |
CN105740163A (en) | Nand Flash bad block management method | |
KR20170042135A (en) | Memory scheduling method and Memory system operating method | |
CN103577574A (en) | High-reliability linear file system based on nand flash | |
CN102890655B (en) | Memory storage device, memory controller and valid data recognition method thereof | |
CN101567217A (en) | Flash memory safely writing method and data writing method | |
US9384125B2 (en) | Method for accessing flash memory having pages used for data backup and associated memory device | |
CN104077166A (en) | EPCS and EPCQ storer online upgrading method based on IP core in FPGA | |
CN101699476A (en) | Data processing method and device of smart cards | |
CN102592670B (en) | Method for writing data, Memory Controller and memorizer memory devices | |
CN102446137B (en) | Method for writing data, Memory Controller and memorizer memory devices | |
CN102043638A (en) | Computer system and computer startup setting method | |
CN101344850A (en) | Method for updating flash memory operating system based on mobile equipment memory card | |
CN103389941B (en) | Storer formatting method, Memory Controller and memory storage apparatus | |
CN102736861B (en) | Memory configuration method, Memory Controller and memorizer memory devices | |
US9501397B2 (en) | Data writing method, memory controller, and memory storage apparatus | |
CN110825421B (en) | Firmware upgrading method, system and readable storage medium | |
CN1728284B (en) | Method for seanning flash memory chip in flash memory disk |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20090114 |