硬件信息查询手册
本手册介绍如何在 Linux 系统中查询常见硬件组件的型号和信息,便于快速定位和确认硬件配置。
Wi-Fi 芯片型号查询
查询方法
cat /sys/bus/sdio/devices/*/vendor
cat /sys/bus/sdio/devices/*/device
示例输出
0x024c
0xb852
结果说明
查询结果为 vendor:device ID,可根据下表确认芯片型号:
| Vendor:Device ID | 厂商 | Wi-Fi 芯片型号 |
|---|---|---|
0x02d0:0xaae8 | Broadcom | AP6275S |
0x024c:0xb852 | Realtek | RTL8852 |
0x024c:0xd723 | Realtek | RTL8723DS |
0x024c:0xc821 | Realtek | RTL8821CS |
0x1ffe:0x6316 | Neardi | FD7352S |
0x0000:0x0000 | Neardi | FD7256S |
eMMC 存储器型号查询
查询方法一:parted
sudo parted -l
示例输出
Model: MMC A3A552 (sd/mmc)
Disk /dev/mmcblk0: 62.6GB
结果说明
Model: MMC A3A552→ eMMC 型号为 A3A552
查询方法二:CID 信息
cat /sys/block/mmcblk0/device/cid
示例输出:
d629034133413535321049c2b0438b00
CID 各字段含义:
- 制造商 ID
- 产品名称
- 产品序列号
- 生产日期
- CRC 校验
查询方法三:设备名称
cat /sys/block/mmcblk0/device/name
常见 eMMC 厂商对照
| 制造商 ID | 厂商 |
|---|---|
| 0x15 | Samsung |
| 0x90 | Hynix |
| 0x11 | Toshiba |
| 0x45 | SanDisk |
| 0xfe | Foresee |
以太网芯片型号查询
查询方法一:接口信息
ip link show
ethtool eth0
ethtool -i eth0
查询方法二:PCI 设备
lspci | grep -i ethernet
查询方法三:USB 网卡
lsusb
lsusb -t
常见以太网芯片对照
| 驱动名 | 芯片型号 | 厂商 |
|---|---|---|
| r8169 | RTL8168/8111 | Realtek |
| r8152/r8153 | RTL8152/8153 | Realtek (USB) |
| stmmac | RTL8211F | Realtek (PHY) |
| yt8521 | YT8521/8531 | Motorcomm |
| bcmgenet | BCMxxxx | Broadcom |
CPU 信息查询
查询方法
cat /proc/cpuinfo
lscpu
示例输出
Architecture: aarch64
Model name: Cortex-A76
CPU MHz: 2208.000
内存信息查询
查询方法
cat /proc/meminfo
free -h
示例输出
MemTotal: 2000000 kB
MemFree: 450000 kB
存储设备查询
查询方法
lsblk
lsblk -f
df -h
fdisk -l
示例输出
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 59.5G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot
└─mmcblk0p2 179:2 0 59G 0 part /
USB 设备查询
查询方法
lsusb
lsusb -v
示例输出
Bus 001 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
系统硬件概览
查询方法
lshw
lshw -short
lshw -class network
lshw -class storage
示例输出
H/W path Device Class Description
===================================================
/0/1 memory 2GiB System memory
/0/2 processor ARM Cortex-A76
/0/100/1 eth0 network Ethernet interface
温度信息查询
1、通过 /sys/class/thermal 查询
查看某个核心温度:
cat /sys/class/thermal/thermal_zone0/temp
返回值单位通常是毫度摄氏 (m°C),比如 55000 表示 55°C。
type 文件表示温度类型,例如:
cat /sys/class/thermal/thermal_zone0/type
# soc-thermal
cat /sys/class/thermal/thermal_zone5/type
# gpu-thermal
cat /sys/class/thermal/thermal_zone6/type
# npu-thermal
2、通过 sensors 命令(lm-sensors)
安装 lm-sensors:
sudo apt update
sudo apt install lm-sensors
查看温度:
neardi@LPA3588:~/$ sensors
npu_thermal-virtual-0
Adapter: Virtual device
temp1: +38.8°C (crit = +115.0°C)
center_thermal-virtual-0
Adapter: Virtual device
temp1: +38.8°C (crit = +115.0°C)
bigcore1_thermal-virtual-0
Adapter: Virtual device
temp1: +38.8°C (crit = +115.0°C)
soc_thermal-virtual-0
Adapter: Virtual device
temp1: +38.8°C (crit = +115.0°C)
tcpm_source_psy_6_0022-i2c-6-22
Adapter: rk3x-i2c
in0: 5.00 V (min = +5.00 V, max = +5.00 V)
curr1: 0.00 A (max = +0.00 A)
gpu_thermal-virtual-0
Adapter: Virtual device
temp1: +38.8°C (crit = +115.0°C)
littlecore_thermal-virtual-0
Adapter: Virtual device
temp1: +39.8°C (crit = +115.0°C)
bigcore0_thermal-virtual-0
Adapter: Virtual device
temp1: +38.8°C (crit = +115.0°C)
故障排除
- 某些命令需要 root 权限
- 如果命令不存在,可安装工具包:
sudo apt update
sudo apt install pciutils usbutils ethtool lshw
- 常见调试命令:
lsmod
ls /proc/device-tree/
dmesg | grep -i "wifi\|ethernet\|mmc"