Learn
4.1.3 | FIRMWARE AND BOOTLOADER
01 | WHAT HAPPENS WHEN YOU PRESS POWER?
You press the power button. A few moments later, a login screen appears and you can open a browser. The browser is not the first program to run.
The processor first executes startup instructions already available to it. These instructions help prepare the hardware and begin loading the operating system. The operating system then supplies the environment in which applications run.
The key idea: applications depend on an operating system and hardware, and startup firmware helps bring that operating system into operation.
02 | HARDWARE: THE PHYSICAL FOUNDATION
Hardware means physical components, such as the processor, RAM, motherboard and storage devices.
The CPU executes instructions. RAM holds working instructions and data while the computer is running. Secondary storage normally retains the operating-system files and applications when power is off.
Hardware alone does not supply the program that tells it how to start. The processor needs initial instructions available before the main operating system has been loaded.
03 | FIRMWARE: SOFTWARE CLOSE TO THE HARDWARE
Firmware is software closely associated with controlling hardware. It is held in non-volatile memory, so it remains available when power is removed.
Startup firmware in a computer can initialise hardware, perform startup checks and begin the process that loads the OS. Other devices, such as printers or routers, also use firmware to control their operation.
For this course, you may see firmware described as being stored in ROM. Modern devices often use rewritable non-volatile flash memory. Firmware is still software: its storage location does not make it a physical hardware component.
Firmware is not necessarily unchangeable. Some devices support firmware updates. Its defining feature is its close relationship to hardware control, rather than a rule that it can never be rewritten.
04 | WHY STARTUP INSTRUCTIONS MUST SURVIVE POWER OFF
Ordinary RAM is volatile: its contents are lost when power is removed. If the only startup instructions were in that RAM, they would not be available at the next cold start.
Storing firmware in non-volatile memory means the processor can obtain startup instructions again after power is restored. The OS files are also retained on non-volatile storage, but they still need to be brought into operation.
Do not confuse retention with execution. A file remaining on an SSD is not the same as that program running. The computer must load and execute the required instructions.
05 | THE BOOTLOADER’S JOB
A bootloader is startup software whose central job is to load the operating system, or the next stage that loads it, and transfer control to it.
In the Cambridge syllabus’s simplified model, the bootloader is described as firmware running on the hardware. The important relationship is that startup code is available before the OS is running and enables it to start.
Real computers can use several stages: firmware can locate a boot program on a selected storage device, and that program can load the OS kernel. The exact split between firmware and bootloader varies by system.
The bootloader does not manage all your applications throughout the day. After startup, the OS takes responsibility for managing resources and providing application services.
06 | FOLLOW THE STARTUP SEQUENCE
- Power is supplied.
The processor begins executing the system’s initial firmware instructions.
- Firmware prepares the system.
It initialises relevant hardware and may perform startup checks.
- The boot process locates startup software.
A suitable boot device or entry is selected and the bootloader stage is started.
- The bootloader loads the OS.
The necessary OS code is loaded into memory and control is transferred to it.
- The OS takes over.
It starts required services, manages resources and makes an interface available.
- The user launches an application.
The OS supports loading and running the application, whose instructions are executed by the processor.
This is a simplified sequence for a typical computer. Designs differ, and not every device shows a login screen or uses exactly these stages.
07 | THE SYLLABUS RELATIONSHIP
Uses OS services to perform user tasks
Supported by ↓
Manages resources and provides an application platform
Started through ↓
Startup instructions prepare the system and load the OS
Executed on ↓
CPU executes instructions; memory and storage hold code and data
The specification summarises this as applications running on the OS, the OS running on firmware, and the bootloader (firmware) running on hardware.
Interpret “running on” as a support relationship. The CPU executes the instructions of firmware, the OS and applications. Firmware does not replace the CPU, and the bootloader does not continuously execute every OS instruction after handing over control.
08 | WHERE IS EACH PART STORED?
| Part | Typical location before startup | Role when running |
|---|---|---|
| Startup firmware | Non-volatile memory associated with the device | Initialise hardware and start the boot process |
| OS files | Secondary storage, such as an SSD | Needed code is loaded into memory to manage the system |
| Application files | Secondary storage | Needed code is loaded into memory to perform user tasks |
| Working data | May be retained in files on secondary storage | Active data is held in RAM while needed |
Do not say the whole OS must always be copied into RAM at once. The system loads the components it needs, and further code or data can be loaded later.
Non-volatile storage preserves instructions; RAM provides working memory. These are different jobs.
09 | BIOS AND UEFI: USEFUL CONTEXT
BIOS and UEFI are terms you may see when discussing PC startup firmware. They provide startup facilities and settings, including ways to select a boot device.
For this lesson, you do not need to memorise their internal formats. Focus on the role: startup firmware prepares the system and starts the process that loads an OS.
Some firmware performs a power-on self-test (POST), checking aspects of the hardware. Passing a startup check does not prove that every component is fault-free.
10 | A COMPUTER THAT CANNOT FIND AN OS
Imagine a computer’s SSD is disconnected. The firmware may still start because it is stored separately in non-volatile memory. However, the boot process may fail to find the OS files on that SSD.
Result: the computer may display a startup error rather than the usual login screen. This does not necessarily mean the CPU or firmware is missing.
Once a suitable OS starts, applications still need to be present and compatible. Having a functioning bootloader alone does not give the user a working word processor.
11 | COMMON MISTAKES
- Firmware is hardware: it is software stored in non-volatile memory.
- Firmware is kept only in volatile RAM: startup instructions must remain available after power off.
- The bootloader is the whole OS: it loads the OS or its next startup stage.
- The bootloader runs applications all day: the OS provides their normal platform and services.
- All OS files live in ROM: a typical computer keeps them on secondary storage.
- A browser starts before the OS: ordinary applications depend on the OS environment.
- Firmware can never be updated: some devices use rewritable non-volatile memory.