CN100454258C - Integrative method for updating load program and application program in embedded type system - Google Patents

Integrative method for updating load program and application program in embedded type system Download PDF

Info

Publication number
CN100454258C
CN100454258C CNB2007100262470A CN200710026247A CN100454258C CN 100454258 C CN100454258 C CN 100454258C CN B2007100262470 A CNB2007100262470 A CN B2007100262470A CN 200710026247 A CN200710026247 A CN 200710026247A CN 100454258 C CN100454258 C CN 100454258C
Authority
CN
China
Prior art keywords
application program
loading procedure
burning
conservation zone
embedded
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
CNB2007100262470A
Other languages
Chinese (zh)
Other versions
CN101004690A (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.)
Guangzhou Zhongding Forest Network Technology Co Ltd
Original Assignee
Comba Telecom Technology Guangzhou 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 Comba Telecom Technology Guangzhou Ltd filed Critical Comba Telecom Technology Guangzhou Ltd
Priority to CNB2007100262470A priority Critical patent/CN100454258C/en
Publication of CN101004690A publication Critical patent/CN101004690A/en
Application granted granted Critical
Publication of CN100454258C publication Critical patent/CN100454258C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

An integral-updating method of embedded system loading program and application program includes downloading function program and receiving program data transmitted from communication interface to finalize back-up application program when embedded operation system and application program are started up, activating back-up application program and setting current application program state to be back-up state when download is finished, resetting system and loading new application program for carrying out operation.

Description

The integrated update method of embedded system loading procedure and application program
Technical field
The present invention relates to the renewal technology of built-in system software program, specifically be meant the integrated update method of embedded system loading procedure and application program.
Background technology
Embedded system is application-centered, but the dedicated computer system of software and hardware cutting.Generally form, be used to realize control, supervision and management miscellaneous equipment by flush bonding processor, peripheral hardware equipment, embedded OS and application program of user.The order that embedded system starts generally is that CPU moved from fixed address when system powered on, normally the 0x00000000 position of FLASH ROM; Boot loader brings into operation, and is downloading mode or loading mode according to external world's input decision start-up mode; Construct embedded system at last and start environment, start embedded OS and application program.Downloading mode is used for finishing the work that the user upgrades operating system or application program, and this part working routine is stored among the isolated low capacity ROM usually; Loading mode is used for finishing and is loaded into work among the main memory block RAM in the embedded system being kept at application data in the FLASH ROM storer.
The renewal that is kept at built-in system software program among the FLASH ROM has dual mode: burning and download; Burning refers to use the internal processes of special-purpose burning renewal of the equipment embedded system, and general burning can only be upgraded the routine data in the same group of storer; Download is meant to carry out and downloads that downloading writes FLASH ROM storer to the data of coming by the communication interface transmission in embedded system.Usually, embedded system is used burning schema update loading procedure, uses downloading mode to upgrade embedded OS and application program.This built-in system software more new model not only will be operated twice (burning, once download), and if downloading process occur unusually, will cause the collapse of total system.
Summary of the invention
The objective of the invention is to overcome the shortcoming and defect of above-mentioned prior art, provide embedded system loading procedure and application program integrated update method, it is simple to operate, and security is good.
Purpose of the present invention is achieved through the following technical solutions: the integrated update method of this embedded system loading procedure and application program, and its step comprises:
(1) loading procedure, load information and application program input computing machine, by compiler compiling is unified in the combination of loading procedure and application program, generation can a burning data, this data form computer outputs to cd-rom recorder, and cd-rom recorder is burnt among the unique storage stack FLASH ROM of flush bonding processor by the burning cable; Described load information is to be used for preserving the described information that needs loading application programs;
Simultaneously, by compiler from compile back loading procedure, load information and application program can the data of a burning, application program is decomposed out, generation downloads;
(2) embedded system is carried out back-up processing to its operating system and application program after the burning, promptly preserves two parts of operating systems and application program in the storer, and portion is in Status of Backups, and portion is in state of activation in addition;
(3) after embedded OS and application program launching, embedded system starts simultaneously and downloads, and receives the routine data that transmission comes by communication interface, finishes the renewal of backup embedded OS and application program;
(4) after downloading successfully, download, will back up embedded OS and application program and activate, and current embedded OS and Application Status are changed to Status of Backups by revising load information;
(5) new embedded OS resets, and loads new application program operation, thereby only uses the burning of embedded system of storage stack FLASH ROM to finish the renewal of described application program in the realization of Development and Production stage.
Must realize the present invention for better, the described storer FLASH of step (1) ROM comprises routine data conservation zone 1#, routine data conservation zone 2#, loading procedure promoter region and load information conservation zone; Described routine data conservation zone 1# is the data storage area when developing the production burning; Routine data conservation zone 2# is the blank back-up storage district that alternately does program backup work with routine data conservation zone 1#; Data storage area when loading procedure promoter region and load information conservation zone are burning program.
In the described compilation process of step (1), the operation to interruption, function and variable between loading procedure and the application program must be isolated fully.
Load information forced to be set to load default application program when the described back-up processing of step (2) was meant burning.
The loading of the described new application program of step (5), comprise the steps: that the loading procedure that deposit the loading procedure promoter region at first moves, judge according to the load information of load information conservation zone then if during the program run among the 1# of routine data conservation zone, require the application program that is kept among the 1# of routine data conservation zone to copy among the RAM according to the initialization that moves, otherwise the application program among the reproducer data conservation zone 2#, initialization application program is then moved needed variable and interrupt vector, changes the entry address in RAM of jumping to application program at last and finishes loading work; Download if carry out successful application program after the embedded system burning, it is empty that routine data conservation zone 2# just is always, start-up loading just must be application program among the 1# of routine data conservation zone.
The present invention compared with prior art has following advantage and beneficial effect: the first secondary program of simplifying existing system is written into flow process, makes things convenient for application software and load software combined debugging; Simple to operate, security is good.
Description of drawings
Fig. 1,2 is respectively burning, the download synoptic diagram of embedded system loading procedure and the existing more new model of application program;
Fig. 3,4 is respectively burning, the download synoptic diagram of embedded system loading procedure of the present invention and the integrated more new model of application program;
Fig. 5 is that the storage space of storer of the present invention constitutes synoptic diagram;
Fig. 6 is the loading schematic flow sheet of new application program of the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
Embodiment one
As shown in Figure 1, 2, in the prior art, the update method of embedded system loading procedure and application program need be operated twice, burning (Fig. 1), once downloads (Fig. 2).
Shown in Fig. 3,4, the integrated update method of this embedded system loading procedure and application program comprises the steps:
(1) loading procedure, load information and application program input computing machine, by compiler compiling is unified in the combination of loading procedure and application program, generation can a burning data, this data form computer outputs to cd-rom recorder, and cd-rom recorder is burnt among the unique storage stack FLASH ROM of flush bonding processor by the burning cable; Described load information is to be used for preserving the described information that needs loading application programs;
Simultaneously, by compiler from compile back loading procedure, load information and application program can the data of a burning, application program is decomposed out, generation downloads;
(2) embedded system is carried out back-up processing to its operating system and application program after the burning, promptly preserves two parts of operating systems and application program in the storer, and portion is in Status of Backups, and portion is in state of activation in addition;
(3) after embedded OS and application program launching, embedded system starts simultaneously and downloads, and receives the routine data that transmission comes by communication interface, finishes the renewal of backup embedded OS and application program;
(4) after downloading successfully, download, will back up embedded OS and application program and activate, and current embedded OS and Application Status are changed to Status of Backups by revising load information;
(5) new embedded OS resets, and loads new application program operation, thereby only uses the burning of embedded system of storage stack FLASH ROM to finish the renewal of described application program in the realization of Development and Production stage.
Wherein, as shown in Figure 5, the described storer FLASH of step (1) ROM comprises routine data conservation zone 1#, routine data conservation zone 2#, loading procedure promoter region and load information conservation zone; Described routine data conservation zone 1# is the data storage area when developing the production burning; Routine data conservation zone 2# is the blank back-up storage district that alternately does program backup work with routine data conservation zone 1#; Data storage area when loading procedure promoter region and load information conservation zone are burning program.
In the described compilation process of step (1), the operation to interruption, function and variable between loading procedure and the application program must be isolated fully.
Load information forced to be set to load default application program when the described back-up processing of step (2) was meant burning.
As shown in Figure 6, the loading of the described new application program of step (5), comprise the steps: that the loading procedure that deposit the loading procedure promoter region at first moves, judge according to the load information of load information conservation zone then if during the program run among the 1# of routine data conservation zone, require the application program that is kept among the 1# of routine data conservation zone to copy among the RAM according to the initialization that moves, otherwise the application program among the reproducer data conservation zone 2#, initialization application program is then moved needed variable and interrupt vector, changes the entry address in RAM of jumping to application program at last and finishes loading work; Download if carry out successful application program after the embedded system burning, it is empty that routine data conservation zone 2# just is always, start-up loading just must be application program among the 1# of routine data conservation zone.
As mentioned above, just can realize the present invention preferably.

Claims (5)

1, the integrated update method of embedded system loading procedure and application program is characterized in that comprising the steps:
(1) loading procedure, load information and application program input computing machine, by compiler compiling is unified in the combination of loading procedure and application program, generation can a burning data, this data form computer outputs to cd-rom recorder, and cd-rom recorder is burnt among the unique storage stack FLASH ROM of flush bonding processor by the burning cable; Described load information is to be used for preserving the described information that needs loading application programs;
Simultaneously, by compiler from compile back loading procedure, load information and application program can the data of a burning, application program is decomposed out, generation downloads;
(2) embedded system is carried out back-up processing to its operating system and application program after the burning, promptly preserves two parts of operating systems and application program in the storer, and portion is in Status of Backups, and portion is in state of activation in addition;
(3) after embedded OS and application program launching, embedded system starts simultaneously and downloads, and receives the routine data that transmission comes by communication interface, finishes the renewal of backup embedded OS and application program;
(4) after downloading successfully, download, will back up embedded OS and application program and activate, and current embedded OS and Application Status are changed to Status of Backups by revising load information;
(5) new embedded OS resets, and loads new application program operation, thereby only uses the burning of embedded system of storage stack FLASH ROM to finish the renewal of described application program in the realization of Development and Production stage.
2, according to described embedded system loading procedure of claim 1 and the integrated update method of application program, it is characterized in that: the described storer FLASH of step (1) ROM comprises routine data conservation zone 1#, routine data conservation zone 2#, loading procedure promoter region and load information conservation zone; Described routine data conservation zone 1# is the data storage area when developing the production burning; Routine data conservation zone 2# is the blank back-up storage district that alternately does program backup work with routine data conservation zone 1#; Data storage area when loading procedure promoter region and load information conservation zone are burning program.
3, according to described embedded system loading procedure of claim 1 and the integrated update method of application program, it is characterized in that: in the described compilation process of step (1), the operation to interruption, function and variable between loading procedure and the application program must be isolated fully.
4, according to described embedded system loading procedure of claim 1 and the integrated update method of application program, it is characterized in that: load information forced to be set to load default application program when the described back-up processing of step (2) was meant burning.
5, according to described embedded system loading procedure of claim 2 and the integrated update method of application program, it is characterized in that: the loading of the described new application program of step (5), be meant that the loading procedure that deposit the loading procedure promoter region at first moves, judge according to the load information of load information conservation zone then if during the program run among the 1# of routine data conservation zone, require the application program that is kept among the 1# of routine data conservation zone to copy among the RAM according to the initialization that moves, otherwise the application program among the reproducer data conservation zone 2#, initialization application program is then moved needed variable and interrupt vector, changes the entry address in RAM of jumping to application program at last and finishes loading work; Download if carry out successful application program after the embedded system burning, it is empty that routine data conservation zone 2# just is always, start-up loading just must be application program among the 1# of routine data conservation zone.
CNB2007100262470A 2007-01-09 2007-01-09 Integrative method for updating load program and application program in embedded type system Expired - Fee Related CN100454258C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100262470A CN100454258C (en) 2007-01-09 2007-01-09 Integrative method for updating load program and application program in embedded type system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100262470A CN100454258C (en) 2007-01-09 2007-01-09 Integrative method for updating load program and application program in embedded type system

Publications (2)

Publication Number Publication Date
CN101004690A CN101004690A (en) 2007-07-25
CN100454258C true CN100454258C (en) 2009-01-21

Family

ID=38703859

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100262470A Expired - Fee Related CN100454258C (en) 2007-01-09 2007-01-09 Integrative method for updating load program and application program in embedded type system

Country Status (1)

Country Link
CN (1) CN100454258C (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807154B (en) * 2009-02-16 2015-01-21 技嘉科技股份有限公司 Electronic device and starting method thereof
CN102135908B (en) * 2010-01-25 2013-01-23 研祥智能科技股份有限公司 Method, device and computer system for switching operating system
CN101826027A (en) * 2010-05-28 2010-09-08 深圳市融创天下科技发展有限公司 Embedded system and updating method thereof
CN102103511A (en) * 2011-02-25 2011-06-22 北京经纬恒润科技有限公司 Method and system for refreshing application program
CN102346456B (en) * 2011-05-06 2013-05-22 烟台威尔数据系统有限公司 Programmable intelligent terminal device and programmable intelligent terminal operation method
CN102955707A (en) * 2011-08-31 2013-03-06 福建三元达软件有限公司 Method for mutual loading of drive program and application program based on foreground-background system
CN102298531B (en) * 2011-09-08 2014-08-06 北京傲天动联技术股份有限公司 Method for upgrading flash memory file system in embedded system
CN102521289B (en) * 2011-11-29 2013-12-04 华为技术有限公司 File synchronization method, device and system
CN103176820B (en) * 2013-02-27 2016-08-03 深圳创维数字技术有限公司 A kind of method for burn-recording of software
CN104155880A (en) * 2013-05-15 2014-11-19 深圳富泰宏精密工业有限公司 Electronic apparatus and application method thereof
CN104346183B (en) * 2013-07-31 2018-05-22 广东美的制冷设备有限公司 The method and apparatus for storing heat pump performance data
CN104346237A (en) * 2013-08-05 2015-02-11 宏达国际电子股份有限公司 Cloud backup method and electronic communication device
CN104423989B (en) * 2013-09-02 2017-11-28 联想(北京)有限公司 One kind applies update method and electronic equipment
CN104454205B (en) * 2014-11-04 2017-06-16 南岳电控(衡阳)工业技术股份有限公司 Diesel electric-controlled unit micro controller module
CN105653384A (en) * 2015-12-30 2016-06-08 惠州市伟乐科技股份有限公司 Soft-core CPU resetting method and master-slave type system
CN106371884B (en) * 2016-09-18 2019-12-20 时瑞科技(深圳)有限公司 Universal embedded loading application system and method
CN109729731B (en) * 2017-08-22 2021-02-09 华为技术有限公司 Accelerated processing method and device
CN111708548A (en) * 2020-06-18 2020-09-25 北京小米移动软件有限公司 Software installation method, device, equipment and storage medium
CN112157339B (en) * 2020-09-23 2022-06-03 天津七所高科技有限公司 Method for initializing data of resistance welding equipment
CN113010179B (en) * 2021-02-23 2024-03-15 深圳市广和通无线股份有限公司 Independent application running method based on real-time operating system

Also Published As

Publication number Publication date
CN101004690A (en) 2007-07-25

Similar Documents

Publication Publication Date Title
CN100454258C (en) Integrative method for updating load program and application program in embedded type system
CN101770384B (en) Car audio system software upgrading method
CN106257417B (en) Boot program upgrading method, embedded equipment, control equipment and embedded system
US20180120927A1 (en) Devices and methods for switching and communication among multiple operating systems and application management methods thereof
CN101425018B (en) Embedded firmware upgrading method and device based on sectional form
CN1318979C (en) Method for updating firmware of optical disk system
CN104572206A (en) Application program self updating and backup recovery method
US20150365892A1 (en) Low-power wearable devices and methods for switching and communication among multiple operating systems and application management methods thereof
CN102053831B (en) Linux operating system customizing method and system
US20020078338A1 (en) Method and apparatus for fast computer initialization
TW201502764A (en) Specialized boot path for speeding up resume from sleep state
WO2021115477A1 (en) Program upgrade method and apparatus, electronic device and storage medium
CN102508686A (en) Method and system for realizing safe upgrading of system
CN107566169B (en) Firmware upgrading method based on openwrt and router
CN101876940A (en) Automatic test method and device
CN103761088A (en) Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
US11829220B2 (en) Power management circuit, chip and upgrade method therefor, and server
CN102609274A (en) Quick system start and running method and television set
CN103077056B (en) Use the Bootlorder implementation method of a small amount of ROM resource
CN104182239A (en) Upgrading method and upgrading device for file system based on embedded Linux equipment
CN110874237A (en) Software upgrading method, device, terminal and readable storage medium
CN112540780A (en) System and method for realizing batch firmware upgrade of formation unmanned aerial vehicles
CN108182079B (en) TMS320C6748 program loading method based on serial port
CN115408013A (en) Firmware and file automatic programming method of Zynq UltraScale + MPSoC platform
CN112306782B (en) Debugging test-oriented operating system kernel guiding and loading hardware and 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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160606

Address after: Nansha District Fengze road Guangzhou city Guangdong province 510000 No. 106 (self building No. 1) X1301-F322 (only for office use) (JM)

Patentee after: Guangzhou Zhongding Forest Network Technology Co. Ltd.

Address before: 510730 Guangdong city of Guangzhou province Guangzhou economic and Technological Development Zone Jinbi Road No. 6

Patentee before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090121

Termination date: 20210109

CF01 Termination of patent right due to non-payment of annual fee