CN102830986A - Method and device for turning on system in double-BOOT program condition - Google Patents

Method and device for turning on system in double-BOOT program condition Download PDF

Info

Publication number
CN102830986A
CN102830986A CN2011101638266A CN201110163826A CN102830986A CN 102830986 A CN102830986 A CN 102830986A CN 2011101638266 A CN2011101638266 A CN 2011101638266A CN 201110163826 A CN201110163826 A CN 201110163826A CN 102830986 A CN102830986 A CN 102830986A
Authority
CN
China
Prior art keywords
boot
boot program
module
upgrading
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.)
Pending
Application number
CN2011101638266A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2011101638266A priority Critical patent/CN102830986A/en
Publication of CN102830986A publication Critical patent/CN102830986A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for turning on a system in a double-BOOT program condition. The method comprises the following steps of: turning on a first BOOT program; after detecting that a second BOOT program is entire and effective through the first BOOT program, turning on the second BOOT program and guiding the system to turn on; and after detecting that the second BOOT program is entire and effective through the first BOOT program, executing the first BOOT program, and guiding the system to turn on. With the adoption of the technical scheme provided by the invention, the stable operation of equipment turned on through the BOOT programs can be ensured.

Description

A kind of under two BOOT program environments the method and apparatus of start-up system
Technical field
The present invention relates to electronic communication field, relate in particular to a kind of under two BOOT program environments the method and apparatus of start-up system.
Background technology
Along with the continuous growth of various communication services, it is particularly important that the stable operation of the main control equipment at terminal becomes, and the stable operation of main control equipment at first will have the BOOT start-up routine of stability and high efficiency.The single BOOT start-up routine that exists among the existing FLASH can't to the accident in the communication field as the outage etc., enough assurances are provided.In addition, because the BOOT program needs constantly upgrading,, will cause the BOOT program to be lost, and then influence the normal operation of main control equipment if existing single BOOT program runs into above-mentioned accident when upgrading.
Summary of the invention
The invention provides a kind of under two BOOT program environments the method and apparatus of start-up system, to solve the technical matters of the stable operation that how to guarantee the equipment through the BOOT program start.
For addressing this problem, the invention provides a kind of under two BOOT program environments the method for start-up system, this method comprises:
Start a BOOT program, through a BOOT program detect the 2nd BOOT program complete effectively after, start the 2nd BOOT program, guidance system starts; Through a BOOT program detect the 2nd BOOT program non-complete effectively after, carry out a BOOT program, guidance system starts.
Further, the said complete BOOT of referring to program comprises version head and version main body, saidly effectively refers to the information that BOOT program version head comprises and conforms to preset value.
Further, in the process that starts the BOOT program, receive instruction and get into BOOT order accepting state;
Receive the BOOT order, order a BOOT program of the need upgrading of indication from this BOOT of simple files transfer protocol (TFTP) client downloads;
To be checked measure the success of this BOOT program upgrade after, get into BOOT order accepting state once more, receive the BOOT order, from another BOOT program of the need upgrading of this BOOT order indication of TFTP client downloads.
Further, in the process that starts the BOOT program, receive instruction and get into BOOT order accepting state;
Receive the BOOT order, order the BOOT program of the need upgrading of indication from this BOOT of simple files transfer protocol (TFTP) client downloads.
Further, guidance system is remotely logged into the WFTP client after starting, and downloads the 2nd BOOT program that needs upgrading.
For addressing the above problem, the present invention also provide a kind of under two BOOT program environments the device of start-up system, said device comprises the first start-up control module, the second start-up control module, wherein,
The said first start-up control module; Be used to start a BOOT program; Through a BOOT program detect the 2nd BOOT program complete effectively after, send enabling signal to the second start-up control module, perhaps through a BOOT program detect the 2nd BOOT program non-complete effectively after; Carry out a BOOT program, guidance system starts;
The said second start-up control module, be used to receive the enabling signal that the first start-up control module sends after, start the 2nd BOOT program, guidance system starts.
Further, the said complete BOOT of referring to program comprises version head and version main body, saidly effectively refers to the information that BOOT program version head comprises and conforms to preset value.
Further, said device also comprises BOOT order receiver module, BOOT programmed instruction upgrading module and BOOT program upgrade success detection module,
Said first start-up control module or the said second start-up control module also are used in the process that starts the BOOT program, receive the work of instruction triggers BOOT order receiver module;
Said BOOT order receiver module is used to receive the BOOT order, triggers the work of BOOT programmed instruction upgrading module;
Said BOOT programmed instruction upgrading module after being used to receive the trigger command from said input BOOT command module, is ordered the BOOT program of the need upgrading of indication from simple files transfer protocol (TFTP) client downloads BOOT;
Said BOOT program upgrade success detection module is used to detect the said BOOT program upgrade module BOOT program of whether successfully upgrading, and after the BOOT program is successfully upgraded, triggers said BOOT order receiver module.
Further, said device also comprises BOOT order receiver module, BOOT programmed instruction upgrading module,
Said first start-up control module or the said second start-up control module also are used in the process that starts the BOOT program, receive the work of instruction triggers BOOT order receiver module;
Said BOOT order receiver module is used to receive the BOOT order, triggers the work of BOOT programmed instruction upgrading module;
Said BOOT programmed instruction upgrading module after being used to receive the trigger command from said input BOOT command module, is ordered the BOOT program of the need upgrading of indication from simple files transfer protocol (TFTP) client downloads BOOT.
Further, said device also comprises BOOT program remote upgrading module,
Said first start-up control module or the said second start-up control module also are used for after guidance system starts, and trigger BOOT program remote upgrading module;
Said BOOT program remote upgrading module is used to receive the trigger pip from the first start-up control module or the said second start-up control module, is remotely logged into the WFTP client, downloads the 2nd BOOT program that needs upgrading.
Participate in selecting to start that BOOT program by a BOOT program in the technical scheme of the present invention's protection, need not increase additional hardware, need not change the hardware configuration of existing master control borad, implement simple and convenient; In addition; During the BOOT program of upgrading in the technical scheme of the present invention's protection, after BOOT program upgrade success of assurance earlier, another BOOT program of upgrading again; One of them BOOT program of perhaps only upgrading has been avoided two BOOT programs to upgrade simultaneously meeting stating the serious consequence that accident brings.
Description of drawings
Fig. 1 is the internal module figure of the device of start-up system under two BOOT program environments of the embodiment of the invention;
Fig. 2 detects the method flow diagram that whether has second BOOT program for a BOOT program of the embodiment of the invention;
Fig. 3 is the method flow diagram of start-up system under two BOOT program environments of the embodiment of the invention;
Fig. 4 is the composition synoptic diagram of the BOOT program of the embodiment of the invention;
Fig. 5 is the method flow diagram of the upgrading BOOT program of the embodiment of the invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, hereinafter will combine accompanying drawing that embodiments of the invention are elaborated.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.
Fig. 1 is the internal module figure of the device of start-up system under two BOOT program environments of the embodiment of the invention.
This device comprises the first start-up control module, 1, the second start-up control module 2, wherein,
The first start-up control module 1; Be used to start a BOOT program; Through a BOOT program detect the 2nd BOOT program complete effectively after, send enabling signal to the second start-up control module 2, perhaps through a BOOT program detect the 2nd BOOT program non-complete effectively after; Carry out a BOOT program, guidance system starts;
The second start-up control module 2, be used to receive the enabling signal that the first start-up control module 1 sends after, start the 2nd BOOT program, guidance system starts.
For realizing the upgrading to the BOOT program, the said apparatus of present embodiment also comprises BOOT order receiver module 3, BOOT programmed instruction upgrading module 4 and BOOT program upgrade success detection module 5,
The first start-up control module 1 or the second start-up control module 2 receive 3 work of instruction triggers BOOT order receiver module in the process that starts the BOOT program;
BOOT orders receiver module 3, is used to receive the BOOT order, triggers 4 work of BOOT programmed instruction upgrading module;
BOOT programmed instruction upgrading module 4 after being used to receive the trigger command from BOOT order receiver module 3, is ordered the BOOT program of the need upgrading of indication from this BOOT of simple files transfer protocol (TFTP) client downloads;
BOOT program upgrade success detection module 5 is used to detect the BOOT programmed instruction upgrading module 4 BOOT program of whether successfully upgrading, and after the BOOT program is successfully upgraded, triggers BOOT order receiver module 3.
Device of the present invention also can only comprise above-mentioned BOOT order receiver module 3 and BOOT programmed instruction upgrading module 4, one of them BOOT program of two the BOOT programs that are used for upgrading.
For realizing the upgrading to the BOOT program, the said device of present embodiment also can comprise a BOOT program remote upgrading module 6,
The first start-up control module 1 or the second start-up control module 2 trigger BOOT program remote upgrading module 6 after guidance system starts;
BOOT program remote upgrading module 6 is used to receive the trigger pip from the first start-up control module 1 or the second start-up control module 2, is remotely logged into the WFTP client, downloads the 2nd BOOT program that needs upgrading.
Through the described device of the invention described above embodiment can select the to upgrade mode of BOOT program: instruction upgrading mode or remote upgrade mode.
The present invention also provide a kind of under two BOOT program environments the method embodiment of start-up system.
System powers on, and starts a BOOT program, and through whether having second BOOT program in the BOOT program detection system, concrete detection method flow process is as shown in Figure 2;
S201 the one BOOT program judges whether to need the 2nd BOOT program that detects, like needs, and execution in step S202, otherwise execution in step S204;
S202 the one BOOT program detects among the FLASH whether preserved the 2nd BOOT program, as preserving execution in step S203, otherwise execution in step S204;
S203 gets into start-up system flow process under two BOOT program environments;
S204 gets into start-up system flow process under single BOOT program environment.
The method flow of start-up system is as shown in Figure 3 under the two BOOT program environments of above-mentioned entering.
Whether S301 the one BOOT program detects the 2nd BOOT program complete effective, in this way, and execution in step 0302; Otherwise, execution in step S303;
The said complete BOOT of referring to program comprises version head and version main body, saidly effectively refers to the information that BOOT program version head comprises and conforms to preset value.
Present embodiment has provided BOOT program and has formed synoptic diagram, the composition cell of BOOT program comprise version number, version creation-time, version head length and whole version size, BOOT mask information and version head verification and etc., as shown in Figure 4.
S302 starts the 2nd BOOT program, and guidance system starts;
To detect the 2nd BOOT program complete when effective as a BOOT, copies the 2nd BOOT program in the internal memory certain address, jumps to this memory address and start the 2nd BOOT program, prepares running space for the loading of the system version that moves on the master control borad simultaneously;
The 2nd BOOT program detects file system type, initialization files system;
Whether the system version file that the 2nd BOOT program detects the FLASH storage complete effectively, comprising: the mask of check system version file, size, verification and etc.;
It is complete when effective that the 2nd BOOT program detects the said system version file, the said system version file is loaded in the internal memory start-up system; Otherwise, return this system version invalid information.
S303 carries out a BOOT program, and guidance system starts, same prior art.
Along with the continual renovation of BOOT program, the BOOT program of sintering in FLASH also will constantly be upgraded.
Fig. 5 is the method flow diagram of the upgrading BOOT program of the embodiment of the invention.
Before upgrading BOOT program; At first need build the environment of upgrading BOOT program, comprise that the master control borad with BOOT program place links to each other with PC, in PC side operation simple files transfer protocol TFTP client; Need to be ready to the BOOT program of upgrading; At the same network segment, the operation of this configuration of IP address also can realize through input C order behind following entering input BOOT command interface with the IP address configuration of master control borad and TFTP client.
After putting up the environment of above-mentioned upgrading BOOT program, begin to get into the upgrading flow process:
S501 receives instruction and gets into BOOT order accepting state in the process that starts the BOOT program;
S502 receives the burn order, orders a BOOT program of the need upgrading of indication from this burn of TFTP client downloads;
S503 is to be checked measure BOOT program upgrade success after, get into BOOT order accepting state once more, receive the burn order, from the 2nd BOOT program of the need upgrading of this burn order indication of TFTP client downloads.
After treating the 2nd BOOT program upgrade success, restart master control borad, according to above-mentioned under two BOOT program environments the method for start-up system, select the BOOT program start.
In the method for above-mentioned upgrading BOOT program, the BOOT program of upgrading is variable with the order of upgrading the 2nd BOOT program, the method for above-mentioned in addition upgrading BOOT program also can be used for only upgrading a BOOT program or the 2nd BOOT program.
Provided the method for another kind of upgrading BOOT program in other embodiments of the invention.
Likewise, before upgrading BOOT program, build the environment of upgrading BOOT program.This embodiment provides another kind of environment method of building upgrading BOOT program: the master control borad at BOOT program place is linked to each other with PC; In PC side operation WFTP client; Need to be ready to the BOOT program of upgrading;, to master control borad the IP and the virtual LAN VLAN parameter of master control borad is configured through the PC Telnet.
After putting up the environment of above-mentioned upgrading BOOT program, begin to get into the upgrading flow process:
After the system start-up of BOOT program designation, be remotely logged into the WFTP client, download the 2nd BOOT program that needs upgrading.
After treating the 2nd BOOT program upgrade success, restart master control borad, according to above-mentioned under two BOOT program environments the method for start-up system, select the BOOT program start.
For the security of maintenance system, this upgrade method only is used to the 2nd BOOT program of upgrading usually.If but the change of BOOT program is bigger, as relate to the change of FLASH subregion, this method also is used for after the success of the 2nd BOOT program upgrade, the BOOT program of upgrading.
Need to prove; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (10)

1. the method for a start-up system under two BOOT program environments is characterized in that,
Start a BOOT program, through a BOOT program detect the 2nd BOOT program complete effectively after, start the 2nd BOOT program, guidance system starts; Through a BOOT program detect the 2nd BOOT program non-complete effectively after, carry out a BOOT program, guidance system starts.
2. the method for claim 1 is characterized in that
The said complete BOOT of referring to program comprises version head and version main body, saidly effectively refers to the information that BOOT program version head comprises and conforms to preset value.
3. the method for claim 1 is characterized in that,
In the process that starts the BOOT program, receive instruction and get into BOOT order accepting state;
Receive the BOOT order, order a BOOT program of the need upgrading of indication from this BOOT of simple files transfer protocol (TFTP) client downloads;
To be checked measure the success of this BOOT program upgrade after, get into BOOT order accepting state once more, receive the BOOT order, from another BOOT program of the need upgrading of this BOOT order indication of TFTP client downloads.
4. the method for claim 1 is characterized in that,
In the process that starts the BOOT program, receive instruction and get into BOOT order accepting state;
Receive the BOOT order, order the BOOT program of the need upgrading of indication from this BOOT of simple files transfer protocol (TFTP) client downloads.
5. the method for claim 1 is characterized in that,
Guidance system is remotely logged into the WFTP client after starting, and downloads the 2nd BOOT program that needs upgrading.
6. the device of a start-up system under two BOOT program environments is characterized in that, said device comprises the first start-up control module, the second start-up control module, wherein,
The said first start-up control module; Be used to start a BOOT program; Through a BOOT program detect the 2nd BOOT program complete effectively after, send enabling signal to the second start-up control module, perhaps through a BOOT program detect the 2nd BOOT program non-complete effectively after; Carry out a BOOT program, guidance system starts;
The said second start-up control module, be used to receive the enabling signal that the first start-up control module sends after, start the 2nd BOOT program, guidance system starts.
7. device as claimed in claim 6 is characterized in that,
The said complete BOOT of referring to program comprises version head and version main body, saidly effectively refers to the information that BOOT program version head comprises and conforms to preset value.
8. device as claimed in claim 6 is characterized in that, said device also comprises BOOT order receiver module, BOOT programmed instruction upgrading module and BOOT program upgrade success detection module,
Said first start-up control module or the said second start-up control module also are used in the process that starts the BOOT program, receive the work of instruction triggers BOOT order receiver module;
Said BOOT order receiver module is used to receive the BOOT order, triggers the work of BOOT programmed instruction upgrading module;
Said BOOT programmed instruction upgrading module after being used to receive the trigger command from said input BOOT command module, is ordered the BOOT program of the need upgrading of indication from simple files transfer protocol (TFTP) client downloads BOOT;
Said BOOT program upgrade success detection module is used to detect the said BOOT program upgrade module BOOT program of whether successfully upgrading, and after the BOOT program is successfully upgraded, triggers said BOOT order receiver module.
9. device as claimed in claim 6 is characterized in that, said device also comprises BOOT order receiver module, BOOT programmed instruction upgrading module,
Said first start-up control module or the said second start-up control module also are used in the process that starts the BOOT program, receive the work of instruction triggers BOOT order receiver module;
Said BOOT order receiver module is used to receive the BOOT order, triggers the work of BOOT programmed instruction upgrading module;
Said BOOT programmed instruction upgrading module after being used to receive the trigger command from said input BOOT command module, is ordered the BOOT program of the need upgrading of indication from simple files transfer protocol (TFTP) client downloads BOOT.
10. device as claimed in claim 6 is characterized in that, said device also comprises BOOT program remote upgrading module,
Said first start-up control module or the said second start-up control module also are used for after guidance system starts, and trigger BOOT program remote upgrading module;
Said BOOT program remote upgrading module is used to receive the trigger pip from the first start-up control module or the said second start-up control module, is remotely logged into the WFTP client, downloads the 2nd BOOT program that needs upgrading.
CN2011101638266A 2011-06-17 2011-06-17 Method and device for turning on system in double-BOOT program condition Pending CN102830986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101638266A CN102830986A (en) 2011-06-17 2011-06-17 Method and device for turning on system in double-BOOT program condition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101638266A CN102830986A (en) 2011-06-17 2011-06-17 Method and device for turning on system in double-BOOT program condition

Publications (1)

Publication Number Publication Date
CN102830986A true CN102830986A (en) 2012-12-19

Family

ID=47334136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101638266A Pending CN102830986A (en) 2011-06-17 2011-06-17 Method and device for turning on system in double-BOOT program condition

Country Status (1)

Country Link
CN (1) CN102830986A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094927A (en) * 2015-08-28 2015-11-25 东方网力科技股份有限公司 Equipment firmware updating method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421792B1 (en) * 1998-12-03 2002-07-16 International Business Machines Corporation Data processing system and method for automatic recovery from an unsuccessful boot
CN1567195A (en) * 2003-06-20 2005-01-19 华为技术有限公司 Method for implementing hot-update of bootstrap program in flush bonding system
CN1783001A (en) * 2004-11-29 2006-06-07 华为技术有限公司 Method for starting basic input and output system
CN101101559A (en) * 2007-08-14 2008-01-09 中兴通讯股份有限公司 Engineer application method and device for using double Bootrom starting and guiding CPU
CN101169727A (en) * 2007-11-12 2008-04-30 中兴通讯股份有限公司 CPU system starting method and system
US20090019275A1 (en) * 2007-07-13 2009-01-15 Park Dong-Jin Secure Boot Method and Semiconductor Memory System Using the Method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421792B1 (en) * 1998-12-03 2002-07-16 International Business Machines Corporation Data processing system and method for automatic recovery from an unsuccessful boot
CN1567195A (en) * 2003-06-20 2005-01-19 华为技术有限公司 Method for implementing hot-update of bootstrap program in flush bonding system
CN1783001A (en) * 2004-11-29 2006-06-07 华为技术有限公司 Method for starting basic input and output system
US20090019275A1 (en) * 2007-07-13 2009-01-15 Park Dong-Jin Secure Boot Method and Semiconductor Memory System Using the Method
CN101101559A (en) * 2007-08-14 2008-01-09 中兴通讯股份有限公司 Engineer application method and device for using double Bootrom starting and guiding CPU
CN101169727A (en) * 2007-11-12 2008-04-30 中兴通讯股份有限公司 CPU system starting method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094927A (en) * 2015-08-28 2015-11-25 东方网力科技股份有限公司 Equipment firmware updating method and device
CN105094927B (en) * 2015-08-28 2018-06-12 东方网力科技股份有限公司 A kind of device firmware upgrade method and apparatus

Similar Documents

Publication Publication Date Title
CN109460245B (en) Remote upgrading method for embedded system
RU2406139C2 (en) Installing and obtaining software over network sensitive to malicious data exchange
US10142167B2 (en) Peer-assisted image update with self-healing capabilities
CN109491698B (en) System updating method and device based on hot patch
US20160063246A1 (en) Preventing malicious instruction execution
CN102932409B (en) The method and system that a kind of virtual machine moves online
CN104750574B (en) A kind of firmware restoration method and device of the network equipment
CN109144532B (en) Upgrading method and device
CN105721203B (en) Upgrade processing method and device
US20170329739A1 (en) Methods and systems for loading a boot agent on a router network device
EP3409071B1 (en) Wireless mesh network formation
CN106452928A (en) Firmware upgrading method and firmware upgrading apparatus of router, and router
CN102521289A (en) File synchronization method, device and system
JP2017534136A (en) Firmware update
CN110912759A (en) Automatic connection method and system for VPN network abnormity
US9928082B1 (en) Methods and systems for remote device configuration
CN105162667B (en) Virtual machine configuration method and apparatus
CN107656765A (en) A kind of method, system and the terminal device of equipment initialization
CN107995033B (en) ONU configuration file upgrading method and device
CN102830986A (en) Method and device for turning on system in double-BOOT program condition
WO2015154578A1 (en) Remote upgrade method, device and system of boot program of single board
US20160157093A1 (en) System and method for updating firmware through hetero-network
CN104754410A (en) Safety method and system for cable modulating and demodulating device
WO2023198056A1 (en) Firmware update method for embedded device, and embedded device
CN103731301A (en) Dual backup achieving method of remote network 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121219