OCR H446, section 1.2.1 (f)
What is the BIOS?
The BIOS (basic input/output system) is firmware: a small program stored in non-volatile memory (ROM or flash memory) on the motherboard. It is the first software that runs when the computer is switched on.
Because it is stored in non-volatile memory, it is still there with the power off. That's essential: when the computer starts, RAM is empty, so the first instructions must come from somewhere that keeps its contents.
Modern computers use UEFI (unified extensible firmware interface), a newer replacement that does the same jobs with more features, but the term BIOS is still widely used.
What the BIOS does
1. Power-on self test (POST)
The BIOS checks that the essential hardware works: the processor, memory (RAM), the graphics hardware, the keyboard and the storage devices. If something is wrong, it stops, and signals the fault by beep codes or an error message.
2. Run the bootstrap loader
The BIOS contains the bootstrap loader. It looks for an operating system on the boot devices, in a set order (such as SSD, then USB, then the network). It loads a small boot program (the boot loader) from the start of the boot device into RAM, and hands control to it. The boot loader then loads the rest of the operating system into RAM.
3. Store the basic settings
The BIOS keeps configuration settings, such as the boot order, the date and time, and hardware options. These are held in a small amount of memory (CMOS), kept alive by a small battery on the motherboard, so that the settings aren't lost. They can be changed by the user in a setup screen at start-up.
4. Provide basic input/output routines
The BIOS gives simple routines to control basic hardware such as the keyboard and screen. They are used before the operating system and its drivers are loaded.
The boot sequence
This is known as booting (from "pulling yourself up by your bootstraps").
Worked example
Task: a computer shows a message "No boot device found" after being switched on. Explain what the BIOS has done, and what might be wrong.
- The BIOS has run its power-on self test, and the hardware check passed, since it got as far as looking for an operating system.
- It then searched the boot devices in its configured order, but couldn't find a valid operating system on any of them.
- Possible causes: the hard disk or SSD has failed or is disconnected, the operating system is damaged or missing, or the boot order in the BIOS settings is wrong (for example it is set to boot from an empty USB port).
Exam tip: describe the BIOS as firmware in non-volatile memory that runs first, tests the hardware (POST), and loads the bootloader that starts the operating system. Explain why it must be stored in ROM or flash: RAM is empty when the computer starts.
Check yourself
What is the BIOS, and where is it stored?
Firmware that runs when the computer starts. It is stored in non-volatile memory (ROM or flash) on the motherboard.
What does POST do?
The power-on self test checks that the essential hardware, such as the processor, memory and storage, is working before the computer carries on starting up.
Why must the BIOS be stored in non-volatile memory?
RAM is empty when the power is turned on, so the first instructions have to be held in memory that keeps its contents without power.
What is the bootstrap loader for?
It finds the operating system on a boot device and loads it into RAM, then hands over control.