CN102243594A - Method for safely and remotely upgrading embedded Linux system software - Google Patents

Method for safely and remotely upgrading embedded Linux system software Download PDF

Info

Publication number
CN102243594A
CN102243594A CN2011102099906A CN201110209990A CN102243594A CN 102243594 A CN102243594 A CN 102243594A CN 2011102099906 A CN2011102099906 A CN 2011102099906A CN 201110209990 A CN201110209990 A CN 201110209990A CN 102243594 A CN102243594 A CN 102243594A
Authority
CN
China
Prior art keywords
upgrading
software
upgrade
upgraded
over
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.)
Pending
Application number
CN2011102099906A
Other languages
Chinese (zh)
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.)
CHONGQING DATA TECHNOLOGY Co Ltd
Original Assignee
CHONGQING DATA TECHNOLOGY 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 CHONGQING DATA TECHNOLOGY Co Ltd filed Critical CHONGQING DATA TECHNOLOGY Co Ltd
Priority to CN2011102099906A priority Critical patent/CN102243594A/en
Publication of CN102243594A publication Critical patent/CN102243594A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for upgrading Linux system software in the field of computers, aiming at providing a method for safely and remotely upgrading an embedded Linux system software so as to solve the problem that multi-terminal software is inconvenient to maintain in the prior art and solving the problem that a fault is difficult to eliminate during upgrading. The method comprises the following steps of: downloading an upgrading file to the client from a distal upgrading center, writing the upgrading software into a backup region equative to the original storage region of software to be upgraded, modifying a start location of the software to be upgraded to be the backup region, setting the upgrading flag to be upgraded, and then restarting a system; checking the upgrading tag, if the upgrading flag is not upgraded, starting the software to be upgraded in the original storage region of the software to be upgraded; if the upgrading tag is upgraded, setting the upgrading tag to be upgraded, and then reporting an upgrading center that upgrading is successful. By adopting the scheme, remote upgrading on multiple clients can be realized, and the problem that the fault is difficult to eliminate once the fault is caused in the background art can be solved.

Description

A kind of method of embedded Linux system software safety long-distance upgrading
Technical field
The present invention relates to the upgrading way of linux system software in the computer realm, comprise the upgrade method of system software, file system and application software.
Background technology
The linux software systems comprise linux kernel and file system and application software.Kernel and file system are together upgraded, and application software is upgraded separately.
Software systems need be supported long-time maintenance, the many and widespread situation at the embedded device product, and it is extremely inconvenient to carry out field maintemance one by one.
Software systems produce fortuitous event and cause upgrading unsuccessful in carrying out escalation process, equipment can't normally move, the difficult upstate that recovers.
Summary of the invention
The invention is intended to provide a kind of method of embedded Linux system software safety long-distance upgrading,, also will solve the difficult problem of recovering when upgrade failure simultaneously to solve the problem of multiple terminals software maintenance inconvenience in the prior art.
Purpose of the present invention can reach by following measure: a kind of method of embedded Linux system software safety long-distance upgrading may further comprise the steps:
One, from the equipment upgrade center download and upgrade file of far-end to described client, described upgrade software is write and is upgraded the backup area of the former memory block of software peer, the enable position that modification is upgraded software is described backup area, described upgrading zone bit is set for upgrading, and system restarts then;
Two, check the upgrading zone bit,, be upgraded software from being upgraded software former memory block startup if the upgrading zone bit is not upgrading; If described upgrading zone bit is for upgrading, then it is set to not upgrade, and reports that then equipment upgrade center upgrades successfully, jumps out whole upgrade step then.
In such scheme, adopt mode communications such as cable or radio to be connected between described equipment upgrade center and client, equipment upgrade center and client are the computer system that possesses necessary hardware configuration.
Comprised the renewal version that is upgraded software in the described equipment upgrade center, client is obtained the descriptor of software upgrading from equipment upgrade center, and the comparison of descriptor and institute's saved software descriptor by software upgrading determines whether this software can upgrade.
After upgrading successfully, also need described backup area is labeled as new former memory block, simultaneously described former memory block is labeled as new backup area, prevents from when updating operation next time, directly upgrade file to be write current former memory block of using, cause unnecessary trouble.
Such scheme has been realized the remote upgrade of multi-client, only needs to get final product by the teleinstruction of equipment upgrade center the batch upgrade of multi-client; And upgrade file can directly not cover the former memory block of using when upgrading, just be identified as new former memory block after only in backup area, moving successfully, finish upgrade step, can use the software in the backup area to save when in escalation process, accident occurring, avoid in a single day upgrading in the background technology and made mistakes with regard to the problem that is difficult to recover.
Further: the described software that is upgraded comprises the linux application program, and in described step 1 in the safety long-distance escalation process of linux application program: described " described upgrade software being write and is upgraded the backup area of the former memory block of software peer " is " backup area that described upgrade software is write and is upgraded the former memory block of software catalogue at the same level ";
In described step 2 in the safety long-distance escalation process of linux application program: if described upgrading zone bit is then deleted the application program of described former memory block for upgrading.
The effect of this programme is: formulated more detailed scheme at the upgrading of linux application program, realized the technique effect same with first scheme, " described upgrade software is write and is upgraded the backup area of the former memory block of software catalogue at the same level " and define the writing position of upgrade file, unlikely confusion when multiple utility program is upgraded is convenient to management; And the application program of the described former memory block of deletion after upgrading is finished, the application program that meaning is promptly deleted legacy version has been saved storage space, avoids the confusion of follow-up management.
Further: the described software that is upgraded comprises linux kernel and linux file system,
Further comprising the steps of behind the safety long-distance escalation process of linux kernel and linux file system in described step 2:
A, restart the back and check the upgrading zone bit, if for upgrading then change step B over to, if for upgrading then change step C over to;
B, check the upgrade status position,,, upgrade successfully then change step B3 over to if be if for upgrading then change step B2 over to if for upgrading then change step B1 over to;
B1, the updating result position is set is upgrading failure, the upgrading zone bit is set is upgrading, the change kernel starts and the position of file system loading is described former memory block, changes step C over to;
B2, the upgrade status position is set for upgrading, the updating result position is set for upgrading, the change kernel starts and the position of file system loading is described backup area, changes step C over to;
B3, the upgrading zone bit is set, changes step C over to for upgrading;
C, startup kernel and load document system then change steps A over to as starting failure;
D, check the updating result position,,, upgrade to fail then change step D3 over to if be if for upgrading then change step D2 over to if for upgrade successfully then change step D1 over to;
D1, the upgrade status position is set for to upgrade successfully, the updating result position is set for upgrading, described backup area is labeled as new former memory block, described former memory block is labeled as new backup area, the report equipment upgrade center is upgraded successfully;
D2, jump out whole upgrade step;
D3, the updating result position is set is upgrading, the report equipment upgrade center is upgraded successfully.
Described upgrade status position, updating result position and upgrading zone bit are the variable that is used to judge each state in the storage space.
The effect of this programme is: formulated more detailed scheme at the upgrading of linux kernel and linux file system, realized the technique effect same with first scheme, the perfect judgement of upgrade status in the escalation process making upgrading become safer, has avoided the generation of mistake.
Description of drawings
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments:
Fig. 1 is the kernel of linux system in the embodiment of the invention and the synoptic diagram of file system upgrading flow process.
Embodiment
In the present embodiment, comprised upgrading flow process to kernel, file system and application program in the linux system client.
Equipment upgrade center is made up of the several station servers in the standard machine room, and client is the PC of linux system independently, and client is connected with equipment upgrade center by cable.
At first be the upgrading of carrying out linux kernel and linux file system, as shown in Figure 1:
A, restart the back and check the upgrading zone bit, if for upgrading then change step B over to, if for upgrading then change step C over to;
B, check the upgrade status position,,, upgrade successfully then change step B3 over to if be if for upgrading then change step B2 over to if for upgrading then change step B1 over to;
B1, the updating result position is set is upgrading failure, the upgrading zone bit is set is upgrading, the change kernel starts and the position of file system loading is described former memory block, changes step C over to;
B2, the upgrade status position is set for upgrading, the updating result position is set for upgrading, the change kernel starts and the position of file system loading is described backup area, changes step C over to;
B3, the upgrading zone bit is set, changes step C over to for upgrading;
C, startup kernel and load document system then change steps A over to as starting failure;
D, check the updating result position,,, upgrade to fail then change step D3 over to if be if for upgrading then change step D2 over to if for upgrade successfully then change step D1 over to;
D1, the upgrade status position is set for to upgrade successfully, the updating result position is set for upgrading, described backup area is labeled as new former memory block, described former memory block is labeled as new backup area, the report equipment upgrade center is upgraded successfully;
D2, jump out whole upgrade step;
D3, the updating result position is set is upgrading, the report equipment upgrade center is upgraded successfully.
Carry out the upgrading of linux application program then:
One, from the equipment upgrade center download and upgrade file of far-end to described client, described upgrade software is write and is upgraded the backup area of the former memory block of software catalogue at the same level, the enable position that modification is upgraded software is described backup area, described upgrading zone bit is set for upgrading, system restarts then;
Two, check the upgrading zone bit,, be upgraded software from being upgraded software former memory block startup if the upgrading zone bit is not upgrading; If described upgrading zone bit is for upgrading, then it is set to not upgrade, and deletes the application program of described former memory block, reports that then equipment upgrade center upgrades successfully, jumps out whole upgrade step then.
Above-described only is preferred implementation of the present invention; should be understood that; for a person skilled in the art; under the prerequisite that does not break away from structure of the present invention; can also make some distortion and improvement; these also should be considered as protection scope of the present invention, and these can not influence effect of the invention process and practical applicability.

Claims (3)

1. the method for embedded Linux system software safety long-distance upgrading is characterized in that may further comprise the steps:
From the equipment upgrade center download and upgrade file of far-end to described client, described upgrade software is write and is upgraded the backup area of the former memory block of software peer, the enable position that modification is upgraded software is described backup area, described upgrading zone bit is set for upgrading, and system restarts then;
Check the upgrading zone bit,, be upgraded software from being upgraded software former memory block startup if the upgrading zone bit is not upgrading; If described upgrading zone bit is for upgrading, then it is set to not upgrade, and reports that then equipment upgrade center upgrades successfully, jumps out whole upgrade step then.
2. the method for embedded Linux system software safety long-distance upgrading according to claim 1, it is characterized in that: the described software that is upgraded comprises the linux application program,
In described step 1 in the safety long-distance escalation process of linux application program: described " described upgrade software being write and is upgraded the backup area of the former memory block of software peer " is " backup area that described upgrade software is write and is upgraded the former memory block of software catalogue at the same level ";
In described step 2 in the safety long-distance escalation process of linux application program: if described upgrading zone bit is then deleted the application program of described former memory block for upgrading.
3. the method for embedded Linux system software safety long-distance upgrading according to claim 1 and 2, it is characterized in that: the described software that is upgraded comprises linux kernel and linux file system,
Further comprising the steps of behind the safety long-distance escalation process of linux kernel and linux file system in described step 2:
A, restart the back and check the upgrading zone bit, if for upgrading then change step B over to, if for upgrading then change step C over to;
B, check the upgrade status position,,, upgrade successfully then change step B3 over to if be if for upgrading then change step B2 over to if for upgrading then change step B1 over to;
B1, the updating result position is set is upgrading failure, the upgrading zone bit is set is upgrading, the change kernel starts and the position of file system loading is described former memory block, changes step C over to;
B2, the upgrade status position is set for upgrading, the updating result position is set for upgrading, the change kernel starts and the position of file system loading is described backup area, changes step C over to;
B3, the upgrading zone bit is set, changes step C over to for upgrading;
C, startup kernel and load document system then change steps A over to as starting failure;
D, check the updating result position,,, upgrade to fail then change step D3 over to if be if for upgrading then change step D2 over to if for upgrade successfully then change step D1 over to;
D1, the upgrade status position is set for to upgrade successfully, the updating result position is set for upgrading, described backup area is labeled as new former memory block, described former memory block is labeled as new backup area, the report equipment upgrade center is upgraded successfully;
D2, jump out whole upgrade step;
D3, the updating result position is set is upgrading, the report equipment upgrade center is upgraded successfully.
CN2011102099906A 2011-07-26 2011-07-26 Method for safely and remotely upgrading embedded Linux system software Pending CN102243594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102099906A CN102243594A (en) 2011-07-26 2011-07-26 Method for safely and remotely upgrading embedded Linux system software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102099906A CN102243594A (en) 2011-07-26 2011-07-26 Method for safely and remotely upgrading embedded Linux system software

Publications (1)

Publication Number Publication Date
CN102243594A true CN102243594A (en) 2011-11-16

Family

ID=44961665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102099906A Pending CN102243594A (en) 2011-07-26 2011-07-26 Method for safely and remotely upgrading embedded Linux system software

Country Status (1)

Country Link
CN (1) CN102243594A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684777A (en) * 2012-06-14 2012-09-19 青岛海信宽带多媒体技术有限公司 Optical module and initialization method and device thereof
CN102984572A (en) * 2012-12-10 2013-03-20 四川九洲电器集团有限责任公司 Double backup method for system software upgrade of set top box
CN103106092A (en) * 2013-02-18 2013-05-15 青岛海信宽带多媒体技术有限公司 System software updating method and device in terminal appliance
CN103123586A (en) * 2011-11-17 2013-05-29 英业达股份有限公司 Upgrade device based on Linux embedded operating system and method
CN103840964A (en) * 2012-11-27 2014-06-04 中国科学院沈阳自动化研究所 Data collection communication system and upgrade method
CN104915226A (en) * 2015-05-21 2015-09-16 北京星网锐捷网络技术有限公司 Network device software starting method, device and network device
CN105049633A (en) * 2015-08-18 2015-11-11 深圳市中兴物联科技有限公司 Communication module upgrading method and communication module upgrading device
CN105138430A (en) * 2015-08-24 2015-12-09 浪潮集团有限公司 Embedded operating system backup and restoration method and device
CN105975322A (en) * 2016-06-15 2016-09-28 珠海格力电器股份有限公司 Device and method for program update and microcontroller
CN106648768A (en) * 2016-12-09 2017-05-10 福建三元达网络技术有限公司 Method and system for upgrading equipment
CN107168734A (en) * 2017-04-27 2017-09-15 纳瓦电子(上海)有限公司 A kind of embedded system upgrading backup method
CN111258812A (en) * 2020-01-10 2020-06-09 成都千立网络科技有限公司 Terminal access equipment fault recovery system based on linux kernel
CN112286551A (en) * 2020-10-22 2021-01-29 广州华欣电子科技有限公司 Firmware upgrading error correction method and control device of touch equipment
CN113535255A (en) * 2021-06-07 2021-10-22 山东泰物信息技术有限公司 Method for asynchronously updating embedded linux firmware based on cryptographic algorithm
CN116719549A (en) * 2023-08-02 2023-09-08 麒麟软件有限公司 Novel Linux operating system lossless upgrading method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7523340B2 (en) * 2006-05-31 2009-04-21 Microsoft Corporation Support self-heal tool
CN102073517A (en) * 2009-11-23 2011-05-25 中兴通讯股份有限公司 Upgrading and backup method and device for embedded system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7523340B2 (en) * 2006-05-31 2009-04-21 Microsoft Corporation Support self-heal tool
CN102073517A (en) * 2009-11-23 2011-05-25 中兴通讯股份有限公司 Upgrading and backup method and device for embedded system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NABA BARKAKATI等: "《Red Hat LINUX核心技术精解(第二版)》", 31 October 1999, article "2.5 本章小结" *
尹恒等: "一种针对嵌入式远程升级安全的存储解决方案", 《计算机应用》, vol. 31, no. 4, 30 April 2011 (2011-04-30) *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123586A (en) * 2011-11-17 2013-05-29 英业达股份有限公司 Upgrade device based on Linux embedded operating system and method
CN102684777A (en) * 2012-06-14 2012-09-19 青岛海信宽带多媒体技术有限公司 Optical module and initialization method and device thereof
CN103840964A (en) * 2012-11-27 2014-06-04 中国科学院沈阳自动化研究所 Data collection communication system and upgrade method
CN102984572A (en) * 2012-12-10 2013-03-20 四川九洲电器集团有限责任公司 Double backup method for system software upgrade of set top box
CN103106092A (en) * 2013-02-18 2013-05-15 青岛海信宽带多媒体技术有限公司 System software updating method and device in terminal appliance
CN104915226B (en) * 2015-05-21 2018-12-14 北京星网锐捷网络技术有限公司 A kind of network device software starting method, apparatus and the network equipment
CN104915226A (en) * 2015-05-21 2015-09-16 北京星网锐捷网络技术有限公司 Network device software starting method, device and network device
CN105049633A (en) * 2015-08-18 2015-11-11 深圳市中兴物联科技有限公司 Communication module upgrading method and communication module upgrading device
CN105138430A (en) * 2015-08-24 2015-12-09 浪潮集团有限公司 Embedded operating system backup and restoration method and device
CN105975322A (en) * 2016-06-15 2016-09-28 珠海格力电器股份有限公司 Device and method for program update and microcontroller
CN106648768A (en) * 2016-12-09 2017-05-10 福建三元达网络技术有限公司 Method and system for upgrading equipment
CN107168734A (en) * 2017-04-27 2017-09-15 纳瓦电子(上海)有限公司 A kind of embedded system upgrading backup method
CN111258812A (en) * 2020-01-10 2020-06-09 成都千立网络科技有限公司 Terminal access equipment fault recovery system based on linux kernel
CN112286551A (en) * 2020-10-22 2021-01-29 广州华欣电子科技有限公司 Firmware upgrading error correction method and control device of touch equipment
CN112286551B (en) * 2020-10-22 2024-01-09 广州华欣电子科技有限公司 Firmware upgrading error correction method and control device of touch equipment
CN113535255A (en) * 2021-06-07 2021-10-22 山东泰物信息技术有限公司 Method for asynchronously updating embedded linux firmware based on cryptographic algorithm
CN116719549A (en) * 2023-08-02 2023-09-08 麒麟软件有限公司 Novel Linux operating system lossless upgrading method
CN116719549B (en) * 2023-08-02 2023-11-28 麒麟软件有限公司 Novel Linux operating system lossless upgrading method

Similar Documents

Publication Publication Date Title
CN102243594A (en) Method for safely and remotely upgrading embedded Linux system software
CN103207791B (en) Remote upgrade method, system and data terminal
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
CN102662798A (en) Data recovery method and terminal for Android system
US10880404B2 (en) On-vehicle control device and on-vehicle control device information update system
CN103488498A (en) Computer booting method and computer
CN104750515A (en) Firmware version upgrading method and system
TWI533216B (en) Operating system updating method
CN111078471B (en) System fault recovery method and device for display device and computer storage medium
CN1976517B (en) Mobile terminal
CN103036706A (en) Local processing method of application upgrading abnormity
CN105573864A (en) Terminal system recovery method and system thereof
CN105517015A (en) Upgrading method, device of wifi product by over the air OTA and terminal
CN102163167A (en) Method and device for rescuing system
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
CN103713925A (en) Method and device for avoiding service interruption of storage array in upgrading process
CN103297950A (en) Method for backing up and recovering call records remotely
CN104951348B (en) A kind of interruptable recovery upgrade method and device
CN102333240A (en) Set-top box and online upgrade method thereof
CN103092720A (en) Core processing device used for vehicular terminal and restoring method for core processing device
CN104391720A (en) Rearview mirror box upgrading method based on Android system and rearview mirror box
WO2012016409A1 (en) Terminal upgrade method, terminal upgrade downgrade method and upgrade management center
CN103235703B (en) Preset resource storage method and apparatus
CN110045969B (en) Application program installation method, server, system, device and storage medium
CN107396185B (en) Upgrading method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111116