0% found this document useful (0 votes)
248 views4 pages

Understanding the Computer Boot Process

The document discusses the computer booting process, explaining that the BIOS controls startup which includes a power-on self-test, checking hardware, and loading the bootstrap loader from the boot disk sector into memory to launch the operating system. The bootstrap loader is stored in ROM rather than RAM because ROM is non-volatile memory that retains data even when power is turned off, which allows the basic boot process to run each time the computer starts up.

Uploaded by

Nedved Rich
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
248 views4 pages

Understanding the Computer Boot Process

The document discusses the computer booting process, explaining that the BIOS controls startup which includes a power-on self-test, checking hardware, and loading the bootstrap loader from the boot disk sector into memory to launch the operating system. The bootstrap loader is stored in ROM rather than RAM because ROM is non-volatile memory that retains data even when power is turned off, which allows the basic boot process to run each time the computer starts up.

Uploaded by

Nedved Rich
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

COMPUTER SCIENCE DEPARTMENT

HND ICT 2
OPERATING SYSEM
ASSIGNMENT
NAME: SARPONG RICHARD
INDEX NUMBER: 06201219

QUESTION :1

EXPLAIN COMPUTER BOOTING PROCESS WITH REFERENCE TO


THE BOOTSTRAP PROGRAM.

Answer & Explanation

When you first power up a PC, the machine goes through several internal processes before
it's ready for you to use. This is called the boot process, or booting the PC. Boot is short for
bootstrap, a reference to the old adage, "Pull yourself up by the bootstraps," which means to
start something from the very beginning. The boot process is controlled by the PC's basic
input-output system (BIOS).

The BIOS is software stored on a flash memory chip. In a PC, the BIOS is embedded on the
motherboard. Occasionally, a PC manufacturer will release an update for the BIOS, and you
can carefully follow instructions to "flash the BIOS" with the updated software.

Besides controlling the boot process, the BIOS provides a basic configuration interface for
the PC's hardware components. In that interface, you can configure such things as the order to
read drives during boot and how fast the processor should be allowed to run. Check your PC's
documentation to find out how to enter its BIOS interface. This information is often
displayed when you first boot the computer, too, with a message such as, "Press DEL to enter
Set-up Menu."

The following is a summary of the boot process in a PC:

1. The power button activates the power supply in the PC, sending power to the
motherboard and other components.
2. The PC performs a power-on self-test (POST). The POST is a small computer
program within the BIOS that checks for hardware failures. A single beep after the
POST signals that every thing's okay. Other beep sequences signal a hardware failure,
and PC repair specialists compare these sequences with a chart to determine which
component has failed.

3. The PC displays information on the attached monitor showing details about the boot
process. These include the BIOS manufacturer and revision, processor specks, the
amount of RAM installed, and the drives detected. Many PCs have replaced
displaying this information with a splash screen showing the manufacturer's logo.
You can turn off the splash screen in the BIOS settings if you'd rather see the text.

4. The BIOS attempts to access the first sector of the drive designated as the boot disk.
The first sector is the first kilobytes of the disk in sequence, if the drive is read
sequentially starting with the first available storage address. The boot disk is typically
the same hard disk or solid-state drive that contains your operating system. You can
change the boot disk by configuring the BIOS or interrupting the boot process with a
key sequence (often indicated on the boot screens).

5. The BIOS confirms there's a bootstrap loader, or boot loader, in that first sector of the
boot disk, and it loads that boot loader into memory (RAM). The boot loader is a
small program designed to find and launch the PC's operating system.

6. Once the boot loader is in memory, the BIOS hands over its work to the boot loader,
which in turn begins loading the operating system into memory.

7. When the boot loader finishes its task, it turns control of the PC over to the operating
system. Then, the OS is ready for user interaction.

Step-by-step explanation

Boot sequence

Upon starting, an IBM-compatible personal computer's x86 CPU executes, in real mode, the


instruction located at reset vector (the physical memory address FFFF0h on 16-bit x86
processors and FFFFFFF0h on 32-bit and 64-bit x86 processors), usually pointing to the
firmware (UEFI or BIOS) entry point inside the ROM. This memory location typically
contains a jump instruction that transfers execution to the location of the firmware
(UEFI or BIOS) start-up program. This program runs a power-on self-test (POST) to check
and initialize required devices such as DRAM and the PCI bus (including running embedded
ROM). The most complicated step is setting up DRAM over SPI, made more difficult by the
fact that at this point memory is very limited.

After initializing required hardware, the firmware (UEFI or BIOS) goes through a pre-
configured list of non-volatile storage devices ("boot device sequence") until it finds one that
is bootable. A bootable MBR device is defined as one that can be read from, and where the
last two bytes of the first sector contain the little-endian word AA55h, found as byte
sequence 55h, AAh on disk (also known as the MBR boot signature), or where it is otherwise
established that the code inside the sector is executable on x86 PCs.

Once the BIOS has found a bootable device it loads the boot sector to linear
address 7C00h (usually segment: offset 0000h:7C00h, but some BIOSes erroneously
use 07C0h:0000h) and transfers execution to the boot code. In the case of a hard disk, this is
referred to as the Master Boot Record (MBR) and is by definition not operating-system
specific. The conventional MBR code checks the MBR's partition table for a partition set
as bootable (the one with active flag set). If an active partition is found, the MBR code loads
the boot sector code from that partition, known as Volume Boot Record (VBR), and executes
it.

The VBR is often operating-system specific; however, in most operating systems its main
function is to load and execute the operating system kernel, which continues start-up.

If there is no active partition, or the active partition's boot sector is invalid, the MBR may
load a secondary boot loader which will select a partition (often via user input) and load its
boot sector, which usually loads the corresponding operating system kernel. In some cases,
the MBR may also attempt to load secondary boot loaders before trying to boot the active
partition. If all else fails, it should issue an INT 18h BIOS interrupt call (followed by an INT
19h just in case INT 18h would return) in order to give back control to the BIOS, which
would then attempt to boot off other devices, attempt a remote boot via network or
invoke ROM BASIC.

Some systems (particularly newer Macintoshes and new editions of Microsoft Windows)


use Intel's EFI. Also core boot allows a computer to boot without having the firmware/BIOS
constantly running in system management mode. 16-bit BIOS interfaces are required by
certain x86 operating systems, such as DOS and Windows 3.1/95/98 (and all when not booted
via UEFI). However, most boot loaders retain 16-bit BIOS call support.

QUESTION :2

WHY IS BOOTSTRAP PROGRAM STORED ON ROM/EPROM BUT


NOT RAM?

The bootstrap loader is stored in the ROM because It is a non-volatile memory meaning that
that the information is not lost when the computer shuts down. In addition is has a small
memory size and is used to only keep permanent data which are necessary to bring about
basic functions i.e. bootstrap loader.

Common questions

Powered by AI

The BIOS's primary function is to initialize the hardware and load the boot loader from the boot disk into RAM. In contrast, the boot loader's role is to locate and load the operating system into memory after being loaded by the BIOS. Once the BIOS completes its duties and identifies the boot loader, it transfers control to the boot loader to continue the boot process until the operating system is ready for user interactions .

The BIOS determines which device to boot first by checking the boot device sequence stored in its settings. It sequentially scans the configured list of storage devices to find one that is bootable, typically looking for a device with a Master Boot Record (MBR) containing the boot signature AA55h. If no bootable device is found, the BIOS will attempt to hand control over to alternative boot devices, attempt a remote boot, or finally execute a BIOS interrupt call to give another chance to boot from possible devices or display error messages .

The bootstrap program is stored on ROM or EPROM because these types of memory are non-volatile, meaning they retain their data even when the computer is powered off. This persistence is crucial for the bootstrap program, which needs to be available to load the operating system every time the computer starts. RAM, being volatile, loses its data when the power is turned off and hence is unsuitable for storing the bootstrap loader .

The BIOS, or Basic Input-Output System, controls the boot process of a PC. It is responsible for initializing hardware components and loading the boot loader from the boot disk's first sector into RAM. The BIOS also provides a configuration interface for hardware and can update firmware. This initial process ensures that the operating system can be loaded into memory and start running for user interaction .

If the Master Boot Record (MBR) does not contain valid boot code, it may attempt to load a secondary boot loader that can manage and select a partition to load its boot sector and continue booting the operating system kernel. If this secondary option fails, the system might call a BIOS interrupt hoping to revert to BIOS controls or try alternative boot processes, such as booting from another device or a network .

The Master Boot Record (MBR) is critical for starting the operating system because it contains the boot loader code and partition table. Upon finding an active partition, the MBR loads the Volume Boot Record (VBR) from that partition to execute it. This VBR code is often specific to an operating system and continues the process of starting the operating system kernel. If the active partition is invalid or missing, the MBR can load a secondary boot loader to manage partitions and initiate the launch sequence for the operating system kernel .

Following the POST, the BIOS typically displays information about the BIOS manufacturer, processor specifications, RAM, and detected drives. Many modern PCs instead display a splash screen with the manufacturer's logo. Users can modify this display by accessing BIOS settings to disable the splash screen and display detailed text information instead .

The INT 18h BIOS interrupt call is significant for providing a fallback mechanism in the booting process. When the BIOS and MBR are unable to find valid bootable code, the INT 18h interrupt attempts to regain control by enabling the BIOS to retry booting from alternate devices, support network booting or invoke a minimal operating environment like ROM BASIC. This allows the BIOS to troubleshoot and potentially recover from boot failures .

Users can customize the boot process through the BIOS configuration interface by setting the order of boot devices, adjusting hardware component settings like processor speed, and altering display settings during the boot process (e.g., enabling detailed information display instead of a splash screen). These changes require the user to enter the BIOS setup interface, often accessed by pressing a specific key during startup, and altering the settings according to personal preferences .

The power-on self-test (POST) is a diagnostic testing sequence run by the BIOS when the computer is initially powered on. It checks the essential hardware components, like RAM and PCI bus, for failures before proceeding with the boot sequence. A successful POST returns a single beep sound, whereas a failure is indicated by specific beep error codes that help identify the problematic hardware component .

You might also like