BIOS存储在哪里?

where-is-the-bios-stored-00

For those who are new to learning about computers, the BIOS may seem a bit ‘mysterious’ to some individuals, and generate questions like “Where, and how, is the BIOS stored on my computer?” Today’s SuperUser Q&A looks at the answer to these questions.

对于那些刚开始学习计算机的人来说,BIOS对某些人来说似乎有点“神秘”,并会产生“在我的计算机上存储BIOS的位置和方式”这样的问题。 今天的超级用户常见问题解答着眼于这些问题的答案。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Screenshot courtesy of Richard Masoner / Cyclelicious (Flickr).

屏幕截图由Richard Masoner / Cyclelicious(Flickr)提供

问题 (The Question)

SuperUser reader T… wants to know where the BIOS is actually stored:

超级用户阅读器T…想知道BIOS的实际存储位置:

From the Wikipedia Article on BIOS:

BIOS上Wikipedia文章

  • BIOS software is stored on a non-volatile ROM chip on the motherboard. … In modern computer systems, the BIOS contents are stored on a flash memory chip so that the contents can be rewritten without removing the chip from the motherboard. This allows BIOS software to be easily upgraded to add new features or fix bugs, but can make the computer vulnerable to BIOS rootkits.

    BIOS软件存储在主板上的非易失性ROM芯片中。 …在现代计算机系统中,BIOS内容存储在闪存芯片上,因此可以在不从主板上卸下芯片的情况下重写内容。 这样可以轻松升级BIOS软件以添加新功能或修复错误,但会使计算机容易受到BIOS rootkit的攻击。

ROM is read only, so why can the BIOS contents be rewritten? Does the “flash memory chip” mean the same thing as the “non-volatile ROM”, both meaning where BIOS is stored?

ROM是只读的,那么为什么可以重写BIOS内容? “闪存芯片”是否与“非易失性ROM”具有相同的含义,都意味着存储BIOS?

What exactly, is the deal here? Is the BIOS being stored on two ‘different’ mediums or just a single one?

究竟是什么交易? BIOS是存储在两种“不同”介质中还是仅存储在一种介质中?

答案 (The Answer)

SuperUser contributor Varaquilex has the answer for us:

超级用户贡献者Varaquilex为我们提供了答案:

  • ROM is read only, so why can the BIOS contents be rewritten?

    ROM是只读的,那么为什么可以重写BIOS内容?

The BIOS program itself is stored in an EEPROM (which can be [E]lectrically [E]rasable and [P]rogrammable [R]ead [O]nly [M]emory) or flash-memory. So the read-only here is about the chip being non-volatile. The contents of the memory stays when the power is cut off, unlike volatile RAM. The ROM being EEP means that the BIOS can be re-written or updated. For such operations in the past, you had to remove the BIOS chip from the board, put a new one in (if it was not PROM or EPROM), or if it was EPROM, you had to get it to the manufacturer and let them re-program the chip, then re-attach it to the board. After current advances, thanks to EEPROMs, you do not have to remove chip to do such operations, you just make the computer do the job electrically.

BIOS程序本身存储在EEPROM(可以是[E]电[E]可擦写和[P]图表可写[R] ad [O] nly [M] emory)或闪存中。 因此,这里的只读信息是关于非易失性芯片。 与易失性RAM不同,当电源断开时,存储器的内容会保留。 ROM为EEP意味着可以重写或更新BIOS。 在过去的此类操作中,您必须从板上卸下BIOS芯片,放入新的芯片(如果不是PROM或EPROM),或者如果是EPROM,则必须将其交给制造商并让他们使用。重新编程芯片,然后将其重新连接到板上。 在电流上升之后,借助EEPROM,您无需卸下芯片即可执行此类操作,只需使计算机通过电气完成工作即可。

  • Does the “flash memory chip” mean the same as the “non-volatile ROM”, both meaning where BIOS is stored?

    “闪存芯片”是否与“非易失性ROM”相同,都意味着存储BIOS?

from Wikipedia:

来自维基百科

  • Flash memory is an electronic non-volatile computer storage medium that can be electrically erased and reprogrammed.

    闪存是一种非易失性电子存储介质,可以对其进行电擦除和重新编程。
  • Flash memory was developed from EEPROM (electrically erasable programmable read-only memory). There are two main types of flash memory, which are named after the NAND and NOR logic gates. The internal characteristics of the individual flash memory cells exhibit characteristics similar to those of the corresponding gates. Whereas EPROMs had to be completely erased before being rewritten, NAND type flash memory may be written and read in blocks (or pages) which are generally much smaller than the entire device. NOR type flash allows a single machine word (byte) to be written—to an erased location—or read independently.

    闪存是从EEPROM(电可擦可编程只读存储器)开发的。 闪存有两种主要类型,以NAND和NOR逻辑门命名。 各个闪存单元的内部特性表现出与相应栅极相似的特性。 EPROM在重写之前必须被完全擦除,而NAND型闪存则可以以块(或页)的形式进行读写,这些块(或页面)通常比整个设备小得多。 NOR型闪存允许将单个机器字(字节)写入(擦除的位置)或独立读取。

EEPROM and flash memory do not refer to same thing. They are two similar memory types as one is developed from the other, and contain different types/configurations of MOS transistors. However, they are the memory where the BIOS program resides.

EEPROM和闪存不是相同的东西。 它们是两种相似的存储器类型,一种是从另一种存储器开发出来的,并且包含不同类型/配置的MOS晶体管。 但是,它们是BIOS程序所在的内存。

To address another misconception, I want to mention this CMOS-BIOS relationship:

为了解决另一个误解,我想提一下这种CMOS-BIOS关系:

The BIOS settings are stored in the CMOS chip (which is kept powered up via the battery on the motherboard). That is why the BIOS is reset when you remove the battery and re-attach it. The same program runs, but the settings are defaulted. See this answer for a detailed view of memories used during the booting process.

BIOS设置存储在CMOS芯片中(通过主板上的电池保持开机状态)。 这就是为什么在取出电池并重新连接时会重置BIOS的原因。 运行相同的程序,但是默认设置。 有关引导过程中使用的内存的详细视图,请参见此答案

To extend the CMOS-BIOS topic, thanks to @Andon M. Coleman, I want to add his comment to the answer:

为了扩展CMOS-BIOS主题,感谢@Andon M. Coleman ,我想在回答中添加他的评论:

  • It is worth mentioning that the BIOS settings do not have to be stored in volatile CMOS memory. There are plenty of embedded systems that store their settings in NVRAM. The only reason PCs have gotten away with using volatile CMOS all these years is that they already had a battery to keep the internal real-time clock ticking while the power is off (recall that when you pressed the power switch on a PC-AT, it literally cut all power off to the motherboard). This meant that cheaper volatile memory could be used to store system settings. So it is mostly for historical purposes.

    值得一提的是,BIOS设置不必存储在易失性CMOS内存中。 有许多嵌入式系统将其设置存储在NVRAM中。 这些年来,PC不再使用易失性CMOS的唯一原因是,它们已经有一块电池,可以在电源关闭时保持内部实时时钟的滴答声(回想一下,当您按下PC-AT上的电源开关时,它实际上切断了主板的所有电源)。 这意味着可以使用更便宜的易失性存储器来存储系统设置。 所以它主要是出于历史目的。


Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/180798/where-is-the-bios-stored/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值