linux怎么查看硬件驅(qū)動(dòng)
linux怎么查看硬件驅(qū)動(dòng)
你們知道怎么查看Linux的硬件驅(qū)動(dòng)嗎?下面是學(xué)習(xí)啦小編帶來的關(guān)于linux怎么查看硬件驅(qū)動(dòng)的內(nèi)容,歡迎閱讀!
linux怎么查看硬件驅(qū)動(dòng)?
Linux下查看網(wǎng)卡驅(qū)動(dòng)和版本信息
查看網(wǎng)卡生產(chǎn)廠商和信號(hào)
查看基本信息:lspci
查看詳細(xì)信息:lspci -vvv # 3個(gè)小寫的v
查看網(wǎng)卡信息:lspci | grep Ethernet
查看網(wǎng)卡驅(qū)動(dòng)
查看網(wǎng)卡驅(qū)動(dòng)信息:lspci -vvv # 找到網(wǎng)卡設(shè)備的詳細(xì)信息,包括網(wǎng)卡驅(qū)動(dòng)
# lsmod 列出加載的所有驅(qū)動(dòng),包括網(wǎng)卡驅(qū)動(dòng)
查看網(wǎng)卡驅(qū)動(dòng)版本
查看模塊信息:modifo # 其中包含version信息
或 # ethtool-i
RHEL 6.3中的網(wǎng)卡驅(qū)動(dòng)版本:
# modinfo igb
filename: /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/igb/igb.ko
version: 3.2.10-k
license: GPL
description: Intel(R) Gigabit Ethernet Network Driver
# modinfo e1000e
filename: /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/e1000e/e1000e.ko
version: 1.9.5-k
license: GPL
description: Intel(R) PRO/1000 Network Driver
author: Intel Corporation,
# modinfo e1000
filename: /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/e1000/e1000.ko
version: 8.0.35-NAPI
license: GPL
description: Intel(R) PRO/1000 Network Driver
# modinfo ixgbe
filename: /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/ixgbe/ixgbe.ko
version: 3.6.7-k
license: GPL
description: Intel(R) 10 Gigabit PCI Express NetworkDriver
# modinfo r8169
filename: /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/r8169.ko
version: 2.3LK-NAPI
license: GPL
description: RealTek RTL-8169 Gigabit Ethernet driver
查看網(wǎng)絡(luò)接口隊(duì)列數(shù)
查看網(wǎng)卡接口的中斷信息:#cat /proc/interrupts | grep eth0
或 # ethtool-S eth0
查看網(wǎng)卡驅(qū)動(dòng)源碼的版本號(hào)
解壓Intel網(wǎng)卡驅(qū)動(dòng)源碼,打開解壓縮目錄下的*.spec文件查看驅(qū)動(dòng)的版本。
例如:解壓e1000-8.0.35.tar.gz網(wǎng)卡驅(qū)動(dòng)后,查看e1000.spec文件。
Name:e1000
Summary:Intel(R) Gigabit Ethernet Connection
Version: 8.0.35
Release:1
Source:%{name}-%{version}.tar.gz
Vendor:Intel Corporation
License:GPL
ExclusiveOS:linux
Group:System Environment/Kernel
在驅(qū)動(dòng)源碼src目錄中查找:
#grep DRV_VERSION * # forLinux
#findstr DRV_VERSION * # for Windows
在e1000_main.c中也能找到定義驅(qū)動(dòng)版本的一行:
#define DRV_VERSION"8.0.35" DRV_NAPI DRV_DEBUG DRV_HW_PERF
在e1000e中src目錄下netdev.c文件:
#define DRV_VERSION"3.0.4.1" DRV_EXTRAVERSION
igb_main.c:
#define MAJ 5
#define MIN 2
#define BUILD 9.4
#define DRV_VERSION__stringify(MAJ) "." __stringify(MIN) "."\
ixgbe_main.c:
#define DRV_VERSION __stringify(3.22.3) DRIVERIOVDRV_HW_PERF FP GA \
看了"linux怎么查看硬件驅(qū)動(dòng)"文章內(nèi)容的人還看:
3.如何編譯加載linux驅(qū)動(dòng)和內(nèi)核模塊
4.linux系統(tǒng)安裝驅(qū)動(dòng)過程
5.Linux操作系統(tǒng)怎么安裝無線網(wǎng)卡驅(qū)動(dòng)
6.Linux系統(tǒng)下安裝聲卡驅(qū)動(dòng)的方法
7.Ubuntu安裝Nvidia Optimus驅(qū)動(dòng)的步驟