Overview A) Power on or reset B) 1st stage boot loader C) 2nd stage boot loader D) Operate system.

Slides:



Advertisements
Similar presentations
PC bootup Presented by: Rahul Garg (2003CS10183) Rajat Sahni (2003CS10184) Varun Gulshan(2003CS10191)
Advertisements

Linux Boot Loaders. ♦ Overview A boot loader is a small program that exists in the system and loads the operating system into the system’s memory at system.
Booting and Shuting Down WeeSan Lee. Roadmap Bootstrapping Boot Loaders Startup/Init Scripts Reboot & Shutdown Q&A.
18th August, 2005 CS431 Course Presentation 1 Booting of a Computer System Harpreet Singh.
Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Linux+ Guide to Linux Certification Chapter Nine System Initialization.
Linux Booting Procedure
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Booting the Linux Kernel Dr. Michael L. Collard 1.
DIT314 ~ Client Operating System & Administration CHAPTER 4 CONFIGURING HARDWARE DEVICES AND STARTUP PROCESS Prepared By : Suraya Alias.
The power supply performs a self-test. When all voltages and current levels are acceptable, the supply indicates that the power is stable and sends the.
Startup. Major phases  BIOS  MBR program  Boot loader (Partition boot program )  OS’s kernel Loader  CPU always starts running at x’FFFF0’=1,048,560.
Booting And Shutting Down. Bootstrapping  Bootstrapping is standard term for “starting up a computer”  During bootstrapping the kernel is loaded into.
计算机系 信息处理实验室 Lecture 5 Startup and Shutdown
EET 450 Chapter 2 – How hardware and Software Work Together.
CS2422 Assembly Language & System Programming November 2, 2006.
System initialisation
The Boot process. Booting on a PC POST –Hardware test – may not run CPU ie fan not working CPU start-up –Jumps to fixed location to execute BIOS code.
© 2004 Cisco Systems, Inc. All rights reserved. Managing Your Network Environment Managing Router Startup and Configuration INTRO v2.0—9-1.
Tel : 同济大学软件学院 UEFI 与固件程序设计.
hardware and operating systems basics.
How Hardware and Software Work Together
Chapter 5 Basic Input/Output System (BIOS)
Booting in Windows XP Presented and Designed By: Luke Ladd.
Basic Input Output System
COMPUTER MANAGEMENT. System start-up Before switching on a computer, make sure that all the components are properly connected. The computer must be connected.
Linux Booting Procedure
By the end of this lesson you will be able to explain: 1. What is the BOOT process 2. A Cold Boot 3. A Warm Boot.
Booting. Booting is the process of powering it on and starting the operating system. power on your machine, and in a few minutes your computer will be.
What is system software and what are its parts? Programs that control operation of computer Two parts are operating systems utility programs.
From UEFI Shell to Linux - UEFI Linux BootLoader Zhang Rui Software Engineer Sep 28 th 2011.
Hardware Boot Sequence. Vocabulary BIOS = Basic Input Output System UEFI = Unified Extensible Firmware Interface POST= Power On Self Test BR = Boot Record.
DUAL BOOTING  KNOWING LEGACY BIOS & UEFI FIRMWARE  KNOWING MBR & GPT PARTITION D.BHARANI AM.EN.U4CSE12013.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
Operating Systems Lab. (#1) University of Tehran – ECE Dept. Fall 2005 Reza Shokri
Linux Startup Process Presenter: Dipu Gupta.
Basic Input/Output System (BIOS). 5.1Introduction to BIOS Basic Input / Output System (BIOS) boot the computer by providing a basic set of instructions.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
Genesis: From Raw Hardware to Processes Andy Wang Operating Systems COP 4610 / CGS 5765.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
The Linux Operating System R.Bigelow. What is an Operating System An operating system is a collection of programs that manage a computer's resources.
Adding a Hard Drive. BIOS / UEFI The Unified Extensible Firmware Interface (UEFI) defines a software interface between an operating system and platform.
POST and The Boot Process
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
Computer Technician POST and The Boot Process ©UNT in Partnership with TEA1.
This courseware is copyrighted © 2016 gtslearning. No part of this courseware or any training material supplied by gtslearning International Limited to.
OS Boot Sequence and File System (implication to “Boot Sector Viruses”) Department of Computer Science Southern Illinois University Edwardsville Spring,
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
Chap- 2 BOOTING & SHUTDOWN LINUX SYSTEM Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 1.
IT Chapter 2 Part A How Computers Work Input, process, output, and storage The operating system helps the computer perform four basic operations,
Introduction to Operating Systems Concepts
Tech Level Cyber Security
The Boot Process The process of bringing the system from an "off" status to a running state is known as “booting”. The boot process takes place in four.
GRUB 2 Dave Soergel.
Chapter Objectives In this chapter, you will learn:
BIOS & CMOS.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
TOPIC 6: SYSTEM START-UP AND CONFIGURATION
Structure of Unix OS.
Computer System Structures
Key Terms By: Kelly, Jackson, & Merle
Booting Up 15-Nov-18 boot.ppt.
Genesis: From Raw Hardware to Processes
The Boot Process The process of bringing the system from an "off" status to a running state is known as “booting”. The boot process takes place in four.
SUSE Linux Enterprise Desktop Administration
BIOS Chapter 6.
Linux Architecture Overview.
Lecture 10 review Booting sequence in Brief
The Boot Process The process of bringing the system from an "off" status to a running state is known as “booting”. The boot process takes place in four.
Presentation transcript:

Overview A) Power on or reset B) 1st stage boot loader C) 2nd stage boot loader D) Operate system

Power on or reset -The chipset sends a reset signal to the CPU until it recives a power good signal from power suply -The CPU loads the bios boot program at address FFFF0h (CS:IP F000:FFF0) at the end of the 1MB system memory (real mode access) -The CPU jumps to the real BIOS startup program

1st stage boot loaders The 1st stage boot loader perform initial devices setup to load the 2nd stage boot loader and there are few ones: ● BIOS ● UEFI ● OpenBIOS ● OpenBoot ● SLOF

Basic Input Output System (BIOS) ● Checks the CMOS (Its own ROM) ● Loads interrupt handlers ● Checks if its a cold boot or reboot (1234h at memory address 0000:0472) ● Performs the POST (PowerOn Self Test) if is a cold boot ● Loads the video card's BIOS ● Checks for other device's BIOS ● Displays startup screen ● More checks and error display ● Performs a hardware inventory ● Initializes PnP devices if supported ● Finds boot device, loads the MBR into memory and jumps to the boot code

BIOS: see also ● 1- Full list of BIOS interrupts and services ● 2- ess BIOS addresses ● 3- Full list of BIOS interrupts and type (Hard or soft) ● 4- The interrupt used to load the MBR but it does low level disk services

[Unified] Extensible Firmware Interface ([U]EFI) ● Software interface between OS and firmware ● Advantages ● Ability to boot from large disks (over 2 TiB) ● Faster boot-up ● CPU-independent architecture ● CPU-independent drivers ● Flexible pre-OS environment ● Modular design ● Replace MBR by GUID Partition Table (GPT) ● EFI provides a shell environment. The shell can be used to execute other EFI applications

Other 1st stage boot loaders ● OpenBIOS: ● OpenBoot: ● SLOF:

2nd stage boot loaders The second stage boot loaders can read from hard drive partitions, performs the requirements to load and give control to the OS and there are many: ● LILO ● GRUB ● Windows loader ● ….

GRUB and MBR GRUB must fit into 446 bytes because

GRUB2: core.img ● The code in MBR loads the core.img file placed just after MBR ● Configures PXE, nfs, LVM or others if needed ● Loads and execute the module /boot/grub/normal.mod

GRUB2: normal.mod ● Registers command menuentry ● Loads parser.grub usualy is /boot/grub/sh.mod ● Reads /boot/grub/grub.cfg and pass it to the parser ● Shows the menu to the user if required ● Passes the contents of the {…} block for the booting menu-entry ● Invokes the “boot” command from the boot.mod module, which loads the kernel image to memory an executes it

Linux: startup routine ● Startup routine setup minimal hw, decompress the kernel, loads initrd image and boots the kernel

Linux: continuation ● Initilizes devices ● Mounts initrd if any ● Boots the rest of the kernel ● Starts idle process for each CPU ● Pre-emptive scheduler is started ● Mounts real root if initrd is used

Linux: init function ● This function creates an init thread ● Is the 1st user space process (PID=1) ● Every process started by a user is child of init ● Executes /sbin/init or the user specified program ● /sbin/init performs: – reads /etc/inittab – Runs boot scripts – switches to default runlevel

Linux: see also ● Nice details on how kernel boot works

Resume

References ● 1- ce-c.html ● 2- ● 3- ● 4- mware_Interface ● 5- ion/linux/Booting_Linux_on_x86_with_Grub2.html ● 6- linuxboot/