The present invention relates generally to diagnostics for a computer and specifically to an apparatus and method for detecting and indicating faults of a motherboard at initialization phase of the motherboard.
As computer systems are being used in an increasing number of applications, their internal complexity is also increased greatly so that most users are unfamiliar with the internal design and configuration of the computers used today. Consequently, when a computer fails to operate due to failures of the components in the computer, the user is often unable to determine the source of the problem or how to resolve the problem.
Various means are provided to enable the user to try to resolve the computer failure problems. Current personal computers are typically equipped with some form of internal diagnostics, the purpose of which is to detect and isolate component faults within the personal computer architecture. For instance, diagnostics may consist of a series of instructions executed by the CPU within the computer system to allow self-diagnosis. Such diagnostics may test and report on the operational status or functionality of components within the computer, allowing a user to repair or replace components that are not functioning.
Diagnostics may be embedded in a nonvolatile memory. The embedded diagnostics have been widely employed in personal computers including a Read Only Memory (ROM) to store diagnostics routines as firmware. One type of embedded diagnostics is power-on self-test (POST) diagnostics, generally stored in basic input-output system (BIOS) ROM in personal computers. The POST is a series of tests that the computer performs on its components each time the computer is turned on. The POST begins by reading system configuration information that has either been hard-wired or stored in nonvolatile memory. It then checks random access memory (RAM) by writing to and reading from the RAM to ensure proper operation. The POST next examines external disk drives to confirm that they match the system configuration information. Lastly, the POST initiates boot sequences to load the operating system.
Conventionally, failure during execution of the POST has been used to isolate a fault area for proper diagnosis. Each phase of the POST routine involves a check of major components such as memories, hard disk drives, diskette drives and operating system. However, in order for the user to utilize diagnostic information from execution of the POST, certain components of a computer such as a CPU, address and data buses, bus controller and the like are required to function. Some failures may occur before those components fully function and the BIOS ROM may not be available to provide the POST routines to CPU. As a result, the POST may not be executable any more to diagnose failures. For example, in the event of a blank screen of a computer, the user may suspect a failure on the motherboard. However, the user may not be sure of the failure on the motherboard since the event occurs before the POST diagnostics are available. The user may have to assume that it could be a failure of the motherboard, a failure of any one of the devices on a peripheral card, a fault occurring in any one of the slots or the like, which may also render the CPU unable to retrieve further instruction of the POST. Therefore, the embedded diagnostics may not be useful to isolate the motherboard failure from other failures occurred during pre-booting phase.
Consequently, it would be advantageous if simple diagnostics can detect a failure of the motherboard during pre-booting time even if the CPU is unable to retrieve diagnostics from the ROM. It would also be advantageous, if such diagnostics require minimal cost and parts to detect and indicate the failure of the motherboard with very few modifications to the computers.
Accordingly, the present invention is directed to an apparatus and a method that provides diagnostics to defect faults on the motherboard of a computer system and to indicate the faults without having operating system fully functioning. An apparatus and a method for detecting and indicating faults on the motherboard may comprise a visual indicator coupled to a CPU via an I/O port. When power is applied to the motherboard, the visual indicator may be turned on. After diagnostics performs a successful initialization of the motherboard and the integrated circuits, the visual indicator may be turned off. In an advantageous aspect of the present invention, the user may be informed of the faults on the motherboard by looking at the visual indicator. When there is no sign of faults on the motherboard, then the user may check other components of the computer for the problem. Alternatively, the visual indicator may flash if the diagnostics detect problems on other components of the computer such as a memory subsystem. In another advantageous aspect of the present invention, the method and the apparatus of the present invention may require minimal cost and parts to detect and indicate the failure of the motherboard with very few modifications to the computers.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed. The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate an embodiment of the invention and together with the general description, serve to explain the principles of the invention.
The numerous advantages of the present invention may be better understood by those skilled in the art by reference to the accompanying figures in which:
Reference will now be made in detail to the presently preferred embodiments of the invention, examples of which are illustrated in the accompanying drawings.
Referring to
Several integrated circuits 110 may be mounted on a motherboard. Further, the computer system 100 may also include a visual indicator such as light emitting diode (LED) 114 hardwired to the motherboard. For example, a red light emitting diode (LED) may be used as visual indicator for motherboard failure in order to be different from a green color visual indicator for the status of power. The visual indicator may be coupled to the CPU via a general I/O port 112 and the host bus, allowing the CPU 102 to provide signals to the visual indicator via the general I/O port 112. The visual indicator may be internally readable. The visual indicator may be readable only if the access cover to the chassis is removed. Alternatively, the visual indicator may be positioned to be externally readable. For example, the visual indicator may be positioned on the front panel of the computer. Furthermore, in an alternative embodiment, a flash circuit may be included to provide flashing visual indication when there is a problem on other components of the computer such as a memory subsystem or the like.
A conventional computer system may comprise a CPU capable of requesting and retrieving instructions from the BIOS ROM when the computer system is booted. Generally, the BIOS is software instructions fetched by CPU to start the operating system. The BIOS may also provide power-on self-test (POST) diagnostics for the components in the computer system. The POST is a series of tests that the computer performs on its components each time the computer is turned on. The POST begins by reading system configuration information that has either been hardwired or stored in a nonvolatile memory. It then checks the RAM by writing to and reading from the RAM to ensure proper operation. BIOS and POST instructions are well known to those skilled in the art. In an embodiment of the present invention, the BIOS may further contain instructions for CPU to turn off the visual indicator in case of a successful initialization of the motherboard and to activate a flash visual indicator in case of an unsuccessful initialization of other components of the computer (such as a memory subsystem). The POST next examines external disk drives to confirm that they match the system configuration information. Additionally, the BIOS may provide instructions to activate other BIOS ROMs on add-on cards installed in the computer. A small computer system interface (SCSI), graphic cards or the like may include their own BIOS ROMs. The BIOS may provide a set of low-level routines that manage keyboard, screen, serial and parallel ports and the like when the computer is booting.
A motherboard (a multi-layered printed circuit board) may be an integral part of most personal computers. The multi-layered fabrication technique are used so that some layers of a board can carry data for the BIOS, processors and memory buses while other layers carry voltage and ground returns with the path short-circuiting at intersection. During pre-booting time (before operating system begins the booting process), the CPU may execute instructions provided from the BIOS ROM to initialize the motherboard, each configurable integrated circuit, memories, add-on cards, and the like. If the CPU can not complete initialization of the motherboard and integrated circuits mounted on the motherboard, this may indicate a problem on the motherboard.
Referring now to
The process 200 may begin with the step in which the computer system starts upon reception of an initialization signal 202. The initialization signal may be generated when a user presses a power switch of the computer system. Additionally, a keyboard input (such as combination of CTRL-ALT-DEL keys), a power surge or interruption, operating system command for restart or the like may also generate the initialization signal so that the computer system starts (boot) or restart (reboot) its operating system. Upon reception of the initialization signal, the CPU which is capable of retrieving diagnostics from the ROM may send an initial request to retrieve diagnostics from the ROM. The visual indicator may be turned on when power is applied to the motherboard as a result of starting up the computer system 204. The CPU may execute the retrieved diagnostic instructions provided by the ROM to initialize the motherboard and integrated circuits mounted on the motherboard 206. The diagnostics may check whether it has initialized the motherboard and integrated circuits mounted on the motherboard (motherboard/integrated circuits) successfully 208 before the diagnostic proceeds with further initialization of add-on cards and external drives. When the diagnostics completes the initialization of motherboard/integrated circuits successfully, the diagnosis may instruct the CPU to turn off the visual indicator via the general purpose I/O port 210.
When the diagnostics are unable to initialize the motherboard/integrated circuits successfully, the visual indicator may be not turned off indicating a defective motherboard and integrated circuits mounted on the motherboard 212. For example, the diagnostics may employ a plurality of flags (a motherboard flag, a memory subsystem flag and the like) stored in the ROM. The flags may be turn on (e.g. having “1” value) at the starting up time. After successful initialization, the motherboard flag may be turned off (e.g. having “0” value). Otherwise, the motherboard flag remains to be turned on. The BIOS may instruct the CPU to check the value of the motherboard flag and turn off the visual indicator if the CPU finds the motherboard flag turned off. In an embodiment of the present invention, the diagnostics may allow the CPU to continue its initialization on other components after successful initialization of the motherboard. Thus, user may also utilize other diagnostic information that may be conventionally available for the computer system. For instance, the conventional BIOS for the personal computer system may not be interrupted if the motherboard/integrated circuits are successfully initialized. After the CPU may turn off the visual indicator, the BIOS may still find errors during the POST. In such case, the user may be notified by a series of beeps or a text message displayed on the screen together with the visual indicator. Lastly, the diagnostics may initiate the loading of the operating system and booting the computer system.
Now referring to
Although the invention has been described with a certain degree of particularity, it should be recognized that elements thereof may be altered by persons skilled in the art without departing from the spirit and scope of the invention. It is believed that the method for the present invention and many of its attendant advantages will be understood by the foregoing description, and it will be apparent that various changes may be made in the form, construction, and arrangement of the components thereof without departing from the scope and spirit of the invention or without sacrificing all of its material advantages, the form herein before described being merely an explanatory embodiment thereof. It is the intention of the following claims to encompass and include such changes.