CN102520979A - Boot program backup method and Boot program backup device - Google Patents
Boot program backup method and Boot program backup device Download PDFInfo
- Publication number
- CN102520979A CN102520979A CN201110373616XA CN201110373616A CN102520979A CN 102520979 A CN102520979 A CN 102520979A CN 201110373616X A CN201110373616X A CN 201110373616XA CN 201110373616 A CN201110373616 A CN 201110373616A CN 102520979 A CN102520979 A CN 102520979A
- Authority
- CN
- China
- Prior art keywords
- boot program
- subsequent use
- boot
- master
- logic
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a Boot program backup method and a Boot program backup device. The method includes the following steps: booting a master Boot program, and judging whether the master Boot program is successfully booted; if the master Boot program is successfully booted, then determining that the booting of the master Boot program is completed; if the master Boot program is not successfully booted, then booting a standby Boot program, and judging whether the standby Boot program is successfully booted; and if the standby Boot program is successfully booted, then determining that the booting of the Boot program is completed. In the embodiment of the invention, the backup mechanism of the master Boot program and the standby Boot program is utilized to realize double-Boot program backup, consequently, the problem of the failure of the booting of a device, which is caused by the damage of the Boot program, can be effectively prevented, and the reliability of the booting of the Boot program is guaranteed.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of backup method and equipment of Boot program.
Background technology
In the prior art; Boot on the equipment (guiding) program is only stored a in Flash (flash memory) chip, and is as shown in Figure 1, is the storage synoptic diagram of Boot program; CPU (Central Processing Unit; Central processing unit) inserts the Flash chip through chip selection signal CS0, and store Boot program and APP (Application, i.e. application data) on the Flash chip.
In realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
Because the Boot program is only stored a in the Flash chip; If the Boot program takes place unusually then can not recover automatically; Thereby can cause equipment normally not move, need accomplish the Boot program through emulator or fever writes and write, the maintenance of equipment has been brought great inconvenience.
Concrete, though Boot program reliability is higher, need not upgrade usually; If but the existing problems of Boot program own maybe need be added new demand; Then the Boot program needs upgrading, and causes upgrading to be failed through regular meeting's appearance unusual (unusual like escalation process device looses power or operator's error etc.) in the escalation process, and equipment can not normally be moved; The maintenance of the equipment of giving has brought great inconvenience, has reduced the maintainability of equipment.
Summary of the invention
The embodiment of the invention provides a kind of backup method and equipment of Boot program, to guarantee the reliability of Boot program start.
In order to achieve the above object, the embodiment of the invention provides a kind of backup method of Boot program, comprising:
Start the master and use the Boot program, and judge whether said master starts success with the Boot program;
If said main, then confirm the completion of Boot program start with the success of Boot program start;
If said master does not start success with the Boot program, then start subsequent use Boot program, and judge whether said subsequent use Boot program starts success;
If the completion of Boot program start is then confirmed in said subsequent use Boot program start success.
The embodiment of the invention provides a kind of alternate device of Boot program, comprising:
First starts module, is used to start the main Boot program of using;
First judge module is used to judge whether said master starts success with the Boot program;
First determination module is used for when said master is successful with the Boot program start, confirming the completion of Boot program start;
Second starts module, is used for not starting when successful when said leading with the Boot program, starts subsequent use Boot program;
Second judge module is used to judge whether said subsequent use Boot program starts success;
Second determination module is used for when said subsequent use Boot program start is successful, confirming the completion of Boot program start.
Compared with prior art, the embodiment of the invention has the following advantages at least:
Through main back mechanism with Boot program and subsequent use Boot program, realize the backup of two Boot programs, can effectively prevent the problem that the damage of Boot program causes equipment not start, guarantee the reliability of Boot program start.
Description of drawings
In order to be illustrated more clearly in technical scheme of the present invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the storage synoptic diagram of Boot program in the prior art;
Fig. 2 is the backup method schematic flow sheet of a kind of Boot program of providing of the embodiment of the invention one;
Fig. 3 is a hardware circuit design synoptic diagram in the embodiment of the invention two;
Fig. 4 is active/standby with Boot procedure stores design diagram in the embodiment of the invention two;
Fig. 5 is a Boot program version design diagram in the embodiment of the invention two;
Fig. 6 is the logic chip design diagram when the sheet choosing is switched in the embodiment of the invention two;
Fig. 7 is the alternate device structural representation of a kind of Boot program of providing of the embodiment of the invention three.
Embodiment
To combine the accompanying drawing among the present invention below, the technical scheme among the present invention is carried out clear, intactly description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment one
The embodiment of the invention one provides a kind of backup method of Boot program, is used on the equipment that need utilize the Boot program start, and need on equipment, designs as follows:
To lead with the Boot procedure stores the master of a Flash chip (be storage medium, follow-up is example with the Flash chip all) with in the Boot district, with subsequent use Boot procedure stores in the subsequent use Boot district of the 2nd Flash chip; And,
CPU chip selection signal CS0 passes through logic chip (like CPLD (Complex Programmable Logic Device; CPLD), FPGA (Field Programmable Gate Array; Field programmable gate array) etc.) insert a Flash chip, CPU chip selection signal CS1 inserts the 2nd Flash chip through logic chip; And,
Starting mainly during with the Boot program, CS0 inserts a Flash chip through logic chip control CPU chip selection signal, and when starting subsequent use Boot program, realizes that through logic chip sheet selects handoff functionality, controls CPU chip selection signal CS0 and inserts the 2nd Flash chip; And,
Logic chip is provided for detecting the Boot program and whether starts successful logic timer, and what be used to show the success of Boot program start forbids logic timer register, is used to realize that sheet selects the Boot slice choosing of handoff functionality to switch register.
Based on above-mentioned design, then after device power started, as shown in Figure 2, the backup method of this Boot program may further comprise the steps:
Concrete, equipment inserts a Flash chip through CPU chip selection signal CS0, and the master who obtains a Flash chip is with the main Boot program of using of being stored in the Boot district, to start the main Boot program of using.
If main with the success of Boot program start, then execution in step 203; If the master does not start success with the Boot program, then execution in step 204.
Concrete, when starting the master with the Boot program, equipment utilization logic timer picks up counting;
Knowing mainly during with the success of Boot program start, equipment utilization forbids that logic timer register cuts out the logic timer, and confirms main successful with the Boot program start;
At the appointed time (as 3 minutes) if in the logic timer logic timer register that is not under an embargo close, then equipment is confirmed mainly not start success with the Boot program.
Concrete, equipment switches register controlled CPU chip selection signal CS0 through the choosing of Boot slice and inserts the 2nd Flash chip, obtains the subsequent use Boot program of being stored in the subsequent use Boot district of the 2nd Flash chip, to start subsequent use Boot program.
If subsequent use Boot program start success, then execution in step 203; If subsequent use Boot program does not start success, then execution in step 206.
Concrete, when starting subsequent use Boot program, equipment utilization logic timer picks up counting;
When knowing the success of subsequent use Boot program start, equipment utilization forbids that logic timer register cuts out the logic timer, and confirms subsequent use Boot program start success;
At the appointed time (as 3 minutes) if in the logic timer logic timer register that is not under an embargo close, then equipment confirms that subsequent use Boot program does not start success.
In the embodiment of the invention, store main in a Flash chip and/or the 2nd Flash chip with Boot program version and subsequent use Boot program version;
When the master was successful with the Boot program start, equipment also need detect whether there is subsequent use Boot program in the subsequent use Boot district; If there is not subsequent use Boot program, then equipment utilization is main writes subsequent use Boot program with the Boot program in subsequent use Boot district; If there is subsequent use Boot program, and main be higher than subsequent use Boot program version with the Boot program version, then equipment utilization is main writes subsequent use Boot program (promptly upgrading the subsequent use Boot program in the subsequent use Boot district) with the Boot program in subsequent use Boot district.
When subsequent use Boot program start was successful, equipment also need detect main with whether there being the main Boot program of using in the Boot district; If there is not the Boot program of using of leading, then the subsequent use Boot program of equipment utilization is write in leading with the Boot district and is become owner of the Boot program of using; If exist and mainly use the Boot program, and subsequent use Boot program version is higher than the main Boot program version of use, and then the subsequent use Boot program of equipment utilization is become owner of with Boot program (promptly the renewal master uses the Boot program with the master in the Boot district) main writing in Boot district.
In sum; In the embodiment of the invention,, realize the backup of two Boot programs through main back mechanism with Boot program and subsequent use Boot program; Can effectively prevent the problem that the damage of Boot program causes equipment not start, guarantee the reliability of Boot program start.
Embodiment two
The embodiment of the invention two provides a kind of backup method of Boot program; Be used on the equipment that need utilize the Boot program start; In order more clearly to set forth the technical scheme that the embodiment of the invention provides, further explain below in conjunction with concrete design (i.e. the design of two Boot program backup) and detailed realization flow.
(1) hardware circuit design.
Hardware circuit design synoptic diagram as shown in Figure 3; Two Flash chips (is example with Flash0 and Flash1); Every Flash chip inserts a CPU chip selection signal (is example with CS0 and CS1), and two CPU chip selection signals link to each other with the Flash chip through logic chip.In Fig. 3, CPU chip selection signal CS0 links to each other with Flash0 through logic chip, and CPU chip selection signal CS1 links to each other with Flash1 through logic chip.
(2) Boot procedure stores design.
As shown in Figure 4 is active/standby with Boot procedure stores design diagram, needs Boot program of storage in the every Flash chip, uses the Boot program so that storage among the Flash0 is main, and the subsequent use Boot program of storage is an example among the Flash1; For the APP district in the Flash chip, explanation no longer in detail in the embodiment of the invention.
(3) Boot program version design.
Boot program version design diagram as shown in Figure 5; Boot program version district can be stored among Flash0 and/or the Flash1; And the Boot program version is divided into main with Boot program version district and subsequent use Boot program version district; The master is used to store the master with Boot program version district and uses the Boot program version, and subsequent use Boot program version district is used to store subsequent use Boot program version.
(4) logic chip design.
1, the chip selection signal of Flash chip design.
When device power started, acquiescence CPU chip selection signal CS0 inserted Flash0, and CPU chip selection signal CS1 inserts Flash1, and is as shown in Figure 3.
During with the Boot program mal, realize that by logic chip sheet selects handoff functionality when main, make CPU chip selection signal CS0 insert Flash1, CPU chip selection signal CS1 inserts Flash0, and is as shown in Figure 6, the logic chip design diagram when selecting switching for sheet.
2, logical design in the logic chip.
Provide and obtain active/standbyly, be used to obtain current Boot program and be by main with the Boot program start or by subsequent use Boot program start with Boot program start register Reg1.
Whether (this time can be selected according to actual conditions) logic timer Timer that provides 3 minutes is used to detect the Boot program and normally starts.
Provide and forbid logic timer register Reg2, active/standby with the Boot program start after, close logic timer Timer, successfully start to show the Boot program.
Provide the choosing of Boot slice to switch register Reg3, if subsequent use Boot program needs to start, then need the transfer strip choosing, the chip selection signal that this transfer strip is elected as on Flash1 and the Flash2 chip exchanges.Concrete, when the master started with the Boot program is abnormal, then logic timer Timer can not be under an embargo, and after timing arrived 3 minutes, then logic chip realization sheet selected handoff functionality, equipment is resetted, and equipment will be from subsequent use Boot program start.
Based on above-mentioned analysis, the situation of logical design can be as shown in table 1 in the logic chip.
Table 1 logic realization feature list
Based on above-mentioned design, then main startup flow process with the Boot program comprises
:
Step 1, the device start master uses the Boot program.
Concrete, equipment is after powering on, and equipment inserts Flash0 through CPU chip selection signal CS0, and the master who obtains Flash0 is with the main Boot program of using of being stored in the Boot district, the main Boot program start of using.In addition, when the master was with the Boot program start, the logic timer picked up counting.
Step 2, whether equipment decision logic timer is closed.
If in main final step with the Boot program start, the logic timer logic timer register that is under an embargo cuts out, then show main with the Boot program start successfully, execution in step 3.
If main the existence with the Boot program causes unusually and can not normally start, then the at the appointed time interior logic timer register that can not be under an embargo of logic timer cuts out, and after the logic timer clocked 3 minutes, shows that then the master fails with the Boot program start; At this moment, logic chip switches the Flash chip selection signal, and the logic timer is clear 0, and homing device, carries out the startup flow process (will in subsequent process, be elaborated) of subsequent use Boot program, realizes Boot program rollback function.
Step 3, equipment read logic register Reg1, and whether obtain current is the main Boot program start of using, if the master uses the Boot program start, then execution in step 4, otherwise confirm logic error.
Whether step 4, the subsequent use Boot of Equipment Inspection exist subsequent use Boot program in the district.
If there is not subsequent use Boot program, then will lead with the Boot program being written in the subsequent use Boot district, and execution in step 5.
If subsequent use Boot program is arranged, then direct execution in step 5.
Step 5, equipment carry out active/standby version verification with the Boot program.
If the main Boot program of using is redaction (promptly the master is higher than subsequent use Boot program version with the Boot program version), then equipment needs will lead with the Boot program to be written in the subsequent use Boot district.If write success, then execution in step 6; If write unsuccessfully, then equipment need be put and be masked as subsequent use Boot district and can not use, and this sign is kept in the Boot version district.
If main consistent with subsequent use Boot program version with the Boot program version, then direct execution in step 6.
Step 6, equipment confirm that the master accomplishes with the Boot program start.
The startup flow process of subsequent use Boot program comprises:
Step 1, the subsequent use Boot program of device start.
Specifically, equipment switches register controlled CPU chip selection signal CS0 through the choosing of Boot slice and inserts Flash1, the subsequent use Boot program of being stored in the subsequent use Boot district of acquisition Flash1, subsequent use Boot program start.In addition, in subsequent use Boot program start, the logic timer picks up counting.
Step 2, whether equipment decision logic timer is closed.
If in the final step of subsequent use Boot program start, the logic timer logic timer register that is under an embargo cuts out, and then shows subsequent use Boot program start success, execution in step 3.
If subsequent use Boot program exists and causes unusually and can not normally start; Then the at the appointed time interior logic timer register that can not be under an embargo of logic timer cuts out; After the logic timer clocked 3 minutes; Then show subsequent use Boot program start failure, finish to start flow process that follow-up safeguarding (as wait operations such as accomplishing writing of Boot program through emulator or fever writes) repeated no more at this.
Step 3, equipment read logic register Reg1, and whether obtain current is subsequent use Boot program start, if subsequent use Boot program start, then execution in step 4, otherwise confirm logic error.
It should be noted that; In the embodiment of the invention; When being subsequent use Boot program start; Also need the sheet choosing that the driving operations logic provides to switch the choosing of register Reg3 transfer strip, chip selection signal is switched to the sheet arrangement (be that CPU chip selection signal CS0 inserts Flash0, CPU chip selection signal CS1 inserts Flash1) behind the electrifying startup.
Step 4, Equipment Inspection are main with whether there being the main Boot program of using in the Boot district.
If the main Boot program of using then is written to the master with in the Boot district with subsequent use Boot program, and execution in step 5.
If the main Boot program of using is arranged, then direct execution in step 5.
Step 5, equipment carry out active/standby version verification with the Boot program.
If subsequent use Boot program is redaction (being that subsequent use Boot program version is higher than the main Boot program version of using), then equipment need be written to subsequent use Boot program main with in the Boot district.If write success, then execution in step 6; If write unsuccessfully, then equipment need be put to be masked as and main can not use with the Boot district, and this sign is kept in the Boot version district, and whether subsequent detection master exists fault with the Flash chip in Boot district, and this process is given unnecessary details no longer in detail.
If main consistent with subsequent use Boot program version with the Boot program version, then direct execution in step 6.
Step 6, equipment are confirmed subsequent use Boot program start completion, realize the Boot double copies.
In sum, in the embodiment of the invention, can effectively prevent the problem that the damage of Boot program causes equipment not start; Main with after the damage of Boot program; Can be by subsequent use Boot program start, and upgrade the main Boot program of use automatically, main when the subsequent use Boot program of automatic detection is not latest edition behind the Boot program start; Automatically updated subsequent use Boot program realizes two Boot backups.
Embodiment three
Based on the inventive concept same with said method, a kind of alternate device of Boot program also is provided in the embodiment of the invention, as shown in Figure 7, this equipment comprises:
First starts module 11, is used to start the main Boot program of using;
Second starts module 14, is used for not starting when successful when said leading with the Boot program, starts subsequent use Boot program;
Said main with the Boot procedure stores the master of a Flash chip with the Boot district in, said subsequent use Boot procedure stores is in the subsequent use Boot district of the 2nd Flash chip; And,
CPU chip selection signal CS0 inserts a said Flash chip through logic chip, and CPU chip selection signal CS1 inserts said the 2nd Flash chip through said logic chip; And,
When starting said master with the Boot program; Control said CPU chip selection signal CS0 through said logic chip and insert a said Flash chip; And when starting said subsequent use Boot program; Realize that through said logic chip sheet selects handoff functionality, control said CPU chip selection signal CS0 and insert said the 2nd Flash chip; And,
Said logic chip is provided for detecting the Boot program and whether starts successful logic timer, and what be used to show the success of Boot program start forbids logic timer register, is used to realize that sheet selects the Boot slice choosing of handoff functionality to switch register.
Said first starts module 11, specifically is used for inserting a said Flash chip through said CPU chip selection signal CS0, and the master who obtains a said Flash chip is with the main Boot program of using of being stored in the Boot district, to start the said main Boot program of using.
Said first judge module 12 specifically is used for when starting said master with the Boot program, utilizing said logic timer to pick up counting;
When knowing said master, utilize the said logic timer register of forbidding to close said logic timer, and confirm said main with the success of Boot program start with the success of Boot program start;
If said logic timer is not cut out by the said logic timer register of forbidding at the appointed time, confirm that then said master does not start success with the Boot program.
Said second starts module 14; Specifically be used for switching the said CPU chip selection signal of register controlled CS0 and insert said the 2nd Flash chip through said Boot slice choosing; Obtain the subsequent use Boot program of being stored in the subsequent use Boot district of said the 2nd Flash chip, to start said subsequent use Boot program.
Said second judge module 15 specifically is used for when starting said subsequent use Boot program, utilizing said logic timer to pick up counting;
When knowing that said subsequent use Boot program start is successful, utilize the said logic timer register of forbidding to close said logic timer, and confirm said subsequent use Boot program start success;
If said logic timer is not cut out by the said logic timer register of forbidding at the appointed time, confirm that then said subsequent use Boot program does not start success.
Store main in the one Flash chip and/or the 2nd Flash chip with Boot program version and subsequent use Boot program version;
Said first determination module 13 also is used for when said master is successful with the Boot program start, detecting in the said subsequent use Boot district whether have subsequent use Boot program;
If there is not subsequent use Boot program, then utilize said master in said subsequent use Boot district, to write subsequent use Boot program with the Boot program;
If there is subsequent use Boot program, and main be higher than subsequent use Boot program version, then utilize said leading in said subsequent use Boot district, to write subsequent use Boot program with the Boot program with the Boot program version.
Store main in the one Flash chip and/or the 2nd Flash chip with Boot program version and subsequent use Boot program version;
Said second determination module 16 also is used for when said subsequent use Boot program start is successful, detects said master with whether there being the main Boot program of using in the Boot district;
If do not exist and main do not use the Boot program, then utilize said subsequent use Boot program to write in the Boot district and become owner of the Boot program of using said master;
If exist and mainly use the Boot program, and subsequent use Boot program version is higher than to lead and uses the Boot program version, then utilizes said subsequent use Boot program to write in the Boot district said master and becomes owner of the Boot program of using.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.
Claims (16)
1.
A kind of backup method of Boot program is characterized in that, comprising:
Start the master and use the Boot program, and judge whether said master starts success with the Boot program;
If said main, then confirm the completion of Boot program start with the success of Boot program start;
If said master does not start success with the Boot program, then start subsequent use Boot program, and judge whether said subsequent use Boot program starts success;
are if the completion of Boot program start is then confirmed in said subsequent use Boot program start success.
2.
The method of claim 1 is characterized in that,
Said main with the Boot procedure stores the master of a Flash chip with the Boot district in, said subsequent use Boot procedure stores is in the subsequent use Boot district of the 2nd Flash chip; And,
CPU chip selection signal CS0 inserts a said Flash chip through logic chip, and CPU chip selection signal CS1 inserts said the 2nd Flash chip through said logic chip; And,
When starting said master with the Boot program; Control said CPU chip selection signal CS0 through said logic chip and insert a said Flash chip; And when starting said subsequent use Boot program; Realize that through said logic chip sheet selects handoff functionality, control said CPU chip selection signal CS0 and insert said the 2nd Flash chip; And,
said logic chip is provided for detecting the Boot program and whether starts successful logic timer; What be used to show the success of Boot program start forbids logic timer register, is used to realize that sheet selects the Boot slice choosing of handoff functionality to switch register.
3.
Method as claimed in claim 2 is characterized in that, starts the master and comprises with the Boot program:
A said Flash chip is inserted through said CPU chip selection signal CS0 in
, and the master who obtains a said Flash chip is with the main Boot program of using of being stored in the Boot district, to start the said main Boot program of using.
4.
Method as claimed in claim 2 is characterized in that, judges that said main whether the startup successfully with the Boot program comprises:
When starting said master, utilize said logic timer to pick up counting with the Boot program;
When knowing said master, utilize the said logic timer register of forbidding to close said logic timer, and confirm said main with the success of Boot program start with the success of Boot program start;
confirm that then said master does not start success with the Boot program if said logic timer is not cut out by the said logic timer register of forbidding at the appointed time.
5.
Method as claimed in claim 2 is characterized in that, starts subsequent use Boot program and comprises:
are switched the said CPU chip selection signal of register controlled CS0 through said Boot slice choosing and are inserted said the 2nd Flash chip; Obtain the subsequent use Boot program of being stored in the subsequent use Boot district of said the 2nd Flash chip, to start said subsequent use Boot program.
6.
Method as claimed in claim 2 is characterized in that, judges whether said subsequent use Boot program starts successfully to comprise:
When starting said subsequent use Boot program, utilize said logic timer to pick up counting;
When knowing that said subsequent use Boot program start is successful, utilize the said logic timer register of forbidding to close said logic timer, and confirm said subsequent use Boot program start success;
confirm that then said subsequent use Boot program does not start success if said logic timer is not cut out by the said logic timer register of forbidding at the appointed time.
7.
Method as claimed in claim 2 is characterized in that, stores main with Boot program version and subsequent use Boot program version in a Flash chip and/or the 2nd Flash chip; When said master was successful with the Boot program start, said method also comprised:
Detect in the said subsequent use Boot district and whether have subsequent use Boot program;
If there is not subsequent use Boot program, then utilize said master in said subsequent use Boot district, to write subsequent use Boot program with the Boot program;
If there is subsequent use Boot program in
, and mainly be higher than subsequent use Boot program version with the Boot program version, then utilizes said leading in said subsequent use Boot district, to write subsequent use Boot program with the Boot program.
8.
Method as claimed in claim 2 is characterized in that, stores main with Boot program version and subsequent use Boot program version in a Flash chip and/or the 2nd Flash chip; When said subsequent use Boot program start was successful, said method also comprised:
Detect said master with whether there being the main Boot program of using in the Boot district;
If do not exist and main do not use the Boot program, then utilize said subsequent use Boot program to write in the Boot district and become owner of the Boot program of using said master;
if exist and mainly use the Boot program, and subsequent use Boot program version is higher than to lead and uses the Boot program version, then utilizes said subsequent use Boot program to write in the Boot district said master and become owner of the Boot program of using.
9.
A kind of alternate device of Boot program is characterized in that, comprising:
First starts module, is used to start the main Boot program of using;
First judge module is used to judge whether said master starts success with the Boot program;
First determination module is used for when said master is successful with the Boot program start, confirming the completion of Boot program start;
Second starts module, is used for not starting when successful when said leading with the Boot program, starts subsequent use Boot program;
Second judge module is used to judge whether said subsequent use Boot program starts success;
second determination module is used for when said subsequent use Boot program start is successful, confirming the completion of Boot program start.
10.
Equipment as claimed in claim 9 is characterized in that,
Said main with the Boot procedure stores the master of a Flash chip with the Boot district in, said subsequent use Boot procedure stores is in the subsequent use Boot district of the 2nd Flash chip; And,
CPU chip selection signal CS0 inserts a said Flash chip through logic chip, and CPU chip selection signal CS1 inserts said the 2nd Flash chip through said logic chip; And,
When starting said master with the Boot program; Control said CPU chip selection signal CS0 through said logic chip and insert a said Flash chip; And when starting said subsequent use Boot program; Realize that through said logic chip sheet selects handoff functionality, control said CPU chip selection signal CS0 and insert said the 2nd Flash chip; And,
said logic chip is provided for detecting the Boot program and whether starts successful logic timer; What be used to show the success of Boot program start forbids logic timer register, is used to realize that sheet selects the Boot slice choosing of handoff functionality to switch register.
11.
Equipment as claimed in claim 10 is characterized in that,
said first start module; Specifically be used for inserting a said Flash chip through said CPU chip selection signal CS0; The master who obtains a said Flash chip is with the main Boot program of using of being stored in the Boot district, to start the said main Boot program of using.
12.
Equipment as claimed in claim 10 is characterized in that,
Said first judge module specifically is used for when starting said master with the Boot program, utilizing said logic timer to pick up counting;
When knowing said master, utilize the said logic timer register of forbidding to close said logic timer, and confirm said main with the success of Boot program start with the success of Boot program start;
confirm that then said master does not start success with the Boot program if said logic timer is not cut out by the said logic timer register of forbidding at the appointed time.
13.
Equipment as claimed in claim 10 is characterized in that,
said second start module; Specifically be used for switching the said CPU chip selection signal of register controlled CS0 and insert said the 2nd Flash chip through said Boot slice choosing; Obtain the subsequent use Boot program of being stored in the subsequent use Boot district of said the 2nd Flash chip, to start said subsequent use Boot program.
14.
Equipment as claimed in claim 10 is characterized in that,
Said second judge module specifically is used for when starting said subsequent use Boot program, utilizing said logic timer to pick up counting;
When knowing that said subsequent use Boot program start is successful, utilize the said logic timer register of forbidding to close said logic timer, and confirm said subsequent use Boot program start success;
confirm that then said subsequent use Boot program does not start success if said logic timer is not cut out by the said logic timer register of forbidding at the appointed time.
15.
Equipment as claimed in claim 10 is characterized in that, stores main with Boot program version and subsequent use Boot program version in a Flash chip and/or the 2nd Flash chip;
Said first determination module also is used for when said master is successful with the Boot program start, detecting in the said subsequent use Boot district whether have subsequent use Boot program;
If there is not subsequent use Boot program, then utilize said master in said subsequent use Boot district, to write subsequent use Boot program with the Boot program;
If there is subsequent use Boot program in
, and mainly be higher than subsequent use Boot program version with the Boot program version, then utilizes said leading in said subsequent use Boot district, to write subsequent use Boot program with the Boot program.
16.
Equipment as claimed in claim 10 is characterized in that, stores main with Boot program version and subsequent use Boot program version in a Flash chip and/or the 2nd Flash chip;
Said second determination module also is used for when said subsequent use Boot program start is successful, detects said master with whether there being the main Boot program of using in the Boot district;
If do not exist and main do not use the Boot program, then utilize said subsequent use Boot program to write in the Boot district and become owner of the Boot program of using said master;
if exist and mainly use the Boot program, and subsequent use Boot program version is higher than to lead and uses the Boot program version, then utilizes said subsequent use Boot program to write in the Boot district said master and become owner of the Boot program of using.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110373616XA CN102520979A (en) | 2011-11-22 | 2011-11-22 | Boot program backup method and Boot program backup device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110373616XA CN102520979A (en) | 2011-11-22 | 2011-11-22 | Boot program backup method and Boot program backup device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102520979A true CN102520979A (en) | 2012-06-27 |
Family
ID=46291921
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110373616XA Pending CN102520979A (en) | 2011-11-22 | 2011-11-22 | Boot program backup method and Boot program backup device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102520979A (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461657A (en) * | 2014-12-29 | 2015-03-25 | 迈普通信技术股份有限公司 | Main/back-up embedded type bootstrap start-up method and device |
CN104572181A (en) * | 2014-12-19 | 2015-04-29 | 大唐移动通信设备有限公司 | Method and device for starting backup bootstrap program |
CN105005492A (en) * | 2015-08-17 | 2015-10-28 | 上海斐讯数据通信技术有限公司 | Embedded equipment and software upgrading method |
CN106952425A (en) * | 2017-02-15 | 2017-07-14 | 深圳市新国都支付技术有限公司 | A kind of terminal remote upgrade method and POS terminal |
CN108153616A (en) * | 2016-12-06 | 2018-06-12 | 北京京存技术有限公司 | A kind of storage chip startup program detection method and device |
CN109408145A (en) * | 2018-10-18 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of processor starting method, apparatus, system and computer readable storage medium |
CN109491716A (en) * | 2018-10-19 | 2019-03-19 | 北京行易道科技有限公司 | Start method and device, program storage method and device |
CN109783148A (en) * | 2019-01-15 | 2019-05-21 | 湖南泽天智航电子技术有限公司 | A kind of U-Boot starting double copies system |
CN110188004A (en) * | 2019-05-31 | 2019-08-30 | 烽火通信科技股份有限公司 | A kind of double copies software system management method and system of terminal device |
CN110298174A (en) * | 2019-07-03 | 2019-10-01 | 西安易朴通讯技术有限公司 | Firmware management method and firmware management system |
CN110308939A (en) * | 2019-07-01 | 2019-10-08 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN110825407A (en) * | 2019-10-28 | 2020-02-21 | 上海大郡动力控制技术有限公司 | Program updating rollback method for new energy automobile motor controller |
CN113590150A (en) * | 2021-06-30 | 2021-11-02 | 北京智芯微电子科技有限公司 | Memory bank control method, program upgrading method and device |
CN113934567A (en) * | 2021-11-23 | 2022-01-14 | 联想(北京)有限公司 | Boot program repair method, system, electronic device and storage medium |
CN114968380A (en) * | 2021-02-26 | 2022-08-30 | 南宁富联富桂精密工业有限公司 | Electronic device and multiple starting method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1425963A (en) * | 2001-12-11 | 2003-06-25 | 深圳市中兴通讯股份有限公司上海第二研究所 | Embedded system software loading device and method |
CN101030140A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Device and method for on-line updating fastener programm |
CN101329632A (en) * | 2008-04-30 | 2008-12-24 | 中兴通讯股份有限公司 | Method and apparatus for starting CPU by BOOT |
CN102073517A (en) * | 2009-11-23 | 2011-05-25 | 中兴通讯股份有限公司 | Upgrading and backup method and device for embedded system |
-
2011
- 2011-11-22 CN CN201110373616XA patent/CN102520979A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1425963A (en) * | 2001-12-11 | 2003-06-25 | 深圳市中兴通讯股份有限公司上海第二研究所 | Embedded system software loading device and method |
CN101030140A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Device and method for on-line updating fastener programm |
CN101329632A (en) * | 2008-04-30 | 2008-12-24 | 中兴通讯股份有限公司 | Method and apparatus for starting CPU by BOOT |
CN102073517A (en) * | 2009-11-23 | 2011-05-25 | 中兴通讯股份有限公司 | Upgrading and backup method and device for embedded system |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572181A (en) * | 2014-12-19 | 2015-04-29 | 大唐移动通信设备有限公司 | Method and device for starting backup bootstrap program |
CN104461657A (en) * | 2014-12-29 | 2015-03-25 | 迈普通信技术股份有限公司 | Main/back-up embedded type bootstrap start-up method and device |
CN105005492B (en) * | 2015-08-17 | 2018-06-19 | 上海斐讯数据通信技术有限公司 | A kind of embedded device and a kind of method for upgrading software |
CN105005492A (en) * | 2015-08-17 | 2015-10-28 | 上海斐讯数据通信技术有限公司 | Embedded equipment and software upgrading method |
CN108153616A (en) * | 2016-12-06 | 2018-06-12 | 北京京存技术有限公司 | A kind of storage chip startup program detection method and device |
CN106952425B (en) * | 2017-02-15 | 2019-05-14 | 深圳市新国都支付技术有限公司 | A kind of terminal remote upgrade method and POS terminal |
CN106952425A (en) * | 2017-02-15 | 2017-07-14 | 深圳市新国都支付技术有限公司 | A kind of terminal remote upgrade method and POS terminal |
CN109408145A (en) * | 2018-10-18 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of processor starting method, apparatus, system and computer readable storage medium |
CN109408145B (en) * | 2018-10-18 | 2022-02-18 | 郑州云海信息技术有限公司 | Processor starting method, device, system and computer readable storage medium |
CN109491716B (en) * | 2018-10-19 | 2021-11-16 | 北京行易道科技有限公司 | Starting method and device, program storage method and device |
CN109491716A (en) * | 2018-10-19 | 2019-03-19 | 北京行易道科技有限公司 | Start method and device, program storage method and device |
CN109783148A (en) * | 2019-01-15 | 2019-05-21 | 湖南泽天智航电子技术有限公司 | A kind of U-Boot starting double copies system |
CN110188004A (en) * | 2019-05-31 | 2019-08-30 | 烽火通信科技股份有限公司 | A kind of double copies software system management method and system of terminal device |
CN110308939A (en) * | 2019-07-01 | 2019-10-08 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN110298174A (en) * | 2019-07-03 | 2019-10-01 | 西安易朴通讯技术有限公司 | Firmware management method and firmware management system |
CN110825407A (en) * | 2019-10-28 | 2020-02-21 | 上海大郡动力控制技术有限公司 | Program updating rollback method for new energy automobile motor controller |
CN114968380A (en) * | 2021-02-26 | 2022-08-30 | 南宁富联富桂精密工业有限公司 | Electronic device and multiple starting method |
CN113590150A (en) * | 2021-06-30 | 2021-11-02 | 北京智芯微电子科技有限公司 | Memory bank control method, program upgrading method and device |
CN113934567A (en) * | 2021-11-23 | 2022-01-14 | 联想(北京)有限公司 | Boot program repair method, system, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102520979A (en) | Boot program backup method and Boot program backup device | |
CN101329632B (en) | Method and apparatus for starting CPU by BOOT | |
CN104834575A (en) | Firmware recovery method and device | |
CN105700901B (en) | Starting method, device and computer system | |
EP2254051B1 (en) | Computer system with damaged bios data recovering function and recovering method thereof | |
CN109032632B (en) | FOTA upgrading method, wireless communication terminal and storage medium | |
CN102906710B (en) | A kind of Bootrom backup method and device | |
CN100492305C (en) | Fast restoration method of computer system and apparatus | |
CN103077060A (en) | Method, device and system for switching master basic input/output system (BIOS) and spare BIOS | |
CN111694760B (en) | Server system, flash memory module and method for updating firmware mapping file | |
CN101882097A (en) | Main control board, embedded system and backup method for embedded system | |
CN105389525B (en) | The management method and system of blade server | |
CN105653405A (en) | Fault processing method and system of U-boot | |
CN101111017A (en) | Mobile terminal for backup and recovery of software and data and method thereof | |
CN102298545A (en) | System startup boot processing method and device | |
CN112612524A (en) | Method, device and equipment for starting Linux system and storage medium | |
CN105677673A (en) | Business processing method, device and system | |
CN103677862A (en) | Upgrading method and device of EPLD program | |
CN105589713A (en) | Electronic equipment and starting method therefor | |
CN102508676A (en) | Startup method and device of embedded system | |
CN104407806A (en) | Method and device for revising hard disk information of redundant array group of independent disk (RAID) | |
CN101739315A (en) | System and method for automatically starting backup firmware | |
CN110703985B (en) | Data synchronization method and out-of-band management equipment | |
CN104184614A (en) | Rollback configuration method and apparatus | |
CN108418707B (en) | Method for upgrading mutual online backup of double CPLDs in communication system and service veneer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120627 |