CN1928821A - Online updating method for electronic appliances - Google Patents
Online updating method for electronic appliances Download PDFInfo
- Publication number
- CN1928821A CN1928821A CN 200610113371 CN200610113371A CN1928821A CN 1928821 A CN1928821 A CN 1928821A CN 200610113371 CN200610113371 CN 200610113371 CN 200610113371 A CN200610113371 A CN 200610113371A CN 1928821 A CN1928821 A CN 1928821A
- Authority
- CN
- China
- Prior art keywords
- firmware program
- electronic equipment
- function module
- communication function
- district
- 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
Links
Abstract
The related on-line update technology for electronic firmware comprises: dividing the device storage space into a communication area, an application function area, a free area and a vector area; downloading new firmware program from a superior machine by the bootstrap and communication module; by code covering, downloading some bootstrap into the free area, loading other bootstrap into the application area to cover original module, while loading communication/application module of new program to cover original module. This invention is low cost and convenient.
Description
Technical field
The present invention relates to a kind of firmware on line upgrading method of electronic equipment, be specifically a kind of under the memory space inadequate situation firmware on line upgrading method of electronic equipment, belong to the data communication field.
Background technology
Along with the fast development of infotech, electronic equipment is brought in constant renewal in upgrading, and the most cases of upgrading is that the firmware program of electronic equipment is upgraded.The methods of online upgrading that adopt realize firmware upgrade more under the prior art, this method is a kind of mode of conveniently upgrading, its concrete operations are: when firmware program need be upgraded, electronic equipment is linked to each other with computing machine, directly upgrade by the upgrade interface download and upgrade code that leaves in advance in the firmware program.
Firmware program is the program that operates on the hardware, can be used for directly driving hardware circuit, can finish some application functions.
Boot is one section code with the new firmware program function after the guiding electronic equipment download and upgrade.
The process of updating firmware program is: at first send boot by host computer (computing machine that is used to upgrade or special upgrade equipment etc.) to electronic equipment, electronic equipment downloads to the free area with boot, the space size of the free area of electronic equipment is the storage boot enough, by the firmware program after boot and the mutual download and upgrade of host computer, finish device upgrade again.
Because the capacity of storer is big more, the price of chip is just high more, so the electronic equipment developer considers cost factor, generally can not select to have the chip of larger capacity storer.Therefore the chip selected of developer does not have very big remaining space after its program storage storing firmware program, will occur the problem of insufficient memory like this during online upgrading downloading guides program, causes finishing online upgrading.
Summary of the invention
For solve above-mentioned electronic equipment memory space inadequate cause can't online upgrading problem, the method that the present invention adopts code to cover provides a kind of electronic equipment online upgrading scheme under the memory space inadequate situation.
The invention is characterized in that described method contains following steps successively:
Step (1) is divided into the storage area of described electronic equipment the subregion of following four separate physically and content non-overlapping copies:
The communication function district, storage has the communication function module with the upper machine communication function;
The application function district, storage realizes the applied function module of electronic apparatus application function;
The free area for remaining space after the described storage area storing firmware program, is used to store the data that comprise user data or process data;
The vector district, the jump vector table of store electrons equipment firmware program, its content is pointed to the entry address of firmware program each several part;
Step (2), described electronic equipment is under former firmware program control, and to the free area, the remainder boot downloads to the application function district from host computer downloading guides program, covers the applied function module in original firmware program;
Step (3), described electronic equipment is revised the jump vector table makes execution turn to the boot of downloading in the step (2), the communication function module of downloading new firmware program from host computer by boot is to the communication function district again, the former communication function module of covering communication functional areas;
Step (4), described electronic equipment is revised the jump vector table and is made the communication function module of carrying out the new firmware program that turns to the middle download of step (3), the applied function module of downloading new firmware program from host computer by the communication function module of new firmware program covers the part boot in application function district to the application function district;
Step (5) is finished online upgrading, finishes.
Such scheme of the present invention has solved problems of the prior art, makes things convenient for the updating operation of electronic equipment developer to electronic equipment, saves cost, is user-friendly to.
Description of drawings
Fig. 1 is the structural representation of the storer in the electronic equipment chip.
Fig. 2 is the process flow diagram of online upgrading scheme of the present invention.
Embodiment
A kind of online upgrading method of electronic equipment, its technical scheme is as follows:
Method of the present invention comprises the steps:
A. electronic equipment is under the control of former firmware program, and the downloading guides program is to free area and application function district;
B. electronic equipment is under the control of boot, and the communication function module of downloading new firmware program is to the communication function district;
C. electronic equipment is under the communication function module controls of new firmware program, and the applied function module of downloading new firmware program is to the application function district.
The memory block of electronic equipment is divided into communication function district, application function district, free area and vector district, the communication function module of described communication function district storing firmware program, the applied function module of described application function district storing firmware program, the jump vector table of described vector district storing firmware program.
In the said method, described communication function district, application function district, the separate physically non-overlapping copies in free area and vector district.
In the said method, the communication function module of described firmware program has the function of the applied function module that continues the download firmware program.
In the said method, the communication function module of described firmware program also has the function with upper machine communication.
In the said method, behind the execution of step A, revise the jump vector table, make to carry out to turn to boot.
In the said method, behind the execution of step B, revise the jump vector table, make and carry out the communication function module that turns to new firmware program.
In the said method, the boot of download or the communication function module of new firmware program are carried out revising the jump vector table again after the verification.
In the said method, execute above-mentioned 3 steps after, carry out the initialization of external order and empty the free area.
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Fig. 1 is the structural representation of the storer in the electronic equipment chip, and as shown in the figure, 101 is USB communication function district, and the communication function module of the firmware program of its storage has the download firmware program of continuation and sets up the function of communication with host computer; 102 is the application function district, and the applied function module of the firmware program of its storage is realized the application function of electronic equipment; 103 is the free area, and it is a remaining space behind the memory stores firmware program, and the free area can be used for storaging user data or process data etc.; 104 is the vector district, storage jump vector table on it, and the content of jump vector table is pointed to the entry address of firmware program each several part.Because the space of free area 103 is generally little, when the electronic equipment online upgrading, the size of the boot of downloading is greater than the storage space of free area 103, the solution of the present invention is that boot is downloaded in the free area 103, and the part boot that exceeds free area memory capacity downloads to the applied function module that covers in the application function district 102 in original firmware.Boot has the function with upper machine communication, can download new firmware program, and the communication function module of new firmware program is downloaded to the content that covers original communication function district in the communication function district 101.The communication function module of new firmware program has the function that continues to download new firmware program, the applied function module of the new firmware program of continue downloading covers the code in the application function district 102 of existing part boot, so far new firmware program is downloaded and is finished, and finishes online upgrading.Can use the initialization of external order that it is emptied for free area 103 existing part boot.
Be that example is described in more detail the solution of the present invention in conjunction with the upgrading process flow diagram below with the USB device, suitable equally for electronic equipment the solution of the present invention such as serial ports, parallel ports.As shown in Figure 2:
Step 201, USB device connects host computer and powers on;
Step 202, the communication function module and the host computer in the communication function district 101 of USB device are set up communication;
Step 203, the downloading guides program is to free area 103 and application function district 102;
Step 204 is revised the jump vector table, makes calling program begin to carry out from boot;
Step 205, USB device re-powers, and carries out boot;
Step 206, boot are downloaded the communication function module of new firmware program in communication function district 101;
Step 207 is revised the jump vector table, and calling program can be begun to carry out from the communication function module of the new firmware program downloaded;
Step 208, USB device re-powers, and carries out the communication function module of newly downloaded new firmware program;
Step 209, the applied function module of downloading new firmware program is to application function district 102;
Step 210 is carried out the initialization of external order, removes the part boot in the free area 103;
Step 211 is finished upgrading, finishes.
During specific implementation, under the situation that does not influence the normal operation of electronic equipment, execution in step 210, keep the part boot in the free area.
In the method for the present invention, after downloading new firmware program, because the change or the increase and decrease of each functions of modules of firmware program cause the size of free area to change.
Claims (6)
1, a kind of online upgrading method of electronic equipment is characterized in that, described method comprises following steps successively:
Step (1) is divided into the storage area of described electronic equipment the subregion of following four separate physically and content non-overlapping copies:
The communication function district, storage has the communication function module with the upper machine communication function;
The application function district, storage realizes the applied function module of electronic apparatus application function;
The free area for remaining space after the described storage area storing firmware program, is used to store the data that comprise user data or process data;
The vector district, the jump vector table of store electrons equipment firmware program, its content is pointed to the entry address of firmware program each several part;
Step (2), described electronic equipment is under former firmware program control, and to the free area, the remainder boot downloads to the application function district from host computer downloading guides program, covers the applied function module in original firmware program;
Step (3), described electronic equipment is revised the jump vector table makes execution turn to the boot of downloading in the step (2), the communication function module of downloading new firmware program from host computer by described boot is to the communication function district again, the former communication function module of covering communication functional areas;
Step (4), described electronic equipment is revised the jump vector table and is made the communication function module of carrying out the new firmware program that turns to the middle download of step (3), the applied function module of downloading new firmware program from host computer by the communication function module of new firmware program covers the part boot in application function district to the application function district;
Step (5) is finished online upgrading, finishes.
2, the online upgrading method of a kind of electronic equipment according to claim 1 is characterized in that, in described step (4) afterwards, increases and carries out an initialization of external order to empty the free area.
3, the online upgrading method of a kind of electronic equipment according to claim 1 is characterized in that, in step (3), the jump vector table is revised after the boot of downloading is carried out verification again by elder generation.
4, the online upgrading method of a kind of electronic equipment according to claim 1 is characterized in that, in step (4), the jump vector table is revised after the communication function module of the new firmware program of download is carried out verification again by elder generation.
5, the online upgrading method of a kind of electronic equipment according to claim 1 is characterized in that, the communication function module of described firmware program has the function of the applied function module that continues the new firmware program of download.
6, the online upgrading method of a kind of electronic equipment according to claim 1 is characterized in that, the size in described communication function district, application function district, free area and vector district is along with the change or the increase and decrease of each functions of modules of firmware program change.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101133716A CN100399271C (en) | 2006-09-26 | 2006-09-26 | Online updating method for electronic appliances |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101133716A CN100399271C (en) | 2006-09-26 | 2006-09-26 | Online updating method for electronic appliances |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1928821A true CN1928821A (en) | 2007-03-14 |
CN100399271C CN100399271C (en) | 2008-07-02 |
Family
ID=37858795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101133716A Active CN100399271C (en) | 2006-09-26 | 2006-09-26 | Online updating method for electronic appliances |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100399271C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8433890B2 (en) | 2010-10-13 | 2013-04-30 | International Business Machines Corporation | Preparing and preserving a system configuration during a hot upgrade |
CN105677388A (en) * | 2015-12-31 | 2016-06-15 | 清华大学苏州汽车研究院(吴江) | Firmware updating method for motor controller of electric vehicle |
CN105786613A (en) * | 2014-12-25 | 2016-07-20 | 联芯科技有限公司 | Method for improving utilization rate of internal memory |
CN106909128A (en) * | 2015-12-23 | 2017-06-30 | 中国科学院沈阳自动化研究所 | A kind of motion control method for supporting motion-control module online upgrading |
CN111488168A (en) * | 2019-12-25 | 2020-08-04 | 湖北航天飞行器研究所 | Weapon system control software safety upgrading method based on boot secondary loading |
CN114253619A (en) * | 2021-12-21 | 2022-03-29 | 苏州忆联信息系统有限公司 | SSD multi-level Boot method and device, computer equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001166941A (en) * | 1999-12-07 | 2001-06-22 | Sony Corp | Device and method for processing information and recording medium |
JP2001331379A (en) * | 2000-05-22 | 2001-11-30 | Nec Microsystems Ltd | Method and device for rewriting flash memory update program |
US6834384B2 (en) * | 2001-03-14 | 2004-12-21 | General Instrument Corporation | Methods and apparatus for upgrading firmware in an embedded system |
CN1297891C (en) * | 2003-06-16 | 2007-01-31 | 纬创资通股份有限公司 | Staggered form firmware upgrading method |
-
2006
- 2006-09-26 CN CNB2006101133716A patent/CN100399271C/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8433890B2 (en) | 2010-10-13 | 2013-04-30 | International Business Machines Corporation | Preparing and preserving a system configuration during a hot upgrade |
US8495351B2 (en) | 2010-10-13 | 2013-07-23 | International Business Machines Corporation | Preparing and preserving a system configuration during a hot upgrade |
CN105786613A (en) * | 2014-12-25 | 2016-07-20 | 联芯科技有限公司 | Method for improving utilization rate of internal memory |
CN106909128A (en) * | 2015-12-23 | 2017-06-30 | 中国科学院沈阳自动化研究所 | A kind of motion control method for supporting motion-control module online upgrading |
CN106909128B (en) * | 2015-12-23 | 2019-05-28 | 中国科学院沈阳自动化研究所 | A kind of motion control method for supporting motion-control module online upgrading |
CN105677388A (en) * | 2015-12-31 | 2016-06-15 | 清华大学苏州汽车研究院(吴江) | Firmware updating method for motor controller of electric vehicle |
CN111488168A (en) * | 2019-12-25 | 2020-08-04 | 湖北航天飞行器研究所 | Weapon system control software safety upgrading method based on boot secondary loading |
CN111488168B (en) * | 2019-12-25 | 2023-09-12 | 湖北航天飞行器研究所 | Weapon system control software safety upgrading method based on boot secondary loading |
CN114253619A (en) * | 2021-12-21 | 2022-03-29 | 苏州忆联信息系统有限公司 | SSD multi-level Boot method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN100399271C (en) | 2008-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1313941C (en) | Method for data exchange between data handling equipment and operating system | |
CN1928821A (en) | Online updating method for electronic appliances | |
JP5005171B2 (en) | Method and apparatus for splitting logical blocks | |
CN1499530A (en) | Method and device for effectively allowing failure sequency writing processing in ono-volatile memory system | |
CN1932778A (en) | Method for conducting virtual space management to NAND FLASH memory | |
CN104375849A (en) | Core loading method and device | |
CN104182255A (en) | Method and terminal for upgrading library files of system application | |
EP1956482B1 (en) | Generating delta updates for a processing device | |
WO2008017204A1 (en) | Heap manager for a multitasking virtual machine | |
CN1502075A (en) | Method for loading and executing an application in an embedded environment | |
CN101051275A (en) | Method of system booting with a direct memory access in a new memory architecture | |
CN1930551A (en) | Automatic backup store in firmware upgrades | |
EP1920335A1 (en) | Reclaiming data storage capacity in flash memory systems | |
CN1924805A (en) | Method for realizing dynamic clinkbase in wireless binary running environment platform | |
CN101211265A (en) | Terminal embedded type system software update method and apparatus | |
WO2008043197A1 (en) | Dynamically changing a garbage collector in a managed runtime system | |
CN1808513A (en) | Mobile telephone based remote controller for household electrical appliance | |
WO2006063270A1 (en) | Utilizing paging to support dynamic code updates | |
US9037773B2 (en) | Methods for processing and addressing data between volatile memory and non-volatile memory in an electronic apparatus | |
CN1776619A (en) | Method for realizing embedded system run based on start loading programme | |
CN1863353A (en) | System and method for customizing mobilephone resource file | |
CN1758220A (en) | Method of updating software release | |
CN1877521A (en) | Method for accomplishing embedded system board support package across different operating system | |
CN101030148A (en) | Method and device for realizing double mapping | |
CN1139032C (en) | Arrangement for executing program code with reduced memory requirements |
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 | ||
C56 | Change in the name or address of the patentee |
Owner name: FEITIAN TECHNOLOGIES CO., LTD. Free format text: FORMER NAME: BEIJING FEITIAN CHENGXIN TECHNOLOGY CO., LTD. |
|
CP03 | Change of name, title or address |
Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B block 17 layer Patentee after: Feitian Technologies Co., Ltd. Address before: 100083, Haidian District, Xueyuan Road, No. 40 research, 7 floor, 5 floor, Beijing Patentee before: Beijing Feitian Chengxin Science & Technology Co., Ltd. |