Boot
Sequences, The BIOS, The CMOS, and the POST
Another one of the
most critical parts of the computer you must understand is the BIOS. BIOS Stands for Basic
Input/Output System, and contains all the programming your
motherboard needs in order to boot your
computer.
The BIOS is in charge
of remembering what equipment you have inside your computer,
and how to boot that hardware so the computer can run.
Essentially, the programming inside the BIOS is the first
instructions your computer receives when it turns on. It
tells the video card to start, the hard drives to initialize,
and your keyboard how to work. Without the BIOS the
computer couldn't initialize to run your operating
system.
The BIOS is invoked
by what's known as a jump instruction. The jump
instruction is located at address FFFF0h in conventional
memory. This happens to be the first location that the
microprocessor is designed to look at and run. This in
turn runs the POST, and then performs the necessary
instructions to start the operating system.
Most BIOS's you will
come across today are referred to as EEPROM. (Electrically
erasable, programmable, read only memory) This allows
the BIOS to be updated to allow for new versions of hardware
to be recognized through a process called Flashing.
Flashing the BIOS is essentially re-writing the BIOS by
sending a specific electrical charge through the BIOS
chip.
To be honest, there
are not many instances where flashing a BIOS will actually
cure a problem on a motherboard. BIOS's are built pretty
standard, and all the peripheral equipment inside a computer
is generally built around the BIOS types. If you
are having a problem with a particular piece of equipment, it
is possible that the BIOS may be responsible. Check the
web site of the vendor of the BIOS, the motherboard, and the
peripheral for more information. To find out what BIOS
you are working with, watch the top of the screen after the
video BIOS boots for the manufacturer and the version number
of the BIOS.
What is important to
know is the boot sequence that is invoked by the BIOS.
Knowing the cold boot and warm boot processes of a system. A cold boot is a boot
performed when the computer has been totally powered off and
then powered on again. A warm boot is a boot that occurs
when Windows is told to restart, or you press Cntl-Alt-Del in
order to re-set the system. Below is the standard cold
boot sequence for most computers.
|
Boot
Sequence Step |
Description |
1 |
Power
Initialization |
When the
power is turned on, the motherboard initializes power to
the processor |
2 |
BIOS
Boot |
The processor
reads the jump instruction, initializing the
BIOS |
3 |
POST |
Power On Self
Test - The BIOS does a system check to test the critical
hardware. (Presence of a Video Card, etc.)
If errors are detected, the system emits a series of
beeps and the system either stops processing or shows an
error screen. |
4 |
Video BIOS
Boot and Peripheral Start-up |
Additional
BIOS's on other equipment (especially the video card)
boot. |
5 |
System
Check |
The system
runs a self-check on the memory, hard drives,
controllers, I/O and parallel ports, keyboard, and other
systems, and displays a list of errors. (If any
occur) |
6 |
Plug-And-Play
Check |
PnP BIOS's
initialize the PnP controller and initialize any
Plug-And-Play equipment on the motherboard. |
7 |
Post Sequence
Summary Display |
The BIOS
shows a screen with information about the system.
It shows hard drive settings, addresses for serial and
parallel ports, RAM and RAM Cache values, and other
information. To pause this screen to see what is
displayed, press the Pause key beside the number
pad. |
8 |
Active
Partition Boot Search |
The BIOS
looks to it's bootable drive sequence to see which drive
it should attempt to boot from. Most BIOS's look
to A:, then C: for a boot sector or master boot
record. In many cases, BIOS's can be set to look
at the CD-ROM drive, SCSI hard drives, or other
equipment for boot information. |
9 |
Operating
System Start-up |
The BIOS
completes and control passes to the boot sector on the
chosen boot device. The operating system then
begins it's boot process. |
A warm boot is
essentially a cold boot that starts at #5.
Beeps, Blips, and
POST codes
The POST has an
ingenious system for telling you when something is critically
wrong with your system. If nothing is wrong with the
system, a single beep is emitted through the system speaker
and the boot sequence continues. If errors do occur, a
series of beeps will emit. Unfortunately, some beeps on
some BIOS's don't mean the same thing on other BIOS's.
There is a standard, but to be sure you have the right code
check the BIOS manufacturer's web site. Thankfully,
newer BIOS's have been programmed to show non-video beep codes
on-screen. Here is the Award/Phoenix and AMI POST code
lists;
AMI Bios Code |
Description |
Award BIOS Code |
Description |
1 Beep |
Refresh Error -
Try Re-seating memory, then replacing memory. |
1 Beep, Followed By 2 Short
Beeps |
Could Not
Initialize Video Display. Either the video card is
not installed properly, or there is an error with the
card. |
2 Beeps |
Parity Error -
Try Re-seating memory, then replacing memory. |
BIOS ROM checksum error
- System halted |
The checksum of
the BIOS code in the BIOS chip is incorrect, indicating
the BIOS code may have become corrupt. Contact your
system dealer to replace the BIOS. |
3 Beeps |
Base 64K Memory
Error -Try Re-seating memory, then replacing
memory. |
CMOS battery
failed |
The CMOS battery is no
longer functional. Contact your system dealer for a
replacement battery. |
4 Beeps |
Timer Not
Operational - Motherboard malfunction, replace
unit |
CMOS checksum error -
Defaults loaded |
Checksum of CMOS is
incorrect, so the system loads the default equipment
configuration. A checksum error may indicate that CMOS
has become corrupt. This error may have been caused by a
weak battery. Check the battery and replace if
necessary. |
5 Beeps |
Processor Error
- Motherboard malfunction, replace unit |
CPU at
nnnn |
Displays the
running speed of the CPU. |
6 Beeps |
8042 - Gate A20
Failure - Keyboard Controller Chip Error, Usually not
fixable, but if the keyboard chip can be removed try
reseating it |
Display switch is set
incorrectly
|
The display switch on the
motherboard can be set to either monochrome or color.
This message indicates the switch is set to a different
setting than indicated in Setup. Determine which setting
is correct, and then either turn off the system and
change the jumper, or enter Setup and change the VIDEO
selection. |
7 Beeps |
Processor
Exception Interrupt Error - Motherboard malfunction,
replace unit |
Press ESC to skip memory
test |
The user may press Esc to
skip the full memory test. |
8 Beeps |
Display Memory
Read/Write Failure - Display adaptor error.
Replace the video card. |
Floppy disk(s)
fail
|
Cannot find or
initialize the floppy drive controller or the drive.
Make sure the controller is installed correctly. If no
floppy drives are installed, be sure the Diskette Drive
selection in Setup is set to NONE or AUTO. |
9 Beeps |
ROM Checksum
Error - Faulty BIOS chips. Re-seat or replace BIOS
chip |
HARD DISK initializing Please
wait a moment |
Some hard
drives require extra time to initialize.
|
10 Beeps |
CMOS Shutdown
Register Read/Write Error - Motherboard malfunction,
replace unit |
HARD DISK INSTALL
FAILURE
|
Cannot find or initialize
the hard drive controller or the drive. Make sure the
controller is installed correctly. If no hard drives are
installed, be sure the Hard Drive selection in Setup is
set to NONE. |
11 Beeps |
Cache Memory
Bad |
Hard disk(s) diagnosis
fail |
The system may run
specific disk diagnostic routines. This message appears
if one or more hard disks return an error when the
diagnostics run. |
No Beeps |
Either power is
not hooked up properly, peripherals are interfering with
the POST, or the motherboard is damaged - Take out all
peripherals, and re-seat power connections and
cables. Check processor seating, and look for
unseated control chips. |
Keyboard error or no
keyboard present |
Cannot
initialize the keyboard. Make sure the keyboard is
attached correctly and no keys are pressed during POST.
To purposely configure the system without a keyboard,
set the error halt condition in Setup to HALT ON ALL,
BUT KEYBOARD. The BIOS then ignores the missing keyboard
during POST. |
|
|
Keyboard is locked out
- Unlock the key
|
This message
usually indicates that one or more keys have been
pressed during the keyboard tests. Be sure no objects
are resting on the keyboard. |
|
|
Memory
Test: |
This message
displays during a full memory test, counting down the
memory areas being tested. |
|
|
Memory test
fail
|
If POST detects
an error during memory testing, additional information
appears giving specifics about the type and location of
the memory error. |
|
|
Override enabled - Defaults
loaded |
If the system cannot boot
using the current CMOS configuration, the BIOS can
override the current configuration with a set of BIOS
defaults designed for the most stable,
minimal-performance system operations. |
|
|
Press TAB to show POST
screen |
System OEMs may
replace the Phoenix Technologies' AwardBIOS POST display
with their own proprietary display. Including this
message in the OEM display permits the operator to
switch between the OEM display and the default POST
display. |
|
|
Primary master hard
disk fail |
POST detects an error in
the primary master IDE hard drive. |
|
|
Primary slave hard disk
fail |
POST detects an error in
the secondary master IDE hard drive. |
|
|
Resuming from disk,
Press TAB to show POST screen |
Phoenix Technologies
offers a save-to-disk feature for notebook computers.
This message may appear when the operator re-starts the
system after a save-to-disk shut-down. See the Press Tab
& message above for a description of this
feature. |
|
|
Secondary master hard disk
fail |
POST detects an
error in the primary slave IDE hard drive. |
|
|
Secondary slave hard
disk fail |
POST detects an error in
the secondary slave IDE hard
drive. |
Knowing what the
beeps signify is not as important as knowing what an
individual error message means. Make sure you can
identify the major system errors and what they mean.
There may also be a question on BIOS setup keys; Most BIOS's
require you to press the Delete key or F10 to enter the BIOS
setup. Lastly, the BIOS screen will normally also show a
logo called the Energy Star Compliance Logo. Be aware
that this means that the BIOS is compatible with Energy Star's
guidelines for power usage and power-down modes.
CMOS
The Complimentary
Metal-Oxide Semiconductor, or CMOS, was introduced in the 286
processor line as a means of storing BIOS information.
Before CMOS, all the hardware information on a computer was
stored on Dip switches on the motherboard. This system
was cumbersome and made creating unique peripherals difficult
for manufacturers. By using a CMOS and a back-up
battery, BIOS's became able to store system information
without the use of dip switches. If you want to see the
CMOS battery, look for the quarter-sized round lithium cell on
the motherboard. Problems with BIOS's not keeping their
information can normally be solved by replacing this
battery.
Some older systems
had lithium cells soldered to their board. This made
replacement more difficult, as the old battery had to be cut
out and a new one soldered in place. Because the CMOS
runs at about 3 volts, some inventive technicians simply
bypassed this battery and replaced it with another 3.6 volt
cell or two AA batteries in a holder Velcro-ed to the side of
the case. Although this hasn't happened since the late
486 era, be aware that if you unplug this battery system from
the main board you will erase the CMOS.
BIOS's also have the
ability to be password protected. This was done to keep
unscrupulous users from entering the BIOS and messing with the
settings inside. (I had a friend that made a regular
visit to the local computer store to reset their BIOS's and
erase their operating systems... He found some form of
perverse pleasure from it.) If you run across a BIOS
that is password protected, you should try and find the
password before proceeding. If you can't find the
password, there is a way to erase the CMOS's memory.
Most motherboards have a jumper close to the CMOS battery
through either removing a jumper or shorting the pins out will
erase the CMOS. If you can, consult the motherboard
manual. If you can't, here's a few tricks I
remember. #1 Pins that must be shorted generally must be
shorted for several minutes. The data retention ability
of the CMOS requires the jumpers to be shorted for up to 5
minutes. #2 If you can't find the jumpers, remember that
removing the CMOS battery will serve the same function.
Press down on one edge and insert a flat head screwdriver
under the lip and pull it slowly out. Again, wait about
5 minutes before returning the battery to it's holder.
#3 If you do remove the battery, remember that it will go in
writing-side up, and be careful of the metal tap that
stretches out across the battery. If you break this
piece of metal, you may not be able to make good contact with
the negative connection on the bottom.
The BIOS Setup
Utility
In order to put the
information into the CMOS, you must use the BIOS setup
utility. Again, this is entered through a keystroke or
series of keystrokes during the POST. Most motherboard's
use the Delete key, but F10, Alt-Esc, Ctrl-Esc, Ctrl-Alt-Esc,
F1, and F2 have been known to be used. Whichever format
is used, a new screen (usually blue) will show up with several
menu items.
In the modern BIOS
utility there are an average of 120 settings that can be
modified. The wording on many of these
may change, but the meanings remain the same. Here is
the list of the most important CMOS settings.
Setting |
Found In... |
Description |
CPU
Internal Cache |
Advanced BIOS Features |
Enables or Disables the internal cache on the
CPU. If you are having troubles with errors,
sometimes disabling the internal cache can help
alleviate this problem, at a significant speed
penalty. |
External Cache |
Advanced BIOS Features |
Enables or Disables the external RAM cache.
Again, use if you are having errors and want to
eliminate RAM cache as the problem. |
Boot Device (Boot Drive Order) |
Advanced BIOS Features |
Lets you select the primary boot device, or the
order in which devices will be booted. The default
is generally A:, then C:, but newer motherboards let you
boot from other hard drives, LS120 drives, CD-ROM
drives, SCSI drives, or even the LAN. When you
select the order, the BIOS searches for boot sector
information on the selected device, and skips to the
next drive if no information is found. |
Boot Up Floppy Seek |
Advanced BIOS Features |
A
search is done for a Floppy drive during the POST.
An error is given if no floppy is found. Disable
this if there is no floppy drive present. |
Swap Floppy Drive |
Advanced BIOS Features |
Allows you to change the order that the operating
system accesses the floppy drives during boot.
This is helpful if you have two floppy drives, and one
is malfunctioning. |
Quick Power On Self Test |
Advanced BIOS Features |
When enabled, this will limit the POST memory
test. |
Anti-Virus Protection |
Advanced BIOS Features |
This will start a scan of the boot sector of the
boot device when the operating system is loaded.
This must be disabled when flashing the
BIOS. |
Video BIOS Shadow |
Advanced BIOS Features |
Allow the BIOS to copy the video ROM code of the
add-on video card to the system memory for faster
access. |
System BIOS Cacheable |
Advanced Chipset Features |
When enabled, allows the ROM area F000h-FFFFh to
be cacheable when the cache controller is
activated. |
Video BIOS Cacheable |
Advanced Chipset Features |
As
with caching the system BIOS, enabling the video BIOS
cache will cause access to the video BIOS addressed at
C0000h-C7FFFh to be cached, if the cache controlled is
also enabled. |
Video RAM Cacheable |
Advanced Chipset Features |
When enabled, allows the video RAM area to be
cacheable (A000h - B000h) |
USB/USB2 |
Advanced Chipset Features |
Allows you to turn the Universal Serial Bus
controllers on the motherboard on and off. |
OnChip Sound |
Advanced Chipset Features |
For
motherboards with integrated sound cards, this allows
you to turn off the onboard sound card. |
IDE
Controller |
Integrated Peripherals |
Allows you to turn on and off the Primary and
Secondary IDE controllers. |
Primary/Secondary Master/Slave Mode |
Integrated Peripherals |
Most motherboards will automatically set these
modes, but if you have start-up problems or errors with
a hard drive try turning it's mode to a lower
mode. This states the access speeds available for
the IDE channel to the hard drive. |
Primary/Secondary Master/Slave UMDA
Mode |
Integrated Peripherals |
Allows you to turn off UMDA mode to individual
hard drives. UMDA (Ultra DMA) is faster than DMA
(Direct Memory Access) |
Init Display First |
Integrated Peripherals |
For
computers with both an AGP and a PCI video card
installed, this allows you to choose which will be the
primary video card. |
Parallel Port Type |
Integrated Peripherals |
Allows you to change parallel port modes between
EPP, ECP, and SPP. Some printers are not
compatible with ECP/EPP. |
Serial Port 1/2 |
Integrated Peripherals |
Lets you set the IRQ for serial ports 1 and 2.
Will also allow you to turn off serial ports if
peripheral I/O boards are installed. (i.e.
Modems) |
PNP
OS Installed |
PnP
/PCI Configurations |
Allows you to state if you have a Plug-And-Play
operating system. Systems running non-PnP
operating systems must disable this option. |
Reset Configuration Data |
PnP
/PCI Configurations |
Allows you to reset the PnP configuration on the
next boot. This is helpful after installing new
PnP equipment, as it lets the CMOS know there is new
equipment present. It also can fix conflicts
between PnP equipment. |
Hard Disk Capacity |
Standard CMOS Setup/Hard Drive
Auto-Detect |
Allows you to set the capacity of installed hard
drives. This is normally done automatically by the
computer, but older systems require you to state the
hard drive specifications. Use the auto-detect
when installing a new hard drive if
possible. |
Floppy Drive |
Standard CMOS Setup |
Allows you to set the type and capacity of floppy
drives. 99% of computers use 1.44Mb 3.5" floppy
drives, but support still exists for 720Kb 3.5" floppy
drives and older 5.25" floppy drives. |
Memory/Processor Details |
Standard CMOS Setup |
Some BIOS's will allow you to modify these
settings, but most will just show the information in a
non-editable form. |
Time and Date |
Standard CMOS Setup |
Allows you to change the system time and
date. |
As well as the
setting described in the CMOS, there are several other
settings on a motherboard that are user-serviceable.
These control items such as CPU clock speed, CPU multiplier,
and Memory timing. Consult the motherboard manual for
proper settings for these jumpers, as each motherboard has
it's own settings for each jumper.
In
Conclusion...
Most of the
information on BIOSes and CMOSes that you will be tested is non-consequential by today's standards.
Besides some basic CMOS settings, the motherboard can control
most of the options and provide the faster, most stable
configuration automatically. The reason this information
is still on the test is the increasing number of older systems
that do not have this ability that users continue to
use. Therefore, you will not use most of this lesson on
a new computer, but may be forced to look back at it to fix a
computer from ages past.
I remember my first
experience with an older computer. I had a gentleman
that wanted to put a 386 board to upgrade his existing 286
computer. Unfortunately, he had an old MFM hard drive
and controller that was 8086 era. He had the MFM
controller card hooked up to a standard I/O 286 board which
then connected to an MFM hard drive. I was totally lost,
and ended up having to call for back-up a couple of times to
guide me through it. No matter how outdated the
equipment people use may seem, it's still their computer and
you should have some idea how to work with it.
|