PC Architecture Fundamentals

Slides:



Advertisements
Similar presentations
MUHAMMAD AHMED HUSSAIN
Advertisements

BIOS & CMOS To Navigation page.
Chapter 2 How Hardware and Software Work Together.
BIOS (Basic Input Output Service) Contains system data used by the ROM BIOS service routines. Serves as a standardized communication interface between.
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.
PC BIOS and CMOS.
Motherboard, BIOS and POST The external data bus connects devices on the motherboard together. Everything is also connected to the address bus. These busses.
Basic Input Output System
Parts & Functions of a Computer. 2 Functions of a Computer.
LECTURE 14 Operating Systems and Utility Programs
COMPUTER HARDWARE ***EXPLORED***
S3 Computer Literacy Computer Hardware. Overview of Computer Hardware Motherboard CPU RAM Harddisk CD-ROM Floppy Disk Display Card Sound Card LAN Card.
Parts and usage. Motherboard is the most important component in any personal computer. It contains almost every important elements of the computer. Sometimes.
System Configuration Chapter 3. Objectives Distinguish between the various methods used to configure a computer Describe how to replace a motherboard.
1 Chapter 2 ROUTER FUNDAMENTALS By: Tassos Tassou.
A+ Guide to Managing and Maintaining your PC, 6e Chapter 1 Introducing Hardware.
Chapter 2 How Computers Work.
Computer Maintenance Introduction to PCs: How Computers Work 1 Copyright © Texas Education Agency, All rights reserved.
Host and Application Security Lesson 4: The Win32 Boot Process.
Computer Startup Sequence Overview
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
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.
Configuration Overview The BIOS (basic input/output system) is an important motherboard component. The BIOS has the following functions: Holds and executes.
Computer Maintenance Unit Subtitle: Basic Input/Output System (BIOS) Excerpted from 1 Copyright © Texas Education Agency, All.
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
Introduction to Computing: Lecture 4
Organization of a computer: The motherboard and its components.
The Basic Input/Output System Unit objectives: Access the BIOS setup utility, change hardware configuration values, and research BIOS updates Explain the.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 1 Introducing Hardware.
PC Maintenance: Preparing for A+ Certification Chapter 9: Working with the BIOS Setup Program.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 2 How an OS Works with Hardware and Other Software.
DOS  In the 1980s or early 1990s, the operating system that shipped with most PCs was a version of the Disk Operating System (DOS) created by Microsoft:
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.
BIOS. Accessing System BIOS You can use the System Setup utility to change variable BIOS information, such as the type of hard drive you have installed.
The Computer Systems. Computer System CPU Is the brain of the PC. All program instructions are run through the CPU Control Unit This decodes and executes.
Bios Utkan Sürgevil
Version 3 Troubleshooting PC Hardware Module 13. Version 3 2 Troubleshooting Basics Effective troubleshooting uses techniques to diagnose and fix computer.
Laface Operating System Design Booting a PC to run a kernel from Low memory VGA display.
What is a BIOS? * basic input/output system (BIOS), also known as the System BIOS * The BIOS software is built into the PC on a non-volatile ROM and is.
Motherboards The Main Printed Circuit Board Inside The PC That Contains and Controls The Components That Are Responsible For Processing Data.
BIOS Training Eric Chiu AE Dept What is BIOS ? Pronounced "bye-ose," an acronym for Basic Input/Output System. The BIOS is built-in software.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
CHAPTER 6 Motherboard and ROM BIOS. Chapter Overview Computer Cases Motherboards ROM BIOS.
Basic Input/Output System
Basic Input/Output System (BIOS). 5.1Introduction to BIOS Basic Input / Output System (BIOS) boot the computer by providing a basic set of instructions.
BIOS (Basic Input Output Service) Contains system data used by the ROM BIOS service routines. Serves as a standardized communication interface between.
Suleiman Mohammed (mcpn,mncs)
CompTIA A+ Guide to Managing & Maintaining Your PC By: JEAN ANDREW Computer Maintenance Chapter 1: Computer Basics Knowledge.
POST and The Boot Process
Computer Maintenance I
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 29 – The ROM/BIOS.
Lesson 2 Component Overview Core Hardware Fundamentals.
Introduction to PCs: How Computers Work
January 8, 2001 SPC Tutorial 1 Washington WASHINGTON UNIVERSITY IN ST LOUIS Agenda 9:00 SPC Hardware -- John DeHart 9:45 SPC Software -- John DeHart 10:30.
Computer Technician POST and The Boot Process ©UNT in Partnership with TEA1.
Computer Maintenance Chapter Five BIOS and CMOS Dr. Mohammad AlAhmad.
NON STANDARD HARDWARE By the end of this lesson you will be able to: 1. Identify non standard computer hardware 2. Understand ACRONYMS used to describe.
IT Chapter 2 Part A How Computers Work Input, process, output, and storage The operating system helps the computer perform four basic operations,
Chapter Objectives In this chapter, you will learn:
BIOS & CMOS.
Computer Maintenance Unit Subtitle: Basic Input/Output System (BIOS)
BIOS Chapter 6.
Introduction to Computing
Motherboard BIOS and Troubleshooting
Introduction to BIOS Prof. Shamim Ahmad Hakim
Presentation transcript:

PC Architecture Fundamentals BIOS & POST Chapter 2 Copyright © 1996-2003 Intel Corp. Intel Architecture Technical Training

PC Architecture Fundamentals BIOS & POST OBJECTIVES: Upon completion of this topic, the participant will be able to do the following: Identify areas of memory reserved for System BIOS. Illustrate the functional hierarchy of H/W, BIOS, & O/S Recognize the functions of POST. Recognize the functions of the Runtime BIOS. IATT Web Site: http://iatt.intel.com Intel Architecture Technical Training

PC Architecture Fundamentals BIOS & POST Overview System BIOS A set of programs stored in non-volatile memory (Firmware Hub) on the motherboard. Non-volatile memory is not lost when the power is turned off. Contains two components. Power On Self Test (POST) a built in diagnostic program Runtime Basic Input/Output System (BIOS) the bottom-most software layer which interfaces with the hardware and operating system. Firmware is a combination of software and hardware. Program stored in ROM Processor Host Bus 133 MHz 64-bit HubLink Bus FWH PCI Bus 33 MHz 32-bit AGP Bus System Memory Audio USB LAN IDE South Bridge (ICH) Keybrd Mouse Floppy Serial Parallel Clock Gen Host Clock PCI Clock USB Clock Hublink Clock LPC Bus SM Bus CNR North Bridge (MCH) SIO Intel Architecture Technical Training

PC Architecture Fundamentals BIOS Memory Map Loaction System BIOS is decoded at the top of the memory map (4 GB) and also in the 1st 64K block below 1Meg (F0000h-FFFFFh) for compatibility. The BIOS gets shadowed (copied) into DRAM after memory has been tested and verified to be functional. Shadowing provides faster access to the BIOS during run time. ADDRESS DESCRIPTION FUNCTION FFFF FFFF FF00 0000 8MB BIOS AREA RESERVED FOR SYSTEM FEFF 0000 0010 FFF0 EXTENDED SYSTEM MEMORY ON BOARD DRAM 0010 FFEF 0010 0000 HIGH MEMORY AREA ON BOARD DRAM 1 Meg 000F FFFF 000F 0000 64K BIOS OR DRAM ROM BIOS OR RAM 000E FFFF 000E 0000 64K ROM OR DRAM BIOS EXTENSION OR RAM 000D FFFF 000C 0000 128K I/O EXPANSION ROM RESERVED FOR ROM ON I/O ADAPTERS 000B FFFF 000A 0000 128K VIDEO RAM DISPLAY BUFFER 0009 FFFF 0000 0000 640K SYSTEM MEMORY REAL MODE ON BOARD DRAM Intel Architecture Technical Training

PC Architecture Fundamentals The System BIOS is decoded in the 1st 64K block of memory (0000-FFFF hex). True or False False Top of memory and the 1st 64K block below 1MB, between F0000h and FFFFFh for compatibility Intel Architecture Technical Training

Components of the System BIOS PC Architecture Fundamentals Ch-2 Components of the System BIOS POST Executes at Power-On & System Reset Initialize ALL components which need to be programmed so that system can boot up (e.g., CPU, Memory, Chipsets, Timer, DMA Ctlr, Video, Floppy, HDD, USB, etc..) BIOS Setup Utility Executes only when press “Hot Key” sequence to run SETUP Runtime BIOS Always available as an interface between hardware & software Intel Architecture Technical Training

PC Architecture Fundamentals Functional Hierarchy The Runtime BIOS part of the Firmware Hub code provides the Operating System* (O/S) and the programs access to the system devices. APPLICATIONS O/S: [BIOS / KERNEL / COMMAND PROCESSOR] SYSTEM BIOS (RESIDENT) HARDWARE The Runtime BIOS isolates the O/S and applications from low- level hardware and provides low level interaction with hardware. Runtime BIOS services perform I/O by directly addressing the H/W registers on the I/O chips System BIOS is sometimes called the resident portion since it is built into each PC by the manufacturer. A secondary (optional) or non-resident BIOS codes may read into DRAM from disk when the P/C loads an O/S. Layered Operating System ( *Non-Plug & Play O/S--e.g. DOS, Win 3.1) Intel Architecture Technical Training

PC Architecture Fundamentals Fill in the boxes with the proper labels on the left? APPLICATIONS O/S: [BIOS / KERNEL / COMMAND PROCESSOR] SYSTEM BIOS (RESIDENT) HARDWARE O/S: [BIOS / KERNEL / COMMAND PROCESSOR] SYSTEM BIOS (RESIDENT) HARDWARE Intel Architecture Technical Training

PC Architecture Fundamentals POST (Power-On-Self-Test) When system is reset, the CPU fetches, decodes, and executes the first instructions from address fffffff0h. The first instruction is typically a far jump to the main POST code located just below 1 MB. The CPU executes the code fetched from the System BIOS and the POST is started. POST detects, checks, & initializes installed components. POST configures the system according to battery backed CMOS configuration RAM. The BIOS uses various hardware configuration parameters that are stored in non-volatile CMOS RAM (these are preserved even when the machine is off). During POST, the System BIOS provides access to a Set- up Program to examine and alter CMOS settings. See Appendix for more Information Intel Architecture Technical Training

PC Architecture Fundamentals POST (Power-On-Self-Test) POST performs Initialization and Resource Allocation. Performs Initialization of sub-systems Processor, Chipset(s) & Memory Test sub-systems for proper integrity Memory & I/O Subsystems Performs sub-system configuration (Boot Devices) Performs Plug and Play resource allocation PCI devices, AGP, P2P (PCI-PCI bridges) etc.. Initializes installed sub-systems and external devices Keyboard, Mouse, Floppy, COM Ports, LPT, Video etc.. Initiates Operating System boot up Software Interrupt 19 hex (INT19) bootstrap loader Intel Architecture Technical Training

PC Architecture Fundamentals POST (Power-On-Self-Test) The POST runs through a series of tests to determine whether the machine is functional. POST Checks the System CPU Registers Keyboard Controller RTC Rd/Wr Check Sys Bios Checksum Programmable Interval Timer DMA Chips & Page Registers Ram Refresh First 64K Ram and Parity Test Jumps to the Bootstrap Loader (INT 19h) and gives control to the Boot Sector Code. Initialize Master/ Slave DMA Initialize Master/Slave PIC Loads Interrupt Vectors RTC Checksum/Config. Screen Initialization & ROM Search Check & Initialize remaining Memory. Intel Architecture Technical Training

POST (Power-On-Self-Test) PC Architecture Fundamentals Ch-2 POST (Power-On-Self-Test) POST normally stops on critical failures and indicates errors by these messages: If the video is operational, POST display a message. e.g.– “A: Drive Error No response from diskette drive” or “KB/Interface Error Keyboard interface test failed” In some cases the problem is detected so early that the BIOS cannot access the video card to display a message In this case the BIOS will produce a beeping pattern on the speaker to tell you what the problem is. BEEP CODES are BIOS VENDOR dependent. BEEP CODES are useful when you do not have a POST Card or other Diagnostic Tool. Not all POST codes have BEEP codes. A POST Card will display current POST CODE on LED’s. Intel Architecture Technical Training

Example Beep Code Description PC Architecture Fundamentals Ch-2 Example Beep Code Description Beep Description 1 Refresh failure 2 Parity cannot be reset 3 First 64 KB memory failure 4 Timer not operational 5 Not used 6 8042 GateA20 cannot be toggled 7 Exception interrupt error 8 Display memory R/W error 9 Not used 10 CMOS Shutdown register test error 11 Invalid BIOS (e.g. POST module not found, etc.) Intel Architecture Technical Training

POST (Power-On-Self-Test) PC Architecture Fundamentals Ch-2 POST (Power-On-Self-Test) During POST, the BIOS generates diagnostic progress codes (POST codes) to I/O port 80h. POST codes are displayed with an add-in card (a.k.a. POST card) plugged into a PCI slot. If the POST fails, execution stops & the last generated POST code is left at port 80h. This code is useful for determining the point where an error occurred. In addition to displaying POST codes some boards also shows power supply voltage status on the motherboard. Intel Architecture Technical Training

POST Routines - Partial List PC Architecture Fundamentals Ch-2 POST Routines - Partial List The System BIOS initializes and tests the system and writes diagnostic progress codes to I/O port 80h. Typical Code Checkpoints (partial list) D0 - KBC, RTC enabled. Init code Checksum verification starting. D1- Kybd ctlr BAT test, CPU ID saved, going to 4 GB flat mode. D3 - Chipset init. start memory refresh, do memory sizing. D6 - Check recovery mode and verify main BIOS checksum. D8 - Uncompress the main BIOS module. D9 - Copy main BIOS image to F000 shadow RAM. 1A - Memory Refresh toggling. Going to check 15 µs on/off time. 30 - Display memory R/W test passed. 49 - Amount of memory below 1M found and verified. 54 - CPU in real mode. Going to disable gate A20 line... 8F - Hard disk controller reset done. Floppy setup to be done next Intel Architecture Technical Training

Example POST Sequence - AMI BIOS PC Architecture Fundamentals Ch-2 Example POST Sequence - AMI BIOS POST code = d0 POST code = d1 POST code = d2 POST code = d3 POST code = d4 POST code = d5 POST code = d6 POST code = d7 POST code = d8 POST code = d9 POST code = db POST code = dd POST code = df POST code = e0 POST code = e1 POST code = e2 POST code = e3 POST code = e4 POST code = e6 POST code = e7 POST code = e9 POST code = ea POST code = eb POST code = ec POST code = ed POST code = 23 POST code = 24 POST code = d POST code = e POST code = 10 POST code = 25 POST code = f0 POST code = f1 POST code = f2 POST code = 28 POST code = 29 POST code = 2a POST code = 2b Continues for a few hundred more writes to I/O port 80h Intel Architecture Technical Training

PC Architecture Fundamentals During POST, the BIOS generates diagnostic progress codes (POST codes) to I/O port ___. 80h Intel Architecture Technical Training

PC Architecture Fundamentals BIOS (Basic Input/Output System) Once O/S has booted, the Runtime BIOS (Basic Input Output System) interacts directly with the hardware. The Runtime BIOS is the bottom-most software layer in a PC and functions as the interface between the hardware and the other layers of software (O/S, Applications, etc), isolating them from the details of the hardware. Low level interface to devices such as Keyboard, Video, Printer, Disk and diskette, and Com. Always available as an interface between hardware and software. The runtime BIOS also contains system Interrupt Routines such as Keyboard Interrupt, Timer Interrupt, Real-Time-Clock Interrupt, etc. Intel Architecture Technical Training

BIOS (Basic Input/Output System) PC Architecture Fundamentals Ch-2 BIOS (Basic Input/Output System) RUNTIME BIOS SERVICES EXAMPLE Example 1 -- Initializing the COM PORT to Baud Rate = 2400; No Parity; 1 Stop Bit; 8 Data Bits MOV AH,00 ;INITIALIZATION FUNCTION MOV AL,10100011B ;2400, NP,1 S, 8 DATA MOV DX,0 ;COM1 INT 14H ;BIOS INTERRUPT Example 2 -- Change Video Mode (e.g., to 640 x 480) MOV AH,00 ;Set Video Mode Function MOV AL,12h ;Select 640 x 480 INT 10H ;Change Video Mode Intel Architecture Technical Training

PC Architecture Fundamentals Chapter 2 Quiz 1) Which location in the memory map is reserved for the System BIOS? A) In the first 64K block of system memory. B) In the first 64K block below 1 Mega Byte 2) When the system is ______, the CPU fetches, decodes, and executes the first instructions from address fffffff0h. 3) Which is NOT a component of the System BIOS? A) Runtime BIOS B) Shadow BIOS C) Setup Program D) POST reset Intel Architecture Technical Training

PC Architecture Fundamentals Chapter 2 Quiz 4) Which of the following is/are characteristics of the POST? A) It generates video display messages for all POST codes. B) It normally stops on critical POST failures. C) There is a corresponding beep code for every POST code. D) POST codes & Beep codes are identical for all BIOS vendors. 5) Which of the following is/are functions of the Runtime BIOS component (not the POST component) of the System BIOS? A) Detects, checks, initializes installed components. B) Performs sub-system configuration C) Provides low level interaction with hardware. D) Checks the 1st 64K RAM. Intel Architecture Technical Training

PC Architecture Fundamentals REVIEW & SUMMARY The functional hierarchy: BIOS services perform I/O by directly addressing hardware registers on I/O chips. The SYSTEM BIOS is called the resident portion and is built into each PC by the manufacturer. The Runtime BIOS gets shadowed (copied) into DRAM after memory has been tested and verified to be functional. APPLICATIONS O/S: [BIOS / KERNEL / COMMAND PROCESSOR] SYSTEM BIOS (RESIDENT) HARDWARE Intel Architecture Technical Training

PC Architecture Fundamentals REVIEW & SUMMARY The functions of POST POST is a built-in diagnostic program that detects, checks, & initializes installed components & configures the system according to the CMOS configuration RAM. POST writes diagnostic progress codes to I/O port 80h. POST normally stops on critical failures. The functions of the Runtime BIOS The Runtime BIOS (Basic Input Output System) is a low level interface to devices such as Keyboard, Video, Printer, Disk and diskette, and Com. Runtime BIOS functions as the interface between the hardware and the O/S and applications, isolating them from the details of the hardware. End of Chapter 2 Intel Architecture Technical Training

PC Architecture Fundamentals Appendix - Far Jump Animation Return to previous slide Intel Architecture Technical Training