CN100353321C - System with primary application and spare program and starting method - Google Patents

System with primary application and spare program and starting method Download PDF

Info

Publication number
CN100353321C
CN100353321C CNB2004100056501A CN200410005650A CN100353321C CN 100353321 C CN100353321 C CN 100353321C CN B2004100056501 A CNB2004100056501 A CN B2004100056501A CN 200410005650 A CN200410005650 A CN 200410005650A CN 100353321 C CN100353321 C CN 100353321C
Authority
CN
China
Prior art keywords
boot
main
logic controller
storer
processor
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
CNB2004100056501A
Other languages
Chinese (zh)
Other versions
CN1658161A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100056501A priority Critical patent/CN100353321C/en
Publication of CN1658161A publication Critical patent/CN1658161A/en
Application granted granted Critical
Publication of CN100353321C publication Critical patent/CN100353321C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention discloses a starting method and a system with a main guide program and a spare guide program, wherein the system comprises a processor, a main memory, a spare memory and a logic controller; the main memory is used for storing the main guide program; the spare memory is used for storing the spare guide program; the logic controller is connected with the processor, the main memory and the spare memory. When the system is started, the logic controller selects the main memory or the spare memory to execute the guide programs.

Description

System and startup method with primary and backup boot
Technical field
The present invention relates to the electronics and the communication technology, relate in particular to system and startup method with primary and backup boot.
Background technology
Along with the develop rapidly of the communication technology, new communications protocol and new hardware interface constantly are developed, and upgrade thereby cause equipment manufacturers have been sold to user's software systems.The online upgrading of application software is more universal, and in order to improve the maintainability of product, the online upgrading that is used for the boot of the ROM (read-only memory) (to call BOOTROM in the following text) that guidance system starts is brought into schedule.
The existing BOOTROM of online upgrading ability veneer that can provide only is to use a slice, and this BOOTROM that starts and upgrade and be to use by introduce write signal on this chip, makes it possess the ability of online upgrading.
Because the duty of equipment is various in the time of online upgrading, if unexpected system cut-off or restart when being upgraded to half, will cause the upgrading failure, owing to have only a slice BOOTROM, upgrading failure back veneer can't start once more, therefore can not upgrade once more, can only reprocess, the height that the maintenance cost of veneer can be very like this, but also need bear other responsibilities that the client can't use in rework process.
In addition owing to there is write signal to introduce among unique BOOTROM, software maloperation may be arranged and wrong rewriting the content among the BOOTROM, cause to start failure next time, also can't upgrade, cause reprocessing of veneer.
Summary of the invention
The object of the present invention is to provide a kind of system and startup method with primary and backup boot, with the unique boot that solves system in the prior art after upgrading failure or wrong the rewriting, exist can't start-up system problem.
For addressing the above problem, the invention provides following technical scheme:
A kind of system start method with primary and backup boot, this method is:
Select the main boot guidance system of using to start, and pick up counting;
When timing arrival system can finish the schedule time of normal startup, judge whether particular register is set to predetermined value;
If then system moves other programs, otherwise resetting system also selects the backup boot guidance system to start.
Wherein:
Described main only have to lead in boot and backup boot can carry out online upgrading with boot.When the master is carried out online upgrading with boot, check at first whether enable switch is opened,, otherwise do not allow upgrading if then allow upgrading.
Before carrying out boot, described particular register is arranged to the initial value different with predetermined value.
A kind of system with primary and backup boot comprises processor, is connected and is used to store the storer of boot with processor; Wherein, this system also comprises the logic controller that is connected with storer with processor; Described storer comprises the main main shelf storage with storer and storage backup boot with boot of storage; Wherein, from main carry out the guiding journey with storer after, when normal system started in system can finish schedule time of normal startup, described logic controller resetting system was also selected to carry out boot from main with storer or shelf storage.
Described logic controller is connected with processor with control line by address bus, data bus; The described main storer of using is connected with processor by address bus, data bus with shelf storage, is connected with logic controller by control line.
The control line that logic controller is connected with processor comprises data write signal line, the chip selection signal line of selecting boot and the chip selection signal line of this logic controller.
The main control line that is connected with logic controller with storer comprises chip selection signal line and data write signal line; The control line that shelf storage is connected with logic controller is the chip selection signal line.
The present invention has primary and backup boot, selects backup boot to come guidance system when the execution master fails with boot automatically, can guarantee the reliability of system start-up; And under main situation, can make system start-up with boot upgrading failure in the same old way, upgrade next time, thereby have the maintainable good and low characteristics of maintenance cost.
Description of drawings
Fig. 1 is the schematic diagram of the primary and backup storer of control in the system of the present invention.
Embodiment
Consult system shown in Figure 1, comprise processor, logic controller, main with storer (to call the main BOOTROM that uses in the following text) and shelf storage (to call standby BOOTROM in the following text).Main with storing the boot that guidance system starts among BOOTROM and the standby BOOTROM respectively, the master adopts erasable programmable logic device (PLD) (to call EPLD in the following text) with logic controller.
EPLD, the main BOOTROM that uses are connected with processor with address wire by data line with standby BOOTROM.The sheet of EPLD receiving processor output is selected signal EPLD_CS, is selected to start chip selection signal BOOT_CS and the data line write signal DATA_WR of BOOTROM.Chip selection signal BOOT_CS is divided into control after EPLD control main with the chip selection signal MAIN_CS of BOOTROM and the chip selection signal BACK_CS of the standby BOOTROM of control.EPLD only sends one road write signal MAINBOOT_WR and uses BOOTROM to main, and standby BOOTROM does not have write signal.
When system power-on reset, processor can send the BOOT_CS signal and select the BOOTROM chip enable, and this signal is sent to EPLD, produces chip selection signal EPLD_CS simultaneously and makes EPLD in running order.EPLD produces chip selection signal MAIN_CS according to chip selection signal BOOT_CS and gives the main BOOTROM that uses, and chooses the main BOOTROM, code of using to begin to carry out with BOOTROM from main by chip selection signal MAIN_CS, and the timer among the EPLD picks up counting simultaneously.Main with after the normal startup of BOOTROM, meeting write a predetermined value in the appointment register of EPLD, be used to refer to now to start with BOOTROM from main; This appointment register is set to the initial value different with predetermined value before the execution master is with the boot among the BOOTROM.If EPLD has received that in the time that system should be able to normally start this is worth then system normally starts, other programs bring into operation, if EPLD does not also receive the main value of writing with BOOTROM during to time that system should be able to normally start in timing, promptly specifying the value in the register is not predetermined value, then think main and problem occurred with BOOTROM, resetting processor is prepared to start from standby BOOTROM guiding.After processor had sent the BOOTROM chip selection signal, EPLD output chip selection signal BACK_CS gave standby BOOTROM specifically, and system begins from standby BOOTROM guiding.Because standby BOOTROM do not have write signal, so content can not rewritten, situation about can't guidance system starting can not appear yet.
In order to reduce the main probability of being rewritten arbitrarily by software with BOOTROM, an enable switch is set in EPLD, check earlier before carrying out online upgrading whether this switch is opened, only EPLD could export write signal MAINBOOT_WR and give the main BOOTROM that uses under the situation that this enable switch is opened, therefore, before upgrading, earlier this enable switch is opened, closed this enable switch after the upgrading master finishes with BOOTROM.Enable switch can realize by in a register particular value being set.Can certainly be outside EPLD, to realize, judge by EPLD whether this hardware switch is opened by hardware mode commonly used.
It is main that one of them also can be placed in the high capacity FLASH with mainframe code together with boot and backup boot, but by logic controller control selection from main with boot still from the backup boot guidance system, its core is exactly to come the chip selection signal of the BOOTROM that processor controls sends to come the startup of control system by logic chip.
The present invention can't can automatically carry out from backup boot under the situation of guidance system startup with boot main, can guarantee that system can normally start, and is particularly useful for the system of requirement online upgrading.

Claims (8)

1, a kind of system start method with primary and backup boot is characterized in that comprising step:
Select the main boot guidance system of using to start, and pick up counting;
When timing arrival system can finish the schedule time of normal startup, judge whether particular register is set to predetermined value;
If then system moves other programs, otherwise resetting system also selects the backup boot guidance system to start.
2, the system as claimed in claim 1 startup method is characterized in that, described main only have to lead in boot and backup boot can carry out online upgrading with boot.
3, system start method as claimed in claim 2 is characterized in that, when the master is carried out online upgrading with boot, checks at first whether enable switch is opened, if then allow upgrading, otherwise does not allow upgrading.
4, the system as claimed in claim 1 startup method is characterized in that, before carrying out boot described particular register is arranged to the initial value different with predetermined value.
5, a kind of system with primary and backup boot comprises processor, is connected and is used to store the storer of boot with processor; It is characterized in that this system also comprises the logic controller that is connected with storer with processor; Described storer comprises the main main shelf storage with storer and storage backup boot with boot of storage; Wherein, from main carry out the guiding journey with storer after, when normal system started in system can finish schedule time of normal startup, described logic controller resetting system was also selected to carry out boot from shelf storage.
6, system as claimed in claim 5 is characterized in that, described logic controller is connected with processor with control line by address bus, data bus; The described main storer of using is connected with processor by address bus, data bus with shelf storage, is connected with logic controller by control line.
7, system as claimed in claim 6 is characterized in that, the control line that logic controller is connected with processor comprises data write signal line, the chip selection signal line of selecting boot and the chip selection signal line of this logic controller.
As claim 6 or 7 described systems, it is characterized in that 8, the main control line that is connected with logic controller with storer comprises chip selection signal line and data write signal line; The control line that shelf storage is connected with logic controller is the chip selection signal line.
CNB2004100056501A 2004-02-21 2004-02-21 System with primary application and spare program and starting method Expired - Fee Related CN100353321C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100056501A CN100353321C (en) 2004-02-21 2004-02-21 System with primary application and spare program and starting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100056501A CN100353321C (en) 2004-02-21 2004-02-21 System with primary application and spare program and starting method

Publications (2)

Publication Number Publication Date
CN1658161A CN1658161A (en) 2005-08-24
CN100353321C true CN100353321C (en) 2007-12-05

Family

ID=35007666

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100056501A Expired - Fee Related CN100353321C (en) 2004-02-21 2004-02-21 System with primary application and spare program and starting method

Country Status (1)

Country Link
CN (1) CN100353321C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373337C (en) * 2006-01-20 2008-03-05 北京朗通环球科技有限公司 Guide system of embedded system
CN101470533B (en) * 2007-12-26 2011-02-16 宏正自动科技股份有限公司 Multi-computer switching system and video switching system
CN101493776B (en) * 2009-02-18 2012-08-22 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and power-on method and system thereof
CN102135891B (en) * 2010-01-21 2013-06-26 杭州华三通信技术有限公司 System capable of realizing bootload, bootload control device and method
CN102236590B (en) * 2010-04-21 2013-11-20 研华股份有限公司 Computer system with system rescue and system rescue method
CN104111851B (en) * 2014-07-18 2017-09-22 广州市中海达测绘仪器有限公司 Embedded system switches starter
CN105468390B (en) * 2014-09-05 2020-11-06 中兴通讯股份有限公司 BOOT online upgrading device and method
CN105187752B (en) * 2015-07-31 2019-04-19 深圳市哈工大交通电子技术有限公司 A kind of image processing platform of high reliability
CN105938445B (en) * 2015-07-31 2019-09-06 杭州迪普科技股份有限公司 Data back up method and device
CN105653405B (en) * 2015-12-31 2018-12-14 北京锐安科技有限公司 A kind of fault handling method and system of Generic Bootstrap
CN111338771B (en) * 2020-02-13 2023-06-30 深圳震有科技股份有限公司 Method and device for processing boot program switching, computer equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0697791A2 (en) * 1994-08-05 1996-02-21 Thomson Consumer Electronics, Inc. Apparatus for determining if the duration of a power failure exceeded predetermined limits
CN1373427A (en) * 2001-03-01 2002-10-09 深圳市中兴通讯股份有限公司 Device and method for implementing dual system slots
CN1464396A (en) * 2002-06-27 2003-12-31 深圳市中兴通讯股份有限公司 Method for realizing backup between servers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0697791A2 (en) * 1994-08-05 1996-02-21 Thomson Consumer Electronics, Inc. Apparatus for determining if the duration of a power failure exceeded predetermined limits
CN1373427A (en) * 2001-03-01 2002-10-09 深圳市中兴通讯股份有限公司 Device and method for implementing dual system slots
CN1464396A (en) * 2002-06-27 2003-12-31 深圳市中兴通讯股份有限公司 Method for realizing backup between servers

Also Published As

Publication number Publication date
CN1658161A (en) 2005-08-24

Similar Documents

Publication Publication Date Title
CN104090796B (en) A kind of embedded device method for updating program and system
CN100353321C (en) System with primary application and spare program and starting method
CN102073517A (en) Upgrading and backup method and device for embedded system
CN109358882B (en) Method and device for upgrading firmware of television terminal
CN103761122A (en) Chip firmware updating method and system
CN107704285B (en) Multi-version configuration chip, system and method for field programmable gate array
CN106201590B (en) A kind of FPGA configuration file loading method and system
CN101169728A (en) Dualboot starting device and method
CN101271396A (en) Electronic device and method for on-line updating firmware
CN103197943A (en) Online single-chip microcomputer upgrading method and system
CN102508686A (en) Method and system for realizing safe upgrading of system
CN103365696A (en) BIOS (Basic Input Output System) image file obtaining method and device
CN102722394A (en) Start upgrading method of embedded equipment
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN100549959C (en) Bootstrap on-line upgrading method
CN108920168B (en) Bootloader method supporting simultaneous upgrading of multiple similar ECUs and having function of preventing program mismatching
CN103309713A (en) System upgrading method, device and equipment
CN107071570A (en) A kind of set top box upgrading method and device
CN105468390B (en) BOOT online upgrading device and method
CN109408297A (en) A kind of method, apparatus of main and standby competition, equipment and storage medium
CN110673867A (en) CPLD online upgrading method, device and system
CN103079108A (en) Set top box and starting method thereof
CN107315607A (en) One kind driving adaptive allocation system
CN102508676A (en) Startup method and device of embedded system
US7890666B2 (en) Embedded protocol selection technique, related interface and computer program product

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: 20071205

Termination date: 20150221

EXPY Termination of patent right or utility model