CN1397884A - Method for upgrading electronic equipment - Google Patents

Method for upgrading electronic equipment Download PDF

Info

Publication number
CN1397884A
CN1397884A CN 02114659 CN02114659A CN1397884A CN 1397884 A CN1397884 A CN 1397884A CN 02114659 CN02114659 CN 02114659 CN 02114659 A CN02114659 A CN 02114659A CN 1397884 A CN1397884 A CN 1397884A
Authority
CN
China
Prior art keywords
jump list
read
function
memory
rom
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.)
Granted
Application number
CN 02114659
Other languages
Chinese (zh)
Other versions
CN1169051C (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.)
Inventec Besta Xian Co Ltd
Inventec Besta Co Ltd
Original Assignee
Inventec Besta Xian 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 Inventec Besta Xian Co Ltd filed Critical Inventec Besta Xian Co Ltd
Priority to CNB021146594A priority Critical patent/CN1169051C/en
Publication of CN1397884A publication Critical patent/CN1397884A/en
Application granted granted Critical
Publication of CN1169051C publication Critical patent/CN1169051C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

A method for upgrading electronic device by updating the functions stored in its ROM includes copying the jump table containing the addresses of all functions from ROM to a flash memory, storing the modified functions and their addresses in flash memory to the jump table, using the jump table to replace the onr in ROM, and reading the function to be executed from ROM or flash memory.

Description

Method for upgrading electronic equipment
Technical field
The present invention relates to a kind of method for upgrading electronic equipment, especially a kind of function of being stored in can the ROM (read-only memory) to electronic installation carries out method for updating.
Background technology
Along with the information computerization industry development rapidly, impel the quick growth of portable electron device, for example: PDA (Personal Digital Assistant) (Personal Digital Assistant, hereinafter to be referred as PDA) etc., various portable electron devices are because of its compact characteristic, and be widely used in daily life and the work, people are more and more higher to the requirement of this portable electron device, therefore, following portable electron device, can provide quicker, conveniently and reliably serve, become and estimated the pointer whether the high-tech product technology takes the lead.
The portable electron device of present stage mostly is with in its program code and database storing to a ROM (read-only memory) (Read Only Memory is hereinafter to be referred as ROM), in case after this program code and database are deposited in ROM (read-only memory), just can't revise again.Yet user's data are to be stored in the flash memory (Flash), and these data can be updated change in flash memory.Therefore, aforementioned PDA device with program code and database storing made to the ROM (read-only memory), after completing, because of remodifying its internal program again, cause very difficulty of this PDA device upgrading, though it also can significantly increase cost of manufacture with the memory carrier of whole these flash memories as this program code and database; And general PDA device is after being completed, and more or less can there be some minor errors in its internal program, and the program code of this PDA device is when making a mistake, and the user can't upgrade voluntarily, uses very inconvenience.
Summary of the invention
The portable electron device that the invention solves in the background technology can't upgrade its internal program, uses inconvenient technical matters.
Technical scheme of the present invention is: the present invention is a kind of method for upgrading electronic equipment, and its special character is: when the function of being stored in the ROM (read-only memory) to an electronic installation upgraded, its operating system followed these steps to handle:
1) according in the ROM (read-only memory) in order to writing down a jump list of all function storage addresses, on the flash memory of this electronic installation, duplicate another jump list earlier, make this another jump list have the content identical with aforementioned jump list;
2) function that will newly revise and the storage address on flash memory thereof are stored to the correspondence position of waiting to revise function in this another jump list, and replace the jump list that originally was based upon in the ROM (read-only memory) with this another jump list;
3) when the operating system of this electronic installation when carrying out these functions, can directly pass through another jump list, the storage address to ROM (read-only memory) and the flash memory reads the function of institute's desire execution respectively.
All function storage addresses in the above-mentioned jump list, be based upon in this ROM (read-only memory) by compile mode, when operating system in the process of implementation, in the time of need reading these functions, to earlier to this jump list, read its storage address, again by triggering a temporary transient interrupt service routine, so that the actual storage address in this ROM (read-only memory) reads this function.
Above-mentioned interrupt service routine comprises:
1) represents the statement of this interrupt service routine;
2) be illustrated in the start address of this jump list in the ROM (read-only memory);
3) statement of this function address is read in expression from this jump list;
4) statement of representation program end;
The actual storage address of interrupt service routine in the ROM (read-only memory) reads this function.
When the function in the above-mentioned ROM (read-only memory) need upgrade, operating system will be according to the jump list in this ROM (read-only memory), earlier on the flash memory of electronic installation, duplicate another jump list, make this another jump list have the content identical with aforementioned jump list, then, when this electronic installation start, its operating system will be handled according to the following step:
1) operating system will be judged whether this another jump list is arranged in this flash memory, if when operating system has been judged another jump list, promptly carry out the replacement work of interrupt service routine;
2) by the interrupt service routine after replacing, the direct new function correspondence position of revising to the flash memory;
3) automatically perform the renewal operation of electronic installation.
When the aforesaid operations system judges and does not have another jump list and exist, with directly entering function reading in the jump list of ROM (read-only memory), to carry out normal operation.
Interrupt service routine after the above-mentioned replacement comprises respectively:
1) this interrupt service routine statement after expression is replaced;
2) be illustrated in the start address of another jump list in the flash memory;
3) statement of this function address is read in expression from this another jump list;
4) statement of representation program end;
Interrupt service routine after replacing by this, directly the new function correspondence position of revising to the flash memory reads the function that institute's desire is carried out.
The aforesaid operations system is before removing desire modification function corresponding address content, can arrive interrupt service routine earlier, to read the jump list in the ROM (read-only memory), arrive again in another jump list and upgrade operation to carry out, again start then, operating system will remove to seek another jump list automatically, and then finish automatically and carry out this electronic installation renewal operation.
The invention provides a kind of method for upgrading electronic equipment, this method is that the function stored in the jump list to the ROM (read-only memory) of an electronic installation is when upgrading, its operating system will be earlier on the flash memory of this electronic installation, duplicate another jump list, when operating system carry out new when revising function, can directly pass through this another jump list, to its storage address on this flash memory, read the function of finishing modification, finish automatically and carry out the operation that this electronic installation upgrades, like this, just can make this electronic installation after completing, the user still can upgrade its internal program according to actual needs voluntarily, and is easy to use, realizes the purpose that its upgrading is upgraded.
Description of drawings
Fig. 1 is a schematic flow sheet of the present invention;
Fig. 2 is the synoptic diagram of the present invention by another jump list function reading in the flash memory;
Schematic flow sheet when Fig. 3 upgrades for operating system of the present invention.
Embodiment
Referring to Fig. 1, the present invention is a kind of method for upgrading electronic equipment, this method is that the function stored in the ROM (read-only memory) to an electronic installation is when upgrading, its operating system will according in this ROM (read-only memory) in order to write down a jump list of all function storage addresses, earlier on the flash memory of this electronic installation, duplicate another jump list, this another jump list is had and last redirect epiphase content together, and then the function that will newly revise and the storage address on flash memory thereof, be stored to the correspondence position of waiting to revise function in this another jump list, like this, this another jump list can replace the jump list that originally was based upon in this ROM (read-only memory), when operating system when carrying out the function of this new modification, can directly pass through another jump list, to its storage address on this flash memory, read the function of finishing modification, finish automatically and carry out the operation that this electronic installation upgrades.All function storage addresses in the jump list, deposited in the ROM (read-only memory) together with a program code by the mode that compiles, therefore, when operating system needs to read in the jump list function in the process of implementation, with the address that arrives first in this jump list, again by triggering a temporary transient interrupt service routine (SWI), the actual storage address in this ROM (read-only memory), read this function, rather than directly in the storage address of this function, read.
In the present invention, when the function in the ROM (read-only memory) need upgrade, operating system will be according to the jump list in the ROM (read-only memory), earlier on the flash memory of this electronic installation, duplicate another jump list, make this another jump list have and last redirect epiphase content together, then, when the start of this electronic installation, its operating system will judge whether another jump list is arranged in the flash memory, if when operating system has been judged this another jump list, promptly carry out the replacement work of interrupt service routine, by the interrupt service routine after replacing, the direct new function correspondence position of revising in the flash memory is to automatically perform the operation that electronic installation upgrades; Otherwise if operating system is judged when there is no another jump list and existing, operating system will directly enter function reading in the jump list of ROM (read-only memory), to carry out normal operation.
Now narrate said process with a specific embodiment, when PDA operating system needs to read DiagnosticRun function in the jump list in the process of implementation, with the address LD XHL of elder generation to jump list, on 5892,5892 are meant this address of DiagnosticRun function in this jump list, and operating system is by triggering interrupt service routine then, the actual storage address to the ROM (read-only memory), read this function, wherein this interrupt service routine is as follows:
SWI1Handler: the statement of representing this interrupt service routine;
Add xhl, swi1_func_tab are illustrated in the start address of jump list in the ROM (read-only memory);
Ld xhl, (xhl) statement of this function address is read in expression from jump list
Ld (xsp+2), xhl represents to read the statement of this function address from jump list
The statement that the reti representation program finishes
Like this, can arrive actual storage address in the ROM (read-only memory), read this function by interrupt service routine.
When function need upgrade, during the PDA start, its operating system will follow these steps to handle:
1) at first, will judge, when having judged another jump list, promptly carry out the replacement work of following this interrupt service routine as if operating system to whether another jump list is arranged in the flash memory:
SWI3Handler: the statement of this interrupt service routine after expression is replaced;
Add xhl, swi2_func_tab are illustrated in the start address of another jump list in the flash memory, and when a function need be made amendment, function that operating system will newly be revised and the storage address on flash memory thereof were stored in this flash memory
Ld xhl, (xhl) statement of this function address is read in expression from another jump list
Ld (xsp+2), xhl represents to read the statement of this function address from another jump list
The statement that the reti representation program finishes;
2) interrupt service routine after replacing by this, the directly new function correspondence position of revising in the flash memory;
3) read the function that institute's desire is carried out.
4) if operating system judge when there is no another jump list and existing, with directly entering function reading in the jump list of this ROM (read-only memory), to carry out normal operation.
Referring to Fig. 2, when reading the function of another jump list in the flash memory in operating system, the function that function f unction1 () expression was not revised, and function2 () expresses possibility because wrong or other is former thereby the function revised.When operating system reads this function1 (), see through the interrupt service routine that this replaces the back, obtain the actual storage address among the function f unction1 () in the flash memory in another jump list, because function f unction1 () is not modified, therefore its address is still pointed in this ROM (read-only memory), so operating system just obtains function f unction1 () and execution to the position of answering of ROM (read-only memory);
When operating system reads this function f unction2 (), see through the interrupt service routine after replacing, obtain the actual storage address of this function f unction2 () in another jump list of flash memory, because the function that function f unction2 () expression was revised, therefore operating system is pointed to this flash memory, operating system can arrive and find the new function of revising in this flash memory, and continues to carry out, and can not carry out function f unction1 () original in the ROM (read-only memory) again.
Referring to Fig. 3, in the present invention, because operating system is when upgrading, whenever reading a function all will arrive to look in this flash memory and get another jump list, just can find real function address, therefore, when being fallen to cause system clearly, this another jump list works as machine, therefore, operating system is before removing this desire modification function corresponding address content, can arrive first this interrupt service routine (SWI1Handler), like this, operating system will read the jump list in the ROM (read-only memory), in another jump list, read the function of institute's desire execution again to carry out the operation of upgrading, promptly only need start again, operating system will remove to seek another jump list automatically, and then finish automatically and carry out the operation that this electronic installation upgrades.

Claims (7)

1, a kind of method for upgrading electronic equipment is characterized in that: when the function of being stored in the ROM (read-only memory) to an electronic installation upgraded, its operating system followed these steps to handle:
1) according in the ROM (read-only memory) in order to writing down a jump list of all function storage addresses, on the flash memory of this electronic installation, duplicate another jump list earlier, make this another jump list have the content identical with aforementioned jump list;
2) function that will newly revise and the storage address on flash memory thereof are stored to the correspondence position of waiting to revise function in this another jump list, and replace the jump list that originally was based upon in the ROM (read-only memory) with this another jump list;
3) when the operating system of this electronic installation when carrying out these functions, can directly pass through another jump list, the storage address to ROM (read-only memory) and the flash memory reads the function of institute's desire execution respectively.
2, method for upgrading electronic equipment according to claim 1, it is characterized in that: all the function storage addresses in the described jump list, be based upon in this ROM (read-only memory) by compile mode, when operating system in the process of implementation, in the time of need reading these functions, will be earlier to this jump list, read its storage address, again by triggering a temporary transient interrupt service routine, so that the actual storage address in this ROM (read-only memory) reads this function.
3, method for upgrading electronic equipment according to claim 2 is characterized in that: described interrupt service routine comprises:
1) represents the statement of this interrupt service routine;
2) be illustrated in the start address of this jump list in the ROM (read-only memory);
3) statement of this function address is read in expression from this jump list;
4) statement of representation program end;
By the actual storage address of this interrupt service routine in the ROM (read-only memory), read this function.
4, method for upgrading electronic equipment according to claim 3, the function in the ROM (read-only memory) it is characterized in that: when need upgrade, operating system will be according to the jump list in this ROM (read-only memory), earlier on the flash memory of electronic installation, duplicate another jump list, make this another jump list have the content identical, then with aforementioned jump list, when this electronic installation start, its operating system will be handled according to the following step:
1) operating system will be judged whether this another jump list is arranged in this flash memory, if when operating system has been judged another jump list, promptly carry out the replacement work of interrupt service routine;
2) by the interrupt service routine after replacing, the direct new function correspondence position of revising to the flash memory;
3) automatically perform the renewal operation of electronic installation.
5, method for upgrading electronic equipment according to claim 4 is characterized in that: when operating system is judged when not having another jump list and existing, with directly entering function reading in the jump list of ROM (read-only memory), to carry out normal operation.
6, method for upgrading electronic equipment according to claim 5 is characterized in that: the interrupt service routine after the replacement comprises respectively:
1) this interrupt service routine statement after expression is replaced;
2) be illustrated in the start address of another jump list in the flash memory;
3) statement of this function address is read in expression from this another jump list;
4) statement of representation program end;
Interrupt service routine after replacing by this, directly the new function correspondence position of revising to the flash memory reads the function that institute's desire is carried out.
7, method for upgrading electronic equipment according to claim 6, it is characterized in that: before operating system is being removed desire modification function corresponding address content, can arrive interrupt service routine earlier, to read the jump list in the ROM (read-only memory), arrive again in another jump list and upgrade operation to carry out, again start then, operating system will remove to seek another jump list automatically, and then finish automatically and carry out this electronic installation renewal operation.
CNB021146594A 2002-07-03 2002-07-03 Method for upgrading electronic equipment Expired - Fee Related CN1169051C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021146594A CN1169051C (en) 2002-07-03 2002-07-03 Method for upgrading electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021146594A CN1169051C (en) 2002-07-03 2002-07-03 Method for upgrading electronic equipment

Publications (2)

Publication Number Publication Date
CN1397884A true CN1397884A (en) 2003-02-19
CN1169051C CN1169051C (en) 2004-09-29

Family

ID=4743223

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021146594A Expired - Fee Related CN1169051C (en) 2002-07-03 2002-07-03 Method for upgrading electronic equipment

Country Status (1)

Country Link
CN (1) CN1169051C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100446128C (en) * 2003-10-31 2008-12-24 宇田控股有限公司 ROM circuit capable of debugging and updating and method of debugging and updating
CN106293784A (en) * 2015-05-19 2017-01-04 深圳市阿乐卡科技有限公司 A kind of method of BIN file block upgrading
CN110162328A (en) * 2019-05-28 2019-08-23 东信和平科技股份有限公司 A kind of smart card operating system upgrade method and device
CN110312991A (en) * 2017-02-17 2019-10-08 日立汽车系统株式会社 Information processing unit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100446128C (en) * 2003-10-31 2008-12-24 宇田控股有限公司 ROM circuit capable of debugging and updating and method of debugging and updating
CN106293784A (en) * 2015-05-19 2017-01-04 深圳市阿乐卡科技有限公司 A kind of method of BIN file block upgrading
CN110312991A (en) * 2017-02-17 2019-10-08 日立汽车系统株式会社 Information processing unit
CN110162328A (en) * 2019-05-28 2019-08-23 东信和平科技股份有限公司 A kind of smart card operating system upgrade method and device

Also Published As

Publication number Publication date
CN1169051C (en) 2004-09-29

Similar Documents

Publication Publication Date Title
CN1577268A (en) Shared library system and method of building the system
CN1313941C (en) Method for data exchange between data handling equipment and operating system
CN1119756C (en) Method and system for performing static initialization
US20070300008A1 (en) Flash management techniques
CN110162306B (en) Advanced compiling method and device of system
CN101140536A (en) Snapshot system supporting cascades snapshot and snapshot processing method thereof
CN1420440A (en) Method for managing flash memory
CN1275155C (en) Abnormal failure location method in embedded operationi system
CN101211265A (en) Terminal embedded type system software update method and apparatus
CN1834941A (en) Semiconductor device having flash memory
CN101042703A (en) Method for managing metadata of file system using dbms
CN1107907C (en) Increment mode method for upgrading data file
CN1556951A (en) Lazy type tagging in compiled activation frames for garbage collection in mixed-mode systems with interpreter and compiler
US6999979B2 (en) Efficient encoding of references into a collection set
ES2190408T3 (en) UPDATE ONLY READING SOFTWARE MODULES.
CN1758220A (en) Method of updating software release
CN1924821A (en) Firmware renewing system and method
CN1169051C (en) Method for upgrading electronic equipment
CN1928821A (en) Online updating method for electronic appliances
CN1904835A (en) Method for updating computer software
US6836879B1 (en) Object oriented operating system
CN1228718C (en) Method of preventing overwrite of MAC address of peripheral terminal in DMI data
CN1855049A (en) Memory disposition methods and systems
CN112035131A (en) Method for processing internet software installation application
CN1175354C (en) Interactive parameter data update method

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
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee