CN104102505A - Computer power-on method - Google Patents

Computer power-on method Download PDF

Info

Publication number
CN104102505A
CN104102505A CN201310341745.XA CN201310341745A CN104102505A CN 104102505 A CN104102505 A CN 104102505A CN 201310341745 A CN201310341745 A CN 201310341745A CN 104102505 A CN104102505 A CN 104102505A
Authority
CN
China
Prior art keywords
bios device
code
main
bios
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310341745.XA
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.)
Kunda Computer Technology Kunshan Co Ltd
Mitac International Corp
Original Assignee
Kunda Computer Technology Kunshan Co Ltd
Mitac International Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunda Computer Technology Kunshan Co Ltd, Mitac International Corp filed Critical Kunda Computer Technology Kunshan Co Ltd
Priority to CN201310341745.XA priority Critical patent/CN104102505A/en
Publication of CN104102505A publication Critical patent/CN104102505A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a computer power-on method. The computer power-on method is applied to a computer system with a main BIOS (Basic Input/Output System) device and a backup BIOS device. When the power-on self test of the main BIOS device is failed and is successfully switched to the power-on self-test of the backup BIOS device, the computer power-on method executes the following steps: using a code of the backup BIOS device to automatically cover a code of the main BIOS device; judging whether automatic repair is successful or not; if the automatic repair is successful, loading the operating system through the main BIOS device; if the automatic repair is not successful, loading the operating system through the backup BIOS device. The computer power-on method provided by the invention has the beneficial effects that the automatic repair can be executed through a UEFI (Unified Extensible Firmware Interface) application program, so as to write the code of the backup BIOS device into the main BIOS device when the code of the main BIOS device is destroyed to cover the code of the main BIOS device; if the repair is successful, the operating system is loaded through the main BIOS device; if the repair is not successful, the operating system is loaded through the backup BIOS device; therefore, no matter whether the repair is successful or not, successful power-on can be realized.

Description

Booting computer method
[technical field]
The present invention relates to a kind of booting computer method, even if particularly the booting computer method that also can carry out boot action occurs to damage a kind of BIOS device hardware.
[background technology]
Most PC and server system all design and use single BIOS device (BIOS flash ROM), after self-inspection completes, system proceeds to the next step of BIOS: from A drive, C drives or CD-ROM and the webserver are found operating system and started, and then gives operating system by control.Once the system of single BIOS device suffers malware attacks or upgrades the failure of BIOS firmware; can destroy the BIOS firmware procedure code that previously can operate; if load BIOS because some factor needs again system boot; now system will be because of losing normal bios program code; system hardware cannot be initialised and cannot complete POST action (Power On Self Test; power-on self-test), cause the thorough fault of system and cannot independently repair, need to shut down to send the awkward situation of repairing.
The existing design solution of automatically repairing bios program code at present, for example, China's Mainland patented claim discloses a kind of bios program code that can automatically carry out repair action No. 02118630.8, in the time there is damage in content in BIOS device, can be written into BIOS stand-by program code to complete boot action by other Storage Media, this bios program code has comprised a BIOS functional program module, has the function program of compression.One measuring ability, can detect the decompression situation of BIOS functional program module, to judge whether wrong generation.One repairs module, in response to measuring ability, in the time that decompression makes a mistake, automatically carry out system boot program again, and be written into and carry out BIOS stand-by program code by other Storage Media, repair module and the back-up BIOS procedure code running succeeded again burning is returned to BIOS device.In addition, a comparing function, the version of checking BIOS stand-by program code and main program is new and old, and when main bios program code can complete start smoothly, and while having compared with the new version of BIOS stand-by program code, back-up BIOS procedure code is to Storage Media again.
But, the bios program code that automatically carries out repair action that No. 02118630.8th, China's Mainland patented claim is only in the situation that BIOS device part is damaged, be written into BIOS stand-by program code to complete boot action by other Storage Media, wherein, part damage refers to that content in BIOS device damage occurs but do not relate to the code of boot block wherein and BIOS device hardware is damaged.If BIOS device hardware is damaged, promoter region module cannot be carried out by user the beginning program that opens of booting computer, also just cannot complete boot action.
Also have at present the design solution of two BIOS devices, the system of two BIOS devices, in the time of a BIOS device damage, use reluctantly the start of back-up BIOS device, but user enters operating system and needs manually to carry out BIOS recovery project, and process is not only complicated, cannot realize automatic reparation.
[summary of the invention]
Even if fundamental purpose of the present invention is to provide a kind of hardware of a BIOS device that damage occurs also can carry out the booting computer method of boot action, even or the firmware of main BIOS device damage the method that automatic reparation also can be provided completely.
The invention provides a kind of booting computer method, it is applied in the computer system that is equiped with main BIOS device and back-up BIOS device, when switching to back-up BIOS device startup self-detection success from main BIOS device startup self-detection failure; Described booting computer method is carried out following steps:
Utilize the code of back-up BIOS device automatically to cover the code of main BIOS device;
Whether judgement repairs successful automatically;
When automatic reparation success, computer system is start again, is written into operating system by main BIOS device;
Automatically reparation is unsuccessful, is written into operating system by back-up BIOS device.
Especially, switch to the successful concrete steps of back-up BIOS device startup self-detection from main BIOS device startup self-detection failure:
Startup self-detection;
Judge that whether startup self-detection is successful;
If startup self-detection is unsuccessful, judge whether current BIOS device is main BIOS device;
If when current BIOS device is main BIOS device, current BIOS device is switched to back-up BIOS device by BMC (Baseboard Management Controller);
By BMC again system boot and by returning to startup self-detection.
Especially, when after startup self-detection success, carry out following steps,
BIOS loads built-in UEFI application program;
Judge by UEFI application program whether current BIOS device is main BIOS device;
Determining current BIOS device when UEFI application program is main BIOS device, returns to main BIOS device and is written into operating system.
Especially, after UEFI application program judges that current BIOS device is not main BIOS device, carry out the code of the main BIOS device of the automatic covering of code that reads back-up BIOS device and reach the object of reparation.
Especially, utilize the concrete steps of the automatic code that covers main BIOS device of code of back-up BIOS device to comprise,
The code of back-up BIOS device is read into internal memory by UEFI application program;
It is main BIOS device that UEFI application notification BMC switches current BIOS device;
The code of internal memory is written to main BIOS device by UEFI application program.
Especially, whether successfully judgement is automatically repaired concrete steps and is comprised, whether UEFI application program judges that code is read into internal memory successful; Whether follow-up UEFI application program judges that code is written to main BIOS device successful;
Especially, UEFI application program judges when code is read into internal memory success and code and is written to main BIOS device success, automatically repairs successfully; UEFI application program judges that code is read into the unsuccessful or code of internal memory and is written to main BIOS device when unsuccessful, automatically repairs unsuccessful.
Especially, when after automatic reparation success, UEFI application notification BMC system boot again; After automatic reparation is unsuccessful, provides and select to continue start or shutdown.
Especially, when accepting to continue start-up command, be written into operating system by back-up BIOS device.
Especially, when accepting shutdown command, by BMC automatic shutdown.
Compared with prior art, booting computer method of the present invention can utilize the code of back-up BIOS device automatically to cover the code of main BIOS device, while there is damage with the code in main BIOS device, code in back-up BIOS device is written in main BIOS device, thereby covers the code in main BIOS device; Repair successfully, be written into operating system by main BIOS device; Repair unsuccessfully, automatically switch to by back-up BIOS device and be written into operating system.Therefore, no matter whether successfully repair; All can realize smooth start so that the operating environment of user's operating system to be provided.
[brief description of the drawings]
Fig. 1 is the process flow diagram of booting computer method of the present invention.
Fig. 2 is the particular flow sheet of performing step 110.
Fig. 3 is step 220 in Fig. 2 particular flow sheet after startup self-detection success.
Fig. 4 is step 350 in Fig. 3 and step 380 at the process flow diagram of repairing a kind of embodiment after unsuccessful.
Fig. 5 is step 350 in Fig. 3 and step 380 at the process flow diagram of repairing the another kind of embodiment after unsuccessful.
[embodiment]
Refer to shown in Fig. 1, a kind of booting computer method of the present invention, it is applied in the computer system that is equiped with main BIOS device and back-up BIOS device, and described booting computer method is carried out following steps:
Step 110: switch to back-up BIOS device startup self-detection success from main BIOS device startup self-detection (BIOS POST) failure; In the present embodiment, startup self-detection is unsuccessfully that BMC (Baseboard Management Controller) does not react, and startup self-detection is successfully that BMC reacts;
Step 120: utilize the code of back-up BIOS device automatically to cover the code of main BIOS device;
Step 130: whether judgement repairs successful automatically; When automatic reparation success, execution step 140; Unsuccessful when automatic reparation, perform step 150;
Step 140: computer system is start again, is written into operating system by main BIOS device;
Step 150: be written into operating system by back-up BIOS device.
Refer to shown in Fig. 1 and Fig. 2, the flow process of performing step 110 comprises the following steps,
Step 210: startup self-detection;
Step 220: judge that whether startup self-detection is successful; If success, execution step 310; If unsuccessful, execution step 230;
Step 230: judge whether current BIOS device is main BIOS device; If so, perform step 240; If not, execution step 260;
Current BIOS device is switched to back-up BIOS device by step 240:BMC;
Step 250: system boot return to step 210 again;
Step 260: by BMC automatic shutdown.
Refer to shown in Fig. 2 and Fig. 3, in step 220, when the idiographic flow after startup self-detection success comprises the following steps,
Step 310:BIOS loads built-in UEFI application program;
Step 320: judge by UEFI application program whether current BIOS device is main BIOS device; Determining current BIOS device when UEFI application program is main BIOS device, execution step 330; Determining current BIOS device when UEFI application program is not main BIOS device (being back-up BIOS device), execution step 340;
Step 330: be written into operating system by main BIOS device;
The code of back-up BIOS device is read into internal memory by step 340:UEFI application program;
Whether step 350:UEFI application program judges that code is read into internal memory successful; If success, performs step 360; If unsuccessful; Perform step 410;
It is main BIOS device that step 360:UEFI application notification BMC switches current BIOS device;
The code of internal memory is written to main BIOS device by step 370:UEFI application program;
Whether step 380:UEFI application program judges that code is written to main BIOS device successful; If success, performs step 390; If unsuccessful; Perform step 410;
Step 390:UEFI application notification BMC system boot return to step 210 again.
Wherein, step 340, step 360 and step 370 are the specific embodiment of step 120 in Fig. 1; Step 350, step 380 are the specific embodiment of step 130 in Fig. 1.
Refer to shown in Fig. 3 and Fig. 4, in step 350 and step 380, the concrete steps of repairing after unsuccessful comprise:
Step 410: provide and select to continue start or shutdown;
Step 420: accept to continue start-up command;
Step 430: be written into operating system by back-up BIOS device.
Refer to shown in Fig. 3 and Fig. 5, in step 350 and step 380, the concrete steps of repairing after unsuccessful comprise:
Step 410: provide and select to continue start or shutdown;
Step 440: accept shutdown command;
Step 450: by BMC automatic shutdown.
Booting computer method of the present invention can utilize the code of back-up BIOS device automatically to cover the code of main BIOS device, while there is damage with the code in main BIOS device, code in back-up BIOS device is written in main BIOS device, thereby covers the code in main BIOS device; Repair successfully, be written into operating system by main BIOS device; Repair unsuccessfully, automatically switch to by back-up BIOS device and be written into operating system.Therefore, no matter whether successfully repair; All can realize smooth start so that the operating environment of user's operating system to be provided.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. a booting computer method, it is applied in the computer system that is equiped with main BIOS device and back-up BIOS device, it is characterized in that: when switching to back-up BIOS device startup self-detection success from main BIOS device startup self-detection failure; Described booting computer method is carried out following steps:
Utilize the code of back-up BIOS device automatically to cover the code of main BIOS device;
Whether judgement repairs successful automatically;
When automatic reparation success, be written into operating system by main BIOS device;
Automatically reparation is unsuccessful, is written into operating system by back-up BIOS device.
2. booting computer method according to claim 1, is characterized in that: switch to the successful concrete steps of back-up BIOS device startup self-detection from main BIOS device startup self-detection failure:
Startup self-detection;
Judge that whether startup self-detection is successful;
If startup self-detection is unsuccessful, judge whether current BIOS device is main BIOS device;
If when current BIOS device is main BIOS device, current BIOS device is switched to back-up BIOS device by BMC;
By BMC again system boot and by returning to startup self-detection.
3. booting computer method according to claim 2, is characterized in that: when after startup self-detection success, carry out following steps,
BIOS loads built-in UEFI application program;
Judge by UEFI application program whether current BIOS device is main BIOS device;
Determining current BIOS device when UEFI application program is main BIOS device, is written into operating system by main BIOS device.
4. booting computer method according to claim 3, is characterized in that: after UEFI application program judges that current BIOS device is not main BIOS device, carry out the code code of the main BIOS device of covering automatically that reads back-up BIOS device.
5. booting computer method according to claim 4, is characterized in that: utilize the concrete steps of the automatic code that covers main BIOS device of code of back-up BIOS device to comprise,
The code of back-up BIOS device is read into internal memory by UEFI application program;
It is main BIOS device that UEFI application notification BMC switches current BIOS device;
The code of internal memory is written to main BIOS device by UEFI application program.
6. booting computer method according to claim 5, is characterized in that: whether successfully judgement is automatically repaired concrete steps and comprised, whether UEFI application program judges that code is read into internal memory successful; Whether UEFI application program judges that code is written to main BIOS device successful.
7. booting computer method according to claim 6, is characterized in that: UEFI application program judges when code is read into internal memory success and code and is written to main BIOS device success, automatically repairs successfully; UEFI application program judges that code is read into the unsuccessful or code of internal memory and is written to main BIOS device when unsuccessful, automatically repairs unsuccessful.
8. booting computer method according to claim 7, is characterized in that: when after automatic reparation success, and UEFI application notification BMC system boot again; After automatic reparation is unsuccessful, provides and select to continue start or shutdown.
9. booting computer method according to claim 8, is characterized in that: when accepting to continue start-up command, be written into operating system by back-up BIOS device.
10. booting computer method according to claim 9, is characterized in that: when accepting shutdown command, by BMC automatic shutdown.
CN201310341745.XA 2013-04-12 2013-08-07 Computer power-on method Pending CN104102505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310341745.XA CN104102505A (en) 2013-04-12 2013-08-07 Computer power-on method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201310126111 2013-04-12
CN201310126111.2 2013-04-12
CN201310341745.XA CN104102505A (en) 2013-04-12 2013-08-07 Computer power-on method

Publications (1)

Publication Number Publication Date
CN104102505A true CN104102505A (en) 2014-10-15

Family

ID=51670678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310341745.XA Pending CN104102505A (en) 2013-04-12 2013-08-07 Computer power-on method

Country Status (1)

Country Link
CN (1) CN104102505A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341013A (en) * 2017-06-26 2017-11-10 努比亚技术有限公司 One kind start fault handling method, equipment and computer-readable recording medium
CN108875347A (en) * 2018-07-12 2018-11-23 上海常仁信息科技有限公司 The automatic protection method of hacker attacks and control is prevented based on robot identity card
CN110502367A (en) * 2019-07-29 2019-11-26 合肥联宝信息技术有限公司 A kind of control method and electronic equipment
CN112486742A (en) * 2019-09-12 2021-03-12 环达电脑(上海)有限公司 Method for remotely checking startup state of server and server
CN112579338A (en) * 2020-12-30 2021-03-30 浪潮电子信息产业股份有限公司 Starting method and system of equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1612115A (en) * 2003-10-27 2005-05-04 联想(北京)有限公司 Method for automatically recovering BIOS based on hard disk protective space
CN101308470A (en) * 2007-05-17 2008-11-19 华硕电脑股份有限公司 Computer system for initiative restoration, backup and update of BIOS
CN101470613A (en) * 2007-12-28 2009-07-01 华硕电脑股份有限公司 Debugging method and starting method for computer system and its basic input/output system
CN102200933A (en) * 2010-03-23 2011-09-28 深圳华北工控股份有限公司 System BIOS (Basic Input/Output System) automatic restoring method based on dual SPI (Serial Peripheral interface) Flashes
CN102419719A (en) * 2010-09-27 2012-04-18 鸿富锦精密工业(深圳)有限公司 Computer system and method for starting same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1612115A (en) * 2003-10-27 2005-05-04 联想(北京)有限公司 Method for automatically recovering BIOS based on hard disk protective space
CN101308470A (en) * 2007-05-17 2008-11-19 华硕电脑股份有限公司 Computer system for initiative restoration, backup and update of BIOS
CN101470613A (en) * 2007-12-28 2009-07-01 华硕电脑股份有限公司 Debugging method and starting method for computer system and its basic input/output system
CN102200933A (en) * 2010-03-23 2011-09-28 深圳华北工控股份有限公司 System BIOS (Basic Input/Output System) automatic restoring method based on dual SPI (Serial Peripheral interface) Flashes
CN102419719A (en) * 2010-09-27 2012-04-18 鸿富锦精密工业(深圳)有限公司 Computer system and method for starting same

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341013A (en) * 2017-06-26 2017-11-10 努比亚技术有限公司 One kind start fault handling method, equipment and computer-readable recording medium
CN107341013B (en) * 2017-06-26 2021-01-15 努比亚技术有限公司 Boot fault processing method and device and computer readable storage medium
CN108875347A (en) * 2018-07-12 2018-11-23 上海常仁信息科技有限公司 The automatic protection method of hacker attacks and control is prevented based on robot identity card
CN110502367A (en) * 2019-07-29 2019-11-26 合肥联宝信息技术有限公司 A kind of control method and electronic equipment
CN112486742A (en) * 2019-09-12 2021-03-12 环达电脑(上海)有限公司 Method for remotely checking startup state of server and server
CN112486742B (en) * 2019-09-12 2024-04-12 环达电脑(上海)有限公司 Method for remotely checking starting state of server and server
CN112579338A (en) * 2020-12-30 2021-03-30 浪潮电子信息产业股份有限公司 Starting method and system of equipment and storage medium
CN112579338B (en) * 2020-12-30 2023-03-24 浪潮电子信息产业股份有限公司 Starting method and system of equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101281469B (en) Embedded type system and start-up load application method
CN108304282B (en) Control method of double BIOS and related device
CN104102505A (en) Computer power-on method
US20070174689A1 (en) Computer platform embedded operating system backup switching handling method and system
JP2006527423A (en) Computer operation system repair method
CN102184111B (en) The equipment of operating system online upgrading method and tape operation system
TW201520895A (en) System and method for automatically recovering BIOS of a computer
US20080184023A1 (en) Computer platform boot block program corruption recovery handling method and system
CN103970564A (en) Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
KR20090120541A (en) Method and system for automatic recovery of an embedded operating system
JP6102235B2 (en) BIOS recovery control device, recovery control method thereof, information processing device, and computer program
CN106775674B (en) Equipment based on universal boot loader and starting method thereof
CN105389525A (en) Management method and system for blade server
CN103514014A (en) Method for designing boot system of embedded terminal equipment
TW201426547A (en) Electronic device for bios updatable and bios updating method thereof
US9348603B2 (en) Electronic apparatus and booting method
CN109933374B (en) Computer starting method
CN111078469A (en) Data processing method and data processing equipment
CN104657232A (en) BIOS automatic recovery system and BIOS automatic recovery method
CN101739315A (en) System and method for automatically starting backup firmware
CN101546283A (en) Restoration method based on input output system and computer device therefor
CN111984195A (en) Method and device for improving stability of embedded Linux system
US9529581B2 (en) Circuit and method for writing program codes of basic input/output system
CN114510374A (en) Automatic recovery system and method for peripheral mounting failure
CN106325912B (en) The starting method and device of embedded OS

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141015

WD01 Invention patent application deemed withdrawn after publication