如何查询linux下BIOS信息

一般可以使用dmidecode命令(还有biosdecode命令可参考),背景知识如下:

SMBIOS (System Management BIOS)是主板或系统制造者以标准格式显示产品管理信息所需遵循的统一规范。
DMI (Desktop Management Interface, DMI)就是帮助收集电脑系统信息的管理系统,DMI信息的收集必须在严格遵照SMBIOS规范的前提下进行。
SMBIOS和DMI是由行业指导机构Desktop Management Task Force (DMTF)起草的开放性的技术标准;不过DMTF宣布DMI的生命期在2005年结束了。

 

使用dmidecode命令时,如果不加任何参数,则打印出所有类型的信息;

加上“-t type_num”或者“-t keywords”可以查看某个类型信息。

查询指令 

查询BIOS中的Secure boot设置: bootctl    status

查询BIOS版本      sudo dmidecode -s bios-version

查询BIOS系统信息  sudo dmidecode -t  0

如果要查询-t 后面的类型号,可以通过man dmidecode进行查询

SMBIOS specification 2.7.1 中定义了如下的结构类型:

TypeDescription
0 BIOS Information
1 System Information
2 Baseboard (or Module) Information
3 System Enclosure or Chassis
4 Processor Information
5 Memory Controller Information (Obsolete)
6 Memory Module Information (Obsolete)
7 Cache Information
8 Port Connector Information
9 System Slots
10 On Board Devices Information
11 OEM Strings
12 System Configuration Options
13 BIOS Language Information
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-Bit Memory Error Information
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security

 

关于BIOS  UEFI  Secure Boot的关系,见:

UEFI、BIOS、Secure Boot的关系和知识介绍 

参考资料:

http://en.wikipedia.org/wiki/System_Management_BIOS

http://en.wikipedia.org/wiki/Desktop_Management_Interface

http://www.joecen.com/2007/04/19/view-bios-operating-system-in-the-dmi-smbios-information/

https://blog.csdn.net/chenyulancn/article/details/16945095

 

 
posted @ 2019-01-13 17:25  无边身尊者  阅读(6347)  评论(0编辑  收藏  举报