CN100378660C - Method for bypassing patch program and electronic device of using the method - Google Patents

Method for bypassing patch program and electronic device of using the method Download PDF

Info

Publication number
CN100378660C
CN100378660C CNB2004100067667A CN200410006766A CN100378660C CN 100378660 C CN100378660 C CN 100378660C CN B2004100067667 A CNB2004100067667 A CN B2004100067667A CN 200410006766 A CN200410006766 A CN 200410006766A CN 100378660 C CN100378660 C CN 100378660C
Authority
CN
China
Prior art keywords
mentioned
program
exception
revision
revision program
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
CNB2004100067667A
Other languages
Chinese (zh)
Other versions
CN1661548A (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.)
BenQ Corp
Original Assignee
BenQ 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 BenQ Corp filed Critical BenQ Corp
Priority to CNB2004100067667A priority Critical patent/CN100378660C/en
Publication of CN1661548A publication Critical patent/CN1661548A/en
Application granted granted Critical
Publication of CN100378660C publication Critical patent/CN100378660C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to detour program repairing method, which is executed in a program driving electronic device. The program driving electronic device is provided with a rewritable memory used for storing a program, and the program comprises superseded subprogram stored in the first area of the rewritable memory. The present invention comprises the following steps: obtaining a repaired program used for superseding the superseded subprogram; storing the repaired program in the second area of the rewritable memory; changing the start instruction of the superseded subprogram into an exception generating instruction so as to generate a program repair exception when the superseded subprogram is executed; executing the repaired program when the program repair exception is received.

Description

Detour Hotfix method and use the electronic installation of this method
Technical field
The present invention relates to revise the method that needs update routine that is loaded on a driven by program electronic installation, particularly relate to via receiving program patch and make an exception and carry out the above-mentioned method that needs the revision program of update routine.
Background technology
At one with the internal memory logging program; and thus in the driven by program electronic installation of driven by program; the wrong part of program in being executed in the driven by program electronic installation or when wherein some part need be updated can load program correct or new edition to replace original program in the mode that rewrites usually.But such practice needs the long time, and when original program has only sub-fraction to revise, is very inefficent for the practice that whole procedure is reinstalled.And the program that whole procedure is upgraded can inform that also the user asks to agree, this also can cause inconvenience in the use to the user.
On the another kind of practice, only make an amendment with the covering of refresh routine code at the part that needs in the original program to revise.Be not that every kind of situation all is suitable in this practice.Just can't directly cover the above-mentioned subprogram that is substituted because if store the part of revising greater than needs the required position of refresh routine code.And device for mobile communication and digital camera be used for the flash memory of store operation system (flash memory) refresh routine if desired, need be that unit upgrades with block (block).Therefore can not merely only upgrade and need the part revised in the original program.
Therefore, need a kind of method that has more flexible Hotfix, in order to overcome the above-mentioned shortcoming that needs to upgrade whole procedure and can not be suitable for the partial update of every kind of situation.
Summary of the invention
In view of this, purpose of the present invention is providing a kind of method that has more flexible Hotfix, in order to overcome the above-mentioned shortcoming that needs to upgrade whole procedure and can not be suitable for the partial update of every kind of situation.
Based on above-mentioned purpose, the invention provides a kind of Hotfix method that detours, be executed in the driven by program electronic installation, the said procedure drive electronics has one can rewrite internal memory, in order to store a program, said procedure comprises and is stored in one of a first area and is substituted subprogram, comprises the following steps: to obtain a revision program, in order to replace the above-mentioned subprogram that is substituted; Store above-mentioned revision program in an above-mentioned second area that rewrites internal memory; Make the above-mentioned instruction at a first brush that is substituted subprogram into an exception and produce instruction, make above-mentioned when being substituted subprogram and being performed generating routine repair exception; When receiving said procedure repairing exception, carry out above-mentioned revision program.
Wherein, of the present invention have the Hotfix of detouring method and can utilize a program to realize, is recorded on the storage medium of internal memory for example or memory storage, when this program is loaded in the driven by program electronic installation, then can carry out the Hotfix method that detours as mentioned above.
In addition, the present invention proposes a kind of driven by program electronic installation, in order to the execution Hotfix method that detours, comprises and can rewrite internal memory, and in order to stored routine, said procedure comprises the subprogram that is substituted that is stored in the first area; Processor is coupled to above-mentioned internal memory, wherein when above-mentioned processor is obtained revision program, stores above-mentioned revision program in the above-mentioned second area that rewrites internal memory, in order to replace the above-mentioned subprogram that is substituted.Above-mentioned processor makes the above-mentioned instruction at a first brush that is substituted subprogram into exception and produces instruction, make above-mentioned when being substituted subprogram and being performed generating routine repair exception.And when above-mentioned processor receives said procedure repairing exception, carry out above-mentioned revision program.
Description of drawings
Fig. 1 shows the device for mobile communication calcspar of the Hotfix method that detours of carrying out preferred embodiment of the present invention;
Fig. 2 shows the synoptic diagram of above-mentioned internal memory 4 in the preferred embodiment of the present invention;
The Hotfix method flow diagram that detours of preferred embodiment of the present invention has been shown among Fig. 3 A and Fig. 3 B;
Fig. 4 shows the data structure synoptic diagram of a plurality of revision programs;
Fig. 5 shows the computer readable storage media synoptic diagram according to the Hotfix method that detours of the embodiment of the invention.
The reference numeral explanation
The 1-processor; 2-obtains the unit; The 4-internal memory; The 10-device for mobile communication; The 41-firmware uses the district; 42-firmware trough; The 43-data field; The 44-interrupt vector table; The 45-processing module that makes an exception; 46-is substituted subprogram; 47-49-revision program 471,481, the 491-index field; 472,482, the 492-version field; 473,483, the next revision program address field of 493-; 474,487,494-revision program code.
Embodiment
The invention provides a kind of Hotfix method that detours, be executed in the driven by program electronic installation, in order to overcome above-mentioned need to upgrade whole procedure and partial update method can not be suitable for every kind of situation shortcoming.Be example in the present embodiment with the device for mobile communication, yet the Hotfix method that detours of preferred embodiment of the present invention can be executed in other driven by program electronic installation.
Fig. 1 shows the device for mobile communication 10 of the execution Hotfix method that detours of the present invention, and above-mentioned device for mobile communication 10 comprises processor 1, obtains unit 2, reaches internal memory 4.Above-mentioned processor 1 is coupled to above-mentioned unit 2 and the internal memory 4 obtained.The above-mentioned unit 2 of obtaining is in order to obtain revision program.In the present embodiment, though be example with device for mobile communication 10, so it is not in order to limiting the present invention, and driven by program electronic installation of the present invention can be other electronic installation.
In the present embodiment, obtain unit 2, download or connect the Internet from personal computer and obtain revision program via wireless communication mode.For instance, obtain unit 2 and can obtain revision program via the short message service that includes revision program (Short Messaging Services is called for short SMS) message.
Usually hardware manufacturing factory can be in advance with the internal memory logical partitioning of this product inside be: (a) in order to the data field of store data, and (b) in order to deposit the program area of firmware program.Because hardware manufacturing factory does not know that the actual firmware program needs much storage areas during logical partitioning, thus all can reserve far away surpass the firmware program size than large space.Historical facts or anecdotes border loading firmware program is during to internal memory, and the end in the program area tends to some firmware trough.Fig. 2 shows the synoptic diagram of above-mentioned internal memory 4 in the preferred embodiment of the present invention, and above-mentioned data field is data field 43, and the said procedure district comprises firmware trough (empty area) 42 and firmware uses district (code area) 41.
Firmware uses district 41 storing in order to drive the program of above-mentioned device for mobile communication 10.When some procedure code need be revised in the said procedure, can utilize the Hotfix method correction of detouring of the present invention.Using at firmware has one to be substituted subprogram 46, exception processing module 45, and interrupt vector table 44 in the district 41.
In the preferred embodiment of the present invention, the corresponding exception handler sign indicating number address of various exceptions that above-mentioned interrupt vector table 44 is write down is all the address of pointing to above-mentioned exception processing module 45.When therefore any exception produced, processor 1 was all handled exception according to the exception handler that above-mentioned exception processing module 45 is write down.
Be different from traditional exception handler, in the preferred embodiment of the present invention, whether the exception handler that exception processing module 45 is write down the at first exception of juggling device 1 reception is the program patch exception.
Fig. 3 A shows the process flow diagram of the electronic installation Hotfix process of preferred embodiment of the present invention.At first processor 1 is obtained a revision program 47 via obtaining unit 2, and above-mentioned revision program 47 can be used to after a while replace and be substituted subprogram 46 (step S2).For instance, send one by the fabricator of device for mobile communication 10 and include the note of revision program 47 to device for mobile communication 10.Obtaining unit 2 obtains said short message and captures above-mentioned revision program 47.
Then, processor 1 is stored in above-mentioned revision program 47 in the firmware trough 42 of internal memory 4 adjacent to the zone (step S4) of data field 43, and processor 1 and record store the address of revision program 47.
By the time after revision program 47 was stored in the internal memory 4 really, processor 1 was then revised and is substituted subprogram 46 (step S6), made processor 1 desire after a while to carry out when being substituted subprogram 46 again and all can repair exception by generating routine; So processor 1 can't be carried out after a while and be substituted subprogram 46, but can jump to revision program 47 addresses to carry out revision program 47.
In the present embodiment, the beginning modifying of order that we will be substituted subprogram 46 can cause processor 1 to produce the instruction of (exception) situation that makes an exception for " exception produces instruction " (exception-causing code) is processor 1 when carrying out this instruction.Above-mentioned exception produces instruction and comprises have the undefined instruction sign indicating number instruction of (op code) or the instruction of access illegal memory address.
Above-mentioned beginning instruction is first instruction that is substituted subprogram 46.The above-mentioned scope that is substituted subprogram can be determined by the revision program deviser.For instance, if it is that wrong maybe needing upgraded that firmware uses the 3rd to the 6th instruction of the firmware program in the district 41, the then above-mentioned subprogram 46 that is substituted can be defined as the 3rd to the 6th instruction or second to the 6th instruction, perhaps for comprising any scope of the above-mentioned the 3rd to the 6th instruction.Above-mentioned beginning instruction is first instruction that is substituted subprogram 46, so the beginning instruction can be any instruction before above-mentioned the 3rd instruction or above-mentioned the 3rd instruction.In like manner, upgrade if i instruction of above-mentioned firmware program is wrong maybe needing, then above-mentioned beginning instruction can be any one instruction before i instruction of firmware program.
Because in the characteristic of flash memory,, need need be that unit makes an amendment just when " 0 " changes over " 1 " with a memory block as long as a position is wherein arranged if when the data of flash memory stores need be revised.That is upward all data of rheme place memory block need all be updated, and could rewrite a position " 1 ".Therefore in the step " modification is substituted subprogram 46 " of preferred embodiment of the present invention, we are modified as " 0 " with some position that the above-mentioned beginning instructs from " 1 ".By this, beginning instruction being modified to exception and producing instruction, the whole memory block data that will the not be substituted subprogram 46 places simultaneously renewal of erasing.
Processor 1 produces instruction outward with above-mentioned beginning modifying of order precedent in the above described manner and according to a modifying of order information.Above-mentioned modifying of order information provides revises above-mentioned subprogram 46 and the beginning instruction information needed of being substituted, and for example definition is substituted rising up to address and which position that will instruct at the beginning of subprogram 46 and is revised as logical zero.This modifying of order information can be recorded in the said short message or in the header of revision program.
As shown in Figure 4, revision program 47 has a header (header), is wherein writing down index (index), next revision program address and revision program version.Above-mentioned index is the address that will replace the instruction of part beginning of revision program 47 correspondences, that is is substituted the actual instruction sign indicating number beginning address of subprogram 46.When if second revision program arranged, second revision program header also writing down second address that is substituted the instruction of subprogram beginning.In like manner, if when the 3rd revision program arranged, the header of the 3rd revision program is also writing down the 3rd address that is substituted the instruction of subprogram beginning.
For instance, Fig. 4 shows the data structure synoptic diagram of revision program 47, revision program 48 and revision program 49.Field 471-474 forms revision program 47.Field 481-484 forms revision program 48.Field 491-494 forms revision program 49.The header address of revision program 47 is for being " 4096 " of unit with the byte.The header address of revision program 48 is " 4002 ".The header address of revision program 49 is " 3924 ".Next revision program address field 473 recording addresses " 4002 " in the header of revision program 47.Next revision program address field 483 recording addresses " 3924 " in the header of revision program 48.Next revision program address field 493 no home records in the header of revision program 49.Dotted line is represented can find next revision program actual address according to next revision program address field among the figure.
In the present embodiment, the beginning instruction address that is substituted subprogram 46 is " 2002 " byte, so the beginning instruction address of the part that revision program 47 will replace represented in the index field in the header of revision program 47 471 record " 2002 ".The beginning instruction address of the part that revision program 48 will replace represented in index field 481 record " 108 " in the header of revision program 48.The beginning instruction address of the part that revision program 47 will replace represented in index field 491 record " 254 " in the header of revision program 49.Version field recording version information in the header of revision program 47-49 provides and compares new and old edition backward when revision program is upgraded.
Fig. 3 B is after this electronic device program repairing is finished, the process flow diagram when carrying out this program, and whether at first processor 1 can continue detection have exception that (step S8) takes place.When processor 1 detected the exception generation, processor 1 can read address (step S10) with the program code of obtaining exception processing module 45 via reference interrupt vector table 44.Then processor 1 can be obtained the program code address that produces exception at that time by exception processing module 45.Processor 1 also receives the index value in the revision program 47-49 header simultaneously, and promptly first-Di three is substituted the address of the beginning instruction of subprogram.In the present embodiment, processor 1 is to receive the index value in the revision program 47-49 header in regular turn according to " next revision program address " field in each header.Then processor 1 more above-mentioned index and exception generation address whether identical (step S12).
If it is identical then exception that represent processor 1 to be received is the program patch exception that the above-mentioned index of revision program 47 and exception produce the address, that is this makes an exception and carries out the program patch that the beginning instruction that is substituted subprogram 46 produces for processor 1 and make an exception.For example: if the address that the received exception of processor 1 produces is " 2002 " and when identical with revision program 47 index values " 2002 ", then processor 1 can judge that received exception be that the program patch that is produced when instruction is carried out at " being substituted subprogram 46 " beginning makes an exception.Simultaneously, the revision program 47 under the index of processor 1 reception at present is the revision programs that are substituted subprogram 46 that produce exception in order to replace.Therefore processor 1 will not carried out and be substituted subprogram 46, and can carry out revision program 47 (step S14).
Above-mentioned revision program record is got back to and is positioned at the above-mentioned required relevant information of instruction address that is substituted after the subprogram.By this, if processor 1 need be got back to and be substituted subprogram and be performed the program address that the back institute of finishing should continue and carry out originally, processor 1 can be realized this operation according to this relevant information after the present revision program of execution finishes.
If it is inequality that the above-mentioned index of revision program 47 and exception produce the address, the exception of then representing processor 1 to be received is not the program patch exception of present revision program.Processor 1 is judged the address (step S16) of whether writing down next revision program in the present revision program header.If the address of writing down next revision program in the present revision program header, processor 1 is obtained next revision program as present revision program (step S18) according to the address of the next revision program that is recorded.The then operation of repeating step S12.For example: if the address that processor 1 received exception produces is " 254 ", then processor 1 can compare in regular turn whether the index value in the revision program 48-49 header is " 254 ", then carries out revision program 49.
If it is not the program patch exception that above-mentioned receipt exception is judged in the address of not writing down next revision program in the present revision program header, processor 1.Then as exception handler, processor 1 is obtained the corresponding exception handler of this exception and is handled above-mentioned receipt exception according to this.For example: if the address that the received exception of processor 1 produces is " 235 ", then whether the index edge that can compare in regular turn in the revision program 47-49 header of processor 1 is included as " 235 ".Comparing revision program 49 index in regular turn when processor 1 (a) finishes, not finding storage values yet is the index edge of " 235 ", and when (b) revision program 49 headers do not write down next revision program address again, processor 1 judgement this moment received exception at present is not the program patch exception, and returns general normal exception handler.
(be out of shape and advance rank embodiment)
Firmware trough 42 is not used for the part of logging program for making in the program area, and its size usually can be up to hundreds of kilobyte (kilobyte is called for short KB).Therefore utilizing firmware trough 42 to store revision program is more effectively to utilize the method for internal memory.In addition, the address ratio of next-door neighbour data field 43 is easier to obtain, and therefore revision program is stored in the zone of next-door neighbour data field 43.Yet purpose of the present invention can be realized equally in other zone that revision program is stored in data field 43 or internal memory.
The beginning modifying of order precedent that is substituted subprogram 46 is produced outward the part position via the instruction of record beginning can be modified as logical zero by logical one in the method for instruction and realize.Needn't upgrade the data of whole flash memory block even also can only revise the beginning instruction during the method is instructed the situation that is recorded in flash memory at the above-mentioned beginning.
At device for mobile communication 10 is in the example of mobile phone, can obtain above-mentioned revision program 47 via the note that reception comprises revision program 47.Yet be not that driven by program electronic installation of the present invention can be obtained revision program via alternate manner in order to qualification the present invention.
Wherein, the Hotfix method that detours of preferred embodiment of the present invention can utilize a program to realize, is recorded on the storage medium of internal memory 4, when this program is loaded in the above-mentioned device for mobile communication 10, then can carry out the Hotfix method that detours as mentioned above.
Therefore, the present invention proposes a kind of computer readable storage media, and in order to store a computer program, aforementioned calculation machine program is in order to realize detouring the Hotfix method, and the method can be carried out aforesaid step.
Fig. 5 shows the computer readable storage media synoptic diagram according to the Hotfix method that detours of the embodiment of the invention.This storage medium 60 is in order to store a computer program 620, in order to realize detouring the Hotfix method.Its computer program comprises five logics, is respectively revision program and obtains logic 621, beginning modifying of order logic 622 and exception judgment processing logic 623.
Revision program obtains logic 621 and obtains and store revision program in the internal memory proper address.Beginning modifying of order logic 622 is revised the beginning instruction that is substituted subprogram becomes exception generation instruction.Exception judgment processing logic 623 judges whether receipt exception is the program patch exception and carries out corresponding revision program.
In sum, the Hotfix method that detours of the present invention can be applied in the driven by program electronic installation, when revising the program that drives the said procedure drive electronics to overcome, needs renewal whole procedure and partial update method can not be suitable for the shortcoming of every kind of situation.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; those skilled in the art can be used for a variety of modifications and variations under the premise without departing from the spirit and scope of the present invention, so protection scope of the present invention is as the criterion with claim of the present invention.

Claims (29)

1. a Hotfix method is executed in the driven by program electronic installation, and the said procedure drive electronics has one can rewrite internal memory, and in order to storing a program, said procedure comprises and is stored in one of a first area and is substituted subprogram, comprises the following steps:
Obtain a revision program, in order to replace the above-mentioned subprogram that is substituted;
Store above-mentioned revision program in an above-mentioned second area that rewrites internal memory;
Make the above-mentioned beginning instruction that is substituted subprogram into an exception and produce instruction, make above-mentioned when being substituted subprogram and being performed generating routine repair exception; And
When receiving said procedure repairing exception, carry out above-mentioned revision program.
2. Hotfix method as claimed in claim 1, wherein, above-mentioned second area is the firmware trough in the above-mentioned program area that rewrites internal memory.
3. Hotfix method as claimed in claim 1, wherein, above-mentioned second area is the part that the firmware trough is in close proximity to file system in the above-mentioned program area that rewrites internal memory.
4. Hotfix method as claimed in claim 1 wherein, before carrying out above-mentioned revision program step, also comprises the following step:
Reception produces the exception that instruction produces by an exception.
5. Hotfix method as claimed in claim 4 wherein, also comprises the following step:
Via obtain an exception processing module with reference to an interrupt vector table, above-mentioned exception processing module is in order to determine whether above-mentioned receipt exception is that said procedure is repaired exception according to the exception that receives.
6. Hotfix method as claimed in claim 4 wherein after above-mentioned receiving step, also comprises the following step:
Whether the index in the address that more above-mentioned exception produces instruction and the present revision program identical determining whether above-mentioned exception is that said procedure is repaired exception, above-mentioned index by in the above-mentioned present revision program record will replace beginning instruction address partly.
7. Hotfix method as claimed in claim 6, wherein, above-mentioned present revision program is above-mentioned revision program.
8. Hotfix method as claimed in claim 7 wherein, when the address of above-mentioned exception generation instruction is identical with above-mentioned index, also comprises routine step down:
Judge that above-mentioned exception is that said procedure is repaired exception.
9. Hotfix method as claimed in claim 6, wherein, above-mentioned second area writes down a plurality of revision programs, also comprises the following step before the above-mentioned comparison step:
Order obtains a revision program in above-mentioned a plurality of revision program as above-mentioned present revision program.
10. Hotfix method as claimed in claim 6, wherein, said sequence is obtained in the step of a revision program in above-mentioned a plurality of revision program, is to come order to obtain according to next revision program address of writing down in the above-mentioned present revision program.
11. Hotfix method as claimed in claim 1, wherein, modify steps also comprises the following step:
Making logical zero via some position in the position that will represent the instruction of above-mentioned beginning into by logical one revises above-mentioned beginning instruction and produces instruction for above-mentioned exception.
12. Hotfix method as claimed in claim 1, wherein, above-mentioned revision program record is got back to and is positioned at the above-mentioned required relevant information of instruction address that is substituted after the subprogram.
13. Hotfix method as claimed in claim 1, wherein, the said procedure drive electronics is one can download the device for mobile communication of revision program.
14. Hotfix method as claimed in claim 13, wherein, above-mentioned device for mobile communication is obtained above-mentioned revision program via the note that download includes revision program.
15. a driven by program electronic installation in order to carry out the Hotfix method, comprises:
One can rewrite internal memory, and in order to storing a program, said procedure comprises and is stored in one of a first area and is substituted subprogram; And
One processor is coupled to the above-mentioned internal memory that rewrites, and wherein when above-mentioned processor is obtained a revision program, stores above-mentioned revision program in an above-mentioned second area that rewrites internal memory, in order to replace the above-mentioned subprogram that is substituted; Above-mentioned processor makes the above-mentioned beginning instruction that is substituted subprogram into an exception and produces instruction, make above-mentioned when being substituted subprogram and being performed generating routine repair exception; And when above-mentioned processor receives said procedure repairing exception, carry out above-mentioned revision program.
16. driven by program electronic installation as claimed in claim 15, wherein, above-mentioned second area is the firmware trough in the above-mentioned program area that rewrites internal memory.
17. driven by program electronic installation as claimed in claim 15, wherein, above-mentioned second area is the part that the firmware trough is in close proximity to the data field in the above-mentioned program area that rewrites internal memory.
18. driven by program electronic installation as claimed in claim 15, wherein, above-mentioned processor also received by an exception and produces the exception that instruction produces before carrying out above-mentioned revision program.
19. driven by program electronic installation as claimed in claim 18, wherein, above-mentioned processor is also obtained an exception processing module according to the exception that receives via reference one interrupt vector table, and above-mentioned exception processing module is in order to determine whether above-mentioned receipt exception is that said procedure is repaired exception.
20. driven by program electronic installation as claimed in claim 18, wherein above-mentioned processor is after the above-mentioned exception of above-mentioned reception, also whether the index in the address of more above-mentioned instruction and the present revision program is identical to determine whether above-mentioned exception is that said procedure is repaired exception, and above-mentioned index will replace beginning instruction address partly by institute's record in the above-mentioned present revision program.
21. driven by program electronic installation as claimed in claim 18, wherein, above-mentioned present revision program is above-mentioned revision program.
22. driven by program electronic installation as claimed in claim 18, wherein, above-mentioned second area writes down a plurality of revision programs, and above-mentioned processor more order is obtained a revision program in above-mentioned a plurality of revision program as above-mentioned present revision program.
23. as claim 21 or 22 described driven by program electronic installations, wherein, when the address of above-mentioned instruction was identical with above-mentioned index, above-mentioned processor judged that also above-mentioned exception is that said procedure is repaired exception.
24. driven by program electronic installation as claimed in claim 22, wherein, above-mentioned processor comes order to obtain another revision program according to next revision program address of writing down in the above-mentioned present revision program.
25. driven by program electronic installation as claimed in claim 15, wherein, above-mentioned processor makes logical zero via some position in the position that will represent the instruction of above-mentioned beginning into by logical one to be revised above-mentioned beginning instruction and produces instruction for above-mentioned exception.
26. driven by program electronic installation as claimed in claim 15, wherein, above-mentioned revision program record is got back to and is positioned at the above-mentioned required relevant information of the later instruction address of subprogram that is substituted.
27. driven by program electronic installation as claimed in claim 15, wherein, the said procedure drive electronics is for downloading an electronic installation of revision program.
28. driven by program electronic installation as claimed in claim 27, wherein, the above-mentioned electronic installation that can download revision program is a device for mobile communication.
29. driven by program electronic installation as claimed in claim 27, wherein, above-mentioned processor is obtained above-mentioned revision program via receiving a note.
CNB2004100067667A 2004-02-26 2004-02-26 Method for bypassing patch program and electronic device of using the method Expired - Fee Related CN100378660C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100067667A CN100378660C (en) 2004-02-26 2004-02-26 Method for bypassing patch program and electronic device of using the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100067667A CN100378660C (en) 2004-02-26 2004-02-26 Method for bypassing patch program and electronic device of using the method

Publications (2)

Publication Number Publication Date
CN1661548A CN1661548A (en) 2005-08-31
CN100378660C true CN100378660C (en) 2008-04-02

Family

ID=35010888

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100067667A Expired - Fee Related CN100378660C (en) 2004-02-26 2004-02-26 Method for bypassing patch program and electronic device of using the method

Country Status (1)

Country Link
CN (1) CN100378660C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281443B (en) * 2013-07-12 2020-06-26 锐迪科(重庆)微电子科技有限公司 Method for realizing code and data replacement by using TCM (trusted cryptography module)
CN111782230B (en) * 2020-07-07 2022-05-31 联想(北京)有限公司 Program installation control method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1208194A (en) * 1997-08-08 1999-02-17 华邦电子股份有限公司 Patch device for program in embedded microprocessor system
US6202145B1 (en) * 1998-12-14 2001-03-13 International Business Machines Corporation System and method for eliminating a ring transition while executing in protected mode
US6341373B1 (en) * 1996-12-20 2002-01-22 Liberate Technologies Secure data downloading, recovery and upgrading

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6341373B1 (en) * 1996-12-20 2002-01-22 Liberate Technologies Secure data downloading, recovery and upgrading
CN1208194A (en) * 1997-08-08 1999-02-17 华邦电子股份有限公司 Patch device for program in embedded microprocessor system
US6202145B1 (en) * 1998-12-14 2001-03-13 International Business Machines Corporation System and method for eliminating a ring transition while executing in protected mode

Also Published As

Publication number Publication date
CN1661548A (en) 2005-08-31

Similar Documents

Publication Publication Date Title
CN1235137C (en) System and method for compacting field upgradable wireless communication device software code sections
JP4399029B2 (en) System data control method and architecture with automatic wear leveling in semiconductor non-volatile mass storage memory
US20040243992A1 (en) Update system capable of updating software across multiple FLASH chips
US20050177709A1 (en) Apparatus and method for updating firmware
CN1517903A (en) Map data processing device and centring system
US8447964B2 (en) File update system and boot management system of mobile communication terminal, method of updating file in mobile communication terminal, and method of booting mobile communication terminal
CN103154900A (en) Embedded program update method, embedded program update program, electronic apparatus, network system
CN100541450C (en) Storage management method and portable terminal
US20160217068A1 (en) Data storing method and embedded system
CN106020837A (en) Method and system for loading set top box drive
US20030233536A1 (en) Automatic selection of firmware for a computer that allows a plurality of process types
CN100378660C (en) Method for bypassing patch program and electronic device of using the method
CN109947445A (en) A kind of firmware upgrade method and system
US7389391B2 (en) Memory disposition methods and systems
US7634258B2 (en) System and method for over-the-air update of wireless communication devices
US20060136710A1 (en) Allowing or disallowing firmware upgrade based on comparison of firmware-related bits
US20060190421A1 (en) Information processing apparatus and method, recording medium, and program
US7519765B2 (en) Method of downloading main code to flash memory
CN110943871B (en) Resource interval adjusting method and device
KR20060068558A (en) Firmware upgrade method for mobile terminal
JP2003050747A (en) Method for rewriting data of non-volatile memory
CN117193147B (en) Domain control apparatus
CN113050877B (en) Mapping table storage method and device, electronic equipment and storage medium
JP2000330850A (en) Control of flash memory
CN117348972A (en) Algorithm environment mirror image construction method and system based on automatic command line generation

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080402