meljun cortes computer organization_lecture_chapter5

38
Chapter 5 BIOS and CMOS MELJUN CORTES MELJUN CORTES

Upload: meljun-cortes

Post on 16-Feb-2017

24 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: MELJUN CORTES   computer organization_lecture_chapter5

Chapter 5BIOS and CMOS

MELJUN CORTESMELJUN CORTES

Page 2: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

OverviewIn this chapter, you will learn to

Explain the function of BIOS

Distinguish among various CMOS setup utility options

Describe option ROM and device drivers

Troubleshoot the power-on self test (POST)

Page 3: MELJUN CORTES   computer organization_lecture_chapter5

We Need to Talk

Historical/Conceptual

Page 4: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Bridge IntroductionData flows through the computer

Between CPU and RAMBetween CPU and videoBetween CPU and other devices

Bridges are used to connect the piecesNorthbridge

Bridge closest to the CPU Southbridge

The farther bridge

Page 5: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Northbridge & Southbridge

NorthbridgeChip or chips that

connect the CPU to video and/or memory

SouthbridgeHandles all of the inputs

and outputs to the many devices in the PC

• A chipset is a set of Northbridge and Southbridge chips that work together

• Explored in more depth in Chapter 7

Page 6: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Data FlowNorthbridge and Southbridge

have connectivity with all devicesNot the same in all systems

Page 7: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Chipset

Northbridge

Southbridge

Page 8: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Basic Input/Output System (BIOS)

Bridges connect the devicesBut without a program, they don’t know how

to communicate

A special kind of program is required to enable the CPU to talk to other devices

A Flash ROM chip stores these programsThese programs are collectively known as

the basic input/output service (BIOS)

Page 9: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Talking to the Keyboard

The keyboard talks to the external data bus Uses the keyboard controller chip (8042)

Page 10: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

BIOSEach program is called a servicePrograms stored on Flash ROM chips are known

as firmwarePrograms stored on erasable media are called

softwareKeyboard controller

chip

Page 11: MELJUN CORTES   computer organization_lecture_chapter5

CMOS

Essentials

CompTIA A+Essentials

Page 12: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

CMOSSeparate chip from ROM BIOS

Volatile (kept alive by battery)

Stores only changeable data Not programsActs as clock to keep data current

Customizable via SETUP program

Often on Southbridge

Page 13: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

BIOS vs. CMOSBIOS

Programs

Non-volatile (stays same after power off)

Can be changed by “flashing”

Typically 64 K of programs (though Flash ROM is much bigger)

Often a separate chip

CMOSData

Volatile (kept alive with battery)

Changed via CMOS setup

Typically 128 K of data (though chip size is typically 64 K)

Often on Southbridge

Page 14: MELJUN CORTES   computer organization_lecture_chapter5

Updating CMOS

• Updated via BIOS program• Three primary BIOS brands

– American Megatrends (AMI), Award, Phoenix– To enter setup, press key combination

(may be Del, ESC, F1, F2, CTRL-ALT-ESC, CTRL-ALT-INS, CTRL-ALT-Enter, or CTRL-S)

Page 15: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

CMOS Setup • Main menu

– Access to all submenus

Page 16: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Standard CMOS Features• Clock, hard drives, floppy drives

Page 17: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

SoftMenu SetupNormally set to Default or Auto for all

Page 18: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Advanced FeaturesPOST, boot order

Page 19: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Power ManagementUse to enable/disable power-saving

features

Page 20: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

PnP/PCIRarely need to manipulate on today’s PCs

Page 21: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Set PasswordLocks access to CMOS settings

Prevents non-techs from changing key settings

Page 22: MELJUN CORTES   computer organization_lecture_chapter5

Option ROM and Device Drivers

Page 23: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

BYOBComputer makers could not predict all the new

types of hardware Ways to bring your own BIOS (BYOB) were

invented:Option ROM is a BIOS chip embedded on the

adapter card itself – (i.e., video cards)Most new hardware devices use device drivers to

tell the BIOS how to talk to the CPUMost devices with onboard BIOS use it only for

internal needs (internal function) and use a device driver to talk to the CPU

Page 24: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Device Drivers A device driver is a file that contains the

BIOS commands necessary to communicate with the devices they supportLoaded into RAM when the system boots

All devices come with their own device drivers

Page 25: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

BIOS, BIOS, EverywhereAll hardware needs a program to allow CPU

to communicate with it

Could be on motherboard ROM

Could be on PC card ROM

Could be loaded via a driver

Could be loaded into RAM at boot

Page 26: MELJUN CORTES   computer organization_lecture_chapter5

Power-On Self Test (POST)

CompTIA A+Technician

IT Technician

Page 27: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Power-On Self Test (POST) The power-on self test (POST) is a special

program stored on the ROM chipInitiated when the computer is turned on or is

resetChecks out the system every time the computer

boots

Communicates errorsBeep codesText errors

Page 28: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Beep Codes If video is determined to be missing or faulty

One long beep followed by three short beeps

If everything checks outOne or two short beeps

If RAM is missing or faultyBuzzing noise that repeats until power turned off

More complicated beep codes may be found in legacy computersCheck motherboard manual for meaning

Page 29: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Text-Based Error Message

Page 30: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

POST Cards POST cards are devices that monitor POSTs and

report on the hardware that may be causing problems

Turn the PC off, plug in the card, and reboot

POST error codes do not fix the computer – they just tell you where to look

If all else fails, replace the motherboard

Page 31: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

The Boot Process The CPU is the first component initialized

when the computer is turned on

It reads a special wire called power good once the power supply provides the proper voltage to the CPU

Every CPU has a built-in memory address with the first line of the POST program on the system ROM

Page 32: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

The Boot Process The last BIOS function called by POST is the

bootstrap loader

The bootstrap loader loads the operating system from the boot sectorSearches the floppy, CD-ROM, or the hard drive Boot order set in CMOS

The bootstrap loader generates an error if it cannot find the boot sector on the bootable disk

Page 33: MELJUN CORTES   computer organization_lecture_chapter5

Care and Feeding of CMOS/BIOS

We have met the enemy and he is us.- Pogo

Page 34: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Losing CMOS SettingsCommon errors

CMOS configuration mismatchCMOS date/time not setNo boot device availableCMOS battery state low

Common reasons for losing CMOS dataJiggling the battery while doing other workDirt on the motherboardElectrical surgesFaulty power suppliesChip creep

Page 35: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Losing CMOS SettingsIf your system keeps resetting

Replace the battery

Common symptoms of low battery

Slow running clock

Clock resetting to January 1st

Page 36: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Clearing CMOS SettingsTo clear the CMOS settings, place the shunt

on the CMOS jumperResets to factory settings

Resets password

Page 37: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved

Flashing ROMFlash ROM chips can be reprogrammed

Download program from manufacturer

Copy program to floppySome programs will run within Windows

Boot to floppy and run program

Page 38: MELJUN CORTES   computer organization_lecture_chapter5

© 2007 The McGraw-Hill Companies, Inc. All rights reserved