CN102567049B - The upgrade method of embedded OS - Google Patents
The upgrade method of embedded OS Download PDFInfo
- Publication number
- CN102567049B CN102567049B CN201110407127.1A CN201110407127A CN102567049B CN 102567049 B CN102567049 B CN 102567049B CN 201110407127 A CN201110407127 A CN 201110407127A CN 102567049 B CN102567049 B CN 102567049B
- Authority
- CN
- China
- Prior art keywords
- upgrading
- system program
- information
- upgrade file
- upgrade
- 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.)
- Active
Links
Abstract
The method that the present invention relates to the upgrading of a kind of embedded OS, step is: (1) becomes a upgrade file upgrading startup program, system program, operation configuration information and stores with upgradeable architecture information package;(2) detected whether upgrade file when running startup program, if not, normally started system program, perform step (6);Have, perform step (3);(3) the upgradeable architecture information in upgrade file is obtained;(4) upgrade successively each module that need to upgrade according to upgradeable architecture information, until all modules have all been upgraded: (5) terminate upgrading, run the system program after upgrading;(6) system program reads when running and runs configuration information, operates in different states according to configuration information。The method of the invention can be effectively improved the upgrading efficiency of embedded OS, produces, when can be prevented effectively from the past by external communication ports operation upgrading, the problem that error causes system perturbations simultaneously。
Description
Technical field
The present invention relates to a kind of method for upgrading system, be specifically related to a kind of embedded system upgrade method。
Background technology
The method of current software upgrading generally has two kinds, one is on stream, developer utilizes debugging serial ports, the file content needing to update is specified by the mode ordered, successively on corresponding burning file to Target Board, this operating process is comparatively laborious, order will be had certain understanding, and data are connected to dependence。Another is the updating maintenance after software is issued, when needing upgrading if any multiple application programs, need the confusion avoided owing to file too much causes, simultaneously, owing to upgrade file is directly exposed to user, it is likely to result in after file is modified and has no idea to carry out detection check, ultimately result in and upgrade unsuccessfully。
Summary of the invention
For the problems referred to above, the technical problem to be solved is the upgrade method providing a kind of safety high for embedded OS。
For solving the problems referred to above, the present invention provides a kind of method that embedded OS is upgraded, and the steps include:
(1) upgrading startup program, system program, operation configuration information are packaged into a upgrade file respectively as a module, configure upgradeable architecture information for this upgrade file, and this upgrade file is stored in external memory storage;
(2) run startup procedure, start in Programmable detection external memory storage whether have upgrade file, if not, normally start original system program, perform step (6);If having, perform step (3);
(3) the upgradeable architecture information in upgrade file is obtained;
(4) module of correspondence of upgrading successively according to upgradeable architecture information, until all modules have all been upgraded;
(5) terminate upgrading, run system program;
(6) system program reads when running and runs configuration information, runs corresponding state according to configuration information。
Concrete, described upgradeable architecture information includes the flag bit of AKU, head size, version information, number of sections and concrete zone field;Described concrete zone field includes again section type, section original position, section length, section check value and section version information。
Concrete, system program described in step (1) includes one or more modules。
Concrete, different state described in step (5) includes engineering state, debugging mode;And the detail state of each driving, the running status shown including display screen, touch screen, CPU, the parameter configuration of internal memory。
Compared with prior art, the beneficial effects of the present invention is: the method for the invention will start program, system program, run configuration information and be packaged into a upgrade file with upgradeable architecture information etc., during system upgrade, early stage only reads the upgradeable architecture information in upgrade file, further according to upgradeable architecture information, successively corresponding module (is included startup program, some application program in system program and run configuration information) upgrade one by one, the upgrading efficiency of embedded OS can be effectively improved, can be prevented effectively from the past due to the confusion of the too much cause the user of upgrade file and owing to upgrade file is directly exposed to user simultaneously, it is likely to result in after file is modified and has no idea to carry out detection check, ultimately result in the problem that upgrading is failed。
Accompanying drawing explanation
Fig. 1 is the method for the invention schematic flow sheet;
Fig. 2 is upgrade file packing schematic flow sheet。
Detailed description of the invention
The present invention is explained in further detail below in conjunction with accompanying drawing and embodiment for the ease of it will be appreciated by those skilled in the art that。
Focusing in the upgrade method of disclosed embedded OS: time 1, startup program, system program, operation, configuration information is packaged in inside a upgrade file, and in packaging file, configuring upgradeable architecture information, system is done directly the upgrading of multiple file according to upgradeable architecture information guidance;2, system program operates under different states according to configuration information when running, and namely system program can be made to operate under different states by a upgrading configuration information, apply very flexible。
Packing flow process is as shown in Figure 2, first pass through compiler and generate startup program, system program, again by above-mentioned startup program, system program packing, then editing run configuration information and upgradeable architecture information, finally also adds one upgrade file of formation in above-mentioned packaging file by operation configuration information and upgradeable architecture information。This upgradeable architecture information is shown in following table:
AKU flag bit | AKU head size | AKU version information | AKU number of sections | AKU zone field |
Wherein, AKU flag bit reads the existence judging AKU for system program, and AKU head size represents the file size of this structural information, and number of sections represents the number of the upgraded module comprised in this AKU。Described concrete zone field includes again section type, section original position, section length, section check value and section version information, such as following table:
Section type | Section original position | Section length | Section check value | Section version information |
, these information indicate that the specifying information of each upgraded module in AKU, in order to upgrade in each module process, system automatically controlling upgrade information。
During application, this upgrade file is stored in the external memory storage of the system that need to upgrade。
Upgrading flow process as shown in Figure 1:
A. after system electrification, first judge it is operation system its memory program or operation external memory storage program, and run according to setting, then start in Programmable detection external memory storage whether have upgrade file, if not, start original system program, execution step e;If having, perform next step b;
B. the upgradeable architecture information in upgrade file is obtained;
The module of correspondence of c. upgrading successively according to upgradeable architecture information, until all modules have all been upgraded;
Specifically by program according to information such as the section type got in step b, section original position, section length, it is successively read corresponding data, and updates in internal system memory area;
D. terminate upgrading, run the system program after upgrading;If system program has renewal here, then automatically load new system program and perform;
E. system program obtains when running and runs configuration information, operates under corresponding state according to configuration information system;Here system can, according to different configurations, select time initialized to operate under different states。
Above-mentioned, system, by the process of step (1) directly operating procedure (5), is equivalent to operation configuration information of only having upgraded, and system can be made to operate in different states according to running configuration information。Described configuration information includes the parameter configuration such as display screen, touch screen, CPU, internal memory, and described different state includes engineering state, debugging mode;And the different running status that system shows is made owing to the parameter configuration such as display screen, touch screen, CPU, internal memory is different。The process that system is run successively by step (1), embodies system program and/or the process of startup program upgrading。
Above-described embodiment is the preferred version that the present invention realizes, it is necessary to explanation, and without departing under present inventive concept premise, any apparent replacement and minor variations are all within protection scope of the present invention。
Claims (1)
1. the upgrade method of embedded OS, the steps include:
(1) upgrading startup program, system program, operation configuration information are packaged into a upgrade file respectively as a module, configure upgradeable architecture information for this upgrade file, and this upgrade file is stored in external memory storage;
(2) run startup procedure, start in Programmable detection external memory storage whether have upgrade file, if not, normally start original system program, perform step (6);If having, perform step (3);
(3) the upgradeable architecture information in upgrade file is obtained;
(4) module of correspondence of upgrading successively according to upgradeable architecture information, until all modules have all been upgraded;
(5) terminate upgrading, run system program;
(6) system program reads when running and runs configuration information, runs corresponding state according to configuration information;
Described upgradeable architecture information includes the flag bit of AKU, head size, version information, number of sections and concrete zone field;
Described concrete zone field includes section type, section original position, section length, section check value and section version information;
System program described in step (1) includes one or more modules。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110407127.1A CN102567049B (en) | 2011-12-09 | 2011-12-09 | The upgrade method of embedded OS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110407127.1A CN102567049B (en) | 2011-12-09 | 2011-12-09 | The upgrade method of embedded OS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102567049A CN102567049A (en) | 2012-07-11 |
CN102567049B true CN102567049B (en) | 2016-06-22 |
Family
ID=46412552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110407127.1A Active CN102567049B (en) | 2011-12-09 | 2011-12-09 | The upgrade method of embedded OS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102567049B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064715A (en) * | 2013-01-09 | 2013-04-24 | 上海大唐移动通信设备有限公司 | Remote upgrade method and system for automatic drive test systems |
CN103970551A (en) * | 2013-01-29 | 2014-08-06 | 安凯(广州)微电子技术有限公司 | Selection method and device for embedded processor start mode |
CN105700898A (en) * | 2014-11-25 | 2016-06-22 | 中兴通讯股份有限公司 | Upgrading file production method and apparatus as well as upgrading file acquisition method and apparatus |
CN104657184B (en) * | 2015-03-11 | 2018-09-28 | 成都广达新网科技股份有限公司 | A kind of file corresponds to the upgrade method of multi-embedding formula equipment |
CN105224359B (en) * | 2015-09-07 | 2019-01-29 | 西安诺瓦电子科技有限公司 | Program loading method |
CN105867985B (en) * | 2016-04-25 | 2018-12-21 | 广州路派电子科技有限公司 | A kind of method of vehicle-mounted decoder software upgrade file |
CN106201612B (en) * | 2016-07-07 | 2019-11-26 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN106250142A (en) * | 2016-07-29 | 2016-12-21 | 四川天邑康和通信股份有限公司 | A kind of software management platform and Oftware updating method |
CN108073404A (en) * | 2017-12-11 | 2018-05-25 | 北京奇虎科技有限公司 | A kind of loading method of service packs, method for packing and device |
CN108845817A (en) * | 2018-06-25 | 2018-11-20 | 宁波三星医疗电气股份有限公司 | A kind of method of managing software for electric power acquisition terminal |
CN112040162B (en) * | 2020-11-05 | 2021-02-26 | 深圳市阿达视高新技术有限公司 | Control method and control device for storing camera shooting video data and video acquisition equipment |
CN112925549A (en) * | 2021-03-09 | 2021-06-08 | 浙江合众新能源汽车有限公司 | System application upgrading system based on android frame |
CN114440389A (en) * | 2022-01-21 | 2022-05-06 | 佛山市钒音科技有限公司 | Air conditioner, method of upgrading the same, computer device, and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719072A (en) * | 2009-11-23 | 2010-06-02 | 青岛海信宽带多媒体技术有限公司 | Embedded type terminal equipment software upgrading method and upgrading device |
CN101882086A (en) * | 2010-06-29 | 2010-11-10 | 福建新大陆通信科技股份有限公司 | Method for organizing upgrade data of serial port of set top box |
CN102023876A (en) * | 2009-09-14 | 2011-04-20 | 漳州科能电器有限公司 | Embedded system capable of upgrading software on line and online upgrading method |
-
2011
- 2011-12-09 CN CN201110407127.1A patent/CN102567049B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023876A (en) * | 2009-09-14 | 2011-04-20 | 漳州科能电器有限公司 | Embedded system capable of upgrading software on line and online upgrading method |
CN101719072A (en) * | 2009-11-23 | 2010-06-02 | 青岛海信宽带多媒体技术有限公司 | Embedded type terminal equipment software upgrading method and upgrading device |
CN101882086A (en) * | 2010-06-29 | 2010-11-10 | 福建新大陆通信科技股份有限公司 | Method for organizing upgrade data of serial port of set top box |
Also Published As
Publication number | Publication date |
---|---|
CN102567049A (en) | 2012-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102567049B (en) | The upgrade method of embedded OS | |
CN101477471B (en) | Embedded system firmware on-line upgrading method | |
CN102388366B (en) | Method and device for realizing compatibility of different processors | |
CN100570558C (en) | A kind of chip firmware updating method | |
CN104572206A (en) | Application program self updating and backup recovery method | |
CN109358887B (en) | On-line upgrading method, device and system for single chip microcomputer program | |
CN105373407A (en) | DSP and FPGA online upgrading method for embedded system | |
CN103092647A (en) | Online upgrade method of embedded system | |
CN101815988A (en) | Firmware image update and management | |
CN102799437A (en) | Automatic generating method and device of compiling script | |
CN105760191A (en) | Embedded system equipment programming mass production method | |
CN104407878A (en) | On-line upgrading method of C6000 digital signal processor | |
CN102495736A (en) | Method and system for identifying software code svn version in executable file | |
WO2016078060A1 (en) | Multi-system terminal system updating method, updating device and terminal | |
CN103677915A (en) | Automatic burning method of flash mirror image based on TF starting card | |
CN112947977A (en) | Software online upgrading method and system | |
CN107566169A (en) | A kind of firmware upgrade method and router based on openwrt | |
CN109992287A (en) | A kind of firmware upgrade method, system, equipment and medium | |
CN104615471A (en) | System upgrading method and device for terminal | |
CN106020905A (en) | Microcontroller firmware developing and updating method and system | |
WO2015184732A1 (en) | Bootstrap storage method, bootstrap fault recovery method and device, and computer storage medium | |
CN106775919B (en) | State information control method and device | |
CN114138644A (en) | BMC (baseboard management controller) debugging method, monitoring method, system, device, equipment and medium | |
CN103645888A (en) | System and method for automatically building operation system | |
JP2008198060A (en) | Information processor, patch code mounting system, electronic equipment, and patch code mounting 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 | ||
CB02 | Change of applicant information |
Address after: 516006 Guangdong province Huizhou Zhongkai hi tech Industrial Development Zone Pearl River Road No. 1 Applicant after: HUIZHOU DESAY SV AUTOMOTIVE CO., LTD. Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Industrial Development Zone Pearl River Road No. 1 Applicant before: Huizhou Desay SV Auto. Electronics Co., Ltd. |
|
COR | Change of bibliographic data | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |