CIE IGCSE | 4.1.3 Firmware and Bootloader

Lesson objective

Explain how hardware, firmware and an operating system are required to run applications, and describe the bootloader’s role during startup.

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

  1. Power is supplied.

    The processor begins executing the system’s initial firmware instructions.

  2. Firmware prepares the system.

    It initialises relevant hardware and may perform startup checks.

  3. The boot process locates startup software.

    A suitable boot device or entry is selected and the bootloader stage is started.

  4. The bootloader loads the OS.

    The necessary OS code is loaded into memory and control is transferred to it.

  5. The OS takes over.

    It starts required services, manages resources and makes an interface available.

  6. 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

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?

Typical desktop or laptop arrangement; implementations vary
PartTypical location before startupRole when running
Startup firmwareNon-volatile memory associated with the deviceInitialise hardware and start the boot process
OS filesSecondary storage, such as an SSDNeeded code is loaded into memory to manage the system
Application filesSecondary storageNeeded code is loaded into memory to perform user tasks
Working dataMay be retained in files on secondary storageActive 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.

MATCH THE STARTUP ROLE

Terminology

Terminology

Hardware

The physical components of a computer system.

Firmware

Software closely associated with hardware control, held in non-volatile memory.

Bootloader

Startup software that loads an operating system or the next stage that loads it and transfers control.

Booting

The process of starting a computer and bringing its operating system into operation.

Operating system

System software that manages resources and provides services and a platform for applications.

Application software

Software that performs tasks required by the user.

Non-volatile memory

Memory that retains its contents without power.

ROM

Non-volatile memory commonly associated with retaining firmware or fixed instructions.

Flash memory

Rewritable non-volatile memory used in many devices for firmware or other storage.

RAM

Volatile working memory holding instructions and data currently needed.

Secondary storage

Non-volatile storage typically retaining OS files, applications and user data.

Initialisation

Preparing hardware or software components for use.

Boot device

A device selected as a source of startup software.

Transfer of control

A change from executing one stage of code to executing the next.

Power-on self-test (POST)

Startup checks of aspects of the hardware.

Firmware update

A replacement or revision of firmware stored in rewritable non-volatile memory.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. Which statements about firmware are correct?
2. Why is startup firmware held in non-volatile memory?
3. What is the bootloader’s central role?
4. Which describe a typical startup order?
5. Which storage statements are correct for a typical laptop?
6. Which statements about firmware updates are correct?
7. An SSD holding the OS is disconnected. Which are possible?
8. Which describe the roles accurately?

EXPLAIN AND COMPARE

Write your answers before revealing each sample.

1. Define firmware and state why its storage must be non-volatile.

2. Describe the role of the bootloader.

3. Describe a simplified sequence from pressing power to opening a browser.

4. Explain why storing all startup instructions only in ordinary RAM would be unsuitable.

5. Compare the roles of firmware and an operating system.

6. Explain why a computer might display a startup message but fail to load its OS after its SSD is removed.

7. Explain how hardware and an operating system support an application.

APPLY IT | ORDER THE STARTUP

Write these events in the correct simplified order: application launches; bootloader loads OS; initial firmware executes; OS starts services. For each event, explain its purpose.

Reveal suggested answer

1. Initial firmware executes to prepare the system and start booting. 2. The bootloader loads the OS and transfers control. 3. The OS starts services and manages resources. 4. An application launches and uses OS services to perform the user’s task.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for 4.1.3 Firmware and Bootloader is coming soon. Complete the matching task and written questions in your exercise book.