All Topics  
BIOS

 

   Email Print
   Bookmark   Link

 

BIOS


 
 

In computingComputing

Originally, the word computing was synonymous with counting and calculating, and a science and technology that deals wit...
, the BIOS is an initialism stands for the Basic Input/Output System according to the IBM Personal Computer Technical Reference manual or the punctuational variants Basic Input Output System, or Basic Input-Output System.

BIOS in part refers to the firmware codeFirmware

In computing, firmware is software that is embedded in a hardware device....
 run by a PCPersonal computer

A personal computer is usually a microcomputer whose price, size, and capabilities make it suitable for personal usage....
 when first powered on, which is a type of boot loader. The primary function of the BIOS is to identify and initialize system component hardware (such as the video display card, hard diskHard disk

A hard disk drive is a digitally encoded non-volatile storage device which stores data on the magnetic surfaces of hard dis...
, and floppyFloppy disk

A floppy disk is a data storage device that is composed of a disk of thin, flexible magnetic storage medium encased in a sq...
). This is to prepare the machine into a known low capability state, so other software programsComputer software

Software fundamentally is the unique image or representation of physical or material alignment that constitutes configur...
 stored on various media can load, execute, and assume control of the PC. This process is known as booting, or booting up, which is short for bootstrappingBootstrapping (computing) Summary

Bootstrapping alludes to a German legend about Baron Mnchhausen, who was able to lift himself out of a swamp by pulling hims...
. Among other classes of computers, the generic terms boot monitorBoot monitor Overview

A boot monitor is a small interactive computer program that allows a computer operator to load an operating system....
, boot loader or boot ROMBooting

In computing, booting is a bootstrapping process that starts operating systems when the user turns on a computer system....
were commonly used. Some Sun and Macintosh PowerPC computers used Open FirmwareOpen Firmware

Open Firmware is a hardware-independent firmware, developed by Sun Microsystems, and used in post-NuBus PowerPC-based Apple ...
 for this purpose. There are a few alternatives for Legacy BIOS in the x86 world: Extensible Firmware InterfaceExtensible Firmware Interface

* Basic Input/Output System* Advanced Configuration and Power Interface...
, Open FirmwareOpen Firmware Overview

Open Firmware is a hardware-independent firmware, developed by Sun Microsystems, and used in post-NuBus PowerPC-based Apple ...
 (used on the OLPC XO-1OLPC XO-1 Overview

The XO-1, previously known as the $100 Laptop or Children's Machine, is an inexpensive laptop computer intended ...
) and coreboot.

The BIOSes of IBM PCIBM PC Summary

The IBM PC , was the original version and progenitor of the IBM PC compatible hardware platform....
 class machines can also be said to be a coded program embedded on a chip that recognizes and controls various devices that make up x86 personal computers, and provides a small library of basic Input/Output functions that can be called to operate and control the peripherals such as the keyboard, primitive (800 x 600) display functions and so forth. Computers designed to run Windows ME or Windows 2000, or later, supersede this basic monitor functionality by taking over direct control of the interrupt table and replacing the monitor routines with faster and more robust low-level modules that, unlike the BIOS function set, are re-entrant. Various BIOS functions in ROM were left in control in earlier windows versions, and the BIOS only comes into play today in the alternate shell CMD.exeCmd.exe

For other uses of "cmd", see CMD.cmd.exe is the command line interpreter on OS/2 and on Windows NT-based systems....
, or if the machine is booted into a legacy DOS version.

The term first appeared in the CP/MCP/M

CP/M is an operating system originally created for Intel 8080/85 and Zilog Z80 based microcomputers by Gary Kildall of Digit...
 operating system, describing the part of CP/M loaded during boot time that interfaced directly with the hardwareComputer hardware

Computer hardware is the physical part of a computer, including the digital circuitry, as distinguished from the computer so...
 (CP/M machines usually had a simple boot loader in ROMRead-only memory

Read-only memory is a class of storage media used in computers and other electronic devices....
, and nothing else). Most versions of DOSDOS Summary

DOS commonly refers to the family of closely related operating systems which dominated the IBM PC compatible market between ...
 have a file called "IBMBIO.COMIBMBIO.COM

IBMBIO.COM serves exactly the same purpose as IO.SYS and it is part of PC-DOS and earlier versions of MS-DOS....
" or "IO.SYSIO.SYS

IO.SYS is an essential part of DOS and Windows 9x....
" that is analogous to the CP/M disk BIOS.

The term is incorrectly known as Binary Input/Output System, Basic Integrated Operating System and occasionally Built In Operating System.

The BIOS Chip and BIOS Recovery

Boot Block
DMI Block
Main Block


Prior to the early 1990s, BIOSes were stored in ROMRead-only memory

Read-only memory is a class of storage media used in computers and other electronic devices....
 or PROMProgrammable read-only memory Summary

A programmable read-only memory or field programmable read-only memory is a form of digital memory where the setting...
 chips, which could not be altered by users. As its complexity and need for updates grew, and re-programmable parts became more available, BIOS firmware was most commonly stored on EEPROMEEPROM

An EEPROM or Electrically Erasable Programmable Read-Only Memory, is a non-volatile sto...
 or flash memoryFlash memory

Flash memory is a form of non-volatile computer memory that can be electrically erased and reprogrammed....
 devices. The first flash chips attached to the ISA busIndustry Standard Architecture

Industry Standard Architecture is a computer bus standard for IBM compatible computers. ...
. Starting in 1997, the BIOS flash moved to the LPCLow Pin Count

The Low Pin Count bus, or LPC bus, is used on IBM-compatible personal computers to connect low-bandwidth devices to th...
 bus, a functional replacement for ISA, following a new standard implementation known as "firmware hub" (FWH). In 2006, the first systems supporting a Serial Peripheral Interface (SPI) appeared, and the BIOS flash moved again.

EEPROM chips are advantageous because they can be easily updated by the user; hardware manufacturers frequently issue BIOS updates to upgrade their products, improve compatibility and remove bugsSoftware bug

A software bug is an error, flaw, mistake, failure, or fault in a computer program that prevents it from working as intended...
. However, this advantage had the risk that an improperly executed or aborted BIOS update could render the computer or device unusable. To avoid these situations, more recent BIOSes use a "boot block"; a portion of the BIOS which runs first and must be updated separately. This code verifies if the rest of the BIOS is intact (using hashHash function

A hash function is a way of creating a small digital "fingerprint" from any kind of data....
 checksumChecksum

A checksum is a form of redundancy check, a very simple measure for protecting the integrity of data by detecting errors in ...
s or other methods) before transferring control to it. If the boot block detects any corruption in the main BIOS, it will typically warn the user that a recovery process must be initiated by booting from removable mediaRemovable media

Removable media refers to cartridge and disc-based storage devices which can be used to easily move data between computers w...
 (floppy, CD or USB memory) so the user can try flashing the BIOS again. Some motherboardMotherboard Overview

A motherboard, also known as a mainboard, system board, or logic boards on Apple Computers, and sometimes ...
s have a backup BIOS (sometimes referred to as DualBIOS boards) to recover from BIOS corruptions. In 2007, GigabyteGigabyte Technology

Gigabyte Technology is a Taiwan-based manufacturer of computer hardware products best known for its motherboards....
 began offering motherboards with a QuadBIOS recovery feature.

Due to the limitation on the number of times flash memory media can be flashed, a flash-based BIOS is vulnerable to "flash-burn" viruses that repeatedly write to the flash, permanently corrupting chip content. Such attacks can be prevented by some form of write-protection, the ultimate protection being the replacement of the flash memory with a true ROM.

The size of the BIOS, and the capacities of the ROM, EEPROM and other media it may be stored on, has increased over time as new features have been added to the code; BIOS versions now exist with sizes up to 8 megabytes.

Firmware on adapter cards

A computer system can contain several BIOS firmware chips. The motherboard BIOS typically contains code to access fundamental hardware components such as the keyboard, floppy drives, ATA (IDE) hard disk controllers, USBUniversal Serial Bus

Universal Serial Bus is a serial bus standard to interface devices....
 human interface devices, and storage devices. In addition, plug-in adapter cards such as SCSIFacts About SCSI

SCSI stands for "Small Computer System Interface", and is a standard interface and command set for transferring data b...
, RAIDRAID

In computing, the acronym RAID refers to a data storage scheme using multiple hard drives to share or replicate data among ...
, Network interface cards, and video boards often include their own BIOS, complementing or replacing the system BIOS code for the given component.

In some devices that can be used by add-in adapters and actually directly integrated on the motherboard, the add-in ROM may also be stored as separate code on the main BIOS flash chip. It may then be possible to upgrade this "add-in" BIOS (sometimes called an option ROMOption ROM

An Option ROM typically consists of firmware that is called by the system BIOS....
) separately from the main BIOS code.

Add-in cards usually only require such an add-in BIOS if they:
  • Need to be used prior to the time that the operating system loads (e.g. they may be used as part of the process which loads the operating system), and:
  • Are not sufficiently simple, or generic in operation to be handled by the main BIOS directly


PCPersonal computer

A personal computer is usually a microcomputer whose price, size, and capabilities make it suitable for personal usage....
 operating systemOperating system

An operating system is a software program that manages the hardware and software resources of a computer....
s such as DOSDOS

DOS commonly refers to the family of closely related operating systems which dominated the IBM PC compatible market between ...
, including all DOS-based versions of MS Windows, as well as bootloaders, may continue to make use of the BIOS to handle input and output. However, other modern operating systems will interact with hardware devices directly by using their own device driverDevice driver

A device driver, or a software driver is a specific type of computer software, typically developed to allow interactio...
s to directly access the hardware. Occasionally these add-in BIOSs are still called by these operating systems, in order to carry out specific tasks such as preliminary device initialization.

To find these memory mapped expansion ROMs during the boot process, PC BIOS implementations scan real memory from 0xC0000 to 0xF0000 on 2 kibiKibi

Kibi*Kibi District, Okayama is a district located in Okayama Prefecture, Japan...
byte boundaries looking for the ROM signature bytes of 55h followed by AAh (0xAA55). For a valid expansion ROM, its signature is immediately followed by a single byte indicating the number of 512-byte blocks it occupies in real memory. The BIOS then jumps to the offset located immediately after this size byte; at which point the expansion ROM code takes over, using the BIOS services to register interrupt vectorInterrupt vector

An interrupt vector is the memory address of an interrupt handler, or an index into an array called an interrupt vector tabl...
s for use by post-boot applications and provide a user configuration interface, or display diagnostic information.

There are many methods and utilities for dumping the contents of various motherboard BIOS and expansion ROMs. Under a Microsoft OS, DEBUGDEBUG (DOS Command)

DEBUG is a DOS / MS-DOS / WINDOWS command....
 can be used to examine 64 KiB segments of memory and save the contents to a file. For UNIX systems the ddDd (Unix)

dd is a common Unix program whose primary purpose is the low-level copying and conversion of files....
 command can be used by a user with root privileges: "dd if=/dev/mem bs=1k skip=768 count=256 2>/dev/null | strings -n 8".

The BIOS boot specification

If the expansion ROM wishes to change the way the system boots (such as from a network device or a SCSI adapter for which the BIOS has no driver code), it can use the BIOS Boot Specification (BBS) APIApplication programming interface

An application programming interface is the interface that a computer system, library or application provides in order to a...
 to register its ability to do so. Once the expansion ROMs have registered using the BBS APIs, the user can select among the available boot options from within the BIOSes user interface. This is why most BBS compliant PC BIOS implementations will not allow the user to enter the BIOS's user interface until the expansion ROMs have finished executing and registering themselves with the BBS API.

Evolution of the role of the BIOS

Some operating systemOperating system

An operating system is a software program that manages the hardware and software resources of a computer....
s, for example MS-DOSMS-DOS

MS-DOS is an operating system commercialized by Microsoft....
, rely on the BIOS to carry out most input/output tasks within the PC. A variety of technical reasons makes it inefficient for some recent operating systems written for 32-bit32-bit

32-bit is also a term given to a generation of computers in which 32-bit processors were the norm....
 CPUs such as LinuxLinux

Linux is a Unix-like computer operating system....
 and Microsoft WindowsMicrosoft Windows

Microsoft Windows is a family of operating systems by Microsoft....
 to invoke the BIOS directly. Larger, more powerful, servers and workstations using PowerPCPowerPC

PowerPC is a RISC microprocessor architecture created by the 1991 AppleIBMMotorola alliance, known as AIM....
 or SPARCSPARC

SPARC is a pure big-endian RISC microprocessor instruction set architecture originally designed in 1985 by Sun Microsystems...
 CPUs by several manufacturers developed a platform-independent Open FirmwareFacts About Open Firmware

Open Firmware is a hardware-independent firmware, developed by Sun Microsystems, and used in post-NuBus PowerPC-based Apple ...
 (IEEE-1275), based on the Forth programming language. It is included with Sun's SPARC computers, IBM's RS/6000 line, and other PowerPC CHRPCommon Hardware Reference Platform

Common Hardware Reference Platform was an early PowerPC hardware reference design....
 motherboards. Later x86-based personal computer operating systems, like Windows NT, use their own, native drivers which also makes it much easier to extend support to new hardware, while the BIOS still relies on a legacy 16-bit runtime interface. As such, the BIOS was relegated to bootstrappingBootstrapping (computing)

Bootstrapping alludes to a German legend about Baron Mnchhausen, who was able to lift himself out of a swamp by pulling hims...
, at which point the operating system's own drivers can take control of the hardware.

There was a similar transition for the Apple Macintosh, where the system software originally relied heavily on the ToolBoxMacintosh Toolbox

The Macintosh Toolbox was a set of resources, drivers, routines and APIs stored in the ROM of "Old World ROM" Apple Macintos...
—a set of drivers and other useful routines stored in ROM based on Motorola's 680x0 CPUs. These Apple ROMs were replaced by Open Firmware in the PowerPCPowerPC

PowerPC is a RISC microprocessor architecture created by the 1991 AppleIBMMotorola alliance, known as AIM....
 MacintoshMacintosh Overview

The Macintosh, or Mac, is a line of personal computers designed, developed, manufactured, and marketed by Apple Comput...
, then EFIExtensible Firmware Interface Summary

* Basic Input/Output System* Advanced Configuration and Power Interface...
 in Intel Macintosh computers.

Later BIOS took on more complex functions, by way of interfaces such as ACPIAdvanced Configuration and Power Interface

The Advanced Configuration and Power Interface specification is an open industry standard first released in December 1996 de...
; these functions include power managementPower management

Power management is a feature of some electrical appliances, especially copiers and computer peripherals such as monitors an...
, hot swappingHot swapping

Hot swapping or hot plugging is the ability to remove and replace components of a machine, usually a computer, while i...
 and thermal management. However BIOS limitations (16-bit processor mode, only 1 MiB addressable space, PC AT hardware dependencies, etc.) were seen as clearly unacceptable for the newer computer platforms. Extensible Firmware InterfaceExtensible Firmware Interface

* Basic Input/Output System* Advanced Configuration and Power Interface...
 (EFI) is a specification which replaces the runtime interface of the legacy BIOS. Initially written for the Itanium architecture, EFI is now available for x86 and x86-64X86-64

x86-64 is a 64-bit microprocessor architecture and corresponding instruction set; it is a superset of the x86 architecture, ...
 platforms; the specification development is driven by The Unified EFI Forum, an industry Special Interest GroupFacts About Special Interest Group

In the computer field, a Special Interest Group is a community with a particular interest in a specific technical area....
.

Linux has supported EFI via the eliloElilo

elilo is the standard Linux boot loader for EFI-based PC hardware....
 boot loader. The Open Source community increased their effort to develop a replacement for proprietary BIOSes and their future incarnations with an open sourced counterpart through the coreboot and OpenBIOSOpenBIOS

OpenBIOS is a free software, portable Open Firmware implementation which is licensed under the terms of the GNU General Publ...
/Open FirmwareOpen Firmware

Open Firmware is a hardware-independent firmware, developed by Sun Microsystems, and used in post-NuBus PowerPC-based Apple ...
 projects. AMDAdvanced Micro Devices

Advanced Micro Devices, Inc. is an American manufacturer of integrated circuits based in Sunnyvale, California....
 provided product specifications for some chipsets, and GoogleGoogle

Google Inc. is an American public corporation, first incorporated as a privately held corporation on 7 September 1998, that ...
 is sponsoring the project. MotherboardMotherboard

A motherboard, also known as a mainboard, system board, or logic boards on Apple Computers, and sometimes ...
 manufacturer TyanTyan

Tyan Computer Corporation is a manufacturer of computer motherboards, including models for both Intel and AMD....
 offers coreboot next to the standard BIOS with their OpteronOpteron

The AMD Opteron is the first eighth-generation x86 processor, and the first of AMD's AMD64 processors, released April 22, 20...
 line of motherboards. MSIMicro-Star International

Micro-Star International is a Taiwanese computer and components manufacturer....
 and GigabyteGigabyte Technology

Gigabyte Technology is a Taiwan-based manufacturer of computer hardware products best known for its motherboards....
 have followed suit with the MSI K9ND MS-9282 and MSI K9SD MS-9185 resp. the M57SLI-S4 modems.

The BIOS business

The vast majority of PC motherboard suppliers license a BIOS "core" and toolkit from a commercial third-party, known as an "independent BIOS vendor" or IBV. The motherboard manufacturer then customizes this BIOS to suit its own hardware. For this reason, updated BIOSes are normally obtained directly from the motherboard manufacturer.

Major BIOS vendors include American MegatrendsFacts About American Megatrends

American Megatrends Incorporated is a Georgia based hardware company that creates PC hardware and firmware....
 (AMI), General Software, Insyde SoftwareInsyde Software

Insyde Software is listed on the second board of the Taiwan Stock Exchange, stock code 6231....
, and Phoenix TechnologiesPhoenix Technologies

Phoenix Technologies Ltd is a creator of computer BIOS software....
 (which bought Award Software InternationalAward Software International

Award Software International was a major manufacturer of computer BIOSes until 1998 when they were acquired by Phoenix Techn...
 in 1998).

See also

  • Advanced Configuration and Power InterfaceAdvanced Configuration and Power Interface

    The Advanced Configuration and Power Interface specification is an open industry standard first released in December 1996 de...
     (ACPI)
  • ARCS
  • BIOS boot devicesBooting

    In computing, booting is a bootstrapping process that starts operating systems when the user turns on a computer system....
  • BIOS interrupt callBIOS interrupt call

    BIOS Interrupt Calls are a facility that DOS programs, and some other software such as boot loaders, use to invoke the BIOS'...
    s
  • coreboot, a project which aim is to create a freeFree software

    Free software, as defined by the Free Software Foundation, is software which can be used, copied, studied, modified and redi...
     replacement for the BIOS
  • Extensible Firmware InterfaceFacts About Extensible Firmware Interface

    * Basic Input/Output System* Advanced Configuration and Power Interface...
     (EFI)
  • FirmwareFacts About Firmware

    In computing, firmware is software that is embedded in a hardware device....
  • Input/Output Base AddressInput/Output Base Address

    Base address is also called I/O port, I/O address, I/O port address and base port. ...
  • Nonvolatile BIOS memoryNonvolatile BIOS memory

    Non-volatile BIOS memory refers to the memory on a personal computer motherboard containing BIOS settings and sometimes the ...
  • Open FirmwareOpen Firmware

    Open Firmware is a hardware-independent firmware, developed by Sun Microsystems, and used in post-NuBus PowerPC-based Apple ...
  • Power-On Self TestPower-on self-test

    Power-on self-test is the common term for a computer's, router's or printer's pre-boot sequence....
     (POST)