CN104657232A - BIOS automatic recovery system and BIOS automatic recovery method - Google Patents

BIOS automatic recovery system and BIOS automatic recovery method Download PDF

Info

Publication number
CN104657232A
CN104657232A CN201310596723.8A CN201310596723A CN104657232A CN 104657232 A CN104657232 A CN 104657232A CN 201310596723 A CN201310596723 A CN 201310596723A CN 104657232 A CN104657232 A CN 104657232A
Authority
CN
China
Prior art keywords
bios
rom chip
main
spi rom
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
CN201310596723.8A
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.)
Hongfujin Precision Industry Wuhan Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Wuhan Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Wuhan Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Wuhan Co Ltd
Priority to CN201310596723.8A priority Critical patent/CN104657232A/en
Publication of CN104657232A publication Critical patent/CN104657232A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a BIOS automatic recovery system and a BIOS automatic recovery method both operating in a computer. The computer comprises an SPI ROM chip and an SIO controller. A BIOS start block and a main BIOS program are stored in the SPI ROM chip, while a standby BIOS start block is stored in the SIO controller; when the BIOS data in the SPI ROM chip are damaged, whether the main BIOS program is completely damaged is checked; when the main BIOS program is completely damaged, the computer is started by use of the BIOS start block in the SIO controller; when the main BIOS program is partially damaged, the computer is started by use of the BIOS start block in the SPI ROM chip; the damaged BIOS data in the SPI ROM chip are recovered by use of the BIOS data in a memory. When the BIOS data on the SPI ROM chip in the computer are damaged, the damaged BIOS data on the SPI ROM chip are automatically restored by use of the system and the method.

Description

BIOS automatic recovery system and method
Technical field
The present invention relates to a kind of computer system error recovery system and method, particularly about a kind of BIOS automatic recovery system and method.
Background technology
The SPI(Serial Peripheral Interface of user in more new computer system) BIOS in rom chip time must bear some risks, if failure in the unfortunate process in upgrading BIOS, just likely computer system can be caused to start shooting.The scheme of general solution is usual must send former SPIROM chip manufacturer back to and carry out BIOS reparation, and this solution is not only time-consuming but also inefficent.And unexpected SPI rom chip damages the computer system caused cannot start shooting, this can allow the maintenance of SPI rom chip manufacturer pay high cost price.But, industry uses two BIOS(ripe title Dual BIOS usually) or four BIOS(ripe title Quad BIOS) design to guarantee computer system normal boot-strap, but need extra SPI rom chip, and on motherboard, also need the design space of stitch (foot print) of greater number, thus the expense cost of motherboard design can be increased, need a kind of BIOS restoration methods of low-cost high-efficiency, and without the need to extra cost.
Summary of the invention
In view of above content, be necessary to provide a kind of BIOS automatic recovery system and method, when the BIOS data on SPI rom chip in computing machine is damaged, automatically can repair the BIOS data that SPI rom chip damages.
Described BIOS automatic recovery system runs in computing machine, this computing machine comprises SPIROM chip, SIO controller and storer, this SPI rom chip stores BIOS and starts block and bios program, this SIO controller stores BIOS for subsequent use and starts block, this storer stores back-up BIOS data, described BIOS automatic recovery system comprises: BIOS detection module, for press as user opening computer button power on time, check the integrality of main bios program in SPI rom chip, and judge that described main bios program is all damaged or partly damaged, and BIOS recovers module, for when main bios program whole damaged time, utilize the BIOS in SIO controller to start block and carry out start-up simulation machine, when main bios program part is damaged, utilize the BIOS in SPI rom chip to start block and carry out start-up simulation machine, from storer, read back-up BIOS data, and upgrade in this back-up BIOS data write SPI rom chip the main bios program damaged.
Described BIOS automatic recovery method runs in computing machine, this computing machine comprises SPI rom chip, SIO controller and storer, this SPI rom chip stores BIOS and starts block and bios program, this SIO controller stores BIOS for subsequent use and starts block, and this storer stores back-up BIOS data.The method comprising the steps of: when user press opening computer button power on time, check the integrality of main bios program in SPI rom chip; Judge that described main bios program is all damaged or partly damaged; When main bios program whole damaged time, utilize the BIOS in SIO controller start block carry out start-up simulation machine; When main bios program part is damaged, utilizes the BIOS in SPI rom chip to start block and carry out start-up simulation machine; From storer, read back-up BIOS data, and upgrade in this back-up BIOS data write SPI rom chip the main bios program damaged.
Compared to prior art, BIOS automatic recovery system of the present invention and method, when the BIOS data on SPI rom chip in computing machine is damaged, can start block by the BIOS in SIO controller utilizes BIOS data for subsequent use in storer automatically to repair the BIOS data that SPI rom chip damages, thus makes computing machine normally starting up.
Accompanying drawing explanation
Fig. 1 is the running environment schematic diagram of BIOS automatic recovery system of the present invention preferred embodiment.
Fig. 2 is the functional block diagram of BIOS automatic recovery system of the present invention.
Fig. 3 is the process flow diagram of BIOS automatic recovery method of the present invention preferred embodiment.
Main element symbol description
Computing machine 100
Central processing unit 1
Spi bus 11
SATA bus 12
Lpc bus 13
SPI rom chip 2
BIOS starts block 20
Main bios program 21
Storer 3
Back-up BIOS data 30
SIO controller 4
BIOS automatic recovery system 40
BIOS detection module 401
BIOS recovers module 402
BIOS starts module 403
Information reminding module 404
Display 5
Embodiment
Consulting shown in Fig. 1, is BIOS(Basic input-output system of the present invention, Basic Input or Output System (BIOS)) the running environment schematic diagram of automatic recovery system 40 preferred embodiment.In the present embodiment, described BIOS automatic recovery system 40 is installed and is run in computing machine 100, this computing machine 100 comprises, but be not limited only to, central processing unit (CPU) 1, SPI(Serial PeripheralInterface, serial communication interface) rom chip 2, storer 3, SIO(Supper I/O, super I/O) controller 4 and display 5.Described SPI rom chip 2 is connected with central processing unit 1 by spi bus 11, described storer 3 is connected with central processing unit 1 by SATA bus (SATA Bus) 12, and described SIO controller 4 is by LPC(Low Pin Count) bus 13 is connected with central processing unit 1.In the present embodiment, described computing machine 100 can be a kind of personal computer (PC), workstation computer (Workstation computer), notebook (Notebook), server (Server) or other computing electronics.
Described SPI rom chip 2 starts block (BIOS Boot Block) 20 and main bios program 21 with from storage BIOS.When the power on button that user presses computing machine 100 powers on, this BIOS starts block 20 and carries out system boot start-up course for performing main bios program 21 pairs of computing machines 100.When computing machine 100 starting up, this main bios program 21 is for carrying out startup self-detection (Power On Self Test, POST) process and the normal import operation system (OS) of vectoring computer 100 and complete whole start process to computing machine 100.
Described storer 3 stores back-up BIOS data 30, and when the main bios program 21 in SPI rom chip 2 is damaged, this back-up BIOS data 30 is for upgrading described main bios program 21.In the present embodiment, described storer 3 can be internal memory (memory), flash storage (Flash ROM), hard disk (Hard disk) or other disk etc.
Described SIO controller 4 is a kind of embedded super I/O controller (Embedded Controller) be positioned under LPC, it has the function of the various hardware of computing machine 100 being carried out to monitoring management (Hardware Monitor) and communication, such as, detect and manage the functions such as Winchester disk drive, printer, power supply, display and associated serial port (COM & Serial port).Store BIOS for subsequent use in this SIO controller 4 and start block 20, it is identical that the BIOS startup block 20 and the BIOS on SPI rom chip 2 that store in this SIO controller 4 start block 20.
Described BIOS automatic recovery system 40 is stored in the Flash flash memory (such as Flash ROM) in SIO controller 4, when the main bios program 21 on SPI rom chip 2 is damaged, this BIOS automatic recovery system 40 uses BIOS for subsequent use in SIO controller 4 to start block 20 and does the start process of simplifying most, and utilize the back-up BIOS data 30 in storer 3 to repair the main bios program 21 that SPI rom chip 2 damages, thus computing machine 100 is made normally to complete whole starting up's process.
Consulting shown in Fig. 2, is the functional block diagram of BIOS automatic recovery system 40 of the present invention.In the present embodiment, described BIOS automatic recovery system 40 comprises BIOS detection module 401, BIOS recovers module 402, BIOS starts module 403 and information reminding module 404.Functional module alleged by the present invention refer to a kind of can be performed and the sequence of program instructions section of fixed function can be completed by the central processing unit 1 of computing machine 100, it is stored in the storer 3 of computing machine 100 or the Flash internal memory of SIO controller 4.In the present embodiment, described BIOS automatic recovery system 40 is stored in the Flash internal memory of SIO controller 4.Describe in the process flow diagram of Fig. 3 about each functional module 401-404.
Consulting shown in Fig. 3, is the process flow diagram of BIOS automatic recovery method of the present invention preferred embodiment.In the present embodiment, the method is applied in computing machine 100, when the main bios program 21 on SPI rom chip 2 in computing machine 100 is damaged, automatically can repairs the main bios program 21 that SPI rom chip 2 damages, thus make computing machine 100 normally complete whole starting up's process.
Step S31, when the power on button that user presses computing machine 100 powers on, BIOS detection module 401 checks the integrality of main bios program 21 in SPI rom chip 2.In the present embodiment, BIOS detection module 401 checks that the integrality of main bios program 21 comprises the data whether part damaged (Data Corruption) or all damaged (DataErase) checking main bios program 21.
Step S32, BIOS detection module 401 judges that whether main bios program 21 is all damaged or partly damaged.If main bios program 21 is all damaged, then perform step S33; If main bios program 21 part is damaged, then perform step S34.
Step S33, BIOS recover module 402 and utilize the startup of the BIOS in SIO controller 4 block 20 to carry out start-up simulation machine 100.Step S34, BIOS recover module 402 and utilize the startup of the BIOS in SPI rom chip 2 block 20 to carry out start-up simulation machine 100.
Step S35, BIOS recover module 402 and read back-up BIOS data 30 in storer 3, and this back-up BIOS data 30 are write in SPI rom chip 2 the main bios program 21 upgrading and damaged.
Step S36, BIOS recover module 402 and judge whether described back-up BIOS data 30 is successfully written in SPI rom chip 2.If back-up BIOS data 30 has been successfully written in SPI rom chip 2, then perform step S37; If back-up BIOS data 30 is not successfully written in SPI rom chip 2, then perform step S39.
Step S37, BIOS start module 403 and the process (Thread) that execution computing machine 100 is started shooting are turned to the main bios program 21 performed in SPI rom chip 2, and computer for controlling 100 restarts (Reset).
Step S38, BIOS start module 403 and utilize in SPI rom chip 2 the main bios program 21 pairs of computing machines 100 recovered to carry out normal boot-strap start-up course.In the present embodiment, computing machine 100 performs main bios program 21 and carries out startup self-detection process (POST), and the normal import operation system (OS) of vectoring computer 100 has carried out whole starting up's process.
Step S39, information reminding module 404 shows SPI rom chip 2 on display 5 and has caused physical damage (Physical Failure) and the miscue information cannot recovering main bios program 21.In the present embodiment, SPI rom chip 2 likely has physical damage, thus causes back-up BIOS data 30 cannot write in SPI rom chip 2.
Above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to above preferred embodiment to invention has been detailed description, those of ordinary skill in the art should be appreciated that and can modify to technical scheme of the present invention or be equal to the spirit and scope of replacing and should not depart from technical solution of the present invention.

Claims (10)

1. a BIOS automatic recovery system, run in computing machine, this computing machine comprises SPIROM chip, SIO controller and storer, this SPI rom chip stores BIOS and starts block and bios program, it is characterized in that, this SIO controller stores BIOS for subsequent use and starts block, and this storer stores back-up BIOS data, and described BIOS automatic recovery system comprises:
BIOS detection module, for press as user opening computer button power on time, check the integrality of main bios program in SPI rom chip, and judge that described main bios program is all damaged or part is damaged;
BIOS recovers module, for when main bios program whole damaged time, utilize the BIOS in SIO controller to start block and carry out start-up simulation machine, when main bios program part is damaged, utilize the BIOS in SPI rom chip to start block and carry out start-up simulation machine, from storer, read back-up BIOS data, and upgrade in this back-up BIOS data write SPI rom chip the main bios program damaged.
2. BIOS automatic recovery system as claimed in claim 1, is characterized in that, described BIOS recovers module also for judging whether back-up BIOS data is successfully written in SPI rom chip.
3. BIOS automatic recovery system as claimed in claim 2, it is characterized in that, this system also comprises BIOS and starts module, this BIOS starts module and is used for when described back-up BIOS data is successfully written to SPI rom chip, the process performing computer booting is turned to the main bios program performed in SPI rom chip, and computer for controlling restarts, and the main bios program recovered is utilized in SPI rom chip to carry out normal boot-strap start-up course to computing machine.
4. BIOS automatic recovery system as claimed in claim 2, it is characterized in that, this system also comprises information reminding module, and this information reminding module causes physical damage for showing SPIROM chip on the display of computing machine and cannot recover the miscue information of main bios program.
5. BIOS automatic recovery system as claimed in claim 1, it is characterized in that, it is identical that the BIOS startup block and the BIOS on SPI rom chip that store in described SIO controller start block, and described BIOS starts block and carries out system boot start-up course for performing main bios program to computing machine.
6. a BIOS automatic recovery method, run in computing machine, this computing machine comprises SPIROM chip, SIO controller and storer, this SPI rom chip stores BIOS and starts block and bios program, it is characterized in that, this SIO controller stores BIOS for subsequent use and starts block, and this storer stores back-up BIOS data, and the method comprising the steps of:
When user press opening computer button power on time, check the integrality of main bios program in SPI rom chip;
Judge that described main bios program is all damaged or partly damaged;
When main bios program whole damaged time, utilize the BIOS in SIO controller start block carry out start-up simulation machine;
When main bios program part is damaged, utilizes the BIOS in SPI rom chip to start block and carry out start-up simulation machine;
From storer, read back-up BIOS data, and upgrade in this back-up BIOS data write SPIROM chip the main bios program damaged.
7. BIOS automatic recovery method as claimed in claim 6, it is characterized in that, the method also comprises step: judge whether back-up BIOS data is successfully written in SPI rom chip.
8. BIOS automatic recovery method as claimed in claim 7, it is characterized in that, the method also comprises step:
When described back-up BIOS data is successfully written to SPI rom chip, the process performing computer booting is turned to the main bios program performed in SPI rom chip, and computer for controlling restarts;
The main bios program recovered is utilized in SPI rom chip to carry out normal boot-strap start-up course to computing machine.
9. BIOS automatic recovery method as claimed in claim 7, it is characterized in that, the method also comprises step:
The display of computing machine shows SPI rom chip cause physical damage and the miscue information of main bios program cannot be recovered.
10. BIOS automatic recovery method as claimed in claim 6, it is characterized in that, it is identical that the BIOS startup block and the BIOS on SPI rom chip that store in described SIO controller start block, and described BIOS starts block and carries out system boot start-up course for performing main bios program to computing machine.
CN201310596723.8A 2013-11-22 2013-11-22 BIOS automatic recovery system and BIOS automatic recovery method Pending CN104657232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310596723.8A CN104657232A (en) 2013-11-22 2013-11-22 BIOS automatic recovery system and BIOS automatic recovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310596723.8A CN104657232A (en) 2013-11-22 2013-11-22 BIOS automatic recovery system and BIOS automatic recovery method

Publications (1)

Publication Number Publication Date
CN104657232A true CN104657232A (en) 2015-05-27

Family

ID=53248404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310596723.8A Pending CN104657232A (en) 2013-11-22 2013-11-22 BIOS automatic recovery system and BIOS automatic recovery method

Country Status (1)

Country Link
CN (1) CN104657232A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598778A (en) * 2016-11-21 2017-04-26 合肥联宝信息技术有限公司 Method and device for restoring firmware information
CN107038093A (en) * 2017-04-21 2017-08-11 合肥联宝信息技术有限公司 A kind of method and device for handling computer BIOS
CN108108269A (en) * 2017-12-18 2018-06-01 联想(北京)有限公司 The control method and device of the BIOS of a kind of electronic equipment
CN108647114A (en) * 2018-03-30 2018-10-12 斑马网络技术有限公司 Vehicle device operating system and its startup method, system partitioning update and restoration methods
CN113076145A (en) * 2021-06-07 2021-07-06 四川微巨芯科技有限公司 Booting method and device, backup method and device, electronic device 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
CN1707442A (en) * 2005-03-28 2005-12-14 联想(北京)有限公司 Method for recoverying basic inputting and outputting system chip
CN101364193A (en) * 2007-08-06 2009-02-11 英业达股份有限公司 BIOS automatic recovery method and computer and system using the method
US20120079260A1 (en) * 2010-09-27 2012-03-29 Hon Hai Precision Industry Co., Ltd. Basic input-output system circuit and method for using the same
WO2012160717A1 (en) * 2011-05-23 2012-11-29 Necインフロンティア株式会社 Computer and computer control method

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
CN1707442A (en) * 2005-03-28 2005-12-14 联想(北京)有限公司 Method for recoverying basic inputting and outputting system chip
CN101364193A (en) * 2007-08-06 2009-02-11 英业达股份有限公司 BIOS automatic recovery method and computer and system using the method
US20120079260A1 (en) * 2010-09-27 2012-03-29 Hon Hai Precision Industry Co., Ltd. Basic input-output system circuit and method for using the same
WO2012160717A1 (en) * 2011-05-23 2012-11-29 Necインフロンティア株式会社 Computer and computer control method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598778A (en) * 2016-11-21 2017-04-26 合肥联宝信息技术有限公司 Method and device for restoring firmware information
CN107038093A (en) * 2017-04-21 2017-08-11 合肥联宝信息技术有限公司 A kind of method and device for handling computer BIOS
CN108108269A (en) * 2017-12-18 2018-06-01 联想(北京)有限公司 The control method and device of the BIOS of a kind of electronic equipment
CN108647114A (en) * 2018-03-30 2018-10-12 斑马网络技术有限公司 Vehicle device operating system and its startup method, system partitioning update and restoration methods
CN108647114B (en) * 2018-03-30 2022-03-08 斑马网络技术有限公司 Vehicle machine operating system and starting method thereof, and system partition updating and recovering method
CN113076145A (en) * 2021-06-07 2021-07-06 四川微巨芯科技有限公司 Booting method and device, backup method and device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
WO2022160756A1 (en) Server fault positioning method, apparatus and system, and computer-readable storage medium
TW201520895A (en) System and method for automatically recovering BIOS of a computer
US10365961B2 (en) Information handling system pre-boot fault management
US9158628B2 (en) Bios failover update with service processor having direct serial peripheral interface (SPI) access
CN103150231B (en) The method of computer booting and computer system
US8423991B2 (en) Embedded network device and firmware upgrading method
CN100517246C (en) Computer remote control method and system
TW201512831A (en) Computer booting system and method of a computer
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
KR20130100879A (en) Electronic apparatus, method for restore of mbr and computer-readable recording medium
CN104657232A (en) BIOS automatic recovery system and BIOS automatic recovery method
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN104572143A (en) Startup detection system and method for computer
CN106990985A (en) Apparatus and method based on BMC renewals and standby system UEFI firmwares
CN104598256A (en) Computer BIOS (Basic Input /Output System) recovery system and method
CN104424047A (en) NVRAM data recovery method and NVRAM data recovery device
US8176309B2 (en) Boot system has BIOS that reads rescue operating system from memory device via input/output chip based on detecting a temperature of a hard disk
TW201616273A (en) System and method for recovering BIOS data of a computer
CN105630523A (en) Computer BIOS data recovery system and method
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
CN110096882B (en) Safety measurement method in equipment operation process
CN101515236B (en) Restoring method and update module for basic input/output system and computer system
US8495353B2 (en) Method and circuit for resetting register
TW201516654A (en) System and method for recovering BIOS of a computer

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150527