Top Banner
BIOS
37
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Bio sworking

BIOS

Page 2: Bio sworking

BASIC INPUT OUTPUT SYSTEM One of the most common uses of Flash memory is for the basic

input/output system of your computer, commonly known as the BIOS (pronounced "bye-ose").

On virtually every computer available, the BIOS makes sure all the other chips, hard drives, ports and CPU function together.

Every desktop and laptop computer in common use today contains a microprocessor as its central processing unit.

The microprocessor is the hardware component. To get its work done, the microprocessor executes a set of instructions

known as software You are probably very familiar with two different types of software: The operating system - The operating system provides a set of services for the

applications running on your computer, and it also provides the fundamental user interface for your computer. Windows 98 and Linux are examples of operating systems.

The applications - Applications are pieces of software that are programmed to perform specific tasks. On your computer right now you probably have a browser application, a word processing application, an e-mail application and so on. You can also buy new applications and install them.

It turns out that the BIOS is the third type of software your computer needs to operate successfully. In this article, you'll learn all about BIOS -- what it does, how to configure it and what to do if your BIOS needs updating.

Page 3: Bio sworking

WORK OF BIOS The BIOS software has a number of different roles, but its most important role

is to load the operating system. When you turn on your computer and the microprocessor tries to execute its

first instruction, it has to get that instruction from somewhere. It cannot get it from the operating system because the operating system is

located on a hard disk, and the microprocessor cannot get to it without some instructions that tell it how.

The BIOS provides those instructions. Some of the other common tasks that the BIOS performs include:

A power-on self-test (POST) for all of the different hardware components in the system to make sure everything is working properly

Activating other BIOS chips on different cards installed in the computer For example, SCSI and graphics cards often have their own BIOS chips.

Providing a set of low-level routines that the operating system uses to interface to different hardware devices - It is these routines that give the BIOS its name. They manage things like the keyboard, the screen, and the serial and

parallel ports, especially when the computer is booting. Managing a collection of settings for the hard disks, clock, etc.

Page 4: Bio sworking

The BIOS is special software that interfaces the major hardware components of your computer with the operating system.

It is usually stored on a Flash memory chip on the motherboard, but sometimes the chip is another type of ROM.

When you turn on your computer, the BIOS does several things. This is its usual sequence: Check the CMOS Setup for custom settings Load the interrupt handlers and device drivers Initialize registers and power management Perform the power-on self-test (POST) Display system settings Determine which devices are bootable Initiate the bootstrap sequence

The first thing the BIOS does is check the information stored in a tiny (64 bytes) amount of RAM located on a complementary metal oxide semiconductor (CMOS) chip.

The CMOS Setup provides detailed information particular to your system and can be altered as your system changes.

The BIOS uses this information to modify or supplement its default programming as needed.

Interrupt handlers are small pieces of software that act as translators between the hardware components and the operating system.

For example, when you press a key on your keyboard, the signal is sent to the keyboard interrupt handler, which tells the CPU what it is and passes it on to the operating system.

The device drivers are other pieces of software that identify the base hardware components such as keyboard, mouse, hard drive and floppy drive.

Since the BIOS is constantly intercepting signals to and from the hardware, it is usually copied, or shadowed, into RAM to run faster.

Page 5: Bio sworking

BOOTING THE COMPUTERBooting the Computer

Whenever you turn on your computer, the first thing you see is the BIOS software doing its thing. On many machines, the BIOS displays text describing things like the amount of memory installed in your computer, the type of hard disk and so on. It turns out that, during this boot sequence, the BIOS is doing a remarkable amount of work to get your computer ready to run. This section briefly describes some of those activities for a typical PC. After checking the CMOS Setup and loading the interrupt handlers, the BIOS determines whether the video card is operational. Most video cards have a miniature BIOS of their own that initializes the memory and graphics processor on the card. If they do not, there is usually video driver information on another ROM on the motherboard that the BIOS can load.

Next, the BIOS checks to see if this is a cold boot or a reboot. It does this by checking the value at memory address 0000:0472. A value of 1234h indicates a reboot, and the BIOS skips the rest of POST. Anything else is considered a cold boot.

If it is a cold boot, the BIOS verifies RAM by performing a read/write test of each memory address. It checks the PS/2 ports or USB ports for a keyboard and a mouse. It looks for a peripheral component interconnect (PCI) bus and, if it finds one, checks all the PCI cards. If the BIOS finds any errors during the POST, it will notify you by a series of beeps or a text message displayed on the screen. An error at this point is almost always a hardware problem.

The BIOS then displays some details about your system. This typically includes information about: The processor The floppy drive and hard drive Memory BIOS revision and date Display

Any special drivers, such as the ones for small computer system interface (SCSI) adapters, are loaded from the adapter, and the BIOS displays the information.

The BIOS then looks at the sequence of storage devices identified as boot devices in the CMOS Setup. "Boot" is short for "bootstrap," as in the old phrase, "Lift yourself up by your bootstraps."

Boot refers to the process of launching the operating system.

The BIOS will try to initiate the boot sequence from the first device.

If the BIOS does not find a device, it will try the next device in the list.

If it does not find the proper files on a device, the startup process will halt.

Page 6: Bio sworking

CONFIGURING BIOS In the previous list, you saw that the BIOS checks the CMOS Setup for custom settings.

Here's what you do to change those settings.

To enter the CMOS Setup, you must press a certain key or combination of keys during the initial startup sequence.

Most systems use "Esc," "Del," "F1," "F2," "Ctrl-Esc" or "Ctrl-Alt-Esc" to enter setup.

There is usually a line of text at the bottom of the display that tells you "Press ___ to Enter Setup."

Once you have entered setup, you will see a set of text screens with a number of options. Some of these are standard, while others vary according to the BIOS manufacturer. Common options include:

System Time/Date - Set the system time and date Boot Sequence - The order that BIOS will try to load the operating system Plug and Play - A standard for auto-detecting connected devices; should be set to

"Yes" if your computer and operating system both support it Mouse/Keyboard - "Enable Num Lock," "Enable the Keyboard," "Auto-Detect

Mouse"... Drive Configuration - Configure hard drives, CD-ROM and floppy drives Memory - Direct the BIOS to shadow to a specific memory address Security - Set a password for accessing the computer Power Management - Select whether to use power management, as well as set the

amount of time for standby and suspend Exit - Save your changes, discard your changes or restore default settings

Be very careful when making changes to setup. Incorrect settings may keep your computer from booting. When you are finished with your changes, you should choose "Save Changes" and exit. The BIOS will then restart your computer so that the new settings take effect.

The BIOS uses CMOS technology to save any changes made to the computer's settings. With this technology, a small lithium or Ni-Cad battery can supply enough power to keep the data for years.

In fact, some of the newer chips have a 10-year, tiny lithium battery built right into the CMOS chip!

Page 7: Bio sworking

UPDATING YOUR BIOS

Occasionally, a computer will need to have its BIOS updated. This is especially true of older machines.

As new devices and standards arise, the BIOS needs to change in order to understand the new hardware.

Since the BIOS is stored in some form of ROM, changing it is a bit harder than upgrading most other types of software. To change the BIOS itself, you'll probably need a special program from the computer or BIOS manufacturer.

Look at the BIOS revision and date information displayed on system startup or check with your computer manufacturer to find out what type of BIOS you have.

Then go to the BIOS manufacturer's Web site to see if an upgrade is available. Download the upgrade and the utility program needed to install it. Sometimes

the utility and update are combined in a single file to download. Copy the program, along with the BIOS update, onto a floppy disk. Restart your computer with the floppy disk in the drive, and the program

erases the old BIOS and writes the new one. You can find a BIOS Wizard that will check your BIOS at BIOS Upgrades.

Page 8: Bio sworking

POST

The computer POST (Power On Self Test) tests the computer, insuring that it meets the necessary system requirements and that all hardware is working properly before starting the remainder of the boot process. If the computer passes the POST the computer will have a single beep (with some computer BIOS manufacturers it may beep twice) as the computer starts and the computer will continue to start normally. However, if the computer fails the POST, the computer will either not beep at all or will generate a beep code, which tells the user the source of the problem.

Page 9: Bio sworking

POST OPERATIONS

Each time the computer boots up the computer must past the POST. Below is the common steps a POST performs each time your computer starts.

Test the power supply to ensure that it is turned on and that it releases its reset signal.

CPU must exit the reset status mode and thereafter be able to execute instructions.

BIOS checksum must be valid, meaning that it must be readable. CMOS checksum must be valid, meaning that it must be readable. CPU must be able to read all forms of memory such as the

memory controller, memory bus, and memory module. The first 64KB of memory must be operational and have the

capability to be read and written to and from, and capable of containing the POST code.

I/O bus / controller must be accessible. I/O bus must be able to write / read from the video subsystem and

be able to read all video RAM.

Page 10: Bio sworking

AMERICAN MEGATRENDS INC.

Page 11: Bio sworking

AWARD BIOS

Page 12: Bio sworking

IBM BIOS

Page 13: Bio sworking

PHOENIX BIOS

Page 14: Bio sworking

BEEP CODES TO DIAGNOSE IRREGULAR POST OPERATIONS

Page 15: Bio sworking

AMI BIOS Beep Code Descriptions

1 short DRAM refresh failure

2 short Parity circuit failure

3 short Base 64K RAM failure

4 short System timer failure

5 short Process failure

6 short Keyboard controller Gate A20 error

7 short Virtual mode exception error

8 short Display memory Read/ Write test failure

9 short ROM BIOS checksum failure

10 short CMOS shutdown Read/ Write error

11 short Cache Memory error

1 long, 3 short Conventional/ Extended memory failure

1 long, 8 short Display/ Retrace test failed

Page 16: Bio sworking

AWARD BIOS

Beep Code Description

1 long, 2 short

Indicates a video error has occurred and the BIOS cannot initialize the video screen to display any additional information

Any other beep(s)

RAM problem.

Page 17: Bio sworking

IBM BIOS

Beep Code Description

No Beeps No Power, Loose Card, or Short.

1 Short Beep Normal POST, computer is ok.

2 Short Beep POST error, review screen for error code.

Continuous Beep No Power, Loose Card, or Short.

Repeating Short Beep No Power, Loose Card, or Short.

One Long and one Short Beep Motherboard issue.

One Long and Two Short Beeps Video (Mono/ CGA Display Circuitry) issue.

One Long and Three Short Beeps. Video (EGA) Display Circuitry.

Three Long Beeps Keyboard / Keyboard card error.

One Beep, Blank or Incorrect Display Video Display Circuitry.

Page 18: Bio sworking

MACINTOSH STARTUP TONES

Tones Error

Error Tone. (two sets of different tones) Problem with logic board or SCSI bus.

Startup tone, drive spins, no video Problem with video controller.

Powers on, no tone. Logic board problem.

High Tone, four higher tones. Problem with SIMM.

Page 19: Bio sworking

PHOENIX BIOS Q3.07 OR 4.XBeep Code Description / What to Check

1-1-1-3 Verify Real Mode.

1-1-2-1 Get CPU type.

1-1-2-3 Initialize system hardware.

1-1-3-1 Initialize chipset registers with initial POST values.

1-1-3-2 Set in POST flag.

1-1-3-3 Initialize CPU registers.

1-1-4-1 Initialize cache to initial POST values.

1-1-4-3 Initialize I/ O.

1-2-1-1 Initialize Power Management.

1-2-1-2 Load alternate registers with initial POST values.

1-2-1-3 J ump to UserPatch0.

1-2-2-1 Initialize keyboard controller.

1-2-2-3 BIOS ROM checksum.

1-2-3-1 8254 timer initialization.

1-2-3-3 8237 DMA controller initialization.

1-2-4-1 Reset Programmable Interrupt Controller.

1-3-1-1 Test DRAM refresh.

1-3-1-3 Test 8742 Keyboard Controller.

1-3-2-1 Set ES segment to register to 4 GB.

1-3-3-1 28 Autosize DRAM.

1-3-3-3 Clear 512K base RAM.

1-3-4-1 Test 512 base address lines.

1-3-4-3 Test 512K base memory.

1-4-1-3 Test CPU bus-clock frequency.

1-4-2-4 Reinitialize the chipset.

1-4-3-1 Shadow system BIOS ROM.

1-4-3-2 Reinitialize the cache.

1-4-3-3 Autosize cache.

Page 20: Bio sworking

1-4-4-1 Configure advanced chipset registers.

1-4-4-2 Load alternate registers with CMOS values.

2-1-1-1 Set Initial CPU speed.

2-1-1-3 Initialize interrupt vectors.

2-1-2-1 Initialize BIOS interrupts.

2-1-2-3 Check ROM copyright notice.

2-1-2-4 Initialize manager for PCI Options ROMs.

2-1-3-1 Check video configuration against CMOS.

2-1-3-2 Initialize PCI bus and devices.

2-1-3-3 Initialize all video adapters in system.

2-1-4-1 Shadow video BIOS ROM.

2-1-4-3 Display copyright notice.

2-2-1-1 Display CPU type and speed.

2-2-1-3 Test keyboard.

2-2-2-1 Set key click if enabled.

2-2-2-3 56 Enable keyboard.

2-2-3-1 Test for unexpected interrupts.

2-2-3-3 Display prompt "Press F2 to enter SETUP".

2-2-4-1 Test RAM between 512 and 640k.

2-3-1-1 Test expanded memory.

2-3-1-3 Test extended memory address lines.

2-3-2-1 J ump to UserPatch1.

2-3-2-3 Configure advanced cache registers.

2-3-3-1 Enable external and CPU caches.

2-3-3-3 Display external cache size.

2-3-4-1 Display shadow message.

2-3-4-3 Display non-disposable segments.

2-4-1-1 Display error messages.

2-4-1-3 Check for configuration errors.

Page 21: Bio sworking

2-4-2-1 Test real-time clock.

2-4-2-3 Check for keyboard errors

2-4-4-1 Set up hardware interrupts vectors.

2-4-4-3 Test coprocessor if present.

3-1-1-1 Disable onboard I/ O ports.

3-1-1-3 Detect and install external RS232 ports.

3-1-2-1 Detect and install external parallel ports.

3-1-2-3 Re-initialize onboard I/ O ports.

3-1-3-1 Initialize BIOS Data Area.

3-1-3-3 Initialize Extended BIOS Data Area.

3-1-4-1 Initialize floppy controller.

3-2-1-1 Initialize hard-disk controller.

3-2-1-2 Initialize local-bus hard-disk controller.

3-2-1-3 J ump to UserPatch2.

3-2-2-1 Disable A20 address line.

3-2-2-3 Clear huge ES segment register.

3-2-3-1 Search for option ROMs.

3-2-3-3 Shadow option ROMs.

3-2-4-1 Set up Power Management.

3-2-4-3 Enable hardware interrupts.

3-3-1-1 Set time of day.

3-3-1-3 Check key lock.

3-3-3-1 Erase F2 prompt.

3-3-3-3 Scan for F2 key stroke.

3-3-4-1 Enter SETUP.

3-3-4-3 Clear in-POST flag.

3-4-1-1 Check for errors

3-4-1-3 POST done--prepare to boot operating system.

3-4-2-1 One beep.

Page 22: Bio sworking

3-4-2-3 Check password (optional).

3-4-3-1 Clear global descriptor table.

3-4-4-1 Clear parity checkers.

3-4-4-3 Clear screen (optional).

3-4-4-4 Check virus and backup reminders.

4-1-1-1 Try to boot with INT 19.

4-2-1-1 Interrupt handler error.

4-2-1-3 Unknown interrupt error.

4-2-2-1 Pending interrupt error.

4-2-2-3 Initialize option ROM error.

4-2-3-1 Shutdown error.

4-2-3-3 Extended Block Move.

4-2-4-1 Shutdown 10 error.

4-3-1-3 Initialize the chipset.

4-3-1-4 Initialize refresh counter.

4-3-2-1 Check for Forced Flash.

4-3-2-2 Check HW status of ROM.

4-3-2-3 BIOS ROM is OK.

4-3-2-4 Do a complete RAM test.

4-3-3-1 Do OEM initialization.

4-3-3-2 Initialize interrupt controller.

4-3-3-3 Read in bootstrap code.

4-3-3-4 Initialize all vectors.

4-3-4-1 Boot the Flash program.

4-3-4-2 Initialize the boot device.

4-3-4-3 Boot code was read OK.

Page 23: Bio sworking

BIOS PASSWORD

Page 24: Bio sworking

BYPASSING BIOS PASSWORDS Using a manufacturers backdoor password to access the

BIOS Use password cracking software Reset the CMOS using the jumpers or solder beads. Removing the CMOS battery for at least 10 minutes Overloading the keyboard buffer Using a professional service

Please remember that most BIOS passwords do not protect the hard drive, so if you need to recover the data, simply remove the hard drive and install it in an identical system, or configure it as a slave drive in an existing system. The exception to this are laptops, especially IBM Thinkpads, which silently lock the hard drive if the supervisor password is enabled. If the supervisor password is reset without resetting the and hard drive as well, you will be unable to access the data on the drive

Page 25: Bio sworking

BACKDOOR PASSWORDS OF MANUFACTURERS

Page 26: Bio sworking

AWARD BIOS ALFAROME

ALLyaLLyaLLYALLYaPAf_awardAWARD_SWAWARD?SWAWARD SWAWARD PWAWKWARDawkward BIOSTARCONCATCONDOCondod8ondjonetHLTJ64J256J262j332j322 KDDLkwpeterLKWPETERPINTpintSERSKY_FOXSYXZsyxzshift + syxzTTPTHAZAAADAZBAAACAZJAAADC01322222589589589721595595598598

Page 27: Bio sworking

AMI BIOS

AMIAAAMMMIIIBIOSPASSWORDHEWITT RANDAMI?SWAMI_SWLKWPETERA.M.I.CONDO

Page 28: Bio sworking

PHOENIX BIOS

phoenix PHOENIXCMOS BIOS

Page 29: Bio sworking

COMMON PASSWORDS

ALFAROMEBIOSTARbiostarbiosstarCMOScmos LKWPETERlkwpetersetupSETUPSyxzWodj

Page 30: Bio sworking

OTHER BIOS PASSWORDS BY MANUFACTURER

Manufacturer Password

VOBIS & IBM merlin

Dell Dell

Biostar Biostar

Compaq Compaq

Enox xo11nE

Epox central

Freetech Posterie

IWill iwill

Jetway spooml

Packard Bell bell9

QDI QDI

Siemens SKY_FOX

TMC BIGO

Toshiba Toshiba

Page 31: Bio sworking

TOSHIBA BIOS Most Toshiba laptops and some desktop systems will bypass

the BIOS password if the left shift key is held down during boot

IBM APTIVA BIOS Press both mouse buttons repeatedly during the boot

Page 32: Bio sworking

PASSWORD CRACKING SOFTWARE

The following software can be used to either crack or reset the BIOS on many chipsets.

If your PC is locked with a BIOS administrator password that will not allow access to the floppy drive, these utilities may not work. Also, since these utilities do not come from the manufacturer, use them cautiously and at your own risk.  Cmos password recovery tools 3.1 !BIOS RemPass KILLCMOS

Page 33: Bio sworking

USING THE MOTHERBOARD "CLEAR CMOS" JUMPER OR DIPSWITCH SETTINGS

Many motherboards feature a set of jumpers or dipswitches that will clear the CMOS and wipe all of the custom settings including BIOS passwords.

The locations of these jumpers / dipswitches will vary depending on the motherboard manufacturer and ideally you should always refer to the motherboard or computer manufacturers documentation.

If the documentation is unavailable, the jumpers/dipswitches can sometimes be found along the edge of the motherboard, next to the CMOS battery, or near the processor.

Some manufacturers may label the jumper / dipswitch  CLEAR - CLEAR CMOS - CLR - CLRPWD - PASSWD - PASSWORD - PWD.

On laptop computers, the dipswitches are usually found under the keyboard or within a compartment at the bottom of the laptop. 

Please remember to unplug your PC and use a grounding strip before reaching into your PC and touching the motherboard. Once you locate and rest the jumper switches,  turn the computer on and check if the password has been cleared. If it has, turn the computer off and return the jumpers or dipswitches to its original position.

Page 34: Bio sworking

REMOVING THE CMOS BATTERY The CMOS settings on most systems are buffered by a small battery that is attached

to the motherboard. (It looks like a small watch battery). If you unplug the PC and remove the battery for 10-15 minutes, the CMOS may reset

itself and the password should be blank. (Along with any other machine specific settings, so be sure you are familiar with manually reconfiguring the BIOS settings before you do this.)

Some manufacturers backup the power to the CMOS chipset by using a capacitor, so if your first attempt fails, leave the battery out (with the system unplugged) for at least 24 hours. 

Some batteries are actually soldered onto the motherboard making this task more difficult.

Unsoldering the battery incorrectly may damage your motherboard and other components, so please don't attempt this if you are inexperienced. Another option may be to remove the CMOS chip from the motherboard for a period of time. 

Note: Removing the battery to reset the CMOS will not work for all PC's, and almost all of the newer laptops store their BIOS passwords in a manner which does not require continuous power, so removing the CMOS battery may not work at all.  IBM Thinkpad laptops lock the hard drive as well as the BIOS when the supervisor password is set. If you reset the BIOS password, but cannot reset the hard drive password, you may not be able to access the drive and it will remain locked, even if you place it in a new laptop. IBM Thinkpads have special jumper switches on the motherboard, and these should be used to reset the system.

Page 35: Bio sworking

OVERLOADING THE KEYBOARD BUFFER

On some older computer systems, you can force the CMOS to enter its setup screen on boot by overloading the keyboard buffer.

This can be done by booting with the keyboard or mouse unattached to the systems, or on some systems by hitting the ESC key over 100 times in rapid succession.

Page 36: Bio sworking

JUMPING THE SOLDER BEADS ON THE CMOS

It is also possible to reset the CMOS by connecting or "jumping" specific solder beads on the chipset.

There are too many chipsets to do a breakdown of which points to jump on individual chipsets, and the location of these solder beads can vary by manufacturer, so please check your computer and motherboard documentation for details.

This technique is not recommended for the inexperienced and should be only be used as a "last ditch" effort.

Page 37: Bio sworking

USING A PROFESSIONAL SERVICE

If the manufacturer of the laptop or desktop PC can't or won't reset the BIOS password, you still have the option of using a professional service. Password Crackers, Inc., offers a variety of services for desktop and laptop computers for between $100 and $400.

For most of these services, you'll need to provide some type of legitimate proof of ownership. This may be difficult if you've acquired the computer second hand or from an online auction.