Tuesday, August 19, 2008

Bootstrapping using the BIOS


Motherboards contain some non-volatile memory to initialize the system and load an operating system from some external peripheral device. Microcomputers such as the Apple II and IBM PC used read-only memory chips, mounted in sockets on the motherboard. At power up the central processor would load its program counter with the address of the boot ROM and start executing ROM instructions displaying system information on the screen and running memory checks, which would in turn start loading memory from an external or peripheral device (disk drive) if one isn't available then the computer can perform tasks from other memory stores or displays an error message depending on the model and design of the computer and version of the bios.


Most modern motherboard designs use a BIOS, stored in a EEPROM chip soldered to the motherboard, to bootstrap the motherboard. (Socketed BIOS chips are widely used, also.) By booting the motherboard, the memory, circuitry, and peripherals are tested and configured. This process is known as a Power On Self Test or POST. Errors during POST result in POST error codes, ranging from simple audible beeps from the speaker to complex diagnostic messages displayed on the video monitor.

The BIOS often requires configuration settings to be stored on the motherboard. Since configuration settings must be easily edited, these settings are often stored in non-volatile RAM (NVRAM) rather than in some sort of read-only memory (ROM). When a user makes configuration changes or alters the date and time of the computer, this small NVRAM circuit stores the data. Typically, a small, long-lasting battery (e.g. a lithium coin cell CR2032) is used to keep the NVRAM "refreshed" for many years. Therefore, a failing battery on a motherboard will produce the symptoms of a computer that cannot determine the correct date and time, nor remember what hardware configuration the user has selected. The BIOS itself is unaffected by the status of the battery.

When IBM first introduced the PC in the 1980s, imitations were quite common. (The physical parts which made up the motherboard were trivial to acquire.) However, the imitations were never successful until the IBM ROM BIOS was legally copied.[11] To understand why copying the BIOS was an important step, consider that the BIOS contained vital instructions which interacted with peripherals. Without these software instructions in the BIOS, a PC would not function properly. (In most modern computer operating systems, the BIOS is bypassed for most hardware functions, but in the 1980s, the BIOS served many vital low-level functions.)

So when Compaq Computer Corp. spent US$1 million to clone the IBM BIOS using reverse engineering, they became an elite computer manufacturer of IBM PC Clones. Phoenix Technology soon matched their feat and began reselling BIOSes to other clone makers.[12] It has been noted that Microsoft was more than happy to license the operating system (DOS), and IBM was more than happy to sue companies[13] that violated the copyright of their BIOS. But by documenting and publicizing the reverse engineering of the BIOS, Compaq and Phoenix were legally competing with IBM using their own copyrighted BIOS.

Once the bootstrapping of the computer's peripherals are complete, the BIOS will normally pass control to another set of instructions stored on a bootable device.

Devices which are normally used to boot a computer:

Any of the above devices can be stored with machine code instructions to load an operating system or a program.

Form factors


Motherboards are produced in a variety of sizes and shapes ("form factors"), some of which are specific to individual computer manufacturers. However, the motherboards used in IBM-compatible commodity computers have been standardized to fit various case sizes. As of 2007, most desktop computer motherboards use one of these standard form factors—even those found in Macintosh and Sun computers which have not traditionally been built from commodity components.

Laptop computers generally use highly integrated, miniaturized, and customized motherboards. This is one of the reasons that laptop computers are difficult to upgrade and expensive to repair. Often the failure of one laptop component requires the replacement of the entire motherboard, which is usually more expensive than a desktop motherboard due to the large number of integrated components.

No comments: