Linux使用命令行选项查找BIOS版本

时间:2020-01-09 10:37:36  来源:igfitidea点击:

如何使用Linux命令行选项找出BIOS版本?
如何使用Linux命令行选项检查主板BIOS版本?
要查找Linux操作系统下的BIOS版本,请使用dmidecode命令,该命令是分析BIOS数据的工具。
您必须以root用户身份登录才能运行dmidecode命令。

Linux找出BIOS版本命令

键入以下命令:

## run as root user ##
dmidecode | less
## or use sudo ##
sudo dmidecode | less

输出示例:

dmidecode 2.10
SMBIOS 2.5 present.
45 structures occupying 1832 bytes.
Table at 0xCFF6A000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: Phoenix Technologies LTD
        Version: 2.1
        Release Date: 06/23/2008
        Address: 0xE4F00
        Runtime Size: 110848 bytes
        ROM Size: 1024 kB
        Characteristics:
                PCI is supported
                PNP is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                ESCD support is available
                Boot from CD is supported
                Selectable boot is supported
                EDD is supported
                3.5"/2.88 MB floppy services are supported (int 13h)
                ACPI is supported
                USB legacy is supported
                LS-120 boot is supported
                ATAPI Zip drive boot is supported
                BIOS boot specification is supported
                Targeted content distribution is supported

如何在Linux中检查BIOS固件版本

在此示例中,使用-s选项显示BIOS版本:

sudo dmidecode -s bios-version

让我们尝试bash for loop示例以获取更多信息:

for d in system-manufacturer system-product-name bios-release-date bios-version
do
   echo "${d^} : " $(sudo dmidecode -s $d)
done

在Linux上使用dmidecode命令查找BIOS版本,发行日期等
也可以使用以下语法来打印所有与BIOS相关的信息:

sudo dmidecode --type bios

输出示例:

# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.
 
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
	Vendor: American Megatrends Inc.
	Version: GL702ZC.305
	Release Date: 05/10/2018
	Address: 0xF0000
	Runtime Size: 64 kB
	ROM Size: 16 MB
	Characteristics:
		PCI is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		Boot from CD is supported
		Selectable boot is supported
		BIOS ROM is socketed
		EDD is supported
		5.25"/1.2 MB floppy services are supported (int 13h)
		3.5"/720 kB floppy services are supported (int 13h)
		3.5"/2.88 MB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		ACPI is supported
		USB legacy is supported
		Smart battery is supported
		BIOS boot specification is supported
		Targeted content distribution is supported
		UEFI is supported
	BIOS Revision: 5.12

查找Thinkpad X1笔记本电脑BIOS固件版本

只需运行:

$ for d in system-manufacturer system-product-name bios-release-date bios-version
do
echo "${d^} : " $(sudo dmidecode -s $d)
done

dmidecode命令总结了系统BIOS中描述的有关系统硬件(笔记本电脑/台式机/服务器)的信息。
它适用于i386,x86-64,ia64和arm64。
有关更多信息,请参见此处的官方项目主页。