TW200809489A - BIOS damage detection and repair method and the motherboard - Google Patents

BIOS damage detection and repair method and the motherboard Download PDF

Info

Publication number
TW200809489A
TW200809489A TW95128106A TW95128106A TW200809489A TW 200809489 A TW200809489 A TW 200809489A TW 95128106 A TW95128106 A TW 95128106A TW 95128106 A TW95128106 A TW 95128106A TW 200809489 A TW200809489 A TW 200809489A
Authority
TW
Taiwan
Prior art keywords
bios
repair
program
chip
motherboard
Prior art date
Application number
TW95128106A
Other languages
Chinese (zh)
Inventor
You-Yi Huang
Original Assignee
Epox Comp 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 Epox Comp Co Ltd filed Critical Epox Comp Co Ltd
Priority to TW95128106A priority Critical patent/TW200809489A/en
Publication of TW200809489A publication Critical patent/TW200809489A/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a BIOS damage detection and repair method, which is used to detect if the programming codes in the BIOS chip on a computer motherboard are damaged, and to repair. The method is to configure a series flash memory chip on the motherboard for repairing BIOS; and configuring a controller and a BIOS watchdog in a SUPER I/O controller; when the central processing unit is normally executing the BIOS program, conducting the reset operation for the BIOS watchdog, otherwise the BIOS watchdog will issue a trigger signal to the controller if there is no resetting happened after a predetermined period time, so as to reset the central processing unit through the south and north bridge chips, and re-reading the series flash memory of the repaired BIOS to execute the re-booting; and displaying an operation screen configured with a plurality of options on a computer screen for user to select the method of BIOS repairing, so as to execute the BIOS repair procedure based on the user's selection.

Description

發明說明: 【發明所屬之技術領域】 本發明是關於一種電腦系統故障偵測方法,特別是指 一種Bios故障偵測及修復方法。 【先前技術】 ~般所謂的 BI〇S(Basic Input/Outpm System,基本輸入/ 輪出系統)ROM(Read Only Memory),是為PC所用的一顆 整合有開機時的硬體啟始/檢測碼、載入作業系統及完成開 機程序的前導程式碼、以及一些基本周邊I/O處理的副程式 碼等程式的晶片,因此,在一般電腦系統之主機板上至少 會有一顆BIOS晶片。電腦在開機的一瞬間,主機板之CPU 會從主機板之BIOS晶片内讀取程式碼,使針對主機板上的 元件進行初始化設定及驅動,並載入作業系統,以完作開 機作業。 因此,當BIOS程式碼損毁時,就會導致電腦無法開機 使用,在此情況下,使用者只有將電腦直接送修一途,而 且還須承受暫時無法使用電腦的不便。 所以,為解決上述BIOS損毀而需送修的問題,目前一 種電腦可自行修復BIOS的方法,如圖1所示,是在主機板 1上同時使用兩顆與南橋晶片11電連接之一主BIOS晶片 12及一備份BIOS晶片13(即所謂的dual BIOS),在正常情 況下,主機板1之中央處理器(CPU)14會透過北橋晶片15 及南橋晶片11讀取主BIOS晶片12進行開機測試程序,而 當主BIOS晶片12之BIOS程式發生異常時,將由備份的 200809489 BIOS晶片啟動,使得電腦在BIOS程式損壞時,仍能進行 正常開機動作。但是上述方法需要使用兩顆容量較大且較 貴的記憶晶片(Flash ROM)來儲存BIOS程式,對於有成本 考量的主機板製造商而言並不適用,且備份BIOS晶片中儲 存的BIOS也可能並非最新的BIOS版本,而需事後再做 BIOS版本更新。 【發明内容】 因此,本發明之目的,在於提供一種令電腦在BIOS損 _ 毀情況下仍可自行開機並進行BIOS修復之BIOS損毁偵測 及修復方法。 於是,本發明之BIOS損毀偵測及修復方法,用以偵測 電腦主機板上的BIOS晶片中的程式碼是否損毁並予以修復 ,該主機板包括一中央處理器、一與中央處理器電連接之 北橋晶片,一與北橋晶片電連接之南橋晶片,一與南橋晶 片電連接之BIOS晶片及一 SUPER I/O控制器;該方法包括 :(A)於該主機板上設置一存有一基本開機程式及一 BIOS φ 修復程式之修復BIOS的序列更新記憶體晶片,並於該 SUPER I/O控制器中設置一控制器及一 BIOS監視計時器, 使該控制器電連接該南橋晶片、BIOS晶片以及該修復BIOS 的序列更新記憶體晶片,且令中央處理器於正常執行BIOS 程式時,經由北橋晶片、南橋晶片及該控制器定時重置該 BIOS監視計時器;(B)於該中央處理器執行BIOS程式期間 ,令BIOS監視計時器在一預定時間内未被重置時,即發出 一觸發訊號給該控制器,使將該BIOS晶片禁能,而後將該 200809489 修復BIOS的序列更新記憶體晶片致能,並透過南、北橋晶 片將該中央處理器重置,使該中央處理器重新讀取該修復 BIOS的序列更新記憶體晶片之基本開機程式執行一重開機 程序後,執行該修復BIOS的程式,並在電腦顯示幕顯示設 有複數選項之一操作晝面供使用者選擇修復BIOS的方式; 及(C)根據使用者選擇,執行BIOS修復程序。 再者,本發明用以實現上述方法之主機板包括一中央 處理器、一北橋晶片、一南橋晶片、一 BIOS晶片、一修復 • BIOS的序列更新記憶體晶片及一 SUPER I/O控制器。該中 央處理器於電腦開機時用以執行BIOS程式。該北橋晶片與 該中央處理器電連接,負責中央處理器與記憶體之間的溝 通。該南橋晶片與北橋晶片電連接,負責中央處理器與電 腦周邊元件之間的溝通。該BIOS晶片中存有BIOS程式, 並與南橋晶片電連接。該修復BIOS的序列更新記憶體晶片 中存有一基本開機程式及一 BIOS修復程式。該SUPER I/O 控制器包含一控制器及一 BIOS監視計時器,該控制器與南 _ 橋晶片、BIOS晶片及修復BIOS的序列更新記憶體晶片電 連接,該BIOS監視計時器與控制器連接,且中央處理器於 正常執行BIOS程式時,會經由北橋晶片、南橋晶片及該控 制器定時重置該BIOS監視計時器。在中央處理器執行 BIOS程式期間,令該BIOS監視計時器在一預定時間内未 被重置時,即發出一觸發訊號給該控制器,使將該BIOS晶 片禁能,將該修復BIOS的序列更新記憶體晶片致能,並透 過南、北橋晶片將中央處理器重置,使中央處理器重新讀 7 200809489 取該修復BIOS的序列更新記憶體晶片之基本開機程式執行 一重新開機程序後,執行該BIOS修復程式,使在電腦顯示 幕顯示設有複數選項之一操作晝面供使用者選擇修復BIOS 的方式,並根據使用者選擇,執行BIOS修復程序。 【實施方式】 有關本發明之前述及其他技術内容、特點與功效,在 以下配合參考圖式之一個較佳實施例的詳細說明中,將可 清楚的呈現。 參閱圖2及圖3所示,是本發明BIOS損毁偵測及修復 方法的一較佳實施例,其說明本方法偵測電腦主機板上的 BIOS晶片内的程式碼是否損毀並予以修復的過程。 首先,如圖2所示,本實施例是實現在一主機板2上 ,亦即本實施例應用主機板2原先所具備的一部分元件來 進行BIOS損毁偵測,包括一在電腦開機當時執行BIOS程 式之中央處理器(CPU)21,一負責記憶體(圖未示)與中央處 理器21之間的溝通的北橋晶片22,——負責周邊元件(例如 PCI周邊、軟碟、硬碟、USB裝置、滑鼠、鍵盤等)與中央 處理器21之間的溝通的南橋晶片23,一與南橋晶片23電 連接之存有 BIOS程式碼的 BIOS 晶片(BIOS Flash ROM)24。此外,本實施例更在主機板2上設置一 SUPER I/O控制器25,及一與SUPER I/O控制器25電連接之修復 BIOS的序列更新記憶體(SERIES FLASH MEMORY)晶片26 。修復BIOS的序列更新記憶體晶片26 (boot ROM)中預存 有一基本開機程式BIN以及一 BIOS修復程式(包含軟碟機 8 200809489 與光碟機驅動程式)。 且與以往SUPER I/O控制器不同的是,本實施例之 SUPER I/O控制器25 (型號EP1308)除了包含一提供基本的 周邊裝置介面及硬體監控功能之控制器27外,更包含一 BIOS監視計時器28(例如下數計時器)。其中,控制器27與 南橋晶片23、BIOS晶片24及修復BIOS的序列更新記憶體 曰曰片26黾連接’ BIOS監視計時器(又稱watch d〇g)28透過 控制裔27、南橋晶片23及北橋晶片22與中央處理器21電 • 連接,用以監視中央處理器21是否正常執行BIOS程式。 所以本實施例在BIOS程式中間隔設定(插入)有至少一 重置BIOS監視計時器指令,若中央處理器21正常執行 BIOS程式,即會定時(約4秒鐘)重覆執行該重置bi〇s監視 計時器指令,而將該BIOS監視計時器28重置,所以,當 BIOS程式超過一預定時間(約4秒鐘)沒有去重置監視 計時器28時,BI0S監視計時器28將會一直往下計數至一 預疋值(例如計數至零)時,即會發出一觸發訊號給控制器π ⑩ 如此一來,藉由該B1〇S監視計時器28被重置與否,即 可得知Bl〇S程式是否發生問題。 因此,根據上述中央處理器21與BI〇s監視計時器28 之作特性,簽見圖3之步驟31,在中央處理器21執行 ^ S耘式以進行開機作業時,當BIOS監視計時器28在開 機4秒鐘後尚未被重置時,即如步驟32,發出一觸發訊號 觸^控制裔27,令控制器27將BIOS晶片24禁能(disable) 將修復BIOS的序列更新記憶體晶片26致能(enab〗e),並 200809489 透過南、北橋晶片23、22將中央處理器21重置,使中央 處理器21停止執行BIOS程式,並改變中央處理器21之 存取路徑,使中央處理器改經由北橋晶片22、南橋晶片23 及控制器27讀取修復BIOS的序列更新記憶體晶片26,而 由該修復BIOS的序列更新記憶體晶片26中取得該基本開 機程式BIN,執行一重新開機程序後,執行該BIOS修復程 式,而顯示如圖4所示之設有兩個選項的一 BIOS修復操作 畫面,供使用者選擇修復BIOS的方式。 φ 如圖4所示,本實施例之BIOS修復操作畫面中顯示一 第1.選項”將修復磁片置入軟碟機”及一第2.選項”將主機板 光碟置入光碟機”供使用者選擇;其中修復磁片是指使用者 藉由一主機板廠商所提供之應用程式自行製作的BIOS備份 磁片,其中通常存有最新之BIOS版本;而主機板光碟一般 是指由主機板廠商提供,其中存有可供使用者用以修復已 損毀 BIOS 之精簡 BIOS 程式(Safe-Mode BIOS)。 因此,如步驟33所示,當使用者選擇”將修復磁片置入 _ 軟碟機”選項(1)時,BIOS修復程式檢查軟碟機是否已置入 修復磁片,若是,則如步驟34,再次確認使用者是否選擇 軟碟機,若是,則如步驟35及36,從軟碟機讀取修復磁片 之内容,並於找到其中的BIOS備份程式後,如步驟37, 執行更新/燒錄BIOS動作,以該BIOS備份程式取代原先損 毁的BIOS,而完成BIOS修復作業。 反之,在步驟33中,當BIOS修復程式發現使用者未 將修復磁片置入軟碟機時,如步驟38,程式則自動從光碟 10 200809489 機讀取資料,因此,若使用者已預先在光碟機中置入主機 板光碟,在步驟36中,即可在主機板光碟中找到精簡 BIOS備份程式,並如步驟37,以該精簡BIOS程式更新原 先損毁的BIOS,而完成BIOS修復作業。 或者’在步驟3 4中’當使用者選擇”將主機板光碟置入 光碟機”選項(2)時,BIOS修復程式在判斷軟碟機未被選擇 的情況下,則如步驟39,檢查使用者是否選擇光碟機,若 是,表示使用者已將主機板光碟置入光碟機中,則可進行 • 上述的後續步驟38、36及37。而若在步驟39,使用者仍 未選擇光碟機(未將主機板光碟置入光碟機)時,程式流程即 會重新再回到步驟33。且若在步驟36中,找不到BIOS備 份程式時,程式即會在未完成BIOS修復的情況下結束。[Technical Field] The present invention relates to a computer system fault detection method, and more particularly to a Bios fault detection and repair method. [Prior Art] The so-called "Basic Input/Outpm System" ROM (Read Only Memory) is an integrated hardware start/detection for PCs. The code, the load operating system and the boot code of the boot program, and some basic peripheral I/O processing subcodes, etc., therefore, there will be at least one BIOS chip on the motherboard of the general computer system. At the moment the computer is turned on, the CPU of the motherboard reads the code from the BIOS chip of the motherboard, initializes and drives the components on the motherboard, and loads the components into the operating system to complete the startup operation. Therefore, when the BIOS code is damaged, the computer will not be able to be turned on. In this case, the user only has to send the computer directly for repair, and it is also inconvenient to temporarily use the computer. Therefore, in order to solve the above-mentioned BIOS damage, it is necessary to send the repair problem. At present, a computer can repair the BIOS by itself, as shown in FIG. 1 , which is a main BIOS which is electrically connected to the south bridge chip 11 on the motherboard 1 at the same time. The chip 12 and a backup BIOS chip 13 (so-called dual BIOS), under normal circumstances, the central processing unit (CPU) 14 of the motherboard 1 reads the main BIOS chip 12 through the north bridge chip 15 and the south bridge wafer 11 for boot test. The program, when the BIOS of the main BIOS chip 12 is abnormal, will be started by the backup 200809489 BIOS chip, so that the computer can still perform normal booting when the BIOS program is damaged. However, the above method requires the use of two larger and more expensive memory chips (Flash ROM) to store the BIOS program, which is not suitable for costly motherboard manufacturers, and the BIOS stored in the backup BIOS chip may also Not the latest BIOS version, but need to do the BIOS version update afterwards. SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a BIOS corruption detection and repair method that allows a computer to boot itself and perform BIOS repair in the event of a BIOS failure. Therefore, the BIOS damage detection and repair method of the present invention is used for detecting whether the code in the BIOS chip on the computer motherboard is damaged and repaired, and the motherboard includes a central processing unit and an electrical connection with the central processing unit. a north bridge chip, a south bridge chip electrically connected to the north bridge chip, a BIOS chip electrically connected to the south bridge chip, and a SUPER I/O controller; the method includes: (A) setting a memory on the motherboard and having a basic boot The program and a BIOS φ repair program repair the BIOS sequence to update the memory chip, and set a controller and a BIOS watchdog timer in the SUPER I/O controller to electrically connect the controller to the south bridge chip and the BIOS chip. And repairing the BIOS to update the memory chip sequence, and causing the central processor to periodically reset the BIOS watchdog timer via the north bridge chip, the south bridge chip, and the controller when the BIOS program is normally executed; (B) the CPU During the execution of the BIOS program, when the BIOS watchdog timer is not reset within a predetermined time, a trigger signal is sent to the controller to disable the BIOS chip. Then, the 200809489 repair BIOS sequence update memory chip is enabled, and the central processor is reset through the south and north bridge chips, so that the central processor re-reads the basic boot program of the repair BIOS sequence update memory chip. After executing a restarting program, execute the program for repairing the BIOS, and display one of the plural options in the display screen of the computer for the user to select a method for repairing the BIOS; and (C) execute the BIOS repair program according to the user selection. . Furthermore, the motherboard for implementing the above method comprises a central processor, a north bridge chip, a south bridge chip, a BIOS chip, a BIOS update sequence memory chip and a SUPER I/O controller. The central processor is used to execute the BIOS program when the computer is turned on. The north bridge chip is electrically connected to the central processing unit and is responsible for communication between the central processing unit and the memory. The south bridge chip is electrically connected to the north bridge chip and is responsible for communication between the central processing unit and peripheral components of the computer. The BIOS chip stores a BIOS program and is electrically connected to the south bridge chip. The repair BIOS BIOS has a basic boot program and a BIOS fix in the memory update chip. The SUPER I/O controller includes a controller and a BIOS watchdog timer electrically connected to the south_bridge chip, the BIOS chip, and the BIOS update sequence memory chip. The BIOS watchdog timer is connected to the controller. When the CPU executes the BIOS program normally, the CPU monitor timer is periodically reset via the north bridge chip, the south bridge chip, and the controller. During the execution of the BIOS program by the central processing unit, when the BIOS watchdog timer is not reset within a predetermined time, a trigger signal is sent to the controller to disable the BIOS chip, and the sequence of the repair BIOS is Update the memory chip enable, and reset the central processor through the south and north bridge chips, so that the central processor re-reads 7 200809489 Take the repair BIOS update sequence memory chip basic boot program to perform a reboot process, execute The BIOS fixer enables the user to select a method for repairing the BIOS in the display screen of the computer display screen, and performs a BIOS repair process according to the user's choice. The above and other technical contents, features, and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments. Referring to FIG. 2 and FIG. 3, it is a preferred embodiment of the BIOS corruption detection and repair method of the present invention, which illustrates the process of detecting whether the code in the BIOS chip on the computer motherboard is damaged and repaired. . First, as shown in FIG. 2, the embodiment is implemented on a motherboard 2, that is, a part of components originally used by the motherboard 2 in this embodiment is used for BIOS damage detection, including executing a BIOS when the computer is powered on. The central processing unit (CPU) 21 of the program, a north bridge chip 22 responsible for communication between the memory (not shown) and the central processing unit 21, is responsible for peripheral components (such as PCI peripherals, floppy disks, hard disks, USB). A south bridge chip 23 for communication between the device, the mouse, the keyboard, and the like, and a central processing unit 21, and a BIOS chip ROM (BIOS Flash ROM) 24 electrically connected to the south bridge chip 23. In addition, in this embodiment, a SUPER I/O controller 25 is disposed on the motherboard 2, and a BIOS SERIES FLASH MEMORY wafer 26 is electrically connected to the SUPER I/O controller 25. The BIOS update sequence memory 26 (boot ROM) pre-stores a basic boot program BIN and a BIOS repair program (including floppy drive 8 200809489 and CD-ROM drive). Different from the previous SUPER I/O controller, the SUPER I/O controller 25 (model EP1308) of the present embodiment includes a controller 27 that provides a basic peripheral device interface and hardware monitoring functions, and includes A BIOS watchdog timer 28 (e.g., a timer). The controller 27 is connected to the south bridge chip 23, the BIOS chip 24, and the repair BIOS serial update memory port 26黾. The BIOS monitoring timer (also referred to as watch d〇g) 28 transmits the control 27, the south bridge chip 23 and The north bridge chip 22 is electrically connected to the central processing unit 21 for monitoring whether the central processing unit 21 executes the BIOS program normally. Therefore, in this embodiment, at least one reset BIOS watchdog timer instruction is set (inserted) in the BIOS program. If the CPU 21 executes the BIOS program normally, the reset is repeated (about 4 seconds). 〇s monitor the timer command and reset the BIOS watchdog timer 28, so when the BIOS program does not reset the watchdog timer 28 for more than a predetermined time (about 4 seconds), the BIOS watchdog timer 28 will When counting down to a preset value (for example, counting to zero), a trigger signal is sent to the controller π 10. By the B1〇S monitoring timer 28 being reset or not, I know if there is a problem with the Bl〇S program. Therefore, according to the characteristics of the above-mentioned central processing unit 21 and the BI〇s monitoring timer 28, the step 31 of FIG. 3 is signed, and when the central processing unit 21 executes the power-on operation, when the BIOS monitors the timer 28 When it has not been reset after 4 seconds of booting, that is, as in step 32, a trigger signal is sent to control the controller 27, causing the controller 27 to disable the BIOS chip 24 to repair the BIOS update sequence memory chip 26 Enable (enab e), and 200809489 reset the central processing unit 21 through the south and north bridge chips 23, 22, so that the central processing unit 21 stops executing the BIOS program, and changes the access path of the central processing unit 21 to make the central processing The device reads the sequence update memory chip 26 of the repair BIOS via the north bridge chip 22, the south bridge chip 23, and the controller 27, and the basic boot program BIN is obtained from the sequence update memory chip 26 of the repair BIOS, and a reboot is performed. After the program, the BIOS repair program is executed, and a BIOS repair operation screen with two options as shown in FIG. 4 is displayed for the user to select a way to repair the BIOS. φ As shown in FIG. 4, in the BIOS repair operation screen of this embodiment, a first option "set the repair disk into the floppy disk drive" and a second option "put the motherboard disk into the optical disk drive" are displayed. The user selects; the repair disk is a BIOS backup disk that the user creates by himself or herself with an application provided by the motherboard manufacturer, and usually has the latest BIOS version; and the motherboard disk generally refers to the motherboard. Vendor provides a secure BIOS (Safe-Mode BIOS) for users to repair a corrupted BIOS. Therefore, as shown in step 33, when the user selects the "Place the repair disk into the _ floppy disk drive" option (1), the BIOS repair program checks whether the floppy disk drive has been placed into the repair disk, and if so, steps are as follows. 34, re-confirm whether the user selects the floppy disk machine, and if so, read the contents of the repair disk from the floppy disk machine in steps 35 and 36, and after finding the BIOS backup program, perform the update as in step 37. Burn the BIOS action, replace the original corrupted BIOS with the BIOS backup program, and complete the BIOS repair operation. On the other hand, in step 33, when the BIOS repair program finds that the user has not placed the repair disk into the floppy disk drive, as in step 38, the program automatically reads the data from the CD 10 200809489 machine, so if the user has previously In the CD player, the motherboard CD is inserted. In step 36, the simplified BIOS backup program can be found in the motherboard CD, and in step 37, the BIOS is repaired by the simplified BIOS program to complete the BIOS repair operation. Or, in step 3 4, when the user selects the option to put the motherboard into the optical disk drive (2), the BIOS repair program determines that the floppy disk drive is not selected, as in step 39, checks the use. Whether or not the optical disc player is selected, if it is indicated that the user has placed the motherboard optical disc into the optical disc drive, the following steps 38, 36 and 37 can be performed. If, at step 39, the user has not selected the optical disk drive (the motherboard optical disk is not placed in the optical disk drive), the program flow will return to step 33 again. And if the BIOS backup program is not found in step 36, the program will end without completing the BIOS repair.

此外,在電腦主機板之BIOS已依上述方法修復完成, 且電腦被重新開機時,此時,一預設在電腦¢:槽/program file/中的一 BIOS版本檢查程式會被執行,其藉由檢查BIOS 程式中代表版本的一組序列碼,判斷電腦目前使用的BIOS • 版本是否為精簡BIOS(Safe-Mode BIOS)?若是,則會在電腦 顯示幕上出現如圖5所示之一 BIOS版本更新提醒訊息,提 醒使用者更新BIOS版本。且此一 BIOS版本檢查程式會在 電腦每次開機時被執行一次,以偵測電腦使用之BIOS是否 為精簡版本,而提醒使用者進行BIOS版本更新。 綜上所述,本發明藉由在主機板2上設置一修復BIOS 的序列更新記憶體晶片26,並在SUPER I/O控制器25中另 外設置一 BIOS監視計時器28監視BIOS程式,使中央處理 11 200809489 器21執行BIOS程式進行開機期間未將BIOS監視計時器 28重置時,BIOS監視計時器28即發出一觸發訊號觸發控 制器27,使將BIOS晶片24禁能,並使中央處理器21重 新讀取修復BIOS的序列更新記憶體晶片26重新開機,以 進行BIOS修復工作,使得電腦在BIOS損毀情況下仍可完 成開機動作,而達到迅速偵測BIOS是否損毁且有效修復 BIOS的功效與目的。此外,由於本發明之修復BIOS的序 列更新記憶體晶片26只儲存基本的開機程式及BIOS修復 程式,僅佔用少量記憶體空間,因此,修復BIOS的序列更 新記憶體晶片26選擇容量較小之SERIES FLASH MEMORY 晶片即可,而能減少主機板之製造成本。 惟以上所述者,僅為本發明之較佳實施例而已,當不 能以此限定本發明實施之範圍,即大凡依本發明申請專利 範圍及發明說明内容所作之簡單的等效變化與修飾,皆仍 屬本發明專利涵蓋之範圍内。 【圖式簡單說明】 圖1是習知具有雙BIOS的主機板之存取及執行BIOS 程式的相關元件示意圖; 圖2是本發明BIOS損毀偵測及修復方法所應用之主機 板元件配置關係示意圖; 圖3是本實施例之BIOS損毀偵測及修復流程圖; 圖4是本實施例之BIOS修復操作晝面示意圖;及 圖5是本實施例之BIOS版本债測結果的資訊晝面示意 圖0 12 200809489 【主要元件符號說明】 2 主機板 21中央處理器 22北橋晶片 23南橋晶片 24 BIOS晶片 25 SUPER I/O 控制器 27控制器 28 BIOS監視計時器 26修復 BIOS白勺序歹)j更新記憶體(SERIES FLASH MEMORY)晶片 31~39流程步驟 13In addition, when the BIOS of the computer motherboard has been repaired according to the above method, and the computer is restarted, at this time, a BIOS version checking program preset in the computer: slot/program file/ is executed, and the borrowing method is executed. By checking the serial number of the representative version in the BIOS program, determine whether the BIOS currently used by the computer is a version of the BIOS (Safe-Mode BIOS). If so, a BIOS such as the one shown in Figure 5 will appear on the computer display. The version updates the reminder message to remind the user to update the BIOS version. And this BIOS version check program will be executed once every time the computer is turned on to detect whether the BIOS used by the computer is a reduced version, and remind the user to update the BIOS version. In summary, the present invention updates the memory chip 26 by setting a BIOS repair sequence on the motherboard 2, and additionally sets a BIOS watchdog timer 28 in the SUPER I/O controller 25 to monitor the BIOS program to make the central Processing 11 200809489 When the BIOS 21 executes the BIOS program to reset the BIOS watchdog timer 28 during power-on, the BIOS watchdog timer 28 issues a trigger signal to trigger the controller 27 to disable the BIOS chip 24 and enable the CPU. 21 re-read the BIOS repair sequence update memory chip 26 to reboot, in order to perform BIOS repair work, so that the computer can still complete the boot action in the case of BIOS damage, and quickly detect whether the BIOS is damaged and effectively repair the BIOS. purpose. In addition, since the BIOS update sequence memory 26 of the present invention stores only the basic boot program and the BIOS repair program, which occupies only a small amount of memory space, the BIOS repair sequence update memory chip 26 selects a smaller SERIES. The FLASH MEMORY wafer can be used, and the manufacturing cost of the motherboard can be reduced. The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of related components of a conventional motherboard with dual BIOS and access to a BIOS program; FIG. 2 is a schematic diagram of a motherboard component configuration relationship applied to the BIOS corruption detection and repair method of the present invention; FIG. 3 is a schematic diagram of the BIOS repair detection and repair in the embodiment; FIG. 4 is a schematic diagram of the BIOS repair operation in the embodiment; and FIG. 5 is a schematic diagram of the information of the BIOS version of the UE in the present embodiment. 12 200809489 [Main component symbol description] 2 motherboard 21 central processor 22 north bridge wafer 23 south bridge wafer 24 BIOS chip 25 SUPER I / O controller 27 controller 28 BIOS monitor timer 26 repair BIOS order) j update memory SERIES FLASH MEMORY wafer 31~39 process step 13

Claims (1)

200809489 十、申請專利範圍: 1 · 一種BIOS損毀偵測及修復方法,用以偵測電腦主機板 - 上的BIOS晶片中的程式碼是否損毀並予以修復,該主 機板包括一中央處理器、一與中央處理器電連接之北橋 晶片9 一與北橋晶片電連接之南橋晶片’ 一^與南橋晶片 電連接之BIOS晶片及一 SUPER I/O控制器;該方法包 -括: (A) 於該主機板上設置一存有一基本開機程式及一 φ BIOS修復程式之修復BIOS的序列更新記憶體晶片,並 於該SUPER I/O控制器中設置一控制器及一 BIOS監視 計時器,使該控制器電連接該南橋晶片、BIOS晶片以及 該修復BIOS的序列更新記憶體晶片,且令中央處理器 於正常執行BIOS程式時,經由北橋晶片、南橋晶片及 該控制器定時重置該BIOS監視計時器; (B) 於該中央處理器執行BIOS程式期間,令BIOS 監視計時器在一預定時間内未被重置時,即發出一觸發 _ 訊號給該控制器,使將該BIOS晶片禁能,將該修復 BIOS白勺序歹》】更新記憶體晶片致能,並透過南、北橋晶片 — 將該中央處理器重置,使該中央處理器重新讀取該修復 ^ BIOS的序歹4更新記憶體晶片之基本開機程式執行一重開 機程序後,執行該修復BIOS程式,以在電腦顯示幕顯 示設有複數選項之一操作晝面供使用者選擇修復BIOS 的方式;及 (C) 根據使用者選擇,執行BIOS修復程序。 14 200809489 .2.:十:,圍第1項所述之m〇s損毀偵測及修復方 法,在步驟(B)中,兮a 土 ^ .軟碟機,,選項及一,,將=旦各面顯示一”將修復磁片置入 驟⑹更包括下列步驟 碟置入光碟機”選項,且步 杳一二”當”將修復磁片置入軟碟機’’選項被選取時,檢 一 &设磁片是否已被置入妒雄嬙 ^ θ 9、 _ Bl ^ 入权茱機,右疋,進行步驟(c_ 2),否則進行步驟(C-3); * .I::斷使用者是否選擇軟碟機,若是,令軟碟機 項取修後磁片中之η 了八 備伤程式,並進行BIOS修復動 作,否則進行步驟(C-4); ㈣)當,,將主機板光碟置人光碟機,,選項被選取時, ㈣一主機板光碟是否已被置入光碟機,若是,進行步 驟(C-句,否則回到步驟((Μ); 進盯〆 」h光碟機βΛ取主機板光碟中之bi〇s備份程式, 亚進行BIOS修復動作。 3. ^申請專利範圍第2項所述之則S損毀侦測及修復方 ^其中該修復磁片中之BIOS備份程式是由一搭配該 電腦主機板之應用程式所製作。 4·依申請專利範圍第2 、 、所迻之BIOS損毀偵測及修復方 ”中β主;n;板光碟m機板i商所提供,其中存 有一精簡BIOS程式碼。 ” 5.依申晴專利範圍第i項所述之Bi〇s損毁偵測及修復方 法,更包括步驟(D广提供一 _版本檢查程式,該 BIOS版本檢查程式於電腦每次開機時執行,並檢查電腦 15 200809489 所使用之BIOS是否為一精簡BIOS,若是,則於電腦螢 幕顯示一 BIOS版本更新提醒訊息。 6. —種主機板,具有BIOS損毁偵測及修復功能,該主機 板包括: 一中央處理器,於電腦開機時用以執行BIOS程式 一北橋晶片,與該中央處理器電連接,負責中央處 理器與記憶體之間的溝通; 一南橋晶片,與北橋晶片電連接,負責中央處理器 與電腦周邊元件之間的溝通; 一 BIOS晶片,其中存有BIOS程式,並與南橋晶片 電連接; 一修復BIOS的序列更新記憶體晶片,其中存有一 基本開機程式及一 BIOS修復程式;及 一 SUPER I/O控制器,其包含一控制器及一 BIOS 監視計時器,該控制器與南橋晶片、BIOS晶片及修復 BIOS白勺序歹ij更新記憶體晶片電連接,該BIOS監視計時 器與控制器連接,且中央處理器於正常執行BIOS程式 時,會經由北橋晶片、南橋晶片及該控制器定時重置該 BIOS監視計時器; 在中央處理器執行BIOS程式期間,令該BIOS監視 計時器在一預定時間内未被重置時,即發出一觸發訊號 給該控制器,使將該BIOS晶片禁能,將該修復BIOS 的序列更新記憶體晶片致能’並透過南、北橋晶片將中 16 200809489 央處理器重置’使中央處理器重新讀取該修復bi〇s的 序列更新記憶體晶片之基本開機程式執行—重新開機程 序後,執行該則s修復程式,使在電腦顯示幕顯示設 有稷數選項之-操作畫面供使用者選擇修復⑽$的方 式,亚根據使用者選擇,執行Bi〇s修復程序。 ,申料利錢第6項所収主機板,其中該操作畫面 ^不―”將修復磁片置入軟碟機,,選項及一,,將主機板光碟 =碟機”選項’且當,,將修復磁片置入軟碟機,,選項被 =日守’言亥則S修復程式檢查—修復磁片是否已被置 入叙碟機,若是,進一步判斷 若是,才令軟碟機讀取,復磁片::疋否%擇軟碟機, 、,P 貝取t復磁片中之BIOS備份程式, 亚進行BIOS修復動作, Λ 中之4 J 7先碟機項取主機板光碟 =之刪備伤程式,並進行m〇s修復動作;當,,將主 機板光碟置入光碟機,,误姑、阳 、 否已置入… 時’判斷主機板光碟是 含已置入先碟機,若是,今士 聰備份程m 棧頃取主機板光碟中之 作晝面 進行_修復動作,否則回到該操 17200809489 X. Patent application scope: 1 · A BIOS damage detection and repair method for detecting whether the code in the BIOS chip on the computer motherboard is damaged and repaired, the motherboard includes a central processing unit and a a north bridge chip 9 electrically connected to the central processing unit, a south bridge chip electrically connected to the north bridge chip, and a BIOS chip electrically connected to the south bridge chip and a SUPER I/O controller; the method package includes: (A) A serial update memory chip storing a basic boot program and a BIOS repair program BIOS is provided on the motherboard, and a controller and a BIOS watchdog timer are set in the SUPER I/O controller to enable the control. The device is electrically connected to the south bridge chip, the BIOS chip, and the sequence update memory chip of the repair BIOS, and causes the central processing unit to periodically reset the BIOS watchdog timer through the north bridge chip, the south bridge chip, and the controller when the BIOS program is normally executed. (B) A trigger is issued when the BIOS monitor timer is not reset within a predetermined time period while the CPU is executing the BIOS program. Giving the controller, disable the BIOS chip, update the memory chip to update the memory chip, and pass the south and north bridge chips - reset the central processor to make the central processor Re-read the repair ^ BIOS's sequence 更新 4 update the memory chip's basic boot program to execute a restart boot program, execute the repair BIOS program to display one of the plural options on the computer display screen for the user to select The way the BIOS is repaired; and (C) the BIOS fix is performed according to the user's choice. 14 200809489 .2.:10: The m〇s damage detection and repair method described in item 1 is in step (B), 兮a soil ^. floppy disk drive, option and one, will = Once the face displays a "Reset the magnetic disk into the step (6), the following steps include the disk into the CD player" option, and step "1" when the "Place the repair disk into the floppy disk drive" option is selected, Check 1 & whether the magnetic disk has been placed in the 妒 嫱 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 、 :Whether the user selects the floppy disk drive, if so, the floppy disk drive item is taken out of the repaired magnetic disk, and the BIOS repair action is performed, otherwise the step (C-4) is performed; (4)) , when the motherboard is placed on the CD player, when the option is selected, (4) whether the motherboard CD has been placed in the CD player, and if so, proceed to the step (C-sentence, otherwise return to the step ((Μ); h disc player β captures the bi〇s backup program on the motherboard CD, and performs the BIOS repair operation. 3. ^S claim damage detection as described in item 2 of the patent scope And the repairing party ^ wherein the BIOS backup program in the repair disk is made by an application that matches the computer motherboard. 4. According to the patent application scope 2, the removed BIOS damage detection and repair side" β main; n; board CD m board provided by the merchants, which has a simplified BIOS code. ” 5. According to Shen Shen patent scope item i, the Bi〇s damage detection and repair methods, including steps (D-Dong provides a version check program, the BIOS version check program is executed every time the computer is turned on, and checks whether the BIOS used by the computer 15 200809489 is a reduced BIOS, and if so, a BIOS version update reminder is displayed on the computer screen. 6. The motherboard has a BIOS damage detection and repair function. The motherboard includes: a central processing unit for executing a BIOS program, a north bridge chip, and an electrical connection with the central processor when the computer is powered on. Communication between the central processing unit and the memory; a south bridge chip, electrically connected to the north bridge chip, responsible for communication between the central processing unit and peripheral components of the computer; There is a BIOS program and is electrically connected to the south bridge chip; a BIOS repair sequence update memory chip in which a basic boot program and a BIOS repair program are stored; and a SUPER I/O controller including a controller and A BIOS watchdog timer, the controller is electrically connected to the south bridge chip, the BIOS chip, and the repair BIOS 歹 ij update memory chip, the BIOS watchdog timer is connected to the controller, and the central processor executes the BIOS program normally. The BIOS watchdog timer is periodically reset via the north bridge chip, the south bridge chip, and the controller; when the CPU monitor program is executed during the execution of the BIOS program, the BIOS watchdog timer is issued when the predetermined time is not reset. Triggering the signal to the controller, disabling the BIOS chip, enabling the BIOS update sequence to update the memory chip and resetting the central processor through the south and north bridge chips. Take the sequence of the repaired bios to update the basic boot program of the memory chip - after restarting the program, execute the s repair program to make In the computer display screen, the operation screen is provided for the user to select the repair (10)$ method, and the Bi〇s repair program is executed according to the user's selection. , the application board received by the sixth item of the profit, wherein the operation screen ^ does not "" put the repair disk into the floppy disk machine, the option and one, the motherboard disk = disc player" option and, when, Put the repair disk into the floppy disk drive, the option is = day guard 'Ye Hai then S repair program check - repair the disk has been placed into the disk drive, and if so, further judge if it is, then let the floppy machine read , complex disk:: 疋 % % 择 择 择 择 择 择 择 择 择 择 择 择 择 择 择 BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS BIOS Delete the injury program and perform m〇s repair action; when, put the motherboard optical disc into the CD player, when the mis-gu, yang, or not has been placed... When judging the motherboard CD-ROM is included in the first disk player If it is, the current Shichong backup process m stack is taken from the motherboard CD to perform the _ repair action, otherwise return to the operation 17
TW95128106A 2006-08-01 2006-08-01 BIOS damage detection and repair method and the motherboard TW200809489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95128106A TW200809489A (en) 2006-08-01 2006-08-01 BIOS damage detection and repair method and the motherboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95128106A TW200809489A (en) 2006-08-01 2006-08-01 BIOS damage detection and repair method and the motherboard

Publications (1)

Publication Number Publication Date
TW200809489A true TW200809489A (en) 2008-02-16

Family

ID=44767161

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95128106A TW200809489A (en) 2006-08-01 2006-08-01 BIOS damage detection and repair method and the motherboard

Country Status (1)

Country Link
TW (1) TW200809489A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI396134B (en) * 2008-09-26 2013-05-11 Asustek Comp Inc Method for erasing memory stored parameters of bios and corresponding computer system
TWI414996B (en) * 2008-04-14 2013-11-11 Asustek Comp Inc Computer system
TWI482025B (en) * 2012-01-05 2015-04-21 Nuvoton Technology Corp Super i/o module and control method thereof
US10733288B2 (en) 2013-04-23 2020-08-04 Hewlett-Packard Development Company, L.P. Verifying controller code and system boot code
TWI712045B (en) * 2020-01-16 2020-12-01 慧榮科技股份有限公司 Hard disk restoring method
US11418335B2 (en) 2019-02-01 2022-08-16 Hewlett-Packard Development Company, L.P. Security credential derivation
TWI784526B (en) * 2021-02-19 2022-11-21 廣達電腦股份有限公司 Methods, systems and bios chip for preventing hang up in a post routine from faulty bios settings
US11520662B2 (en) 2019-02-11 2022-12-06 Hewlett-Packard Development Company, L.P. Recovery from corruption

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI414996B (en) * 2008-04-14 2013-11-11 Asustek Comp Inc Computer system
TWI396134B (en) * 2008-09-26 2013-05-11 Asustek Comp Inc Method for erasing memory stored parameters of bios and corresponding computer system
TWI482025B (en) * 2012-01-05 2015-04-21 Nuvoton Technology Corp Super i/o module and control method thereof
US9201650B2 (en) 2012-01-05 2015-12-01 Nuvoton Technology Corporation Super I/O module and control method thereof
US10733288B2 (en) 2013-04-23 2020-08-04 Hewlett-Packard Development Company, L.P. Verifying controller code and system boot code
US11520894B2 (en) 2013-04-23 2022-12-06 Hewlett-Packard Development Company, L.P. Verifying controller code
US11418335B2 (en) 2019-02-01 2022-08-16 Hewlett-Packard Development Company, L.P. Security credential derivation
US11520662B2 (en) 2019-02-11 2022-12-06 Hewlett-Packard Development Company, L.P. Recovery from corruption
TWI712045B (en) * 2020-01-16 2020-12-01 慧榮科技股份有限公司 Hard disk restoring method
TWI784526B (en) * 2021-02-19 2022-11-21 廣達電腦股份有限公司 Methods, systems and bios chip for preventing hang up in a post routine from faulty bios settings

Similar Documents

Publication Publication Date Title
TWI251771B (en) Module and method for automatic restoring BIOS device, and the computer-readable recording media of storing the program codes thereof
US10613773B2 (en) Backing up firmware during initialization of device
US5564054A (en) Fail-safe computer boot apparatus and method
TW200809489A (en) BIOS damage detection and repair method and the motherboard
TWI576764B (en) A computer system
TWI382346B (en) Computer system with dual bios protection mechanism and control method of the same
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
US20030163765A1 (en) Method and apparatus for providing diagnosis of a processor without an operating system boot
US20040158702A1 (en) Redundancy architecture of computer system using a plurality of BIOS programs
TWI362588B (en) Monitor apparatus, a monitoring method thereof and computer apparatus therewith
TW200847021A (en) Automatic backup, restore and update BIOS computer system
JPH11316687A (en) Automatic recovery system
US20200250313A1 (en) Bios recovery and update
TW201237753A (en) Expedited computer boot system and method
CN107766102B (en) Boot method of dual basic input/output system (BIOS) and electronic device with same
TWI441081B (en) Method for flashing firmware and booting method and electronic apparatus using the method thereof
WO2016206514A1 (en) Startup processing method and device
TW201512831A (en) Computer booting system and method of a computer
US8375198B2 (en) Boot system and method having a BIOS that reads an operating system from first storage device via an input/output chip based on detecting a temperature of a second storage device
KR100678974B1 (en) Apparatus and method for security and user comfortability in rebooting computer system
US9348603B2 (en) Electronic apparatus and booting method
TWI582699B (en) Boot Status Notification Method and Server System Using the Same
KR20090016286A (en) Computer system and method for booting control the same
TWI467484B (en) Bios for self-verifying option rom and the verifying method thereof
TWI845166B (en) Display method for memory module fatal error