how to get Raspberry Pi System Information All In One
如何获取树莓派系统信息
$ cd /proc && ls
$ cd /proc && ls -al
version
$ cat /proc/version
Linux version 5.15.84-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023
cpuinfo CPU
$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
Hardware : BCM2835
Revision : a22082
Serial : 0000000095bf9be6
Model : Raspberry Pi 3 Model B Rev 1.2
meminfo 内存
$ cat /proc/meminfo
MemTotal: 931460 kB
MemFree: 135776 kB
MemAvailable: 602524 kB
Buffers: 26604 kB
Cached: 476416 kB
SwapCached: 0 kB
Active: 109196 kB
Inactive: 591260 kB
Active(anon): 984 kB
Inactive(anon): 201676 kB
Active(file): 108212 kB
Inactive(file): 389584 kB
Unevictable: 16 kB
Mlocked: 16 kB
SwapTotal: 102396 kB
SwapFree: 102140 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 197484 kB
Mapped: 155512 kB
Shmem: 5224 kB
KReclaimable: 28016 kB
Slab: 53512 kB
SReclaimable: 28016 kB
SUnreclaim: 25496 kB
KernelStack: 3872 kB
PageTables: 6184 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 568124 kB
Committed_AS: 1163016 kB
VmallocTotal: 259653632 kB
VmallocUsed: 11004 kB
VmallocChunk: 0 kB
Percpu: 688 kB
CmaTotal: 262144 kB
CmaFree: 92120 kB
partitions 分区
$ cat /proc/partitions
major minor #blocks name
1 0 4096 ram0
1 1 4096 ram1
1 2 4096 ram2
1 3 4096 ram3
1 4 4096 ram4
1 5 4096 ram5
1 6 4096 ram6
1 7 4096 ram7
1 8 4096 ram8
1 9 4096 ram9
1 10 4096 ram10
1 11 4096 ram11
1 12 4096 ram12
1 13 4096 ram13
1 14 4096 ram14
1 15 4096 ram15
179 0 31166976 mmcblk0
179 1 262144 mmcblk0p1
179 2 30900736 mmcblk0p2
vcgencmd
$ vcgencmd measure_temp
# temp=46.7'C
$ vcgencmd measure_volts core
volt=1.3062V
$ vcgencmd measure_clock arm
frequency(48)=600062000
$ vcgencmd codec_enabled H264
$ vcgencmd get_mem arm
arm=948M
$ vcgencmd get_mem gpu
gpu=76M
free
$ free --help
$ free -h
total used free shared buff/cache available
内存: 909Mi 257Mi 133Mi 5.0Mi 518Mi 588Mi
交换: 99Mi 0.0Ki 99Mi
devicetree
# ❌
$ cat /sys/firmware/devicetree/model
$ cd /sys/firmware/devicetree/ && ls
# base
$ cd /sys/firmware/devicetree/base && ls
# model
# ...
# leds
# ✅
$ cat /sys/firmware/devicetree/base/model
# Raspberry Pi 3 Model B Rev 1.2
# leds
$ cd /sys/firmware/devicetree/base/leds
# led-act
# led-pwr
$ cd /sys/firmware/devicetree/base/leds && ls -al
总用量 0
drwxr-xr-x 4 root root 0 4月 10 15:55 .
drwxr-xr-x 25 root root 0 8月 7 2022 ..
-r--r--r-- 1 root root 10 4月 10 15:58 compatible
drwxr-xr-x 2 root root 0 4月 10 15:58 led-act
drwxr-xr-x 2 root root 0 4月 10 15:58 led-pwr
-r--r--r-- 1 root root 5 4月 10 15:58 name
-r--r--r-- 1 root root 4 4月 10 15:58 phandle
pi@raspberrypi:/sys/firmware/devicetree/base/leds $ cat name
ledspi@raspberrypi:/sys/firmware/devicetree/base/leds $ cd led-act/
pi@raspberrypi:/sys/firmware/devicetree/base/leds/led-act $ ls
default-state gpios label linux,default-trigger name phandle
pi@raspberrypi:/sys/firmware/devicetree/base/leds/led-act $ cat gpios
7pi@raspberrypi:/sys/firmware/devicetree/base/leds/led-act $ cat label
led0pi@raspberrypi:/sys/firmware/devicetree/base/leds/led-act $
(? 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
refs
https://linuxhint.com/find-hardware-information-raspberry-pi/
关闭
电源管理
DPMS (Display Power Management Signaling)
DPMS
(显示器电源管理信号)
https://www.cnblogs.com/xgqfrms/p/16481735.html#5166435
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 ?️,侵权必究⚠️!
- Information Raspberry System how getinformation raspberry system how information raspberry product portal raspberry storage device system 设备information文件system raspberry experience raspberry all one raspberry password username modify raspberry the address without quot raspberry usbmodem macos raspberry hyper-v vagrant 2023.4