CN105760256A - Method and system for automatically switching starting device - Google Patents

Method and system for automatically switching starting device Download PDF

Info

Publication number
CN105760256A
CN105760256A CN201610085684.9A CN201610085684A CN105760256A CN 105760256 A CN105760256 A CN 105760256A CN 201610085684 A CN201610085684 A CN 201610085684A CN 105760256 A CN105760256 A CN 105760256A
Authority
CN
China
Prior art keywords
bios
storage device
ipl
data
change
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
CN201610085684.9A
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.)
SHENZHEN ZHIRUITONG TECHNOLOGY CO., LTD.
Original Assignee
Shenzhen Zhiruitong Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhiruitong Technology Co Ltd filed Critical Shenzhen Zhiruitong Technology Co Ltd
Priority to CN201610085684.9A priority Critical patent/CN105760256A/en
Publication of CN105760256A publication Critical patent/CN105760256A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/142Reconfiguring to eliminate the error
    • G06F11/1428Reconfiguring to eliminate the error with loss of hardware functionality

Abstract

The invention discloses a method and system for automatically switching a starting device.The system comprises a system storage device, an Nth backup system storage device, a BIOS and a Flash.After the BIOS scans and identifies a main system storage device and the Nth backup system storage device, an a starting device list IPL Table is built, a guiding sequence zone bit Change_IPL_Data is stored in the Flash, and the BIOS automatically switches the default guiding sequence according to the guiding sequence zone bit Change_IPL_Data.According to the method and system for automatically switching the starting device, the redundant system working mode is provided with relative small cost, and automatic switching to the Nth backup system storage device or the main system storage device can be safely and reliably achieved for work.

Description

The method of automatic switchover starting device and system thereof
Technical field
The present invention relates to automated production and automated surveillance commercial Application technical field, particularly relate to method and the system thereof of a kind of starting device that automatically switches.
Background technology
In some automated productions and automated surveillance industrial application, except main storage device system, it is often necessary to a backup storage device system, in case backup storage device system worked well can be passed through when main storage device damages.Under normal circumstances, main storage device system is used for routine work, and backup storage device system uses when main storage device damage or main storage device system crash temporarily.
At present, the method being switched to backup storage device system after main storage device system failure mainly has two kinds: 1, adopt redundant system, such as the mode of CPCI dual control mainboard, being equivalent to use the two complete living systems of set, system is divided into Earthquake response, it is that main system is in work when normal use, when main system breaks down time, subsystem automatic switchover is controlled work, but, although this method security is fine, but costly, use cost can double;2, onboard RAID is used; onboard RAID is the redundant array being made up of polylith hard disk; but; onboard RAID is used to have the disadvantage that: if mainboard south bridge does not support RAID; it is necessary for using external RAID card; RAID is used to need by more than RAID1 pattern, it is necessary to main storage device is at least the hard disk of more than 2, and therefore the expense of storage device can double.
Summary of the invention
For the weak point existed in above-mentioned technology, the present invention provides method and the system thereof of a kind of starting device that automatically switches, use relatively little of cost to provide redundant system mode of operation, and safe and reliable realization can automatically switch to standby system or main system work.
In order to achieve the above object, the method for a kind of starting device that automatically switches of the present invention, comprise the following steps:
Step 1, power on start, and BIOS is initiating hardware storage device on mainboard;
Step 2, BIOS scanning recognition is dynamically set up a starting device list IPLTable in the POST stage after main system storage device and N standby system storage device and guides equipment to sort;In IPLTable, record has all guidable storage devices, and BIOS is by boot sequence flag bit Change_IPL_Data automatic switchover acquiescence boot sequence;
Step 3, BIOS reads boot sequence flag bit Change_IPL_Data, if Change_IPL_Data default value is 0, then performs step 41;If Change_IPL_Data default value is N, then perform step 42;
Step 41, BIOS sets up default start sequence list 0, and main system storage device guides equipment as first;
Step 42, BIOS sets up default start sequence list N, N standby system storage device and guides equipment as first;
Step 5, BIOS starts alarm mechanism, waits user's response within the time of regulation;If response, then perform step 61;If being not responding to, then perform step 62;
Step 61, BIOS acquiescence leads into after system performs user program from the first guiding equipment and terminates;
Step 62, first guides appliance boot failure, and Change_IPL_Data is changed to N by BIOS, and system is restarted automatically, and after BIOS re-establishes IPLTable according to N, jumps to step 3 after the acquiescence that automatically switches boot sequence.
Wherein, in step 2, BIOS sets up starting device list IPLTable and guides equipment sequence step as follows:
Step 21, guidable storage device is classified by IPLTable;
Step 22, according to acquiescence boot sequence demand, arranges the acquiescence boot sequence of same type storage device, and same type storage device utilizes unique prefix to guide order sequence;
Step 23, all guidable storage devices are all added in IPLTable, automatically form final boot sequence list.
Wherein, in step 62, BIOS provides software interface, makes user can be changed the value of Change_IPL_Data by the mode of software programming, and notifies that BIOS needs to reset acquiescence boot sequence.
Wherein, in step 2, the starting device list IPLTable established is placed in Flsh by BIOS.
The present invention also provides for the system of a kind of starting device that automatically switches, including main system storage device, N standby system storage device, BIOS and Flash, described BIOS scanning recognition is set up after main system storage device and N standby system storage device starting device list IPLTable, in described Flash, storage has boot sequence flag bit Change_IPL_Data and alarm mechanism, and described BIOS is by boot sequence flag bit Change_IPL_Data automatic switchover acquiescence boot sequence;
Power on after starting shooting, BIOS is initiating hardware storage device on mainboard, BIOS scanning recognition sets up IPLTable after main storage device and N standby system storage device, BIOS reads and judges the value of Change_IPL_Data, when Change_IPL_Data is 0, BIOS sets up default start sequence list 0;When Change_IPL_Data is N, BIOS sets up default start sequence list N, after establishing default start sequence list, BIOS starts alarm mechanism and judges whether user responds within the time of regulation, if response, then BIOS acquiescence leads into after system performs user program from the first guiding equipment and terminates;If not affecting, BIOS automatically switches and gives tacit consent to boot sequence, and Change_IPL_Data changes to N, and system is automatically restarted and re-establishes IPLTable according to N, and again judges Change_IPL_Data, until BIOS determines user's response within the time of regulation.
The invention has the beneficial effects as follows:
Compared with prior art, the method of the automatic switchover starting device of the present invention and system thereof, BIOS scanning recognition is set up after main system storage device and N standby system storage device starting device list IPLTable, and storage has boot sequence flag bit Change_IPL_Data in Flash, BIOS sets up starting device list IPLTable and realizes the sequence of guiding equipment, and BIOS is by boot sequence flag bit Change_IPL_Data automatic switchover acquiescence boot sequence.The present invention adopts relatively little of cost to provide redundant system mode of operation, it is possible to safe and reliable realization automatically switches to N standby system storage device or the work of main system storage device.
Accompanying drawing explanation
Fig. 1 is that the present invention automatically switches the flow chart of steps of method of starting device.
Detailed description of the invention
In order to more clearly state the present invention, below in conjunction with accompanying drawing, the present invention is further described.
Consult Fig. 1, the method for the automatic switchover starting device of the present invention, comprise the following steps:
Step S1, power on start, and BIOS is initiating hardware storage device on mainboard;
Step S2, BIOS scanning recognition is dynamically set up a starting device list IPLTable in the POST stage after main system storage device and N standby system storage device and guides equipment to sort;In IPLTable, record has all guidable storage devices, and BIOS is by boot sequence flag bit Change_IPL_Data automatic switchover acquiescence boot sequence;
Step S3, BIOS read boot sequence flag bit Change_IPL_Data, if Change_IPL_Data default value is 0, then perform step S41;If Change_IPL_Data default value is N, then perform step S42;
Step S41, BIOS set up default start sequence list 0, and main system storage device guides equipment as first;
Step S42, BIOS set up default start sequence list N, N standby system storage device and guide equipment as first;
Step S5, BIOS start alarm mechanism, wait user's response within the time of regulation;If response, then perform step S61;If being not responding to, then perform step S62;The time of regulation refers to the time enough entering system, enough user's responses simultaneously, and without response, then this boot-list starts thrashing, i.e. storage device or the system failure;
Step 61, BIOS acquiescence leads into after system performs user program from the first guiding equipment and terminates;
Step 62, first guides appliance boot failure, and Change_IPL_Data is changed to N by BIOS, and system is restarted automatically, and after BIOS re-establishes IPLTable according to N, jumps to step S3 after the acquiescence that automatically switches boot sequence.
In the present embodiment, in step S2, BIOS sets up starting device list IPLTable and guides equipment sequence step as follows:
Guidable storage device is classified by step S21, IPLTable;Such as mobile equipment, HardDisk equipment, CDROM equipment, it is possible to set certain boot sequence guiding equipment according to demand, before or after CDROM equipment is placed on all of guiding equipment;
Step S22, according to acquiescence boot sequence demand, arranges the acquiescence boot sequence of same type storage device, and same type storage device utilizes unique prefix to guide order sequence;Same type of guiding equipment is connected on the different port of mainboard and can indicate different unique prefix, as " HDD:1S " represent HardDisk kind equipment be connected on first passage from equipment.
Step S23, all guidable storage devices are all added in IPLTable, automatically form final boot sequence list.Boot sequence list is automatically performed, and what user saw in BIOS menu is exactly final boot sequence list.
In the present embodiment, in step S62, BIOS provides software interface, makes user can be changed the value of Change_IPL_Data by the mode of software programming, and notifies that BIOS needs to reset acquiescence boot sequence.
In the present embodiment, in step S2, the starting device list IPLTable established is placed in Flsh by BIOS.
This case achieves BIOS automatic switchover acquiescence boot sequence, meets and automatically start from the guiding equipment of client's specific demand, it is achieved automatic switchover order.Such as, user's main system is placed in SATA hard disc, and standby system is placed in CF, and giving tacit consent to the first guiding equipment is SATA hard disc, and the second guiding equipment is CF card, gives tacit consent to and guides equipment SATA hard disc to lead into system execution user program from first;If having no idea to be directed into system when main system SATA hard disc breaks down, system can automatically be restarted CF card is set to the first guiding equipment, start from CF and perform user ID system, certainly, automatic switchover boot sequence is realized by Change_IPL_Data, changed by application software or BIOS and remove boot sequence flag bit Change_IPL_Data, system is automatically restarted the value of the rear BIOS Change_IPL_Data by reading and is rebuild IPLTable, and required guiding equipment is guided equipment as first.
The present invention also provides for the system of a kind of starting device that automatically switches, including main system storage device, N standby system storage device, BIOS and Flash, BIOS scanning recognition is set up after main system storage device and N standby system storage device starting device list IPLTable, in Flash, storage has boot sequence flag bit Change_IPL_Data and alarm mechanism, and BIOS is by boot sequence flag bit Change_IPL_Data automatic switchover acquiescence boot sequence;
Power on after starting shooting, BIOS is initiating hardware storage device on mainboard, BIOS scanning recognition sets up IPLTable after main storage device and N standby system storage device, BIOS reads and judges the value of Change_IPL_Data, when Change_IPL_Data is 0, BIOS sets up default start sequence list 0;When Change_IPL_Data is N, BIOS sets up default start sequence list N, after establishing default start sequence list, BIOS starts alarm mechanism and judges whether user responds within the time of regulation, if response, then BIOS acquiescence leads into after system performs user program from the first guiding equipment and terminates;If not affecting, BIOS automatically switches and gives tacit consent to boot sequence, and Change_IPL_Data changes to N, and system is automatically restarted and re-establishes IPLTable according to N, and again judges Change_IPL_Data, until BIOS determines user's response within the time of regulation.
Present invention have an advantage that
BIOS scanning recognition is set up after main system storage device and N standby system storage device starting device list IPLTable, and storage has boot sequence flag bit Change_IPL_Data in Flash, BIOS sets up starting device list IPLTable and realizes the sequence of guiding equipment, and BIOS is by boot sequence flag bit Change_IPL_Data automatic switchover acquiescence boot sequence.The present invention adopts relatively little of cost to provide redundant system mode of operation, it is possible to safe and reliable realization automatically switches to N standby system storage device or the work of main system storage device.
The several specific embodiments being only the present invention disclosed above, but the present invention is not limited to this, and the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (5)

1. the method for the starting device that automatically switches, it is characterised in that comprise the following steps: step 1, power on start, and BIOS is initiating hardware storage device on mainboard;Step 2, BIOS scanning recognition is dynamically set up a starting device list IPLTable in the POST stage after main system storage device and N standby system storage device and guides equipment to sort;In IPLTable, record has all guidable storage devices, and BIOS is by boot sequence flag bit Change_IPL_Data automatic switchover acquiescence boot sequence;Step 3, BIOS reads boot sequence flag bit Change_IPL_Data, if Change_IPL_Data default value is 0, then performs step 41;If Change_IPL_Data default value is N, then perform step 42;Step 41, BIOS sets up default start sequence list 0, and main system storage device guides equipment as first;Step 42, BIOS sets up default start sequence list N, N standby system storage device and guides equipment as first;Step 5, BIOS starts alarm mechanism, waits user's response within the time of regulation;If response, then perform step 61;If being not responding to, then perform step 62;Step 61, BIOS acquiescence leads into after system performs user program from the first guiding equipment and terminates;Step 62, first guides appliance boot failure, and Change_IPL_Data is changed to N by BIOS, and system is restarted automatically, and BIOS re-establishes IPLTable according to N, jumps to step 3 after the acquiescence that automatically switches boot sequence.
2. the method for automatic switchover starting device according to claim 1, it is characterised in that in step 2, BIOS sets up starting device list IPLTable and guides equipment sequence step as follows: step 21, guidable storage device is classified by IPLTable;Step 22, according to acquiescence boot sequence demand, arranges the acquiescence boot sequence of same type storage device, and same type storage device utilizes unique prefix to guide order sequence;Step 23, all guidable storage devices are all added in IPLTable, automatically form final boot sequence list.
3. the method for automatic switchover starting device according to claim 1, it is characterized in that, in step 62, BIOS provides software interface, make user can be changed the value of Change_IPL_Data by the mode of software programming, and notify that BIOS needs to reset acquiescence boot sequence.
4. the method for automatic switchover starting device according to claim 1, it is characterised in that in step 2, the starting device list IPLTable established is placed in Flsh by BIOS.
5. the system of the starting device that automatically switches, it is characterized in that, including main system storage device, N standby system storage device, BIOS and Flash, described BIOS scanning recognition is set up after main system storage device and N standby system storage device starting device list IPLTable, in described Flash, storage has boot sequence flag bit Change_IPL_Data and alarm mechanism, and described BIOS is by boot sequence flag bit Change_IPL_Data automatic switchover acquiescence boot sequence;Power on after starting shooting, BIOS is initiating hardware storage device on mainboard, BIOS scanning recognition sets up IPLTable after main storage device and N standby system storage device, BIOS reads and judges the value of Change_IPL_Data, when Change_IPL_Data is 0, BIOS sets up default start sequence list 0;When Change_IPL_Data is N, BIOS sets up default start sequence list N, after establishing default start sequence list, BIOS starts alarm mechanism and judges whether user responds within the time of regulation, if response, then BIOS acquiescence leads into after system performs user program from the first guiding equipment and terminates;If not affecting, BIOS automatically switches and gives tacit consent to boot sequence, and Change_IPL_Data changes to N, and system is automatically restarted and re-establishes IPLTable according to N, and again judges Change_IPL_Data, until BIOS determines user's response within the time of regulation.
CN201610085684.9A 2016-02-15 2016-02-15 Method and system for automatically switching starting device Pending CN105760256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610085684.9A CN105760256A (en) 2016-02-15 2016-02-15 Method and system for automatically switching starting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610085684.9A CN105760256A (en) 2016-02-15 2016-02-15 Method and system for automatically switching starting device

Publications (1)

Publication Number Publication Date
CN105760256A true CN105760256A (en) 2016-07-13

Family

ID=56330103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610085684.9A Pending CN105760256A (en) 2016-02-15 2016-02-15 Method and system for automatically switching starting device

Country Status (1)

Country Link
CN (1) CN105760256A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108776629A (en) * 2018-05-30 2018-11-09 郑州云海信息技术有限公司 A kind of server chips group carry Micro SD cards switching system and method
CN111722880A (en) * 2020-05-11 2020-09-29 深圳市共进电子股份有限公司 Equipment production method, device, terminal equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090204822A1 (en) * 2003-11-13 2009-08-13 International Business Machines Corporation Reducing the boot time of a tcpa based computing system when the core root of trust measurement is embedded in the boot block code
CN102446104A (en) * 2010-09-30 2012-05-09 研祥智能科技股份有限公司 Method for starting up computer system
CN103678040A (en) * 2013-12-06 2014-03-26 北京明朝万达科技有限公司 Snapshooting and backspacing method and system based on computer system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090204822A1 (en) * 2003-11-13 2009-08-13 International Business Machines Corporation Reducing the boot time of a tcpa based computing system when the core root of trust measurement is embedded in the boot block code
CN102446104A (en) * 2010-09-30 2012-05-09 研祥智能科技股份有限公司 Method for starting up computer system
CN103678040A (en) * 2013-12-06 2014-03-26 北京明朝万达科技有限公司 Snapshooting and backspacing method and system based on computer system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108776629A (en) * 2018-05-30 2018-11-09 郑州云海信息技术有限公司 A kind of server chips group carry Micro SD cards switching system and method
CN111722880A (en) * 2020-05-11 2020-09-29 深圳市共进电子股份有限公司 Equipment production method, device, terminal equipment and medium
CN111722880B (en) * 2020-05-11 2024-02-09 深圳市共进电子股份有限公司 Equipment production method and device, terminal equipment and medium

Similar Documents

Publication Publication Date Title
US8458524B2 (en) Firmware recovery system and method
CN102439565A (en) Method and device for starting recovery
CN102446104A (en) Method for starting up computer system
JP2008123503A (en) Apparatus and method for controlling operation processing in nonvolatile memory
US20120117310A1 (en) Usb flash drive and method for switching functions of the usb flash drive
US8484447B2 (en) Selecting a compatible processor to control a peripheral component interconnect express (PCI-E) slot unit within a predetermined interval via a setting menu
US8583959B2 (en) System and method for recovering data of complementary metal-oxide semiconductor
CN101620651A (en) Method and device for clearing data in computer
US20170286128A1 (en) BOOT online upgrading device and method
CN105760256A (en) Method and system for automatically switching starting device
CN110753040B (en) Request processing method and device
KR20020007090A (en) Method and system for booting recovery a computer
US20120185713A1 (en) Server, storage medium, and method for controlling sleep and wakeup function of the server
CN102256275A (en) Method and mobile communication terminal for power failure protection in factory resetting process
CN104932993A (en) Stable hot plug driving method and apparatus as well as hot plugging supporting device
CN105824622A (en) Data processing method and electronic equipment
US20120221334A1 (en) Security system and method
CN103678018A (en) Method and device for recovering data
CN101354654A (en) System and method for automatically switching basic input / output procedure
CN104461767B (en) A kind of information processing method and the first electronic equipment
WO2013049767A1 (en) Method for device-less option-rom bios load and execution
CN112198803A (en) Fault processing method and device, electronic equipment and storage medium
CN106557385B (en) Data snapshot method and storage device
CN101807163A (en) Method and system for saving and restoring basic input/output system data
CN103747336A (en) Method and apparatus for guaranteeing system stability in recovery mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20170707

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation area before Bay Street, Qianhai road at the Shenzhen Hong Kong Cooperation Area Management Bureau office building A Room 201 (Qianhai settled in Shenzhen City, Secretary of Commerce Co. Ltd.)

Applicant after: Shenzhen wisdom Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation area before Bay Street, Qianhai road at the Shenzhen Hong Kong Cooperation Area Management Bureau office building A Room 201 (Qianhai settled in Shenzhen City, Secretary of Commerce Co. Ltd.)

Applicant before: SHENZHEN ZHIRUITONG TECHNOLOGY CO., LTD.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180124

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant after: SHENZHEN ZHIRUITONG TECHNOLOGY CO., LTD.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation area before Bay Street, Qianhai road at the Shenzhen Hong Kong Cooperation Area Management Bureau office building A Room 201 (Qianhai settled in Shenzhen City, Secretary of Commerce Co. Ltd.)

Applicant before: Shenzhen wisdom Technology Co., Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713

RJ01 Rejection of invention patent application after publication