CN101470613A - Computer system and debugging method and starting method of basic input and output system thereof - Google Patents
Computer system and debugging method and starting method of basic input and output system thereof Download PDFInfo
- Publication number
- CN101470613A CN101470613A CNA2007103057270A CN200710305727A CN101470613A CN 101470613 A CN101470613 A CN 101470613A CN A2007103057270 A CNA2007103057270 A CN A2007103057270A CN 200710305727 A CN200710305727 A CN 200710305727A CN 101470613 A CN101470613 A CN 101470613A
- Authority
- CN
- China
- Prior art keywords
- unit
- bios
- computer system
- bus
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 30
- 238000001514 detection method Methods 0.000 claims abstract description 39
- 230000002093 peripheral effect Effects 0.000 claims description 15
- 239000003990 capacitor Substances 0.000 claims description 7
- 238000012360 testing method Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 238000011084 recovery Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
一种电脑系统,包括第一BIOS单元、第二BIOS单元、总线、检测单元和第一延迟单元。检测单元可以分别操作性连接总线、第一BIOS单元、和第二BIOS单元,以检测总线中的一总线信号。另外,第一延迟单元可以电性连接检测单元,以于一预设延迟时间后,控制检测单元检测总线信号的状态。由此,检测单元可以依据总线信号的状态来切换成以第一BIOS单元或第二BIOS单元来进行开机。
A computer system includes a first BIOS unit, a second BIOS unit, a bus, a detection unit, and a first delay unit. The detection unit can be operatively connected to the bus, the first BIOS unit, and the second BIOS unit to detect a bus signal in the bus. In addition, the first delay unit can be electrically connected to the detection unit to control the detection unit to detect the state of the bus signal after a preset delay time. Thus, the detection unit can switch to the first BIOS unit or the second BIOS unit for booting according to the state of the bus signal.
Description
技术领域 technical field
本发明是有关于一种电脑系统,且特别是有关于一种具有多个基本输入输出系统的电脑系统及其开机方法。The present invention relates to a computer system, and in particular to a computer system with multiple basic input and output systems and a booting method thereof.
背景技术 Background technique
基本输出输入系统(Basic Input Output System,以下简称BIOS)通常是储存在一非挥发性存储器中,例如闪存,为加载在电脑硬件系统上的最基本的软件程序代码。一般来说,BIOS主要的功能包括开机自我测试(Power On Self Test,简称POST)、初始化动作、纪录系统设定值、提供常驻程序库和加载操作系统。The Basic Input Output System (hereinafter referred to as BIOS) is usually stored in a non-volatile memory, such as flash memory, and is the most basic software program code loaded on the computer hardware system. Generally speaking, the main functions of the BIOS include Power On Self Test (POST), initialization actions, recording system settings, providing resident program libraries, and loading the operating system.
由于半导体制程的进步,使得电脑系统周边的硬件更新的速度也愈来愈快。为了使电脑系统能够辨认这些更新的周边硬件,BIOS的固件也需要同步被更新。在实际的更新过程中,BIOS一不小心就会发生毁损的现象。例如,在更新BIOS的过程中,一旦发生突发性断电的意外,将会导致整个BIOS内容毁坏,而使整个电脑系统无法顺利开机。Due to the progress of the semiconductor manufacturing process, the hardware update speed around the computer system is also getting faster and faster. In order for the computer system to recognize these updated peripheral hardware, the firmware of the BIOS also needs to be updated synchronously. In the actual update process, the BIOS will be damaged if you are not careful. For example, in the process of updating the BIOS, once a sudden power failure occurs, the contents of the entire BIOS will be destroyed, and the entire computer system cannot be started smoothly.
发明内容 Contents of the invention
因此,本发明提供一种基本输入输出系统与其侦错电路,可以在一BIOS受损时,有效地进行BIOS的修复。Therefore, the present invention provides a BIOS and its error detection circuit, which can effectively restore a BIOS when a BIOS is damaged.
本发明也提供基本输入输出系统的侦错方法与电脑系统的开机方法,可以有效地侦测BIOS是否发生错误,并且在发生错误时能够适时地进行修复。The present invention also provides a basic input and output system error detection method and a computer system boot method, which can effectively detect whether an error occurs in the BIOS, and can repair it in time when an error occurs.
本发明提供一种电脑系统,包括一第一BIOS单元、一第二BIOS单元、一总线、一检测单元和一第一延迟单元。检测单元可以操作性连接总线、第一BIOS单元、和第二BIOS单元,以检测总线中的一总线信号。另外,第一延迟单元可以电性连接检测单元,以于一预设延迟时间后,控制检测单元检测总线信号的状态。由此,检测单元可以依据总线信号的状态来切换成以第一BIOS单元或第二BIOS单元来进行开机。The invention provides a computer system, which includes a first BIOS unit, a second BIOS unit, a bus, a detection unit and a first delay unit. The detection unit is operatively connected to the bus, the first BIOS unit, and the second BIOS unit to detect a bus signal in the bus. In addition, the first delay unit can be electrically connected to the detection unit, so as to control the detection unit to detect the state of the bus signal after a preset delay time. Thus, the detection unit can be switched to use the first BIOS unit or the second BIOS unit to start up according to the state of the bus signal.
在一实施例中,本发明还包括缓冲器和反相器。其中,缓冲器可以电性连接检测单元,以接收输出端的状态,并将其送至第一BIOS单元。另外,反相器则可以电性连接缓冲器和第二BIOS单元。由此,反相器可以在将缓冲器的输出进行反相后送至第二BOIS单元。In one embodiment, the invention also includes a buffer and an inverter. Wherein, the buffer can be electrically connected to the detection unit to receive the state of the output terminal and send it to the first BIOS unit. In addition, the inverter can be electrically connected to the buffer and the second BIOS unit. Thus, the inverter can invert the output of the buffer and send it to the second BOIS unit.
在较佳的实施例中,检测单元可以利用D型正反器来实现。其中,D型正反器还具有清除端和预设端,而预设端被固定在一电压准位。In a preferred embodiment, the detection unit can be realized by using a D-type flip-flop. Wherein, the D-type flip-flop also has a clearing terminal and a preset terminal, and the preset terminal is fixed at a voltage level.
另外,上述的延迟单元电性连接至D型正反器的清除端,并且包括电阻和电容。其中,电阻可以以将D型正反器的清除端电性连接至电压源。另外,电容则可以将清除端接地。In addition, the above-mentioned delay unit is electrically connected to the clearing terminal of the D-type flip-flop, and includes a resistor and a capacitor. Wherein, the resistor can electrically connect the clearing end of the D-type flip-flop to the voltage source. Alternatively, a capacitor can connect the clear terminal to ground.
从另一观点来看,本发明提供一种基本输入输出系统的侦错方法,可以适用于一电脑系统。本发明的侦错方法包括执行一电源自我测试,并且在延迟一延迟时间后,检查一总线中的总线信号的状态。当总线信号的状态有别于电脑系统在正常开机的总线信号时,则判断BIOS不正常。From another point of view, the present invention provides a basic input output system error detection method, which can be applied to a computer system. The error detection method of the present invention includes performing a power self-test and checking the status of bus signals in a bus after a delay time. When the state of the bus signal is different from the bus signal when the computer system is normally powered on, it is judged that the BIOS is not normal.
从另一观点来看,本发明更提供一种电脑系统的开机方法,包括以第一BIOS来执行电脑系统的开机程序,并且在一延迟时间后,检查总线信号的状态。当总线信号的状态有别于电脑系统在正常开机的总线信号时,则以第二BIOS来进行电脑系统的开机程序。From another point of view, the present invention further provides a method for booting a computer system, including using the first BIOS to execute a boot program of the computer system, and checking the state of the bus signal after a delay time. When the state of the bus signal is different from the bus signal when the computer system is normally started, the second BIOS is used to start the computer system.
在本发明的实施例中,上述的总线信号可以是在串行周边界面、少量接脚界面、前端总线、或周边元件互连界面上传输的信号。In an embodiment of the present invention, the aforementioned bus signal may be a signal transmitted on a serial peripheral interface, a small number of pin interface, a front side bus, or a peripheral component interconnection interface.
由于本发明可以依据BIOS所产生的总线信号的状态,而判断BIOS是否正常。因此,本发明可以有效地对BIOS进行侦错,并且可以在BIOS发生错误时利用第二BIOS进行修复。Because the present invention can judge whether the BIOS is normal according to the state of the bus signal generated by the BIOS. Therefore, the present invention can effectively detect errors of the BIOS, and can use the second BIOS to repair when errors occur in the BIOS.
附图说明 Description of drawings
为让本发明的上述和其它目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合附图,作详细说明如下,其中:In order to make the above-mentioned and other objects, features and advantages of the present invention more comprehensible, the preferred embodiments are specifically cited below, together with the accompanying drawings, and are described in detail as follows, wherein:
图1所示为依照本发明的一较佳实施例的一种电脑系统的系统方块图。FIG. 1 is a system block diagram of a computer system according to a preferred embodiment of the present invention.
图2所示为依照本发明的一较佳实施例的一种BIOS模组的电路方块图。FIG. 2 is a circuit block diagram of a BIOS module according to a preferred embodiment of the present invention.
图3所示为一般基本输入输出系统的结构图。Figure 3 shows the structure diagram of a general basic input and output system.
图4A-4C所示为总线信号的波形图。4A-4C show waveform diagrams of bus signals.
图5A所示为D型正反器的输出端在状态1的波形图。FIG. 5A is a waveform diagram of the output terminal of the D-type flip-flop in
图5B所示为D型正反器的输出端在状态2的波形图。FIG. 5B is a waveform diagram of the output terminal of the D-type flip-flop in state 2. FIG.
图6所示为依照本发明的一较佳实施例的一种恢复主基本输入输出系统的步骤流程图。FIG. 6 is a flow chart showing the steps of restoring the main BIOS according to a preferred embodiment of the present invention.
图7所示为依照本发明的一较佳实施例的一种电脑系统的开机方法的步骤流程图。FIG. 7 is a flow chart showing the steps of a booting method of a computer system according to a preferred embodiment of the present invention.
具体实施方式 Detailed ways
图1所示依照本发明的一较佳实施例的一种电脑系统的系统方块图。请参照图1,电脑系统100可以包括处理单元(CPU)102、芯片组104、内存106、及BIOS模组200。上述处理单元102可以电性连接芯片组104,其中芯片组104包括北桥芯片112和南桥芯片114。上述处理单元102可通过前端总线(FSB)与北桥芯片112电性连接,北桥芯片112可通过周边元件互连界面(PCI)总线与南桥芯片114电性连接。此外,北桥芯片112亦电性连接内存106。上述处理单元102亦可通过其它总线与南桥芯片114电性连接。南桥芯片114则可通过串行周边界面(SPI)总线或少量接脚界面(Low Pin Count,LPC)总线与BIOS模组200电性连接。FIG. 1 shows a system block diagram of a computer system according to a preferred embodiment of the present invention. Referring to FIG. 1 , a computer system 100 may include a processing unit (CPU) 102 , a chipset 104 , a memory 106 , and a
在本实施例中,所利用到的总线包括串行周边界面、少量接脚界面、前端总线、或周边元件互连界面。在其它实施例中,亦可包括其它总线接口。In this embodiment, the bus used includes a serial peripheral interface, a small number of pins interface, a front side bus, or a peripheral component interconnection interface. In other embodiments, other bus interfaces may also be included.
图2所示依照本发明的一较佳实施例的一种BIOS模组的电路方块图。有关其说明,敬请一并参照图1与图2,本实施例所提供的BIOS模组200,包括第一BIOS单元202、第二BIOS单元204、检测单元220和延迟单元240。延迟单元240电性连接至检测单元220,以组成一总线信号检测电路的部分。在本实施例中,检测单元220可以利用D型正反器222来实现。D型正反器222具有输入端D、时序端CLK、清除端CLR、预设端PR和输出端Q。时序端CLK接收由第一BIOS单元202和第二BIOS单元204所输出的总线信号,而清除端CLR则可以电性连接延迟单元240。在本实施例中,时序端CLK所侦测的总线信号,其可为串行周边界面116中的CS#信号(Hardware signal)。FIG. 2 is a circuit block diagram of a BIOS module according to a preferred embodiment of the present invention. For its description, please refer to FIG. 1 and FIG. 2 together. The
值得注意的是,在本实施例中,总线信号检测电路是用以侦测南桥芯片114与第一BIOS单元202及第二BIOS单元204之间的总线信号,例如:CS#信号。在其它实施例中,总线信号检测电路亦可侦测其它元件之间的总线信号,例如:处理单元102与北桥芯片112之间的总线信号;处理单元102与南桥芯片114之间的总线信号;北桥芯片112与南桥芯片114之间的总线信号。It should be noted that, in this embodiment, the bus signal detection circuit is used to detect the bus signal between the
为使以下的说明能够清楚和简洁,因此在以下的叙述中,皆利用CS#信号当作检测单元220所检测到的总线信号。然而本领域具有通常知识者应当知道,本发明并不以此为限。In order to make the following description clear and concise, in the following descriptions, the CS# signal is used as the bus signal detected by the
请继续参照图2,D型正反器222的输入端D可以通过电阻224电性连接至电压V1,其例如为+3.3伏特。另外,预设端PR也可以通过电阻226电性连接至电压V2,其也可以被设定为+3.3伏特。在本实施中,D型正反器222的预设端PR具有低态致能的逻辑特性,而在本实施例中,预设端PR是被固定设定为禁能状态(Disable State)。Please continue to refer to FIG. 2 , the input terminal D of the D-type flip-
在本实施例中,BIOS模组200还可以包括缓冲器228和反相器230。其中,缓冲器228还包括缓冲单元2281、2282与延迟单元2283。缓冲单元2281与检测单元220电性连接,亦即,缓冲单元2281可以电性连接D型正反器222的输出端Q。另外,缓冲单元2282分别电性连接缓冲单元2281、延迟单元2283、第一BIOS单元202、及反相器230。上述反相器230的输出则电性连接第二BIOS单元204。由此,缓冲器228可以将D型正反器222的输出端Q的状态传送至第一BIOS单元202,反相器230可以将D型正反器222的输出端Q的状态反相后,再传送至第二BIOS单元204。In this embodiment, the
在本实施例中,延迟单元240和2283都可以利用RC延迟电路来实现。以延迟单元240为例,延迟单元240至少具有电阻242和电容244。电阻242分别电性连接D型正反器222的清除端CLR与电压源V3,而电容244分别电性连接清除端CLR。在本实施例中,电压源V3的准位也可以被设定为+3.3伏特。In this embodiment, both delay
为使本领域具有通常知识者能够确实明了本发明的精神,因此以下先就BIOS的结构作一简单的说明。In order to enable those skilled in the art to clearly understand the spirit of the present invention, the structure of the BIOS will be briefly described below.
图3所示一般基本输入输出系统的结构图。请参照图3,目前的BIOS程序代码大都是存放在非挥发性存储器中(例如图2中的第一BIOS单元202和第二BIOS单元204),其可以包括开机区块302、固定开机区块(External Boot Block)304和主系统区块306。当BIOS在POST的过程中,有许多装置需要被初始,而这些初始是需要第一BIOS单元202或第二BIOS单元204来通过各个总线来传递,在这个过程中,各个总线会传输各种总线信号,而本实施例便是利用总线信号检测电路来侦测南桥芯片114与第一BIOS单元202及第二BIOS单元204之间的串行周边界面总线的总线信号,例如图2中的总线信号CS#。Figure 3 shows the structure diagram of a general basic input and output system. Please refer to FIG. 3, most of the current BIOS program codes are stored in non-volatile memory (for example, the
在POST过程中,若是第一BIOS单元202中的BIOS程序代码正常且可正常执行,则电脑系统在正常开机情况下(在POST过程中),与BIOS执行相关的各个总线中信号波形可以例如图4A所示。图4A显示在正常开机情况下,串行周边界面总线中的CS#信号波形。In the POST process, if the BIOS program code in the
在图4A中,当BIOS程序代码开始执行时(t0),总线信号CS#的电压准位可以从低态电压VL切换至高态电压VH,并且会在高态电压VH和低态电压VL之间的范围来回振荡。直至BIOS执行完毕(t1)后,总线信号CS#的电压准位才会固定在高态电压VH。当然,在其它实施例中,总线信号的波形可能会因为采用不同的总线协议或电路设计,而有所不同。In FIG. 4A, when the BIOS program code starts to execute (t0), the voltage level of the bus signal CS# can be switched from the low-state voltage VL to the high-state voltage VH, and will be between the high-state voltage VH and the low-state voltage VL. The range oscillates back and forth. The voltage level of the bus signal CS# will be fixed at the high state voltage VH until the BIOS finishes executing (t1). Of course, in other embodiments, the waveform of the bus signal may be different due to the adoption of different bus protocols or circuit designs.
若是第一BIOS单元202中程序代码(例如开机区块内的程序代码以及主系统区块306内的程序代码)损坏的太严重,而导致电脑系统无法开机时,则总线信号CS#的波形可能如图4B所所示。在图4B中,总线信号CS#在BIOS开始被执行时(t0),就会固定在高态电压VH,而不会来回振荡。If the program codes in the first BIOS unit 202 (such as the program codes in the boot block and the program codes in the main system block 306) are damaged too severely, and the computer system cannot be started, the waveform of the bus signal CS# may be As shown in Figure 4B. In FIG. 4B , the bus signal CS# is fixed at the high-state voltage VH when the BIOS starts to be executed (t0), and does not oscillate back and forth.
另外,若是固定开机区块304或主系统区块306中的一部份程序代码损坏,则电脑系统可能可以正常开机到一定程度,例如,电脑系统在开机5秒后才死机,则总线信号CS#的状态可以如图4C所示。在图4C中,总线信号CS#在BIOS开始被执行时(t0),也会从低态电压VL切换至高态电压VH,并且也有可能产生振荡。然而,总线信号CS#的电压准位,却会在BIOS还未执行完毕(t1),就被固定在高态电压VH。In addition, if some program codes in the fixed
由上述说明可知,总线信号的波形在电脑系统正常开机情况下与在电脑系统无法正常开机情况下是不同的。基于这个特性,本实施例便是在BIOS开始执行电源自我测试(POST)后,利用延迟单元延迟一预设延迟时间后,开始侦测电脑系统中的其中一个总线的总线信号,来判断目前BIOS是否正常执行。其中,该总线是在开机过程中与BIOS执行相关的总线。It can be seen from the above description that the waveform of the bus signal is different when the computer system is normally powered on and when the computer system cannot be normally powered on. Based on this characteristic, this embodiment is exactly after BIOS starts to carry out power supply self-test (POST), uses delay unit to delay after a preset delay time, and starts to detect the bus signal of one of bus lines in the computer system, judges current BIOS Whether to execute normally. Wherein, the bus is a bus related to BIOS execution during a boot process.
请回头参照图2,当电脑系统开机时,第一BIOS单元202会被启动,以开始执行POST。此时,D型正反器222的预设端PR的状态为禁能(Disable),而清除端CLR在延迟单元240产生RC延迟效应的情况下,还是处于低态的情形。由于在本实施例中,清除端CLR具有低态致能的特性,因此D型正反器222在电脑刚开机时,其输出端D的状态为低态。Please refer back to FIG. 2 , when the computer system is turned on, the
在经过一段延迟时间后,延迟单元240中的电容244会充电到一临界值,使得清除端CLR也被禁能。此时,D型正反器222的输出端Q的状态,则是依据总线信号CS#的状态来决定。特别的是,电容244充电到临界值的时间,就是所谓的延迟时间,其可以设计成略大于如图3中的开机区块302的BIOS程序代码所需的时间。在一些实施例中,延迟单元240的延迟时间可以是200ms,而延迟单元2283的延迟时间可以是400ms。其中,延迟单元240的延迟时间是用以决定检测单元220开始检测总线信号的时间点,延迟单元2283的延迟时间是用以决定,多久时间后,始予以让正反器222的输出端Q,传递至BIOS单元202,204。After a delay time, the
以下则提出几类的状况,来说明BIOS模组200在电脑系统开机经过延迟时间后的运作情形。Several types of situations are proposed below to illustrate the operation of the
状况1
图5A所示D型正反器的输出端在状态1的波形图。请合并参照图2和图5A,在电脑系统刚开机时(t0),D型正反器222的输出端Q的状态为低态VL(由于清除端CLR被致能)。在经过延迟时间P1后,在t2时,清除端CLR被禁能。此时,若是第一BIOS单元202的内容完全正常,则本实施例的总线信号CS#的状态就可以如图4A所所示,而使得D型正反器222会将输入端D的状态从输出端Q输出。换句话说,输出端Q的状态会从低态转态成高态。此时,第一BIOS单元202就可以维持运作的状态。另外,反相器230将输出端Q的状态经过的反相后,会输出低态的逻辑信号,导致第二BIOS单元204持续被禁能。The waveform diagram of the output terminal of the D-type flip-flop in
状况2Situation 2
图5B所示D型正反器的输出端在状态2的波形图。请合并参照图2和图5B,若是第一BIOS单元202的数据有毁损,则D型正反器222所侦测到的总线信号CS#的状态就可能如图4B或图4C所所示。也就是说,即使当清除端CLR的状态在t2时,从低态切换至高态,而由于时序端CLK所接收的总线信号CS#没有振荡,因此输出端Q的状态还是维持在低态。此时,第一BIOS单元202会被禁能。相对地,反相器230在将输出端Q的状态经过反相处理后,会输出低态的信号给第二BIOS单元204,导致第二BIOS单元204被致能,并且执行一恢复程序(以下将有详细地说明)。The waveform diagram of the output terminal of the D-type flip-flop in state 2 shown in FIG. 5B . Please refer to FIG. 2 and FIG. 5B together. If the data of the
回头再来看状况1,若是在经过延迟时间后,时序端CLK所接收的总线信号CS#有振荡,代表至少第一BIOS单元202中开机区块没有发生数据的损毁。然而,错误的数据虽然没有发生在开机区块中,但仍有可能发生在例如图3中的固定开机区块304或是主系统区块306中。因此,在一些实施例中,当要执行固定开机区块304或是主系统区块306中的程序代码时,会执行一检查和的动作。详细地说,就是分别将固定开机区块304和主系统区块306中的程序代码加总,并且可以获得一和值(Check Sum)。Looking back at
当固定开机区块304以及主系统区块306中程序代码其中任一的和不等于对应的默认值时,则第一BIOS例如图1中的南桥芯片114就可以致能一控制信号,而导致D型正反器222的输出Q从高态转回低态。此时,第一BIOS单元202会被禁能,而第二BIOS单元204则会被致能,并且可以执行恢复程序。When any sum of the program codes in the fixed
相对地,若是固定开机区块304以及主系统区块306中程序代码的和都等于对应的默认值时,则代表第一BIOS单元202内的固定开机区块304和主系统区块306都没有发生数据毁损的情形。因此,电脑系统就可以利用第一BIOS单元202完成开机程序。In contrast, if the sum of the program codes in the fixed
图6所示依照本发明的一较佳实施例的一种恢复主基本输入输出系统的步骤流程图。请合并参照图1、图2和图6,当第二BIOS单元204被致能而需要执行一恢复程序时,可以先如步骤S602所述,将第二BIOS单元204内的程序代码由总线接口116,并且通过芯片组104而复制到内存106内的存储区。接着,第二BIOS单元204可以被禁能,而第一BIOS单元202则可以被致能,就如步骤S604所述。FIG. 6 shows a flow chart of steps for restoring the main BIOS according to a preferred embodiment of the present invention. Please refer to Fig. 1, Fig. 2 and Fig. 6 in combination, when the
在第二BIOS单元204复制到存储区的程序代码内,具有一恢复程序。因此,本实施例的恢复程序还包括在存储区内执行此恢复程序,也就是步骤S606。此时,本实施例就可以如步骤S608所述,将存放在存储区内的程序代码复制到第一BIOS单元202内,以恢复第一BIOS单元202的数据。而在一些实施例中,当第一BIOS单元202完成数据恢复的程序后,可以使电脑系统100重新开机。In the program code copied to the storage area by the
将以上的说明作一整理,本发明较佳实施例在图7中提供了一种电脑系统的开机方法的步骤流程。请参照图7,当一电脑系统开机时,可以如步骤S702所述,先执行一第一BIOS的开机区块内的程序代码,以执行电源自我测试,而电脑系统中的总线会开始传输相关总线信号。另外,本实施例可以如步骤S704所述,在一延迟时间后检查上述的总线信号(例如:CS#信号)的状态是否正常。其中,延迟时间可以是略大于执行开机区块所需要的时间。After sorting out the above description, the preferred embodiment of the present invention provides a flow of steps of a computer system startup method in FIG. 7 . Please refer to FIG. 7, when a computer system is turned on, as described in step S702, first execute the program code in the boot block of the first BIOS to perform a power self-test, and the bus in the computer system will start to transmit related bus signal. In addition, in this embodiment, as described in step S704, after a delay time, it may be checked whether the state of the above-mentioned bus signal (for example: CS# signal) is normal. Wherein, the delay time may be slightly longer than the time required for executing the boot block.
若是在延迟时间后,发现总线信号的状态有别于正常开机情况下的总线信号,例如被固定在一电压准位(如图4B或4C所所示),则执行步骤S706,就是禁能第一BIOS,并且致能一第二BIOS。藉此,本实施例就可以如步骤S708所述,利用第二BIOS来对第一BIOS进行一恢复程序,就如图6所揭露的程序。另外,当第一BIOS的数据备恢复后,可以如步骤S710所述,重新启动电脑系统,并且再重复执行S702等步骤。If after the delay time, it is found that the state of the bus signal is different from that of the bus signal under normal power-on conditions, such as being fixed at a voltage level (as shown in FIG. 4B or 4C), then perform step S706, which is to disable the first a BIOS, and enable a second BIOS. Therefore, in this embodiment, as described in step S708 , the second BIOS can be used to perform a recovery procedure on the first BIOS, just like the procedure disclosed in FIG. 6 . In addition, after the data of the first BIOS is restored, the computer system may be restarted as described in step S710, and steps such as S702 may be repeatedly executed.
相对地,若是在执行步骤S704时,发现总线信号的状态为正常,例如其电压准位是在一范围内振荡时,则代表开机区块的数据应该没有毁损。此时可以进行步骤S712,就是进一步检查第一BIOS内的固定开机区块的程序代码和,以及主系统区块的程序代码和是否都等于对应的默认值。In contrast, if the state of the bus signal is found to be normal during step S704 , for example, the voltage level is oscillating within a certain range, it means that the data of the boot block should not be damaged. At this point, step S712 can be performed, which is to further check whether the program code sum of the fixed boot block and the program code sum of the main system block in the first BIOS are equal to the corresponding default values.
只要第一BIOS内的固定开机区块的程序代码和,以及主系统区块的程序代码和有任一不等于对应的默认值时,则代表固定开机区块或是主系统区块内的程序代码发生错误。此时,就可以执行S706等步骤。反之,若是第一BIOS内的固定开机区块的程序代码和,以及主系统区块的程序代码和都等于对应的默认值时,则进行步骤S714,就是执行固定开机区块和主系统区块内的程序代码,以完成电脑系统的开机程序。As long as any of the program code sum of the fixed boot block and the program code sum of the main system block in the first BIOS is not equal to the corresponding default value, it means that the program in the fixed boot block or the main system block An error occurred in the code. At this point, steps such as S706 may be performed. On the contrary, if the program code sum of the fixed boot block in the first BIOS and the program code sum of the main system block are equal to the corresponding default values, then step S714 is performed, which is to execute the fixed boot block and the main system block. The program code in the computer system is used to complete the booting procedure of the computer system.
综上所述,由于本发明较佳实施例可以在一延迟时间后检查总线信号的状态,以及对固定开机区块和主系统区块进行检查和的程序,因此本发明可以精确地检测BIOS是否发生错误。另外,由于本发明还具有第二BIOS,因此当第一BIOS发生错误时,可以迅速地利用第二BIOS进行恢复,而增加了恢复程序的便利性。In summary, because the preferred embodiment of the present invention can check the state of the bus signal after a delay time, and perform a checksum procedure on the fixed boot block and the main system block, the present invention can accurately detect whether the BIOS An error occurred. In addition, since the present invention also has a second BIOS, when an error occurs in the first BIOS, the second BIOS can be used to recover quickly, thereby increasing the convenience of the recovery procedure.
虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明,任何所属技术领域中具有通常知识者,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,因此本发明的保护范围当视权利要求书所界定的为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field may make some modifications and changes without departing from the spirit and scope of the present invention. modification, so the scope of protection of the present invention should be defined by the claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007103057270A CN101470613A (en) | 2007-12-28 | 2007-12-28 | Computer system and debugging method and starting method of basic input and output system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007103057270A CN101470613A (en) | 2007-12-28 | 2007-12-28 | Computer system and debugging method and starting method of basic input and output system thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101470613A true CN101470613A (en) | 2009-07-01 |
Family
ID=40828105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007103057270A Pending CN101470613A (en) | 2007-12-28 | 2007-12-28 | Computer system and debugging method and starting method of basic input and output system thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101470613A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102478950A (en) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | Server power-on method |
CN104102505A (en) * | 2013-04-12 | 2014-10-15 | 昆达电脑科技(昆山)有限公司 | Computer power-on method |
CN105279044A (en) * | 2015-09-11 | 2016-01-27 | 浙江宇视科技有限公司 | Method for recognizing BIOS (Basic Input/Output System) state based on BOIS bus and computer system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5864656A (en) * | 1996-06-28 | 1999-01-26 | Samsung Electronics Co., Ltd. | System for automatic fault detection and recovery in a computer system |
US6412082B1 (en) * | 1997-12-17 | 2002-06-25 | Sony Corporation | Method and apparatus for selecting computer programs based on an error detection mechanism |
CN1355485A (en) * | 2000-12-01 | 2002-06-26 | 英业达股份有限公司 | Switchable debugging method and device |
CN1371052A (en) * | 2001-02-20 | 2002-09-25 | 技嘉科技股份有限公司 | Automatic safety recovery method of BIOS storage device in a computer system |
CN1504861A (en) * | 2002-12-03 | 2004-06-16 | 技嘉科技股份有限公司 | Double basic input/output system of computer |
US20060236150A1 (en) * | 2005-04-01 | 2006-10-19 | Dot Hill Systems Corporation | Timer-based apparatus and method for fault-tolerant booting of a storage controller |
CN101017441A (en) * | 2007-02-27 | 2007-08-15 | 华为技术有限公司 | Electric device, start method of electric and update method of BIOS |
-
2007
- 2007-12-28 CN CNA2007103057270A patent/CN101470613A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5864656A (en) * | 1996-06-28 | 1999-01-26 | Samsung Electronics Co., Ltd. | System for automatic fault detection and recovery in a computer system |
US6412082B1 (en) * | 1997-12-17 | 2002-06-25 | Sony Corporation | Method and apparatus for selecting computer programs based on an error detection mechanism |
CN1355485A (en) * | 2000-12-01 | 2002-06-26 | 英业达股份有限公司 | Switchable debugging method and device |
CN1371052A (en) * | 2001-02-20 | 2002-09-25 | 技嘉科技股份有限公司 | Automatic safety recovery method of BIOS storage device in a computer system |
CN1504861A (en) * | 2002-12-03 | 2004-06-16 | 技嘉科技股份有限公司 | Double basic input/output system of computer |
US20060236150A1 (en) * | 2005-04-01 | 2006-10-19 | Dot Hill Systems Corporation | Timer-based apparatus and method for fault-tolerant booting of a storage controller |
CN101017441A (en) * | 2007-02-27 | 2007-08-15 | 华为技术有限公司 | Electric device, start method of electric and update method of BIOS |
Non-Patent Citations (2)
Title |
---|
吴昕铮: "主板DEBUG卡的原理及设计", 《淮北煤师院学报》 * |
田东升等: "怎样对计算机进行CMOS设置", 《农村财务会计》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102478950A (en) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | Server power-on method |
CN102478950B (en) * | 2010-11-30 | 2014-04-16 | 英业达股份有限公司 | How to power on the server |
CN104102505A (en) * | 2013-04-12 | 2014-10-15 | 昆达电脑科技(昆山)有限公司 | Computer power-on method |
CN105279044A (en) * | 2015-09-11 | 2016-01-27 | 浙江宇视科技有限公司 | Method for recognizing BIOS (Basic Input/Output System) state based on BOIS bus and computer system |
CN105279044B (en) * | 2015-09-11 | 2018-11-13 | 浙江宇视科技有限公司 | A kind of method and computer system identifying BIOS states based on BOIS buses |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI410793B (en) | Computer, and method for error-detecting and booting of bios thereof | |
US9542195B1 (en) | Motherboards and methods for BIOS failover using a first BIOS chip and a second BIOS chip | |
CN107493685B (en) | Reprogramming a port controller via its own external port | |
US7900036B2 (en) | System and method for implementing boot/recovery on a data processing sysem | |
CN110069361B (en) | Method and apparatus for TPM failover | |
CN102467417B (en) | computer system | |
EP1588260A2 (en) | Hot plug interfaces and failure handling | |
US8495353B2 (en) | Method and circuit for resetting register | |
CN102770851B (en) | Recover the stability of unstable bus | |
CN102081526B (en) | Basic Input/Output System Architecture | |
CN101470613A (en) | Computer system and debugging method and starting method of basic input and output system thereof | |
CN103218237B (en) | Use based on the initialize of the initialization unit of ROM and the GPU of programmable microcontroller | |
CN101515236B (en) | Basic input and output system recovery method and update module and computer system | |
CN110308935B (en) | Electronic device and operation method thereof | |
CN101303655B (en) | Basic input output system management device and method | |
CN101354654A (en) | System and method for automatically switching basic input/output program | |
JP2012043309A (en) | System module and electric equipment | |
US20060236084A1 (en) | Method and system for providing an auxiliary bios code in an auxiliary bios memory utilizing time expiry control | |
CN113867812B (en) | Method, system, equipment and medium for BMC to acquire link information | |
CN113760071B (en) | Method, controller and system for operating memory system in advance during power-on period | |
CN110442219B (en) | Connectors, power control devices, and host interface devices | |
KR100907550B1 (en) | Apparatus and method for recovering corrupted data of serial EPEPROM | |
CN111176902A (en) | A device and method for backing up Controller Device firmware using BMC Flash | |
CN111766797A (en) | Microcontroller, memory module and method for updating firmware of microcontroller | |
TWI811038B (en) | Memory controller and method for controlling output of debug messages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20090701 |