CN101834976B - Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology - Google Patents

Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology Download PDF

Info

Publication number
CN101834976B
CN101834976B CN2009101126631A CN200910112663A CN101834976B CN 101834976 B CN101834976 B CN 101834976B CN 2009101126631 A CN2009101126631 A CN 2009101126631A CN 200910112663 A CN200910112663 A CN 200910112663A CN 101834976 B CN101834976 B CN 101834976B
Authority
CN
China
Prior art keywords
loading bin
upgrading
rompaq
program
main program
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
CN2009101126631A
Other languages
Chinese (zh)
Other versions
CN101834976A (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.)
Fujian Newland Communication Science Technology Co Ltd
Original Assignee
Fujian Newland Communication Science 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 Fujian Newland Communication Science Technology Co Ltd filed Critical Fujian Newland Communication Science Technology Co Ltd
Priority to CN2009101126631A priority Critical patent/CN101834976B/en
Publication of CN101834976A publication Critical patent/CN101834976A/en
Application granted granted Critical
Publication of CN101834976B publication Critical patent/CN101834976B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method for starting and upgrading a set-top box by using three-stage guiding, upgrading and starting technology. In the method, a directing starting loader, an upgrading loader and a backup upgrading loader are utilized to start and upgrade the set-top box, wherein the directing starting loader is used for directing, monitoring and processing the whole upgrading process; the upgrading loader is used for judging upgrading information, performing corresponding upgrading processing according to judgment results and simultaneously recovering the backup upgrading loader which is damaged; and the backup upgrading loader is used for recovering the upgrading loader which is damaged. The method has the advantage of ensuring that a normal state can be automatically recovered when anomaly appears in the upgrading process so as to finish the starting and upgrading process.

Description

Use the STB of 3 stage directing starting and upgradings technology to start and upgrade method
[technical field]
The present invention relates to a kind of method of startup and upgrading of DTV STB, particularly relate to the upgrade method that code compaction starts and be with the use 3loader technology (3 stage directing starting and upgradings are technological) of self-recovering function.
[background technology]
Because the needs of the new application that the user is a large amount of; The value-added service of CATV set-top-box constantly increases; Therefore the requirement of radio and television operator upgrading has been arranged, and the supplier as STB can release new software in order to solve the software bug that has found, therefore simultaneously; The upgrade requirement of STB is more and more, guarantees that the safety of upgrading also becomes more and more important.Simultaneously on the basis of original hardware; Because the continuous increase of using, cause original hardware store cell capability can not satisfy the needs of new application, under the condition of not changing hardware; Use the software compress mode with conserve storage, reach the purpose of upgrade application.
Existing upgrading mode is generally used one way preface loading bin (being loader); And the guiding part that starts and the same program loading bin of the partial common program of upgrading; If so STB power down or occur that other are unusual in the process of ROMPaq loading bin program self will make program loading bin program be destroyed, STB can't start; And not having other method to come recovery system, the result personnel that need repairing change STB to the doorstep and just can normally use.Simultaneously under increasing application requirements, original hardware store unit can't satisfy the requirement of present upgrading, and causing can't the upgrading set top box function, like the STB that need use new function more to renew, makes troubles for user and radio and television operator.
[summary of the invention]
The technical problem that the present invention will solve; Be to provide a kind of use 3loader (3 stage directing starting and upgradings technology) technology to carry out STB and start and upgrade method; Guarantee in the process of upgrading, to run into the normal condition that unusual condition can both recover automatically, start and escalation process to accomplish.
The present invention is achieved in that a kind of STB of use 3 stage directing starting and upgradings technology starts and upgrade method, and it is to use a Bootstrap Commissioning Program loading bin, a ROMPaq loading bin and a backup upgrading program loading bin to carry out the startup and the upgrading of STB main program; Said Bootstrap Commissioning Program loading bin: be used for guiding, monitoring and processing to whole upgrade process; Said ROMPaq loading bin: be used for upgrade information is judged, and carry out corresponding upgrading processing, be used for simultaneously to the recovery of said backup upgrading program loading bin when being destroyed according to judged result; Said backup upgrading program loading bin: be used for to the recovery of said ROMPaq loading bin when being destroyed.
The present invention has following advantage: guarantee in the process of upgrading no matter what situation occurs; The normal condition that can both recover automatically after the ROMPaq loading bin is destroyed; After the upgrading failure, can upgrade again automatically, the normal upgrading of assurance needs, when the new application of upgrading; More new the application can be on the basis that does not increase original hardware memory space, supported, and hardware needn't be changed.
[description of drawings]
Combine embodiment that the present invention is further described with reference to the accompanying drawings.
Fig. 1 is the structured flowchart of STB startup of the present invention and upgrade method.
Fig. 2 is the realization flow block diagram of the Bootstrap Commissioning Program loading bin in STB startup of the present invention and the upgrade method.
Fig. 3 be STB of the present invention start and upgrade method in ROMPaq loading bin and the realization flow block diagram of backup upgrading program loading bin.
[embodiment]
Seeing also shown in Figure 1ly, is that STB of the present invention starts and upgrade method, is to use a Bootstrap Commissioning Program loading bin, a ROMPaq loading bin and a backup upgrading program loading bin to carry out the startup and the upgrading of STB main program.
Wherein, said Bootstrap Commissioning Program loading bin: be used for guiding, monitoring and processing to whole upgrade process.Specifically be used to accomplish check to the storage data; And the ROMPaq loading bin carried out decompress(ion) and guiding; Make the control of cpu transfer to said ROMPaq loading bin processing, be destroyed, then use backup upgrading program loading bin to recover if find the ROMPaq loading bin; If under ROMPaq loading bin and all ruined situation of backup upgrading program loading bin, directly the decompress(ion) main program starts.
Said ROMPaq loading bin: be used for upgrade information is judged, and carry out corresponding upgrading processing, be used for simultaneously to the recovery of said backup upgrading program loading bin when being destroyed according to judged result.Specifically be used for after taking the cpu control, going upgrade information to judge,, just get into ROMPaq if find upgrade information; Otherwise judge the compress mode of main program and select suitable decompression algorithm decompress(ion) main program, and transfer to main program control to the cpu control, accomplish the guiding startup or the escalation process of whole STB at this point according to judged result.
Said backup upgrading program loading bin: be used for the recovery of said ROMPaq loading bin when being destroyed, its content is identical with said ROMPaq loading bin.
Again as shown in Figures 2 and 3, STB of the present invention starts and upgrade method, comprises the steps:
Step 1, STB electrifying startup, the Bootstrap Commissioning Program loading bin is taken the control of cpu, and related hardware is carried out initialization;
Step 2, Bootstrap Commissioning Program loading bin read in internal memory to ROMPaq loading bin and the backup upgrading program loading bin that is stored on the flash, and carry out verification, according to check results, carry out following operation:
If step 21 is found the ROMPaq loading bin and is destroyed; Backup upgrading program loading bin is intact, then uses backup upgrading program loading bin that the ROMPaq loading bin is recovered, and transfers to the ROMPaq loading bin to the cpu control; Start the ROMPaq loading bin, the guiding start-up course is accomplished;
If step 22 finds that the ROMPaq loading bin is intact; Backup upgrading program loading bin is destroyed, and then uses the ROMPaq loading bin that backup upgrading program loading bin is recovered, and transfers to the ROMPaq loading bin to the cpu control; Start the ROMPaq loading bin, the guiding start-up course is accomplished;
If step 23 is found ROMPaq loading bin and backup upgrading program loading bin and all is destroyed, then directly reads in main program from flash, and main program is carried out verification:
If step 231 main program is not destroyed, then check the compression type of main program, carry out decompress(ion) according to the compression type of main program, if the decompress(ion) success is then directly transferred to main program to the control of cpu, start main program, the guiding start-up course is accomplished;
If step 232 main program is destroyed, perhaps decompress(ion) failure then shows failure information on panel, as show " Err" and notify the subscriber computer top box to damage, please in time get in touch maintenance department and keep in repair;
If it is all intact that step 24 is found ROMPaq loading bin and backup upgrading program loading bin, perhaps recovered intact, then according to the compression type decompress(ion) of ROMPaq loading bin:
If step 241 decompress(ion) success then transfer to the ROMPaq loading bin to the cpu control starts the ROMPaq loading bin, the guiding start-up course is accomplished;
If step 242 decompress(ion) is failed then is carried out step 23 and step 24;
After step 3, guiding start-up course were accomplished, the ROMPaq loading bin carried out following escalation process:
Step 31, judged whether that the upgrading combination button activates mandatory upgrade, had then to get into upgrading menu setting relevant parameter and upgrade; If there is not Macintosh to activate mandatory upgrade, then judge whether the upgrading sign of independent procedure to exist, have then directly to get into upgrading;
If step 32 is not come the upgrading sign of independent procedure, then judge whether it is the sign of upgrading failure, if having then get into upgrading; If the upgrading failure does not identify, then judge the compression type of main program, separate press operation, if the decompress(ion) success, then redirect gets into the main program operation;
If step 33 decompress(ion) failure then shows failure information on panel, as show " Err" and notify the subscriber computer top box to damage, please in time get in touch maintenance department and keep in repair;
Step 4, upgrade successfully after, jump to the operation of new main program automatically, if the upgrading failure is then restarted STB and carried out automatic repair process.
Said step 3 ROMPaq loading bin is provided with the sign of upgrading failure simultaneously in the process of upgrading, if upgrade successfully, then remove the failure sign of upgrading, and guarantees the startup of the automatic Restoration Mechanism after upgrading is failed.
In sum; The present invention guarantees that in the process of upgrading no matter what situation occurs, the normal condition that can both recover automatically after the ROMPaq loading bin is destroyed can be upgraded automatically again after the upgrading failure; Guarantee that normal upgrading needs; When the new application of upgrading, can on the basis that does not increase original hardware memory space, support more new the application, and needn't change hardware.

Claims (2)

1. one kind is used the STB of 3 stage directing starting and upgradings technology to start and upgrade method, and it is characterized in that: it is to use a Bootstrap Commissioning Program loading bin, a ROMPaq loading bin and a backup upgrading program loading bin to carry out the startup and the upgrading of STB main program;
Said Bootstrap Commissioning Program loading bin: be used for guiding, monitoring and processing to whole upgrade process;
Said ROMPaq loading bin: be used for upgrade information is judged, and carry out corresponding upgrading processing, be used for simultaneously to the recovery of said backup upgrading program loading bin when being destroyed according to judged result;
Said backup upgrading program loading bin: be used for to the recovery of said ROMPaq loading bin when being destroyed;
Said Bootstrap Commissioning Program loading bin: specifically be used to accomplish check to the storage data; And the ROMPaq loading bin carried out decompress(ion) and guiding; Make the control of cpu transfer to said ROMPaq loading bin processing; Be destroyed if find the ROMPaq loading bin, then use backup upgrading program loading bin to recover; If under ROMPaq loading bin and all ruined situation of backup upgrading program loading bin, directly the decompress(ion) main program starts;
Said ROMPaq loading bin: specifically be used for after taking the cpu control, upgrade information being judged,, just get into ROMPaq if find upgrade information; Otherwise judge the compress mode of main program and select suitable decompression algorithm decompress(ion) main program, and transfer to main program control to the cpu control, accomplish the guiding startup or the escalation process of whole STB at this point according to judged result;
Said method comprises the steps:
Step 1, STB electrifying startup, the Bootstrap Commissioning Program loading bin is taken the control of cpu, and related hardware is carried out initialization;
Step 2, Bootstrap Commissioning Program loading bin read in internal memory to ROMPaq loading bin and the backup upgrading program loading bin that is stored on the flash, and carry out verification, according to check results, carry out following operation:
If step 21 is found the ROMPaq loading bin and is destroyed; Backup upgrading program loading bin is intact, then uses backup upgrading program loading bin that the ROMPaq loading bin is recovered, and transfers to the ROMPaq loading bin to the cpu control; Start the ROMPaq loading bin, the guiding start-up course is accomplished;
If step 22 finds that the ROMPaq loading bin is intact; Backup upgrading program loading bin is destroyed, and then uses the ROMPaq loading bin that backup upgrading program loading bin is recovered, and transfers to the ROMPaq loading bin to the cpu control; Start the ROMPaq loading bin, the guiding start-up course is accomplished;
If step 23 is found ROMPaq loading bin and backup upgrading program loading bin and all is destroyed, then directly reads in main program from flash, and main program is carried out verification:
If step 231 main program is not destroyed, then check the compression type of main program, carry out decompress(ion) according to the compression type of main program, if the decompress(ion) success is then directly transferred to main program to the control of cpu, start main program, the guiding start-up course is accomplished;
If step 232 main program is destroyed, perhaps decompress(ion) failure then shows failure information on panel;
If it is all intact that step 24 is found ROMPaq loading bin and backup upgrading program loading bin, perhaps recovered intact, then according to the compression type decompress(ion) of ROMPaq loading bin:
If step 241 decompress(ion) success then transfer to the ROMPaq loading bin to the cpu control starts the ROMPaq loading bin, the guiding start-up course is accomplished;
If step 242 decompress(ion) is failed then is carried out step 23 and step 24;
After step 3, guiding start-up course were accomplished, the ROMPaq loading bin carried out following escalation process:
Step 31, judged whether that the upgrading combination button activates mandatory upgrade, had then to get into upgrading menu setting relevant parameter and upgrade; If there is not Macintosh to activate mandatory upgrade, then judge whether the upgrading sign of independent procedure to exist, have then directly to get into upgrading;
If step 32 is not come the upgrading sign of independent procedure, then judge whether it is the sign of upgrading failure, if having then get into upgrading; If the upgrading failure does not identify, then judge the compression type of main program, separate press operation, if the decompress(ion) success, then redirect gets into the main program operation;
If the failure of step 33 decompress(ion) then shows failure information on panel;
Step 4, upgrade successfully after, jump to the operation of new main program automatically, if the upgrading failure is then restarted STB and carried out automatic repair process.
2. the STB of use 3 stage directing starting and upgradings technology according to claim 1 starts and upgrade method; It is characterized in that: said step 3 ROMPaq loading bin is in the process of upgrading; The sign of upgrading failure is set simultaneously; If upgrade successfully, then remove upgrading failure sign, the startup of the automatic Restoration Mechanism after the assurance upgrading failure.
CN2009101126631A 2009-10-20 2009-10-20 Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology Expired - Fee Related CN101834976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101126631A CN101834976B (en) 2009-10-20 2009-10-20 Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101126631A CN101834976B (en) 2009-10-20 2009-10-20 Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology

Publications (2)

Publication Number Publication Date
CN101834976A CN101834976A (en) 2010-09-15
CN101834976B true CN101834976B (en) 2012-01-25

Family

ID=42718896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101126631A Expired - Fee Related CN101834976B (en) 2009-10-20 2009-10-20 Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology

Country Status (1)

Country Link
CN (1) CN101834976B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243591B (en) * 2011-06-30 2014-02-19 南京熊猫信息产业有限公司 Method for improving Loader-upgrading stability of set top box by adopting two zone bits
CN102681871A (en) * 2012-04-25 2012-09-19 广州致远电子股份有限公司 Firmware upgrading system based on communication interfaces
CN103716693B (en) * 2013-12-06 2018-08-14 乐视致新电子科技(天津)有限公司 A kind of setting method and smart television of MAC Address
CN103677923A (en) * 2013-12-13 2014-03-26 中国航空工业集团公司第六三一研究所 BOOT bootstrap program run protection method
CN103761122A (en) * 2013-12-31 2014-04-30 青岛歌尔声学科技有限公司 Chip firmware updating method and system
CN105005717A (en) * 2015-07-04 2015-10-28 深圳市乐迪电子有限公司 Upgrade and encryption method of USBS (Universal Serial Bus) firmware
CN108848418B (en) * 2018-06-25 2020-12-01 四川长虹网络科技有限责任公司 Set-top box centralized upgrading method
CN109101287B (en) * 2018-08-23 2021-10-22 郑州云海信息技术有限公司 Industrial personal computer system storage structure and method
CN111158712A (en) * 2018-11-07 2020-05-15 中兴通讯股份有限公司 Vehicle-mounted Tbox upgrading method, device, equipment and storage medium
CN110188004A (en) * 2019-05-31 2019-08-30 烽火通信科技股份有限公司 A kind of double copies software system management method and system of terminal device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749963A (en) * 2004-09-14 2006-03-22 华为技术有限公司 Upgrading method for Boot software and recovering method for Boot software
CN101004691A (en) * 2007-01-23 2007-07-25 北京映翰通网络技术有限公司 Method and device for updating firmware program
JP2009032110A (en) * 2007-07-27 2009-02-12 Hitachi Ltd Information processing apparatus and method for optimizing kernel parameter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749963A (en) * 2004-09-14 2006-03-22 华为技术有限公司 Upgrading method for Boot software and recovering method for Boot software
CN101004691A (en) * 2007-01-23 2007-07-25 北京映翰通网络技术有限公司 Method and device for updating firmware program
JP2009032110A (en) * 2007-07-27 2009-02-12 Hitachi Ltd Information processing apparatus and method for optimizing kernel parameter

Also Published As

Publication number Publication date
CN101834976A (en) 2010-09-15

Similar Documents

Publication Publication Date Title
CN101834976B (en) Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology
US10114655B2 (en) Rapid start up method for electronic equipment
US8677311B2 (en) Separate-type signal processing apparatus and software version updating method therefor
CN101281469B (en) Embedded type system and start-up load application method
CN101221508B (en) Equipment starting method and device
CN102222011A (en) Software upgrading method for set-top box and set-top box
CN102082965B (en) Method for ensuring success in upgrading set-top box
CN107396188B (en) A kind of upgrade method and system of set-top box
JP4681900B2 (en) Computer stop condition monitoring method, information processing apparatus, and program
KR100952585B1 (en) Method and system for automatic recovery of an embedded operating system
US20160170735A1 (en) Operating system updating method by using a checklist
CN106331862A (en) Set-top box software upgrading method and set-top box
US20210382789A1 (en) Method for protecting system from being powered off during upgrade and terminal device
CN105573864A (en) Terminal system recovery method and system thereof
CN103533431A (en) Method and system for realizing system upgrade based on intelligent television, and intelligent television
CN101567962A (en) Double-Loader updating method for set-top box
CN104834547A (en) Remote upgrade method and system of Squashfs read-only root file system
CN101013390A (en) Fast restoration method of computer system and apparatus
CN102163152A (en) Software upgrading method and device thereof for embedded terminal device
CN100430894C (en) TV system software updating method with power-off protection
CN112948182A (en) Set top box emergency backup recovery upgrading method and system
CN103246579A (en) Substrate management controller system
CN102243591B (en) Method for improving Loader-upgrading stability of set top box by adopting two zone bits
EP2733612B1 (en) Information processing device, method, and program
US8510788B2 (en) Build profile for a set-top box

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120125

Termination date: 20181020

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