CN101131649A - Updating speed improving method for read-only memory of device with flash memory - Google Patents
Updating speed improving method for read-only memory of device with flash memory Download PDFInfo
- Publication number
- CN101131649A CN101131649A CNA2006100884224A CN200610088422A CN101131649A CN 101131649 A CN101131649 A CN 101131649A CN A2006100884224 A CNA2006100884224 A CN A2006100884224A CN 200610088422 A CN200610088422 A CN 200610088422A CN 101131649 A CN101131649 A CN 101131649A
- Authority
- CN
- China
- Prior art keywords
- rom data
- data
- flash memory
- read
- piece
- 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
- Stored Programmes (AREA)
Abstract
This invention relates to a stage velocity improvement method of the read-only memory equipment with setting up a flash memory. This method includes: in the guide load machine prepare for the program code read-only memory data and the read-only memory data used to stage for the original read-only memory step; in every block compare the read-only memory data of the flash memory with the read-only memory data used in stage and if the two data are different delete the read-only memory data of the flash memory and record the step of read-only memory data corresponding to the stage and if they are the same remove the next to compare after that if they are different execute the same step above and if they are the same remove to the next again and then repeat the process until complete the last block. This invention improves the execute speed for the read-only memory data stage and improve the recording speed of the read-only memory in the flash memory and short the time of stage.
Description
Technical field
The present invention relates to the updating speed improving method for read-only memory of the device that is provided with flash memory, specially refer to: when ROM (read-only memory) is upgraded, can judge the data of repetition, the updating speed improving method for read-only memory of the device that is provided with flash memory of the upgrading ROM speed of raising flash memory.
Background technology
Portable information terminal mainly contains types such as mobile phone, personal information terminal, smart phone, and these devices can provide multiple services such as communication, information processing, multi-medium data storage for the user.
Portable information terminal is owing to provide multiple information service, and therefore increasing with the amount of information service corresponding programs and data, the memory capacity that is used for the flash memory of stored routine and data also increases gradually.
Flash memory is as a kind of stored routine and memory of data of being used for, and mainly is divided into and two kinds of non-flash memory or non-flash memories.
Because or the reading speed of non-flash memory is than fast with the reading speed of non-flash memory, and terminating machine can from or non-flash memory reading of data, therefore a lot of devices all adopt or non-flash memory as its medium.And its weak point is, or the writing speed of non-flash memory wants slow with comparing with the writing speed of non-flash memory.
Because the writing speed of flash memory is slow, when therefore in to terminating machine, upgrading, need expend long time as the ROM (read-only memory) of high-capacity flash memory.User and developer must remain the steady state (SS) of terminating machine for a long time term of execution of upgrading, finish until upgrading, to guarantee mistake not occur in the escalation process.In addition, carrying out upgrading for a long time can make user and developer have kind to be weary of sense.
If the upgrading execution time is long, will increase probability of errors greatly, terminating machine can not be finished upgrading ROM probably safely, therefore must reduce the update time of terminating machine as much as possible, can carry out safely to guarantee upgrade job.
Summary of the invention
Under traditional technical conditions, owing to carry out upgrade job for a long time, the probability that makes a mistake will increase greatly, terminating machine can not be finished upgrading ROM work probably safely, so user and developer need to keep for a long time the steady state (SS) of terminating machine during upgrading is carried out.
Therefore, the present invention is is above-mentionedly researched and developed by the problem that conventional art produced for solving.The objective of the invention is to provide a kind of updating speed improving method for read-only memory that is provided with the device of flash memory, its ROM data by judging flash memory and the repeat region between the ROM data that is used to upgrade, the method of regional record that will be different mutually in the flash memory only, and then reached the effect that reduces the upgrading execution time.
To achieve these goals, the present invention comprises following steps:
The step of the ROM data of in boot loader, preparing as the ROM data (ROMDATA) of program code and being used for original ROM data is upgraded;
In each piece, the ROM data of flash memory and the ROM data that is used to upgrade are compared, if two data differences are then deleted the step that the ROM data of flash memory and record are applied to the ROM data of upgrading mutually;
If two data are identical, just move on to the position of next piece, these locational data and the ROM data that is used to upgrade are compared, if both differences, just carry out upgrade job same as described above,, then move on to again on the position of next piece if two data are identical, carry out such process repeatedly, the step till executing last piece.
As mentioned above, the present invention is by the ROM data of identification flash memory and the repeat region between the ROM data that is used to upgrade, the method of regional record that will be different mutually in the flash memory only, thus can reach the ROM data writing speed that improves ROM data upgrading execution speed, improves flash memory, the effect that reduces the upgrading execution time.
In addition, the present invention only will be necessary that by utilizing computing machine the ROM data of upgrading sends portable information terminal to, in portable information terminal upgrading read only memory data, thus reached the ROM data upgrading execution speed that improves portable information terminal, reduce the ROM data that flash memory will write down amount, improved flash memory data recording speed, shorten the effect of the execution time of upgrading.
Description of drawings
Fig. 1 is the formation synoptic diagram that expression is used for the portable information terminal that the present invention will be described.
Fig. 2 is the operational flow diagram of expression according to the portable information terminal updating speed improving method for read-only memory of the embodiment of the invention.
Fig. 3 is that expression is used for the portable information terminal that the present invention will be described and the formation synoptic diagram of computing machine.
Fig. 4 is the operational flow diagram of expression according to the updating speed improving method for read-only memory of the portable information terminal of the embodiment of the invention and computing machine.
The symbol description of major part in the accompanying drawing
30: computing machine 40: portable information terminal
41: flash memory 42: boot loader
Embodiment
Below, with reference to the accompanying drawings to being described in more details according to specific embodiment of the present invention.
Fig. 1 is the formation synoptic diagram that expression is used for the portable information terminal that the present invention will be described.Flash memory 11 is used for storing the ROM data of portable information terminal as program code, and boot loader 12 reads the ROM data 13 that is used to upgrade, and it is recorded in the flash memory 11, and original ROM data is upgraded.
Fig. 2 is the operational flow diagram of expression according to the portable information terminal updating speed improving method for read-only memory of the embodiment of the invention.
As shown in the figure, the portable information terminal updating speed improving method for read-only memory according to the embodiment of the invention comprises following steps:
The start address of flash memory is changed into the block address of flash memory, the step that the start address of record ROM data is calculated;
In each piece, the ROM data of flash memory and the ROM data that is used to upgrade are compared, if two data differences, the ROM data of just deleting flash memory, and record is applied to the step of the ROM data of upgrading mutually;
If two data are identical, just move on to the position of next piece, this locational ROM data and the ROM data that is used to upgrade are compared, if two data differences, just carry out upgrade job same as described above,, then move on to again on the position of next piece if two data are identical, carry out such process repeatedly, the step till executing last piece.
In the following description, we suppose storing in the flash memory ROM data, and the ROM data that is used for upgrading is recorded to flash memory, and ROM data is upgraded.
Portable information terminal is changed into block address based on flash memory (Flash) information with start address with reference to start address, data pointer, data length and read mode.
Start address is the start address of flash memory, data pointer is the start address of the ROM data that is used to upgrade, data length is the data length of the ROM data that is used to upgrade, the work that read mode has determined the next data to the ROM data of read/write to compare and different pieces of information is write.
Portable information terminal is checked read mode, if current is read mode, just each the different piece in the flash memory is read, and data that relatively read and the ROM data that is used to upgrade, if two data differences, then delete the ROM data of flash memory, record is applied to the ROM data of upgrading mutually.
If two data are identical, portable information terminal is attended school the flash memory of getting next piece, data that relatively read and the ROM data that is used to upgrade, if two data differences, just carry out upgrading same as described above, if two data still are identical, then move on to the reading on the position of next piece again.
After the ROM data that has read last piece, portable information terminal has just been finished whole upgrade job.If also have piece not read, just must each remaining in flash memory piece be read, data that read and the ROM data that is used to upgrade are compared, continue to carry out upgrade job.
In checking the read mode process, if present mode is not a read mode, portable information terminal is carried out upgrade job soon with regard to one of a direct piece, i.e. deletion is stored in the ROM data in the flash memory, and the ROM data that will be used for upgrading records flash memory.
Fig. 3 is that expression is used for the portable information terminal that the present invention will be described and the formation synoptic diagram of computing machine.Computing machine 30 read ROM data and flash information earlier before the upgrading ROM of portable information terminal 40, itself and the ROM data that is used to upgrade are compared, and collected the block message that needs modification.42 of the boot loader of portable information terminal 40 receive block address and the ROM data that must revise from computing machine 30, the ROM data that will be used for upgrading records the relevant block of flash memory 41.
Fig. 4 is the operational flow diagram of expression according to the updating speed improving method for read-only memory of the portable information terminal of the embodiment of the invention and computing machine.
As shown in the figure, comprise following steps according to the portable information terminal of the embodiment of the invention and the updating speed improving method for read-only memory of computing machine:
Computing machine receives the step of flash information and ROM data from portable information terminal;
Computing machine compares ROM data that receives from portable information terminal and the ROM data that is used to upgrade, whether the ROM data that judgement is read from each piece is consistent with the ROM data that is used to upgrade, pick out the step of the piece (that is the piece that must make amendment) that has inconsistent ROM data;
Computing machine will exist the index of relevant block of inconsistent ROM data and the step that the ROM data that is used for upgrading is sent to portable information terminal;
Portable information terminal calculates the address of flash memory with reference to the index that receives, and the ROM data that is used in the relevant block upgrade is recorded in this address, will write down the step that the result sends computing machine to then;
After computing machine judges to write down successfully, send next piece index and the ROM data that is used to upgrade to portable information terminal, the step till having transmitted last piece index.
Suppose computer run upgrading ROM program, portable information terminal operation boot loader, the upgrading ROM program of computing machine and the boot loader of portable information terminal can be carried out data communication each other.
The order that computing machine will read flash information sends portable information terminal to, receives flash information from portable information terminal, and sends the ROM data reading order to portable information terminal, thereby receives ROM data.At this moment, because or the reading speed of non-flash memory is compared writing speed and is wanted fast a lot, the time for reading of ROM data is very short with respect to the whole upgrading execution time, therefore or the work of reading of non-flash memory can not cause too much influence to the upgrade job of ROM data.
Computing machine will compare from portable information terminal ROM data that reads and the ROM data that is used to upgrade, based on flash information, determine whether the ROM data that reads is consistent with the ROM data that is used to upgrade from each piece, thereby determine the piece that to make amendment, and it is managed.Illustrate, the size of flash block is 256KB, divides flash memory according to the size of piece, and is as shown in table 1, determines whether whether the data that read in each piece consistent with the ROM data that is used to upgrade.In index was 0 relevant block, two data were identical.
[table 1]
| Index | Whether data are identical |
| 0 | Identical |
| 1 | Different |
| 2 | Identical |
| 3 | Different |
| ...... | |
| 0×1000 | Identical |
Computing machine judges whether ROM data that reads from each piece and the ROM data that is used to upgrade be consistent, will exist the index of relevant block of inconsistent ROM data and the ROM data that is used to upgrade to be sent to portable information terminal.
Portable information terminal calculates the address of flash memory with reference to the index that receives, at this point the ROM data that is used to upgrade of record relevant block on the location.Portable information terminal has been finished in relevant block after the record of ROM data, will write down the result and send computing machine to.
If the record result that computing machine receives is for to write down successfully, just send the index of next piece and the ROM data that is used to upgrade to portable information terminal, this work will last till till index that has transmitted last piece and the ROM data that is used to upgrade always, if all displayed record successes of all record results, upgrade job will all be finished.
Claims (4)
1. a updating speed improving method for read-only memory that is provided with the device of flash memory is characterized by, and may further comprise the steps:
In boot loader, prepare as the ROM data of program code and the step of the ROM data that is used for original ROM data is upgraded;
The ROM data of each piece in the flash memory and the ROM data that is used to upgrade are compared, if two data differences, then delete the step that the ROM data of flash memory and record are used to the ROM data of upgrading accordingly;
If two data are identical, just move on to the position of next piece, these locational data and the ROM data that is used to upgrade are compared, if both differences, just carry out upgrade job same as described above,, then move on on the position of next piece again if two data are identical, carry out this process repeatedly, the step till executing last piece.
2. the updating speed improving method for read-only memory that is provided with the device of flash memory as claimed in claim 1 is characterized by, and may further comprise the steps:
In being provided with the portable information terminal of above-mentioned boot loader, the start address of flash memory is changed into the block address of flash memory, the step that the start address of record ROM data is calculated;
The ROM data of each piece in the flash memory and the ROM data that is used to upgrade are compared, if two data differences, the ROM data of just deleting flash memory, and record is applied to the step of the ROM data of upgrading mutually;
If two data are identical, just move on to the position of next piece, this locational ROM data and the ROM data that is used to upgrade are compared, if two data differences, just carry out upgrade job same as described above,, then move on the position of next piece again if two data are identical, carry out such process repeatedly, the step till executing last piece.
3. the updating speed improving method for read-only memory that is provided with the device of flash memory as claimed in claim 1 is characterized by, and may further comprise the steps:
The portable information terminal that is provided with above-mentioned boot loader sends flash information and ROM data to the step of computing machine;
Computing machine compares ROM data that receives from portable information terminal and the ROM data that is used to upgrade, whether the ROM data that judgement is read from each piece is consistent with the ROM data that is used to upgrade, and picks out the step of the piece that has inconsistent ROM data;
Computing machine will exist the index of relevant block of inconsistent ROM data and the step that the ROM data that is used for upgrading is sent to portable information terminal;
Portable information terminal calculates the address of flash memory with reference to the index that receives, and the ROM data that is used to upgrade of relevant block is recorded in this address, will write down the step that the result sends computing machine to then;
When computing machine determine write down successfully after, send next piece index and the ROM data that is used to upgrade to portable information terminal, until the step that has transmitted last piece index.
4. the updating speed improving method for read-only memory that is provided with the device of flash memory as claimed in claim 3 is characterized in that, the step of picking out the piece that has inconsistent ROM data comprises following steps:
Whole flash memory is cut apart according to the size of piece, in each different piece, judged the whether identical step of data wherein with the ROM data that is used to upgrade;
To whether according to the ROM data unanimity of read/write, show that the whether identical index of data of each piece is selected, pick out the step of the piece that has inconsistent ROM data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNA2006100884224A CN101131649A (en) | 2006-08-23 | 2006-08-23 | Updating speed improving method for read-only memory of device with flash memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNA2006100884224A CN101131649A (en) | 2006-08-23 | 2006-08-23 | Updating speed improving method for read-only memory of device with flash memory |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN101131649A true CN101131649A (en) | 2008-02-27 |
Family
ID=39128924
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNA2006100884224A Pending CN101131649A (en) | 2006-08-23 | 2006-08-23 | Updating speed improving method for read-only memory of device with flash memory |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101131649A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103116511A (en) * | 2013-01-29 | 2013-05-22 | 烽火通信科技股份有限公司 | Double-booting method based on single FLASH storage chip |
| CN104750524A (en) * | 2015-03-24 | 2015-07-01 | 广东欧珀移动通信有限公司 | Transmission method and device for upgrading data package, method and device for upgrading data package |
| CN105607861A (en) * | 2014-11-24 | 2016-05-25 | 中兴通讯股份有限公司 | Data processing method and device |
| CN109426506A (en) * | 2017-08-22 | 2019-03-05 | 佛山市顺德区顺达电脑厂有限公司 | Select the loading method of read-only memory |
| CN111459572A (en) * | 2020-03-31 | 2020-07-28 | 深圳市汇顶科技股份有限公司 | Program loading method, controller, chip and electronic equipment |
| US11889480B2 (en) | 2019-04-30 | 2024-01-30 | Bank Of America Corporation | Resource distribution hub generation on a mobile device |
-
2006
- 2006-08-23 CN CNA2006100884224A patent/CN101131649A/en active Pending
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103116511A (en) * | 2013-01-29 | 2013-05-22 | 烽火通信科技股份有限公司 | Double-booting method based on single FLASH storage chip |
| CN105607861A (en) * | 2014-11-24 | 2016-05-25 | 中兴通讯股份有限公司 | Data processing method and device |
| WO2016082555A1 (en) * | 2014-11-24 | 2016-06-02 | 中兴通讯股份有限公司 | Data processing method and apparatus |
| CN104750524A (en) * | 2015-03-24 | 2015-07-01 | 广东欧珀移动通信有限公司 | Transmission method and device for upgrading data package, method and device for upgrading data package |
| CN109426506A (en) * | 2017-08-22 | 2019-03-05 | 佛山市顺德区顺达电脑厂有限公司 | Select the loading method of read-only memory |
| US11889480B2 (en) | 2019-04-30 | 2024-01-30 | Bank Of America Corporation | Resource distribution hub generation on a mobile device |
| CN111459572A (en) * | 2020-03-31 | 2020-07-28 | 深圳市汇顶科技股份有限公司 | Program loading method, controller, chip and electronic equipment |
| CN111459572B (en) * | 2020-03-31 | 2023-01-31 | 深圳市汇顶科技股份有限公司 | Program loading method, controller, chip and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7526599B2 (en) | Method and apparatus for effectively enabling an out of sequence write process within a non-volatile memory system | |
| US10101914B2 (en) | Memory management method, memory control circuit unit and memory storage device | |
| EP3588259B1 (en) | Garbage collection method for storage media, storage medium, and program product | |
| CN101617299B (en) | Database management methodology | |
| CN109284252B (en) | Lightweight file system management method in communication equipment | |
| CN112397128B (en) | Control method and device of Flash memory | |
| CN109840218A (en) | Effective data management method and storage control | |
| CN108733577B (en) | Memory management method, memory control circuit unit, and memory storage device | |
| CN102419734A (en) | Method and device for storing data | |
| US10289546B2 (en) | Memory management method, memory control circuit unit and memory storage device | |
| CN101131649A (en) | Updating speed improving method for read-only memory of device with flash memory | |
| CN102331920A (en) | Data processing method and device | |
| CN114077580B (en) | Method for carrying out file operation on wireless portable equipment by system and mobile terminal | |
| CN116225317A (en) | Data read-write method and device for user identification card, user identification card and medium | |
| CN107450859B (en) | Method and device for reading file data | |
| CN111324284B (en) | a memory | |
| CN109669628B (en) | Data storage management method and device based on flash equipment | |
| CN110119252A (en) | A kind of management method and device of Common Flash Memory storage storage array | |
| CN106484630A (en) | Access method of flash memory and related memory controller and electronic device | |
| CN111176573B (en) | Data reading and writing method, device, storage medium and electronic device | |
| CN100504812C (en) | Control method of random access flash memory | |
| CN111324285A (en) | Memory device | |
| CN114400037A (en) | NAND erasing method, device and readable storage medium | |
| JP2008084184A (en) | Memory controller | |
| CN112394963B (en) | Method for updating domestic platform SMBIOS and BIOS 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 | ||
| C12 | Rejection of a patent application after its publication | ||
| RJ01 | Rejection of invention patent application after publication |
Open date: 20080227 |