PROCEDURE FOR RECOVERING A CORRUPT BIOS CHIP
By David Oakley
Amptron International Inc.
(Revised May 24, 2001)
INTRODUCTION TO BOOT BLOCK BIOS
Most BIOS code used today is called ‘BOOT BLOCK’ BIOS.
A BOOT BLOCK type BIOS is different from previous BIOS types in that it is divided into two distinct sections.
The first section of the BIOS is the BOOT BLOCK (hence the name). The BOOT BLOCK uses the first 24k of theROM and contains information necessary to initialize only critical system devices such as theprocessor, memory and some ISA video cards as well as the floppy drive. The BIOS BOOTBLOCK is a write protected area and cannot be over written by a BIOS flash utility without using a special command line switch.
The second section is the SYSTEM BLOCK. The SYSTEM BLOCK is 232k in size and containsthe information necessary to initialize all other system devices such as the video system, input devices, storage devices, COM ports and peripherals and performs the Power on Self Test. The SYSTEM BLOCK constitutes the bulk of the ROM.
UPDATING (FLASHING) YOUR BIOS
The process of updating your BIOS is called flashing. Because the type of ROM chip used is a Flash EEPROM. To update your BIOS you use a utility called a BIOS Flash utility.
When you flash your BIOS the flash utility performs the following steps.·
1. Enters Protected Mode by loading the DOS 4G Protected Mode drivers·
2. Identifies the flash part (the BIOS chip)·
3. Identifies the flash part size and programming voltage·
4. Identifies the motherboard chipset·
5. Verifies the BIOS checksums (make sure that the BIOS file is correct)·
6. Erases the BIOS SYSTEM BLOCK (write over the data with all 0’s)·
7. Rewrites the SYSTEM BLOCK with the new BIOS file·
8.Loads CMOS defaults and reboots the computer
If an error occurs within the first five steps of the flash process then an error message will be displayed and the flash process will be aborted.
Unfortunately if an error occurs after the flash utility has erased the SYSTEM BLOCK then the computer will be disabled. The system power will come on, but the system will not startup as it normally does and you may or may not see anything on the screen.
If your system has an AWARD BIOS you may see an error message on the screen that says.AWARD BootBlock BIOS v1.0CMOS Checksum ErrorAt this point the system will attempt to boot from a floppy disk. You will be able to boot from abootable floppy,
but without the BIOS SYSTEM BLOCK you can’t do much else.
METHODS OF RECOVERING A CORRUPT BIOS CHIP
There are four options available if your BIOS has become corrupt:
1) Use the BootBlock function of the BIOS to reprogram the BIOS ROM.2) Use a method called ‘Hot-Swapping’ to reprogram the BIOS ROM.3) Remove the BIOS ROM and manually reprogram it on an EEPROM programmer.4) Purchase a replacement BIOS from the motherboard manufacturer.
This paper was written to aid you in reprogramming your BIOS using either of the first twomethods. If you are not comfortable or able to recover your BIOS using either of these methodsthen it would be best to purchase a replacement BIOS chip from the motherboard’s manufacturer.
DIFFERENT BIOS DISTRIBUTIONS
There are two primary BIOS distributions used today
they are
AWARD, written by AWARD Software and
AMI, which is written by American Megatrends International.
The methods used to recovery your BIOS is different for each BIOS distribution,
so it is crucial that your know which BIOS distribution you have.
To determine which BIOS distribution you have you can either read the sticker that has beenplaced on top of your BIOS chip, consult the user’s manual, or contact the motherboardmanufacturer. I will elaborate on each of these methods below.
IDENTIFYING YOUR MOTHERBOARDS BIOS DISTRIBUTION
The quickest way to identify which BIOS distribution your motherboard uses when you cannot boot the computer is to read the manufacturers sticker on the BIOS chip itself, however not all manufacturers label their BIOS chips. To do this you must first locate the BIOS chip on the motherboard.
Currently there are two popular BIOS chip package types in use;
32-pin DIP (Dual In-line Package) and
28-pin PLCC (Plastic Leaded Chip Carrier).
The most common is the 32-pin DIP ype so this is what you should look for first. The DIP package type chip is a rectangular black Slicon chip with a row 16-pins along each of the longer sides of the chip.
The PLCC chips are smaller sqare chipsthat are closely fitted into a plastic socket on the motherboard.
The PLCCtype chips have a total of 28 pins, which are inline on all sides of the chip and one of the corner ofthe chip is at a 45° angle.The motherboard manufacturer usually places a sticker on top of the BIOS chip, which specifiesthe BIOS distribution.
The sticker will either say AWARD! or AMI.
Another easy way to identify your BIOS is by checking the user’s manual. The manual does notgenerally mention the type of BIOS you have, but in most cases it will include screen shots(pictures) of the BIOS Setup Utility, which shows the BIOS name at the top. In your manual thereshould be a section that discusses how to setup your BIOS. Read the BIOS setup section and pay close attention to the illustrations.
The following is an example of information taken from a screen shot in a motherboard user’s manual
AMI BIOS SIMPLE SETUP UTILITY – VERSION 1.20©1998 American Megatrends, Inc. All Rights ReservedThis motherboard obviously uses AMI BIOS.
The third and final way to identify your BIOS is to call the motherboard manufacturer and ask.This is often a pretty simple approach, but it is not uncommon for motherboards of the samemodel to use different BIOS distributions.
<< RECOVERING A CORRUPT AMI BOOTBLOCK BIOS >>
With motherboards that use BOOT BLOCK BIOS it is possible to recover a corrupted BIOS by reprogramming it from a floppy diskette as long as the BOOT BLOCK section of the BIOS remains unmodified.
When a system with an AMI BIOS has a corrupt BIOS the system will appear to start, but nothing will appear on the screen, the floppy drive light will come on and the system will access the floppy drive repeatedly. AMI has integrated a recovery routine into the BOOT BLOCK of the BIOS, which in the event the BIOS becomes corrupt can be used to restore it. The routine is called when the SYSTEM BLOCK of the BIOS is empty. The restore routine will access the floppy drive searching for a BIOS ROM file named AMIBOOT.ROM, (this is why the floppy drive light comes on and the drive spins.) If the file is found it is then loaded into the SYSTEM BLOCK of the BIOS to replace the missing information.
NOTE: Make sure that the PC speaker inside your computer is working before you proceed.When the BIOS has been restored your system will beep four times to let you know.
To restore an AMI BootBlock BIOS follow these steps:
1) Format a good working 1.44MB floppy diskette.
2) Copy a working BIOS ROM file for your motherboard onto the floppy disk. BIOS ROM files can usually be downloaded from the motherboard manufacturer’s web site.
3) Rename the BIOS ROM file ‘AMIBOOT.ROM’
4) Turn the system on and insert the disk into drive A:
5) After about 3 ~ 4 minutes the system will beep four times.
Remove the disk from thedrive. The computer will then restart.
At this point your BIOS should be restored and the system should startup normally.
If your system doesnot startup normally then try using a different BIOS ROM file for your motherboard and readthe TROUBLESHOOTING PROBLEMS section below.
<< REOVERING A CORRUPT AWARD BOOTBLOCK BIOS >>
With AWARD BIOS the process is similar but still a bit different. To recover an AWARD BIOS youwill need to create a floppy diskette with a working BIOS file in .BIN format, an AWARD flashutility and an AUTOEXEC.BAT file.
AWARD BIOS will not automatically restore the BIOS information to the SYSTEM BLOCK for this reason
you will need to add the commands necessary to flash the BIOS to the AUTOEXEC.BAT file.
The system will run the AUTOEXE.BAT file at startup, which will in turn flash the BIOS. This is fairly easy.
Here are the steps you need to take.
1) Create a bootable floppy disk.
If you use Windows 95, 98 or DOS, this can be done by going to the DOS prompt and typing the command. (Be sure to insert a disk first)
FORMAT A: /S
( /S switch specifies that the system files should be copied to the diskette to make it bootable.)
If you are using Windows ME, Windows NT or Windows 2000 then you can't use the /S switch with the FORMAT command.
If you are unable to create a bootable diskette because of the operating system you are using
then you may download a bootable diskette image from the BootDisk.com web site at (http://www.bootdisk.com)
2) Copy a working BIOS ROM (.BIN) file for your motherboard and an AWARD flash utility to the floppy disk.
You can usually download these files from the motherboard manufacturer.
3) Use a text editor or the ‘edit’ command at the DOS prompt to create a text file named ‘AUTOEXEC.BAT’ and save it on the floppy disk. ( Make sure that the file name isAUTOEXEC and that the extension is .BAT (nothing else))
4) If you create this file using a program such as NOTEPAD, you may need to change the file extension from .TXT to .BAT
5) With the text editor add the following commands to the AUTOEXEC.BAT file on the floppy disk and then save the changes.
@ECHO OFF
@AWDFLASH BIOSFILE.BIN /py
NOTE: The ‘/py’ switch will cause the flash utility to automatically reprogram the BIOSwithout any user intervention.
Be sure to change the ‘AWDFLASH’ to the nameof the flash utility that you are using and change the ‘BIOSFILE.BIN’ to the nameof the BIOS ROM file you are using.
If you are not sure what the command line switch to automatically flash yourBIOS is, type the name of the flash utility with the ‘/?’ switch after it at a DOSprompt and a list of the available switches will be displayed.
6) Insert the diskette you created into the floppy drive A: on the system that you need torestore the BIOS on.
Turn on the system. The computer should startup, read the floppydisk, run the commands in the AUTOEXEC.BAT file and restore the BIOS.
At this point if everything went well then the BIOS should have been restored and thecomputer should restart normally.
If your system still did not restart normally then go tothe TROUBLESHOOTING PROBLEMS section below.
‘HOT-SWAPPING’ A BIOS CHIP
‘Hot-Swapping’ refers to removing a BIOS chip from the motherboard while the system power ison and the system is in an idle state.
Hot-Swapping a BIOS chip is VERY dangerous to both thesystem and the person attempting to remove the chip. This method of BIOS recovery should onlybe performed by experienced technician as a last option.
Hot-Swapping will work on any type ofBIOS chip as long as both computers use the same type of chip.
WARNING: If done improperly this method of BIOS recovery could cause severe damage to themotherboard and BIOS as well as severe injury to the person attempting to removethe chip.
Hot-Swapping requires you to have two computers with the same BIOS distribution and type.
The way it works is, while the second (working computer) is on, the BIOS chip is removed and the BIOS chip from the first (non-working) board is inserted in its place. The BIOS flash utility is then run on the second computer and the BIOS chip is updated with the BIOS file for the first computer. In essence you are reprogramming the bad BIOS chip on a different motherboard andthen putting the chip back into the non-working motherboard.
The procedure is below.
1) Start the second (working computer) and go to a DOS prompt. Make sure that noprograms are running in the background.
2) While the computer is on carefully remove the BIOS chip from the motherboard and set itaside. Be sure to note the orientation of the chip so that you can later inset it back in tothe motherboard exactly as it was.
3) Insert the BIOS chip from the first (non-working) computer in to the BIOS socket on thesecond (working computer’s) motherboard.
4) At the DOS prompt run the BIOS flash utility and update the BIOS chip with the correctBIOS file for the first computer. If you get a warning message that the chipset and BIOSdoes not match continue anyway. If the flash utility will not allow you to continue and it isan AMI flash utility then re-run the flash utility using the ‘/X’ switch to enter the utilitiesgraphical interface and manually reprogram the BIOS from there.
5) once the BIOS chip has been reprogrammed successfully carefully remove the BIOSchip from the second computer and put it back into the first computer. Be sure to payclose attention to the orientation of the chip so that you insert it correctly. Plugging in thechip backwards will immediately damage both the chip and the motherboard.
6) Start the first computer. If all went well the first system should now be working again. Ifnot see the TROUBLESHOOTING PROBLEMS section below.
TROUBLESHOOTING PROBLEMS
PROBLEM:
After following all of the directions the system will still not start normally. When the system is powered on all it will do is try to access the floppy drive.This would seem to indicate that the BIOS reprogramming was not successful or that the BIOS ROM file was either damaged or not the correct one. Try the procedureagain using a different BIOS ROM file for your motherboard. Make sure that the BIOSROM file is for your exact motherboard model and revision.
PROBLEM:
When the computer restarts the message
‘CMOS Checksum Bad’ and
‘Press F1 toEnter Setup’ is displayed.
This is not necessarily a problem. This message is displayed when there are no CMOS settings saved. This simply means that you need to set your system settings(such as CPU speed, etc) Press whatever key you are prompted to and set theCMOS settings accordingly.
PROBLEM:
While trying to recover a AWARD BIOS the system starts to read from the floppy diskand then stops and nothing else happens. When the system is rebooted it still hasthe same problem.This most likely indicates that there is something wrong with the boot disk. Doublecheck that the disk is bootable, contains the AUTOEXEC.BAT file, the BIOS flashutility and the BIOS ROM (.BIN) file.
If all of the files are present and the disk isbootable then double check the AUTOEXEC.BAT file. Make sure that the name iscorrect and that all of the commands are correct.
If you can see on the screen what the system is doing then try typing the commandsin the AUTOEXEC.BAT file manually to see if there is an error message that isdisplayed.
If everything checks out then try using a different BIOS ROM (.BIN) file. Ifthe problem persists use a different flash utility.
If you have any questions of comments regarding this procedure please e-mail me, my emailaddress is: davido@amptronusa.comGood luck!
---------------------------------
SWAPPING
어느 컴퓨터나 롬 바이오스는 운영체제가 뜨기 전에만 필요하다. 그래서 운영체제가 뜬 뒤에는 다른 바이오스를 갈아 끼우고 복구 작업을 할 수 있다. 작업 과정은 대략 이렇다.
1. 다른 컴퓨터에서 도스를 띄운다.
2. 도스가 다 뜨면 바이오스를 뽑는 도구(BIOS chip extractor, 아래 왼쪽 사진)로 끼워져 있는 바이오스 칩을 조심스럽게 떼어낸다. 7NJS의 바이오스는 오른쪽 사진처럼 한 귀퉁이가 떨어진 듯한 정사각 모양이다.
3. 7NJS 바이오스를 방향을 잘 맞춰서 집어 넣는다.
4. " awdflash ???.bin /f " 라고 쳐서 AWDFLASH를 실행시킨다.
![]() |
![]() |
![]() |
[왼쪽] 기존 바이오스를 저장하겠냐는 물음(Do you want save bios?)에 답한다. Y를 선택하면 저장할 파일 이름을 묻는 화면이 나타난다.
[가운데] "Press 'Y' to program or 'N' to exit"라는 물음에 'Y'를 누르면 바이오스 갱신 작업(program)이 시작된다.
[오른쪽] 바이오스 갱신이 끌나면 "Finising complete"라고 뜬다. 이 말이 나오기 전에 전원을 절대 꺼서는 안 된다.
5. 바이오스 기록이 끝나면 컴퓨터를 끈다. 복구한 바이오스 칩을 빼고, 도로 원래 바이오스를 끼운다.
6. 복구한 바이오스를 7NJS에 다시 끼우고 전원을 넣는다.
처음에 VIA 계열인 A8V에서 복구를 시도해 보았으나, NForce2 계열인 7NJS와 호환이 되지 않은지 바이오스 기록이 잘 되지 않았다. 다시 같은 NForce2 계열인 8rda3i에 옮겨 복구에 성공했다.
아무튼 이런 작업은 컴퓨터가 두 대 이상 있으면 비싼 롬라이터 없이도 할 수 있어 좋고, 주기판 무상 AS기간을 넘긴 경우에는 수리비를 아낄 수 있다 하지만 최악의 경우 주기판(메인보드) 두 개를 날릴 수 있으므로, 신중하게 작업해야 한다. 꼭 이런 방식으로 복구해야겠다면 다음 사항들을 주의하자.
- 되도록 같은 주기판을 쓰는 게 좋다. 똑같지 않더라도 칩셋 계열이 같은 게 좋다.
- 바이오스 칩을 끼우는 방향을 잘 기억해서 방향이 바뀌지 않도록 한다. 만약 바뀐다면 칩이 매우 뜨거워지며 손상될 수 있다. 정사각형 칩은 방향이 바뀌면 잘 끼워지지 않게 되어 있다. 직사각형 칩은 위에 동그란 홈이 난 방향을 보고 극을 확인한다.
- BIOS chip extractor는 바이오스의 다리 부분이 손상되지 않게 떼어내는 공구이다. 위 사진과 같은 형태는 직사각형, 정사각형 칩 모두 떼어낼 수 있다. 만약 이 도구가 없으면 크기가 적당한 일자 드라이버 두 개로 조금씩 조심스럽게 들어낸다. 한꺼번에 힘으로 빼려고 하면 다리가 휘거나 끊어질 수 있다.
- 바이오스가 기록되고 있을 때에 절대로 전원을 끄지 않는다.
'연구하는 인생 > ♣COMPUTER' 카테고리의 다른 글
[스크랩] bios 응급 복구 [펌] (0) | 2009.04.26 |
---|---|
[스크랩] AWDFLASH v8.59E & 명령어 (0) | 2009.04.26 |
Computer Repair with Diagnostic Flowcharts (0) | 2009.04.22 |
Tips & Techniques For Building Your Own PC (0) | 2009.04.22 |
Computer Hardware Trouble Shooting (0) | 2009.04.22 |