Firmware version check in linux

Finding Out the Firmware Version in Linux

In Linux, it is often necessary to check the firmware version of your system. The firmware, also known as BIOS (Basic Input/Output System), is a software that is built into the hardware of your system and serves as an interface between the hardware and the operating system. In this post, we will explore how to check the firmware version in Linux using the dmidecode command.

What is dmidecode?

dmidecode is a command-line tool that is used to retrieve information about your system’s hardware components from the Desktop Management Interface (DMI) table. The DMI table contains information about the system’s hardware components, such as the motherboard, processor, memory, and firmware. The dmidecode command can be used to dump the contents of the DMI table to human-readable format.

If the dmidecode command is not available on your system, you can install it using your distribution’s package manager. You can install dmidecode using the following command:

sudo yum install dmidecode
sudo apt install dmidecode

Checking the Firmware Version using dmidecode

To check the firmware version of your system using dmidecode , you can use the following command:

In this command, the -s option is used to specify the keyword that you want to retrieve from the DMI table. The keyword bios-version specifies the firmware version. The output of this command will be the firmware version of your system.

Example Output from dmidecode

Here’s an example of the output of the dmidecode -s bios-version command:

This output indicates that the firmware version of the system is A05.

By following the steps outlined in this post, you can easily find out the firmware version of your system. Additionally, dmidecode can be used to retrieve other information about your system’s hardware components, which can be useful for system administrators and troubleshooting purposes.

Источник

How to check the HBA name, make, model, firmware, driver version in Linux

NOTE: The commands to validate this may vary based on the type of HBA being used so I will show some commands and examples for Emulex HBA card where these commands can be used. I cannot assure if the same would work for a Linux machine with Qlogic card.

Below command will give you the connected HBA detail

# lspci -nn | grep -i Fibre
04:00.2 Fibre Channel [0c04]: Emulex Corporation OneConnect 10Gb FCoE Initiator (be3) [19a2:0714] (rev 01)
04:00.3 Fibre Channel [0c04]: Emulex Corporation OneConnect 10Gb FCoE Initiator (be3) [19a2:0714] (rev 01)

Читайте также:  View opened files linux

With this we know we have a Emulex HBA

Next install sysfsutils rpm if not installed already.

Now use the below command. This will give you a bunch of information regarding your HBA card.

# systool -a -v -c scsi_host | egrep «Class Device|model|version|proc_name|info|fwrev»
Class Device = «host0»
Class Device path = «/sys/devices/pci0000:00/0000:00:02.0/0000:04:00.2/host0/scsi_host/host0»
bg_info = «BlockGuard Disabled»
fwrev = «11.1.183.23, sli-4:0:1»
info = «HP FlexFabric 10Gb 2-port 554FLB Adapter on PCI bus 04 device 02 irq 36 port 1 Logical Link Speed: 8000 Mbps»
lpfc_drvr_version = «Emulex LightPulse Fibre Channel SCSI driver 11.2.0.6»
modeldesc = «HP FlexFabric 10Gb 2-port 554FLB Adapter»
modelname = «554FLB»
npiv_info = «NPIV Physical»
option_rom_version = «11.1.183.23»
proc_name = «lpfc»
Class Device = «host1»
Class Device path = «/sys/devices/pci0000:00/0000:00:02.0/0000:04:00.3/host1/scsi_host/host1»
bg_info = «BlockGuard Disabled»
fwrev = «11.1.183.23, sli-4:0:1»
info = «HP FlexFabric 10Gb 2-port 554FLB Adapter on PCI bus 04 device 03 irq 41 port 2 Logical Link Speed: 8000 Mbps»
lpfc_drvr_version = «Emulex LightPulse Fibre Channel SCSI driver 11.2.0.6»
modeldesc = «HP FlexFabric 10Gb 2-port 554FLB Adapter»
modelname = «554FLB»
npiv_info = «NPIV Physical»
option_rom_version = «11.1.183.23»
proc_name = «lpfc»

These fields are populated from below location so if you wish to get any more information then navigate around all the files from this location

# grep -v «zZzZ» /sys/class/scsi_host/host*/model*
/sys/class/scsi_host/host0/modeldesc: HP FlexFabric 10Gb 2-port 554FLB Adapter
/sys/class/scsi_host/host0/modelname:554FLB
/sys/class/scsi_host/host1/modeldesc: HP FlexFabric 10Gb 2-port 554FLB Adapter
/sys/class/scsi_host/host1/modelname:554FLB

# grep -v «zZzZ» /sys/class/scsi_host/host*/proc_name
/sys/class/scsi_host/host0/proc_name: lpfc
/sys/class/scsi_host/host1/proc_name: lpfc

Now since we know the driver name, we can get more information for our driver

# modinfo lpfc
filename: /lib/modules/3.10.0-693.21.1.el7.x86_64/kernel/drivers/scsi/lpfc/lpfc.ko.xz
version: 0:11.2.0.6
author: Emulex Corporation — tech.support@emulex.com
description: Emulex LightPulse Fibre Channel SCSI driver 11.2.0.6
license: GPL
retpoline: Y
rhelversion: 7.4
srcversion: 61B09422B7415BF170E0D67

NOTE: Although most Fibre Channel drivers register a model name and description within sysfs, not all scsi drivers will. For example, the Smart Array, SIL2424 and ATA HBA, as shown in the above configuration, do not supply that information. For those types of cards you must use lspci -k to retrieve the information.

I hope the article was useful.

Источник

How to Check Firmware Version in Linux

about dmidecode

In the side by side article we are going to take a look at dmidecode. This is a tool that
read the DMI of a estimator
(Desktop Management Interface). Information technology will show u.s. the hardware information of the system in a human-readable format. This process is not a problem when you lot have the Gnu / Linux GUI bachelor but CLI users may find themselves lacking in resource when it comes to obtaining this type of detail from their computers.

Many times we may need
know BIOS information. Simply for i reason or another we exercise not desire or tin restart our operating system. Next we volition run into how nosotros tin solve this trouble in a simple way using the terminal.

Nearly this command to
find out the BIOS version on Gnu / Linux operating systems

we already spoke in his twenty-four hour period, in an article that was published in
this same blog. At that place we could already run into how to utilise the dmidecode control to analyze the BIOS data. In order to use the dmidecode command, we will merely have to
login with root permissions
.

Читайте также:  Linux start dhcp client

Dmidecode volition inform us about the hardware of our system every bit described in the BIOS, according to the
SMBIOS / DMI standard. This information normally includes the manufacturer, the model proper noun, the serial number, the BIOS version. We will also look at the asset tag, too equally many other details of varying levels of involvement and reliability depending on the manufacturer. Oft times this will include the usage status of the CPU sockets, expansion slots (eg AGP, PCI, ISA) and retentivity module slots, also as the listing of I / O ports.

DMI data tin be used to
enable or disable specific parts of the kernel code

depending on the specific hardware. Proceed in heed that DMI data is not entirely reliable to blindly trust.
Dmidecode does not browse hardware, it only reports what the BIOS responds to.

Dmidecode was offset written by Alan Cox. It was afterwards developed and maintained over again by Jean Delvare. After a catamenia of 5 years, Anton Arapov took over. It is published nether the
General Public License (GPL)
. For more details, y’all can take a look at the AUTHORS and LICENSES files. We volition observe these files with the source code.

Dmidecode includes three additional tools which are:

  • biosdecode → Print the entire
    BIOS related information
    that you can find.
  • ownership → Retrieve the ‘Holding Tag‘that tin be configured in the
    Compaq equipment.
  • vpddecode -> print the information of ‘vital production datao ‘that tin exist found in near every
    IBM teams.

Dmidecode, get BIOS version from final

If you are logged in with a root user, yous can blazon the following command in the last (Ctrl + Alt + T):

If you don’t have root access, you lot can also apply it with sudo:

dmidecode less

This screenshot just shows a piece of all the data returned by any of the above commands.

Cheque BIOS firmware version with dmidecode

Adjacent we will see the BIOS version using the -due south option:

dmidecode -s bios-version

sudo dmidecode -s bios-version

If we want unlike data and to be shown in a summarized way, we tin can try a
loop in bash. With information technology, something similar to this capture volition be shown in the terminal:

dmidecode script bash

for d in system-manufacturer system-product-name bios-release-appointment bios-version practice repeat "$ : " $(sudo dmidecode -s $d) washed

The simplest way to
print summary BIOS information

is using the dmidecode command every bit follows:

The output that the previous command will give usa will be something like the following:

dmidecode --type bios

The dmidecode command summarizes information most your organisation’due south hardware (laptop / desktop / server) as described in the BIOS. For
more than information about this tool, y’all can consult the
official projection page.

The content of the commodity adheres to our principles of
editorial ethics. To report an fault click
here!.

Читайте также:  Can ntfs be read by linux

Источник

HowTo Check HBA Firmware & Driver Version Info Linux

FC HBA – Fiber Channel Host Bus Adapter which is used to connect SAN devices to servers. To allocate LUN(s)/storage space to server. In this article i am going to show you Howto check HBA firmware & Driver Version Info Linux. Which are the details required to cross verify compatibility with SAN switch connectivity.

Check HBA Firmware & Driver Version Info Linux

The very first command is to verify whether we have HBA cards installed in your machine.

# lspci -nn | grep -i hba 04:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev 02) 04:00.1 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev 02)

Note: Highlighted in orange color or PCI slot numbers, remember we use them in this article

# ls -l /sys/class/fc_host total 0 drwxr-xr-x 3 root root 0 Feb 19 23:44 host11 drwxr-xr-x 3 root root 0 Feb 19 23:44 host12

Check current used host number details using above command and note it down.

Now check it up Kernel driver name as shown below

# lspci -vvv -s 04:00.1 |grep -i "Kernel Driver" Kernel driver in use: qla2xxx

Get HBA Driver Info

Vendor details HowTo Check HBA Firmware & Driver Info in Linux

# lspci -k -s 04:00.0 04:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02) Subsystem: QLogic Corp. Device 015d Kernel driver in use: qla2xxx Kernel modules: qla2xxx

Use modinfo command to get the version details

# modinfo qla2xxx | grep version version: 8.03.07.15.05.09-k srcversion: A40E0347B413757ECA197E44
# systool -c scsi_host -v -d host11 | grep driver_version driver_version = "8.03.07.15.05.09-k"

Firmware Version Details

Host Bus Adapter firmware details can be achieved using below command

# systool -c scsi_host -v -d host11 | grep fw_version 84xx_fw_version = "" fw_version = "5.06.03 (90d5)" optrom_fw_version = "8.01.02 32896"

You can also use scli command to get HBA firmware details

# scli -i | grep "Driver Firmware Version" Driver Firmware Version : 5.06.03 (90d5) Driver Firmware Version : 5.06.03 (90d5)

Single command get all Firmware, Driver and HBA Model details. HowTo Check HBA Firmware & Driver Info in Linux

# systool -a -v -c scsi_host host11 | egrep "Class Device|model|version|proc_name" Class Device = "host11" Class Device path = "/sys/class/scsi_host/host11" 84xx_fw_version = "" driver_version color: #ff6600;">8.03.07.15.05.09-k" fw_version color: #ff6600;">5.06.03 (90d5)" model_desc = "PCI-Express Dual Channel 8Gb Fibre Channel HBA" model_name color: #ff6600;">QLE2562" mpi_version = "" optrom_bios_version = "3.31" optrom_efi_version = "6.10" optrom_fcode_version= "0.00" optrom_fw_version = "8.01.02 32896" phy_version = "" proc_name = ""

Conclusion

HowTo Check HBA Firmware & Driver Info in Linux is very simple using above commands. First identify which card details you would like to find they note there slot number details and hostN.

Thanks for your wonderful Support and Encouragement

More than 40000 Techies in our community do you want part of it Join Now

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn MoreView all Posts

Источник

Оцените статью
Adblock
detector