L2 Booting
L2 Booting
PC
CPU MBR
RAM
(RWM) VBR
VBR
BIOS runs POST i.e.
checks peripheral DMA
BIOS devices and memory
ROM locations.
PC
CPU MBR
RAM
(RWM) VBR
VBR
Copies MBR into
RAM.
Transfer control to DMA
BIOS
ROM first instruction in
MBR
PC
MBR
CPU MBR
RAM
(RWM) VBR
VBR
MBR code executes,
reads partition table
entries to identify
bootable partitions. DMA
BIOS
ROM If more than one,
presents menu for
user to select.
PC
MBR
CPU MBR
RAM
(RWM) VBR
VBR
Loads VBR of
selected bootable
partition.
Transfers control to DMA
BIOS
ROM VBR.
PC
MBR
CPU MBR
RAM
(RWM) VBR
VBR
VBR
VBR loads OS
kernel.
Kernel sets up
privilege mode, DMA
BIOS
ROM sets up device
drivers and other
initialization
PC Launches init
process which
CPU
MBR spawns into MBR
RAM other processes.
(RWM) Booting
VBR
complete.
VBR
VBR
Master Boot Record
Consists of code and partition table
Partition table is a data structure that keeps information
on disk partitions
Size of partition
Type of partition: bootable or not
Start and end of partition
MBR code reads partition table & executes bootstrap
displays bootable partitions for selection by user
Loads boot record from selected partition and transfers
control to it
• Checks integrity of I/O devices and RAM
BI • Loads Master Boot Record (MBR) from Hard disk and transfers control to
O bootstrap program
S
• Stores partition table; each partition <Bootable, type of OS, start and end
M of partition>
• Runs GRUB to let user select requisite OS
BR
G
R • Executes kernel
U
B
Ke • Starts init process
rn
el
• Spawns other processes
Ini
t
Quiz 3
LILO is abbreviation for
In terms of disk sectors, size of a MBR is
System starts in real mode or protected mode?
JMP Code VB
R
Type Size Star End
t
Secure Boot; Driver Signing Describes Secure Boot and a means of generating a digital signature for UEFI.
User Identity Describes services that describe the current user of the platform.
Secure Tech. Cryptographic hashing and key management.
Timestamp protocol, GUID and time formats, Status code and error handling,
Miscellaneous Protocols
etc.
UEFI Boot Services
This includes tasks such as finding and loading the
boot loader, initializing hardware devices, and
passing control to the operating system.
The Boot Services also provide access to hardware
devices. This allows the operating system to
interact with the computer's hardware, such as the
hard drive, memory, and network card.
UEFI Boot Services
Boot services Manage the boot process, load the operating
system, and provide access to hardware devices.
Runtime services Provide services such as date, time and
NVRAM (Non-volatile BIOS memory) access.
Secure Boot Help to prevent malware from loading when the
computer boots up.
Driver support: Support for a wide range of drivers.
File system support:Support for a wide range of file systems.
Networking support: Support for networking.
Graphical user interface (GUI): Provide a GUI for configuring
the boot process.
UEFI: Secure Booting
UEFI provides an optional “Secure Boot”.
This option can be enabled through UEFI firmware setup – this
requires user to create a password for Secure Boot database. This
database stores keys for the OS loaders that user wants to allow.
Working of Secure Boot
• The UEFI firmware stores a list of trusted keys in the Secure Boot database.
• At time of booting, the UEFI firmware verifies the signature of the OS loader
against this list.
• Booting is allowed only if the signature is valid.
• Password for Secure Boot Database is to ensure only the authorized
user can modify it.
BIOS/UEFI vendor can add keys.
Partition Table
• GUID partition table most common
now-a-days
• GUID: Globally Unique Identifiers
• LBA: Logical Block Addressing (CHS –
Cylinder/Head/Sector) was old
• GPT Header: Header identifier, CRC,
LBA of backup, # partitions, CRC
partition, First-Last LBA of primary
partition table, LBA of partition
entry, disk GUID
• Partition Entry: First LBA (little
endian), attributes, GUID
Thank You
Program Execution Environment