Nonvolatile BIOS memory

From Wikipedia, the free encyclopedia

Jump to: navigation, search
CMOS Battery in a Pico ITX motherboard
CMOS Battery in a Pico ITX motherboard

Non-volatile BIOS memory refers to the memory on a personal computer motherboard containing BIOS settings and sometimes the code used to initialize the computer and load the operating system. The non-volatile memory was historically called CMOS RAM or just CMOS because it traditionally used a low-power CMOS memory chip (the Motorola MC146818, or one of its higher-capacity clones), which was powered by a small battery when the system power was off. The term remains in wide use in this context, but has also grown into a misnomer. The non-volatile BIOS storage in contemporary computers might be in an EEPROM or flash memory chip and not in a volatile CMOS RAM. In these cases, the battery back-up is meant to keep the RTC chip synchronized. The NVRAM normally has a storage capacity of 512 Bytes, which is enough for all BIOS-settings.

Contents

[edit] CMOS mismatch

CMOS mismatch errors typically occur if the computer's power-on self-test program:

  1. Finds a device that is not recorded in the CMOS.
  2. Does not find a device that is recorded in the CMOS.
  3. Finds a device that has different settings than those recorded for it in CMOS.
  4. Detects a CMOS checksum error. [1] [2]

[edit] CMOS battery

Type CR2032 button cell, most common CMOS battery.
Type CR2032 button cell, most common CMOS battery.

The memory and real-time clock are generally powered by a CR2032 lithium coin cell. These cells last two to ten years, depending on the type of motherboard, ambient temperature and the time that the system is powered off, while other common cell types can last significantly longer or shorter periods, such as the CR2016 which will generally last about 40% as long. Higher temperatures and longer power-off time will shorten cell life. When replacing the cell, the system time and CMOS BIOS settings may revert to default values. This may be avoided by replacing the cell with the power supply master switch on. On ATX motherboards, this will supply 5V standby power to the motherboard even if it is apparently "switched off", and keep the CMOS memory energized.

[edit] Resetting the CMOS settings

To access the BIOS setup when the machine fails to operate, occasionally a drastic move is required. In older computers with battery-backed RAM, removal of the battery and short circuiting the battery input terminals for a while did the job; in some more modern machines this move only resets the RTC. Some motherboards offer a CMOS-reset jumper or a reset button. In yet other cases, the EEPROM chip has to be desoldered and the data in it manually edited using a programmer. Sometimes it is enough to ground the CLK or DTA line of the I²C bus of the EEPROM at the right moment during boot, this requires some precise soldering on SMD parts. If the machine lets you boot but does not want to let you into the BIOS setup, one possible recovery is to deliberately "damage" the CMOS checksum by doing direct port writes using debug.exe, corrupting some bytes of the checksum-protected area of the CMOS RAM; at the next boot, the computer typically resets its setting to factory defaults.

[edit] See also

[edit] External links

Personal tools