CN103186390A - Home gateway and software upgrading method thereof - Google Patents

Home gateway and software upgrading method thereof Download PDF

Info

Publication number
CN103186390A
CN103186390A CN2011104519413A CN201110451941A CN103186390A CN 103186390 A CN103186390 A CN 103186390A CN 2011104519413 A CN2011104519413 A CN 2011104519413A CN 201110451941 A CN201110451941 A CN 201110451941A CN 103186390 A CN103186390 A CN 103186390A
Authority
CN
China
Prior art keywords
home gateway
upgrading
upgrade
loader unit
loader
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
CN2011104519413A
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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN2011104519413A priority Critical patent/CN103186390A/en
Publication of CN103186390A publication Critical patent/CN103186390A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a home gateway and an upgrading method thereof. A bootloader module in the traditional gateway is divided into two parts, namely, a boot module and a loader module, wherein the loader module at least comprises a master loader unit and a backup loader unit so as to prevent home gateway unavailability caused by failed upgrade due to power interruption and other reasons in a gateway upgrading process.

Description

Home gateway and method for upgrading software thereof
Technical field
The present invention relates to a kind of home gateway and upgrade method thereof.
Background technology
Along with the attention of telecom operators to home business, home gateway is widelyd popularize as a kind of equipment that can carry various home business.Management and upgrade job to home gateway are the challenges that telecom operators face.Existing family gateway equipment starts the operating system by bootloader after powering up.Bootloader is after hardware system resets, the initialize routine of carrying out before the operation of application program master routine.Bootloader has the function that hardware initialization, software remap, download and upgrade application program from main frame usually.
Existing home gateway has only a fixing Bootloader module, and total system will guide startup by Bootloader.In case the Bootloader module is destroyed, system can not normally start.System might cause bootloader destroyed, thereby cause system normally to start owing to reasons such as outage or suspensions in escalation process.
The present invention has improved the upgrading module of present home gateway, has proposed a kind of home gateway with novel B ootloader module architectures, simultaneously in conjunction with this framework, has proposed a kind of new home gateway method for upgrading software.
Summary of the invention
An object of the present invention is to provide a kind of home gateway and upgrade method thereof, bootloader module in the existing gateway is divided into boot module and two parts of loader module, and comprise main loader unit and backup loader unit in the loader module at least, thereby avoid in the gateway escalation process owing to reasons such as outage cause upgrading the fail home gateway that causes is unavailable.
According to purpose of the present invention, a kind of home gateway at first is provided, comprise boot module and loader module, wherein, the boot module is used for guidance system, and it is to be solidificated in the memory storage of home gateway; The loader module is used for software upgrading, and it is stored in the memory storage of home gateway, can read and write.And the loader module comprises main loader unit and backup loader unit, and described main loader unit or backup loader unit are used for starting from main frame download and upgrade program, guidance system.Adopt this new structural design, can prevent when the upgrading loader program, in case accidents such as outage or suspension take place, cause the escalation process failure, thereby cause main loader unit internal program imperfect, the boot program can also guide backup loader to continue to load other programs, continues operate as normal.
As to further improvement of the present invention, in the embodiment that more optimizes, can also in the loader module, increase a manually upgrading unit, described manual upgrading unit is used for importing upgrade file, guidance system startup by the mode of external memorizer.This scheme can and back up under the situation about all being destroyed the loader unit in main loader unit, and the guiding user upgrades and recovery to the loader module by extrapolation USB flash disk or SD card.
According to purpose of the present invention, a kind of home gateway method for upgrading software also is provided simultaneously, may further comprise the steps: start the boot boot; The check system successful field of upgrading; If this field value is not, then whether verification backup loader unit is correct; If backup loader unit is correct, the content that then will back up the loader unit copies main loader unit to; Start main loader unit.
Said method is separately carried out boot program and loader program, thereby when running into system upgrade failure and cause situation that main loader destroys, program stored is recovered and is started main loader unit from backup loader unit, can improve the reliability of system upgrade to a certain extent.
As to further improvement of the present invention, in the embodiment that more optimizes, after starting the boot boot, at first check the value of auto-update field, if this field value is for being, illustrate that then to have one in main loader unit and the backup loader unit at least available, therefore can continue whether success of check system upgrading; If this field value illustrates that for not main loader unit and backup loader unit have all been destroyed, then need to start manual upgrading unit and manually upgrade.Like this, be provided with a manual upgrade step, be many one heavily to ensure on the basis of former scheme more.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of writing, claims and accompanying drawing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the structure of one of home gateway embodiment of the present invention;
Fig. 2 is the process flow diagram of one of home gateway method for upgrading software embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in restriction the present invention.
The present invention is divided into two parts according to the read-write properties of hardware with Bootloader, and a part is the most basic Boot module, is used for boot and starts, and this part is readable can not writing only; Another part is that this part both can read also can write for the Loader module of upgrading.Because Boot module itself can not be write, this part can not damaged, and the Loader module may can not meet the demands because of former function, need constantly upgrading or improvement and produce change, in case damage or newly downloaded Loader module have problem in the process of this module download and upgrade file, will cause system not upgrade, this may cause this system can't continue to use.The invention provides a kind of safer reliable Bootloader method, the home gateway among the present invention is designed to three Loader (also can be two loader), can recover from backup Loader when main Loader is ruined.If severely subnormal appears in system, cause active and standby loader all to damage, then the boot program can guide and start manually upgrading interface.At this moment, the user can finish the upgrading task by the mode of external USB flash disk or SD card.Below will be respectively structure embodiment and method for upgrading software embodiment by home gateway come the present invention is described in more detail.
As shown in Figure 1, be one of most preferred embodiment of home gateway, it comprises the boot module, and namely known guidance system module is used for guidance system, is solidificated in the memory storage of described home gateway.Because its read only attribute, this part can not destroyed in software upgrading.The loader module that is used for software upgrading then is divided into three parts (the middle layer part of Fig. 1): main loader unit, backup loader unit and the unit of manually upgrading.The loader module stores in the memory storage of described home gateway, common flash storer for example.Wherein, main loader unit or backup loader unit can start from main frame download and upgrade program, guidance system.The unit of manually upgrading then is used for importing upgrade file, guidance system startup by the mode of external memorizer (for example USB flash disk goods SD card etc.).On the loader in middle layer module, the application program of storage system then.
In the above-described embodiments, described home gateway is deposited the identical loader program of two parts at the different storage spaces of flash, and a manual upgrading unit, can guarantee that home gateway still can upgrade and loading system after the upgrading failure of meeting accident again.In other embodiments of the invention, also manual upgrading unit can be set, still can realize purpose of the present invention substantially.
As shown in Figure 2, be one of most preferred embodiment of home gateway method for upgrading software of the present invention, it may further comprise the steps:
10) start the boot boot;
After system starts, at first to start the boot boot.
20) check the auto-update field;
The auto-update field can be defined as Upgrade-Auto in system, this field represents that then this field value is for being if be set to true; Represent that then this field value is for denying if be set to false.If this field value represents then that for being (true) system is normal, can carry out auto-update, change step 30 over to); If it is all undesired that this field value for denying (false), is then represented the master loader of system and backed up the loader unit, therefore to start manual upgrading unit and manually upgrade.
30) the check system successful field of upgrading;
System upgrade success field may be defined as Upgrade_Success in system, this field is if be set to true, and namely this field value is for being to represent that then system upgrades successfully the last time; If be set to false, namely this field value is then represented the last upgrading failure of system for not.
40) if this field value is not, then whether verification backup loader unit is correct;
Whether this field value illustrates last upgrading failure for not, and main loader unit can't start, therefore need verification backup loader unit available.
50) if backup loader unit is correct, the content that then will back up the loader unit copies main loader unit to;
Destroyed in main loader unit and backed up the loader unit still under the available situation, can recover main loader unit by backup loader unit, thereby main loader unit can normally be started.
51) if backup loader unit makes a mistake, it is not that the auto-update field then is set, and restarting systems;
If backing up the loader unit also makes a mistake, then illustrative system can't be realized auto-update, therefore need restarting systems, the auto-update field is set to not simultaneously, so that can judge whether to need to start manually upgrading unit by this field after the system restart.
60) start main loader unit;
By step 50), main loader is recovered the unit normally then can be started as usual.
70) check system upgrade field;
The system upgrade field may be defined as Need_Upgrade in system, this field value is when being (true), and the expression system needs upgrading, and this field value does not represent then that for not (false) system does not need upgrading.
80) if this field value for being, is then carried out ROMPaq, the successful field value of upgrading simultaneously is set to not;
If the system upgrade field value is true, then carry out ROMPaq immediately, the Upgrade_Success field value is set to false simultaneously, in case system upgrade is failed then can reservation record like this.
90) if the system upgrade success, then the content with main loader unit copies backup loader unit to, and the value of system upgrade field (Need_Upgrade) is set to not (false), and it is (true) that the value of the successful field of upgrading simultaneously (Upgrade_Success) is set to.If the system upgrade failure then needs restarting systems.
81) if the system upgrade field value is not, then guiding application program starts.
If this field is false, represent that then system does not temporarily need upgrading, can normally start application program.
91) real-time monitoring system upgrade information until when the system of detecting need upgrade, arranges the value of system upgrade field for being.
System is normal start after, can adopt round-robin algorithm constantly to monitor the system upgrade information of automatic network, in case the system that detects needs upgrading, then the Need_Upgrade field is set to true, so that system carries out software upgrading when starting next time.
The most preferred embodiment of home gateway method for upgrading software of the present invention has below been described by reference to the accompanying drawings.Wherein, step 10) and 30) can form an embodiment separately to 60, also can realize purpose of the present invention substantially, namely as main loader since the upgrading failure when unavailable, can recover and normal the startup by backup loader.Another embodiment of home gateway method for upgrading software can comprise step 10) to 60), it can be further under the situation that main loader and backup loader are all destroyed, realize system upgrade by manual upgrading unit, further improved the reliability of system upgrade.
In addition, those skilled in the art will be understood that step 70) value 91) as the optional step of home gateway method for upgrading software, can make up with other embodiment in other embodiments of the invention, thereby produce the multiple technologies scheme, just give unnecessary details no longer one by one at this.
Should be noted that at last the alleged home gateway of the present invention can be any home gateway, especially set-top box of the prior art.

Claims (11)

1. a home gateway is characterized in that, comprising:
Be used for the boot module of guidance system, be solidificated in the memory storage of described home gateway;
The loader module that is used for software upgrading, be stored in read-write mode in the memory storage of described home gateway, wherein, described loader module comprises main loader unit and backup loader unit, and described main loader unit or backup loader unit are used for starting from main frame download and upgrade program, guidance system.
2. home gateway as claimed in claim 1 is characterized in that, described loader module also comprises manual upgrading unit, and described manual upgrading unit is used for importing upgrade file, guidance system startup by the mode of external memorizer.
3. home gateway as claimed in claim 1 is characterized in that, described memory storage is the flash storer.
4. as each described home gateway in the claim 1~3, it is characterized in that described home gateway is set-top box.
5. a home gateway method for upgrading software is characterized in that, may further comprise the steps:
10) start the boot boot;
30) the check system successful field of upgrading;
40) if this field value is not, then whether verification backup loader unit is correct;
50) if backup loader unit is correct, the content that then will back up the loader unit copies main loader unit to;
60) start main loader unit.
6. method as claimed in claim 5 is characterized in that, and is further comprising the steps of after step 10):
20) check the auto-update field, if this field value is for being then to change step 30 over to); If this field value then starts the unit of manually upgrading and manually upgrades for not.
7. want 6 described methods as right, it is characterized in that step 40) further comprising the steps of afterwards:
51) if backup loader unit makes a mistake, it is not that the auto-update field then is set, and restarting systems.
8. method as claimed in claim 5 is characterized in that, and is further comprising the steps of:
70) check system upgrade field;
80) if this field value for being, is then carried out ROMPaq, and the successful field value of upgrading is set to not;
90) restarting systems if system upgrade is failed; If upgrade successfully, then the content of main loader unit is copied to backup loader unit, and the value of system upgrade field is set to not, the value of the successful field of upgrading simultaneously be set to be.
9. method as claimed in claim 8 is characterized in that step 70) further comprising the steps of afterwards:
81) if the system upgrade field value is not, then guiding application program starts.
10. method as claimed in claim 9 is characterized in that step 81) further comprising the steps of afterwards:
91) real-time monitoring system upgrade information when the system of detecting need upgrade, arranges the system upgrade field value for being.
11., it is characterized in that described home gateway is set-top box as each described method of claim 5~10.
CN2011104519413A 2011-12-29 2011-12-29 Home gateway and software upgrading method thereof Pending CN103186390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104519413A CN103186390A (en) 2011-12-29 2011-12-29 Home gateway and software upgrading method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104519413A CN103186390A (en) 2011-12-29 2011-12-29 Home gateway and software upgrading method thereof

Publications (1)

Publication Number Publication Date
CN103186390A true CN103186390A (en) 2013-07-03

Family

ID=48677568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104519413A Pending CN103186390A (en) 2011-12-29 2011-12-29 Home gateway and software upgrading method thereof

Country Status (1)

Country Link
CN (1) CN103186390A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117255A (en) * 2015-08-28 2015-12-02 青岛中星微电子有限公司 Boot method and apparatus for BootLoader program
CN106303709A (en) * 2016-08-01 2017-01-04 深圳市创维软件有限公司 A kind of Set Top Box and application program updating method, system
CN106775674A (en) * 2016-11-29 2017-05-31 深圳市恒扬数据股份有限公司 A kind of equipment and its startup method based on universal guiding loading procedure
CN106933641A (en) * 2017-05-16 2017-07-07 江苏新安电器有限公司 A kind of scm software is from upgrade method and system
CN107301070A (en) * 2017-06-20 2017-10-27 福州汇思博信息技术有限公司 A kind of upgrade method and terminal
CN107707467A (en) * 2017-10-23 2018-02-16 华东交通大学 Intelligent gateway device and its firmware upgrade method based on SD card upgrading
CN107967148A (en) * 2017-11-24 2018-04-27 上海市共进通信技术有限公司 The method for avoiding causing household gateway update to malfunction since self-check program version is out-of-date
CN113124827A (en) * 2019-12-31 2021-07-16 西安航天华迅科技有限公司 Product attitude measurement system
CN113726619A (en) * 2021-10-08 2021-11-30 亿次网联(杭州)科技有限公司 Family cloud server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1624373A1 (en) * 2004-08-06 2006-02-08 Telsey S.p.A. Method and system for updating software of a communication apparatus in a broadband network
CN101281469A (en) * 2008-04-11 2008-10-08 青岛海信电器股份有限公司 Embedded type system and start-up load application method
CN101567962A (en) * 2009-04-24 2009-10-28 福建新大陆通信科技有限公司 Double-Loader updating method for set-top box
CN101714093A (en) * 2009-12-01 2010-05-26 福建新大陆通信科技有限公司 Three-section type double-backup Loader upgrading method of set-top box
CN102243592A (en) * 2011-07-01 2011-11-16 南京熊猫信息产业有限公司 Method and set top box for realizing multiple upgrading ways in Loader system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1624373A1 (en) * 2004-08-06 2006-02-08 Telsey S.p.A. Method and system for updating software of a communication apparatus in a broadband network
CN101281469A (en) * 2008-04-11 2008-10-08 青岛海信电器股份有限公司 Embedded type system and start-up load application method
CN101567962A (en) * 2009-04-24 2009-10-28 福建新大陆通信科技有限公司 Double-Loader updating method for set-top box
CN101714093A (en) * 2009-12-01 2010-05-26 福建新大陆通信科技有限公司 Three-section type double-backup Loader upgrading method of set-top box
CN102243592A (en) * 2011-07-01 2011-11-16 南京熊猫信息产业有限公司 Method and set top box for realizing multiple upgrading ways in Loader system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117255A (en) * 2015-08-28 2015-12-02 青岛中星微电子有限公司 Boot method and apparatus for BootLoader program
CN106303709B (en) * 2016-08-01 2019-04-16 深圳市创维软件有限公司 A kind of set-top box and its application program updating method, system
CN106303709A (en) * 2016-08-01 2017-01-04 深圳市创维软件有限公司 A kind of Set Top Box and application program updating method, system
WO2018024198A1 (en) * 2016-08-01 2018-02-08 深圳市创维软件有限公司 Application upgrade method and system for set-top box, and set-top box
CN106775674A (en) * 2016-11-29 2017-05-31 深圳市恒扬数据股份有限公司 A kind of equipment and its startup method based on universal guiding loading procedure
CN106775674B (en) * 2016-11-29 2020-06-05 深圳市恒扬数据股份有限公司 Equipment based on universal boot loader and starting method thereof
CN106933641A (en) * 2017-05-16 2017-07-07 江苏新安电器有限公司 A kind of scm software is from upgrade method and system
CN107301070A (en) * 2017-06-20 2017-10-27 福州汇思博信息技术有限公司 A kind of upgrade method and terminal
CN107301070B (en) * 2017-06-20 2020-09-29 福州汇思博信息技术有限公司 Upgrading method and terminal
CN107707467A (en) * 2017-10-23 2018-02-16 华东交通大学 Intelligent gateway device and its firmware upgrade method based on SD card upgrading
CN107967148A (en) * 2017-11-24 2018-04-27 上海市共进通信技术有限公司 The method for avoiding causing household gateway update to malfunction since self-check program version is out-of-date
CN113124827A (en) * 2019-12-31 2021-07-16 西安航天华迅科技有限公司 Product attitude measurement system
CN113726619A (en) * 2021-10-08 2021-11-30 亿次网联(杭州)科技有限公司 Family cloud server

Similar Documents

Publication Publication Date Title
CN103186390A (en) Home gateway and software upgrading method thereof
US7174547B2 (en) Method for updating and restoring operating software in an active region of a network element
US9146839B2 (en) Method for pre-testing software compatibility and system thereof
CN109189860A (en) A kind of active and standby increment synchronization method of MySQL based on Kubernetes system
US9541980B2 (en) Operation management device, operation management method, and recording medium
CN112380062A (en) Method and system for rapidly recovering system for multiple times based on system backup point
WO2016078060A1 (en) Multi-system terminal system updating method, updating device and terminal
CN104915226A (en) Network device software starting method, device and network device
WO2022094855A1 (en) Firmware upgrade method and electronic device
US20120102358A1 (en) Server having memory dump function and memory dump acquisition method
CN110502264A (en) Method for upgrading system, terminal and readable storage medium storing program for executing
CN101196839A (en) Data renovation and synchronization process of double-flash read-only memory
US20100274758A1 (en) Data processing method, computer, and data processing program
US9092396B2 (en) Standby system device, a control method, and a program thereof
CN113032183A (en) System management method, device, computer equipment and storage medium
CN109117162A (en) A kind of multisystem upgrade method based on Hypervisor
CN114035831B (en) CPLD upgrading method, system and computer readable storage medium
CN111427718B (en) File backup method, file recovery method and file recovery device
US9158666B2 (en) Computer system and computer system information storage method
CN115509815A (en) Method and device for protecting data in server
US20160004607A1 (en) Information processing apparatus and information processing method
CN108958769A (en) A kind of embedded device software systems restorative procedure and system
WO2014024279A1 (en) Memory failure recovery device, method, and program
CN114217905A (en) High-availability recovery processing method and system for virtual machine
CN112328429A (en) Hard disk snapshot method and device based on Openstack

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130703

RJ01 Rejection of invention patent application after publication