CN101169728A - Dualboot starting device and method - Google Patents
Dualboot starting device and method Download PDFInfo
- Publication number
- CN101169728A CN101169728A CNA2007101779446A CN200710177944A CN101169728A CN 101169728 A CN101169728 A CN 101169728A CN A2007101779446 A CNA2007101779446 A CN A2007101779446A CN 200710177944 A CN200710177944 A CN 200710177944A CN 101169728 A CN101169728 A CN 101169728A
- Authority
- CN
- China
- Prior art keywords
- boot
- chip selection
- veneer
- reset
- file
- 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
Abstract
The invention discloses a dual-boot start-up device, which comprises a dual-boot module and a chip selection control module, wherein, the dual-boot module is used for storing and backing up a start-up file and selecting a corresponding file to boot single-board start-up according to a chip selection signal; the chip selection control module is used for providing the chip selection signal to the dual-boot module according to the chip selection strategy. The invention also discloses a corresponding method, which comprises determining whether the reset count reaches a switching threshold, if yes, selecting to boot the single-board start-up from the backed-up start-up file; otherwise selecting to boot the single-board start-up from the start-up file; and after booting the single-board start-up, marking the start-up result (succeeded or failed). The invention is particularly suitable for maintenance application of equipment at sites with harsh environment, and has the advantages of reduced time and cost of manual maintenance, and improved equipment maintainability.
Description
Technical field
The present invention relates to communication field starter gear technology, particularly a kind of Dualboot starting device and method.
Background technology
Present stage telecommunications, many veneers of communication field multimachine frame system ensemble, most complicated function veneers all have the master cpu unit of oneself.In the cpu system part of system master veneer, guiding (boot) part is the basis of CPU mini system, and curable is higher, and upgradability is relatively poor.Present more using method is to select for use socket to add that the low capacity flash memory (Flash) of leaded plastic chip carrier (PLCC, Plastic Leaded Chip Carrier) encapsulation bears the physical medium of boot function.As shown in Figure 1, master cpu connects internal memory and guiding ROM (read-only memory) (ROM, Read Only Memory).The shortcoming of this device is when single board updating is regenerated, and poor reliability if online upgrade function is provided, in case boot files goes wrong, will cause the online upgrading failure, can not to do not cut off the power supply in the communication field, the reliability of remote upgrade provides enough assurances.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of Dualboot starting device, and this device reliability is strong.
Another object of the present invention is to provide a kind of dual boot startup method, this method is simple to operate, good reliability.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of Dualboot starting device, this device comprise dual boot module and sheet selected control molding piece, wherein:
Dual boot module stores startup file and backup startup file are selected corresponding file guiding single board starting according to chip selection signal;
Sheet selected control molding piece is used for providing chip selection signal according to sheet choosing strategy to the dual boot module.
Described dual boot module comprises the guiding ROM (read-only memory) Boot ROM that stores startup file, the flash memory Flash of storage backup startup file.
Described selected control molding piece is made of logical block and watchdog circuit, and watchdog circuit is used to provide reset signal, and logical block selects in the strategy variation of reset signal to determine chip selection signal according to sheet.
Described dual boot module, sheet selected control molding piece all connect master cpu, and master cpu successfully starts the back management single board at veneer.
Described logical block is made of electrically programmable logical device EPLD.
A kind of dual boot startup method is set chip selection signal, switching threshold, and this method comprises:
Judge whether reset count reaches switching threshold, if select from backup startup file guiding single board starting; Otherwise select startup file guiding single board starting;
After the guiding single board starting was finished, it was success or failure that mark starts the result.
This method also comprises,
Be provided with and be initially reset time, reset count zero, veneer begins to start simultaneously, and calculate veneer and load the used time,
Arrive in reset time, judges whether veneer starts success, if give CPU with the veneer control; Otherwise reset count adds 1, and board resetting is restarted, and successfully starts until veneer.
Described switching threshold is used to avoid the sheet choosing of misoperation to switch, and is the natural number more than 2.
The present invention utilizes two boot starter gears, this device solves the communication system devices veneer when carrying out the boot remote upgrade, because of such abnormal conditions such as communication link failure, power cut-off make the boot program crash, cause system can not reset/rework after heavily powering on, the problem that must manually arrive at a station and safeguard has reduced the time and the cost of manual maintenance.The present invention be particularly useful for to equipment in the place, the application safeguarded of the abominable website of environment, raising equipment maintainability.
Description of drawings
Fig. 1 is existing guiding device synoptic diagram;
Fig. 2 is a device synoptic diagram of the present invention;
Fig. 3 is a method flow diagram of the present invention.
Embodiment
Main thought of the present invention is: by backup single board starting file in Flash, when file is destroyed among the Boot ROM in the remote upgrade procedure, carry out remote upgrade again by the file among the Flash, strengthened the stability of system.
With concrete device, further specify thought of the present invention below, this installs as shown in Figure 2, comprising: master cpu, dual boot module and sheet selected control molding piece, wherein,
Master cpu is responsible for starting back veneer control and management and business operation, comprises internal memory and its attached communication interface, house dog (WD, Watch Dog) interface and control signal.
The dual boot module is responsible for storage startup file and backup startup file, selects corresponding file guiding single board starting according to chip selection signal.Wherein, ROM (read-only memory) Boot ROM is used to store startup file, and BootROM is the first-selected startup of acquiescence; Flash memory Flash is used for the storage backup startup file, file in Boot ROM goes wrong, cause starting failure, then use among the Flash backup startup file to guarantee to start successfully, utilize the bigger characteristics of Flash storage space simultaneously, can also do other functions such as version preservation, backup, log information preservation.
Sheet selected control molding piece is used for providing chip selection signal according to sheet choosing strategy to the dual boot module, comprises logical block and watchdog circuit, and watchdog circuit is used to provide reset signal; Logical block can realize by electrically programmable logical device (EPLD, Electrically Programmable Logic Device), selects in the strategy variation of reset signal to determine chip selection signal according to sheet, finishes the selection function of sheet choosing and switchover policy is provided.State after EPLD provides mode, the house dog counting of selection handoff functionality to the dual boot module, switching to feed dog and CPU to load is successfully indicated, finish from device powers on CPU adapter process, house dog feed the dog policy control, be primarily aimed at and run into abnormal conditions in the loading procedure and carry out reset operation.
It is to prevent that start-up course from breaking down or deadlock that watchdog circuit mainly acts on.Watchdog circuit is an independently timer, a timer control register is arranged, can open dog by setting-up time, want set after time of arrival, promptly need to feed dog, if feed dog, race flies or hardware breaks down just to think to go wrong start-up course, will send reset instruction to sheet selected control molding piece or CPU, force system to automatically reset and reload.
Adopt two boot sheets of above device to select in the changing method, need preestablish reset time, chip selection signal, switching threshold.
Reset time is according to actual decision reset time of different veneers, need and leave surplus more than or equal to the load time, each CPU and CPU start the mirror image scale bigger difference, also has factor affecting such as Bus Speed to the load time, be provided with and consider above-mentioned actual measurement factor reset time, guarantee that veneer CPU can loaded in this section period.
Load to start and give tacit consent to from the Boot rom boot, the every increase by 1 of reset signal just changes once the sheet choosing, acquiescence reset count value 0, and Boot ROM is pointed in choosing with slide glass, if this process starts successfully, gives CPU with the veneer control; If this process starts not success, just once reset, the reset count value adds 1, and choosing transfers to point to FLASH with slide glass, if this process starts still not success, will circulate down.Set CS0 and point to Boot ROM for selecting with slide glass, CS1 points to Flash for selecting with slide glass.
Switching threshold is the restriction of number of resets, when the startup failure reaches this threshold value, just abandons giving tacit consent to the sheet choosing, changes from Flash guiding single board starting, selects switching threshold 1 herein.Concrete two boot switching flows are as shown in Figure 3:
Step 1: Board Power up begins to start.
Step 2: sheet selected control molding BOB(beginning of block) calculates reset time.
Reset time then before, veneer need be finished startup, restart otherwise just be reset, reset time then after, enter step 5.
Step 3: sheet selected control molding piece statistics board resetting signal number.
Reset signal is initially 0, and chip selection signal is CS0, promptly from Boot rom boot single board starting.
Step 4: judge whether to arrive switching threshold, if chip selection signal is CS1, promptly from Flash guiding single board starting; Otherwise chip selection signal still is CS0, from Boot rom boot single board starting.
Step 5: judge whether startup is successful, if give CPU with the veneer control; Otherwise, enter step 6.
Step 6: with board resetting, reset count increases by 1, and repeating step 2, step 4 are successfully started by Flash guiding veneer.
Because what deposit among the Flash is the mirror image boot, can guarantee to leave backup, thereby finish start-up routine when Boot ROM damages.
Wherein switching threshold selects suggestion more than 2, though choosing value has like this been sacrificed start-up time, and the switching of avoiding misoperation to bring.Abnormal conditions when watchdog circuit and EPLD clocking capability realize starting not success reset.Feed the dog action and in start-up course, carry out always, or count the homing action that carries out dog according to the house dog overflow status; The time that loads timing will be much larger than the time of CPU normal load.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.
Claims (8)
1. a Dualboot starting device is characterized in that, this device comprises dual boot module and sheet selected control molding piece, wherein:
Dual boot module stores startup file and backup startup file are selected corresponding file guiding single board starting according to chip selection signal;
Sheet selected control molding piece is used for providing chip selection signal according to sheet choosing strategy to the dual boot module.
2. Dualboot starting device according to claim 1 is characterized in that, described dual boot module comprises the guiding ROM (read-only memory) Boot ROM that stores startup file, the flash memory Flash of storage backup startup file.
3. Dualboot starting device according to claim 1, it is characterized in that, described selected control molding piece is made of logical block and watchdog circuit, and watchdog circuit is used to provide reset signal, and logical block selects in the strategy variation of reset signal to determine chip selection signal according to sheet.
4. according to the arbitrary described Dualboot starting device of claim 1 to 3, it is characterized in that described dual boot module, sheet selected control molding piece all connect master cpu, master cpu successfully starts the back management single board at veneer.
5. Dualboot starting device according to claim 3 is characterized in that, described logical block is made of electrically programmable logical device EPLD.
6. a dual boot startup method is characterized in that, sets chip selection signal, switching threshold, and this method comprises:
Judge whether reset count reaches switching threshold, if select from backup startup file guiding single board starting; Otherwise select startup file guiding single board starting;
After the guiding single board starting was finished, it was success or failure that mark starts the result.
7. dual boot startup method according to claim 6 is characterized in that, this method also comprises,
Be provided with and be initially reset time, reset count zero, veneer begins to start simultaneously, and calculate veneer and load the used time,
Arrive in reset time, judges whether veneer starts success, if give CPU with the veneer control; Otherwise reset count adds 1, and board resetting is restarted, and successfully starts until veneer.
8. dual boot startup method according to claim 6 is characterized in that, described switching threshold is used to avoid the sheet choosing of misoperation to switch, and is the natural number more than 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101779446A CN101169728A (en) | 2007-11-22 | 2007-11-22 | Dualboot starting device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101779446A CN101169728A (en) | 2007-11-22 | 2007-11-22 | Dualboot starting device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101169728A true CN101169728A (en) | 2008-04-30 |
Family
ID=39390367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007101779446A Pending CN101169728A (en) | 2007-11-22 | 2007-11-22 | Dualboot starting device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101169728A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894032A (en) * | 2010-06-30 | 2010-11-24 | 中兴通讯股份有限公司 | Method for starting software system of base station, base station and master single board in base station |
CN102023908A (en) * | 2010-12-03 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for backing up boot program |
CN103207788A (en) * | 2012-01-13 | 2013-07-17 | 中兴通讯股份有限公司 | Version starting method and version starting device |
CN103677862A (en) * | 2012-09-04 | 2014-03-26 | 中兴通讯股份有限公司 | Upgrading method and device of EPLD program |
CN104035784A (en) * | 2014-06-30 | 2014-09-10 | 普联技术有限公司 | Device starting system and method |
CN105190551A (en) * | 2013-03-14 | 2015-12-23 | 密克罗奇普技术公司 | Dual boot system with memory area swapping mechanism |
CN105279042A (en) * | 2014-07-15 | 2016-01-27 | 华耀(中国)科技有限公司 | Redundant backup system and method for BSD system |
CN105589765A (en) * | 2015-12-17 | 2016-05-18 | 迈普通信技术股份有限公司 | Method for realizing program backup |
CN103677914B (en) * | 2013-12-10 | 2017-02-08 | 广州中海达卫星导航技术股份有限公司 | Device and method for easy switching and guiding starting of media of embedded system |
CN109542480A (en) * | 2018-11-16 | 2019-03-29 | 深圳市邻友通科技发展有限公司 | The operating system update method, apparatus and medium of nail print apparatus |
CN109815061A (en) * | 2019-01-31 | 2019-05-28 | 深兰科技(上海)有限公司 | A kind of method, apparatus, equipment and the medium of the anti-brick of embedded system |
CN113312061A (en) * | 2021-05-08 | 2021-08-27 | 武汉中元华电科技股份有限公司 | Program upgrading method and system for data acquisition of power system |
CN114090107A (en) * | 2021-08-30 | 2022-02-25 | 讯牧信息科技(上海)有限公司 | Computer and system starting method |
-
2007
- 2007-11-22 CN CNA2007101779446A patent/CN101169728A/en active Pending
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894032A (en) * | 2010-06-30 | 2010-11-24 | 中兴通讯股份有限公司 | Method for starting software system of base station, base station and master single board in base station |
CN102023908A (en) * | 2010-12-03 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for backing up boot program |
WO2012071945A1 (en) * | 2010-12-03 | 2012-06-07 | 中兴通讯股份有限公司 | Method and device for backing up and upgrading bootstrap |
CN102023908B (en) * | 2010-12-03 | 2015-06-03 | 中兴通讯股份有限公司 | Method and device for backing up boot program |
CN103207788A (en) * | 2012-01-13 | 2013-07-17 | 中兴通讯股份有限公司 | Version starting method and version starting device |
CN103677862A (en) * | 2012-09-04 | 2014-03-26 | 中兴通讯股份有限公司 | Upgrading method and device of EPLD program |
CN105190551A (en) * | 2013-03-14 | 2015-12-23 | 密克罗奇普技术公司 | Dual boot system with memory area swapping mechanism |
CN105190551B (en) * | 2013-03-14 | 2020-06-26 | 密克罗奇普技术公司 | Dual boot system with memory region swap mechanism |
CN103677914B (en) * | 2013-12-10 | 2017-02-08 | 广州中海达卫星导航技术股份有限公司 | Device and method for easy switching and guiding starting of media of embedded system |
CN104035784B (en) * | 2014-06-30 | 2018-09-25 | 普联技术有限公司 | A kind of equipment activation system and method |
CN104035784A (en) * | 2014-06-30 | 2014-09-10 | 普联技术有限公司 | Device starting system and method |
CN105279042A (en) * | 2014-07-15 | 2016-01-27 | 华耀(中国)科技有限公司 | Redundant backup system and method for BSD system |
CN105589765A (en) * | 2015-12-17 | 2016-05-18 | 迈普通信技术股份有限公司 | Method for realizing program backup |
CN109542480A (en) * | 2018-11-16 | 2019-03-29 | 深圳市邻友通科技发展有限公司 | The operating system update method, apparatus and medium of nail print apparatus |
CN109815061A (en) * | 2019-01-31 | 2019-05-28 | 深兰科技(上海)有限公司 | A kind of method, apparatus, equipment and the medium of the anti-brick of embedded system |
CN113312061A (en) * | 2021-05-08 | 2021-08-27 | 武汉中元华电科技股份有限公司 | Program upgrading method and system for data acquisition of power system |
CN113312061B (en) * | 2021-05-08 | 2022-07-01 | 武汉中元华电科技股份有限公司 | Program upgrading method and system for data acquisition of power system |
CN114090107A (en) * | 2021-08-30 | 2022-02-25 | 讯牧信息科技(上海)有限公司 | Computer and system starting method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101169728A (en) | Dualboot starting device and method | |
CN102023908B (en) | Method and device for backing up boot program | |
CN102073517A (en) | Upgrading and backup method and device for embedded system | |
CN103631674B (en) | Embed FPGA and the starting method thereof of CPU | |
CN101329632B (en) | Method and apparatus for starting CPU by BOOT | |
CN100578461C (en) | Backup method and apparatus for bootstrap | |
CN102214113B (en) | Method, device and terminal for upgrading operating system | |
CN103365696B (en) | BIOS image file acquisition methods and device | |
CN100511148C (en) | CPU system starting method and system | |
CN112612524A (en) | Method, device and equipment for starting Linux system and storage medium | |
CN108958767B (en) | Safety mode automatic upgrading method based on minimum system backup implementation | |
CN104915226A (en) | Network device software starting method, device and network device | |
CN101639785A (en) | Method and device for software updating | |
CN102722394A (en) | Start upgrading method of embedded equipment | |
CN101593120A (en) | Be with outer upgrade method and system | |
CN100549959C (en) | Bootstrap on-line upgrading method | |
CN106095625A (en) | Radio reception device starts method and system | |
CN109885322A (en) | A kind of long-range programming system of intelligence instrument | |
CN100353321C (en) | System with primary application and spare program and starting method | |
CN110597532A (en) | Data acquisition module, firmware upgrading method thereof and storage medium | |
CN102508676A (en) | Startup method and device of embedded system | |
CN102184109A (en) | Boot software automatic updating control method and device | |
CN109871334B (en) | Cable modem and method of operation | |
JP2023035930A (en) | Computer system and method for booting up computer system | |
CN1323361C (en) | Processor system and method using multi memory of start-up procedure |
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 |
Open date: 20080430 |