linux查看硬盘驱动,linux查看硬件信息及驱动设备相关整理

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

联系我登录

首页

业界新闻

技术文章

资源分享

微语

linux查看硬件信息及驱动设备相关整理【转】

蓝猫 发布于:2014-5-30 17:48 分类:技术文章  有 0 人浏览,获得评论 0 条 标签:linux硬件信息

在LINUX环境开发驱动程序,首先要探测到新硬件,接下来就是开发驱动程序。

常用命令整理如下:

用硬件检测程序kuduz探测新硬件:service kudzu start ( or restart)

查看CPU信息:cat /proc/cpuinfo

查看板卡信息:cat /proc/pci

查看PCI信息:lspci (相比cat /proc/pci更直观)

查看内存信息:cat /proc/meminfo

查看USB设备:cat /proc/bus/usb/devices

查看键盘和鼠标:cat /proc/bus/input/devices

查看系统硬盘信息和使用情况:fdisk & disk - l & df

查看各设备的中断请求(IRQ):cat /proc/interrupts

查看系统体系结构:uname -a

dmidecode查看硬件信息,包括bios、cpu、内存等信息

dmesg | more 查看硬件信息

----------------------------------

我的FC5显示结果如下:

查看键盘和鼠标

[root@localhost input]# cat /proc/bus/input/devices

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41

N:Name="AT Translated Set 2 keyboard"

P: Phys=isa0060/serio0/input0

S: Sysfs=/class/input/input0

H: Handlers=kbd event0

B: EV=120013

B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe

B: MSC=10

B: LED=7

I: Bus=0003 Vendor=06a2 Product=0001 Version=0100

N:Name=" USB Mouse "

P: Phys=usb-0000:00:03.2-2/input0

S: Sysfs=/class/input/input2

H: Handlers=mouse0 event1

B: EV=7

B: KEY=70000 0 0 0 0 0 0 0 0

B: REL=103

查看PCI设备:

[root@localhost proc]# lspci

00:00.0 Host bridge: Silicon Integrated Systems [SiS] 651 Host

00:01.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP)

00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS962 [MuTIOL Media IO]

(rev 04)

00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller

00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]

00:02.7Multimedia audio controller: Silicon Integrated Systems [SiS] Sound //集成声卡

Controller (rev a0)

00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)

00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)

00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)

00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller

00:04.0Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast //集成网卡

Ethernet (rev 90)

01:00.0VGA compatible controller: Silicon Integrated Systems [SiS] 65x/M650/740PCI/AGP VGA Display Adapter //集成显卡

查看CPU信息:

cat /proc/cpuinfo

processor : 0

vendor_id : GenuineIntel // Intel

cpu family : 15

model : 1

model name : Intel(R) Celeron(R) CPU 1.70GHz

stepping : 3

cpu MHz : 1703.090

cache size : 128 KB

fdiv_bug : no

hlt_bug : no

f00f_bug : no

coma_bug : no

fpu : yes

fpu_exception : yes

cpuid level : 2

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat

pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm

bogomips : 3411.63

查看内存信息:

cat meminfo

MemTotal: 321104 kB // 256M+128M

MemFree: 5212 kB

Buffers: 10284 kB

Cached: 157304 kB

SwapCached: 0 kB

Active: 171456 kB

Inactive: 117120 kB

HighTotal: 0 kB

HighFree: 0 kB

LowTotal: 321104 kB

LowFree: 5212 kB

SwapTotal: 522104 kB

SwapFree: 522104 kB

Dirty: 116 kB

Writeback: 0 kB

Mapped: 177868 kB

Slab: 19224 kB

CommitLimit: 682656 kB

Committed_AS: 412960 kB

PageTables: 3736 kB

VmallocTotal: 704504 kB

VmallocUsed: 2776 kB

VmallocChunk: 701540 kB

HugePages_Total: 0

HugePages_Free: 0

Hugepagesize: 4096 kB

查看USB设备:

插上我的魅族:

cat /proc/bus/usb/devices

T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6

B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0

D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1

P: Vendor=0000 ProdID=0000 Rev= 2.06

S: Manufacturer=Linux 2.6.15-1.2054_FC5 ehci_hcd

S: Product=EHCI Host Controller

S: SerialNumber=0000:00:03.3

C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA

I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms

T: Bus=04 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 6 Spd=480 MxCh= 0

D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1

P:Vendor=0471ProdID=0000Rev= 0.01

S:Manufacturer=MEIZU Co., Ltd //魅族MP3

S:Product=Meizu E3 HS

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2

B: Alloc= 14/900 us ( 2%), #Int= 1, #Iso= 0

D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1

P: Vendor=0000 ProdID=0000 Rev= 2.06

S: Manufacturer=Linux 2.6.15-1.2054_FC5 ohci_hcd

S: Product=OHCI Host Controller

S: SerialNumber=0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值