2024-12-31 10:01
105 次阅读|
0 个评论
本文介绍Linux系统查看硬件配置及常用调试命令,方便开发者快速了解开发板硬件信息及进行相关调试。 触觉智能RK3562开发板 演示,搭载4核A53处理器,主频高达2.0GHz;内置独立1Tops算力NPU,可应用于物联网网关、平板电脑、智能家居、教育电子、工业显示与控制等行业。 查看DDR 获取内存信息 下面数字以MB为单位。 root @ido :/ #free-m totalused free shared buff/cache available Mem: 1970 287 1316 19 366 1638 Swap: 0 0 0 更详细信息可以使用下面命令查看 root @ido :/ #cat/proc/meminfo MemTotal: 2017532 kB #总内存的大小 MemFree: 1347508 kB #系统当前可用的空闲内存大小 MemAvailable: 1677712 kB #系统当前可用的内存大小,这包括空闲内存和缓存的内存。 Buffers: 32500 kB Cached: 309484 kB SwapCached: 0 kB Active: 108648 kB Inactive: 433624 kB Active (anon): 1080 kB Inactive(anon): 219252 kB Active (file): 107568 kB Inactive(file): 214372 kB Unevictable: 8132 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 208420 kB Mapped: 189896 kB Shmem: 20044 kB KReclaimable: 33300 kB Slab: 74908 kB SReclaimable: 33300 kB SUnreclaim: 41608 kB KernelStack: 5328 kB PageTables: 7736 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 1008764 kB Committed_AS: 1675032 kB VmallocTotal: 263061440 kB VmallocUsed: 11944 kB VmallocChunk: 0 kB Percpu: 720 kB CmaTotal: 16384 kB CmaAllocated: 1600 kB CmaReleased: 14784 kB CmaFree:2088kB 查看DDR频率 下面数字以hz为单位。 root @ido :/ #free-m totalused free shared buff/cache available Mem: 1970 287 1316 19 366 1638 Swap: 0 0 0 查看存储 查看物理存储空间 root @ido :~ #lsblk NAMEM AJ:MI N RM SIZE RO TYPE MOUNTPOINT mmcblk2179:0 0 14.6G 0 disk ├─mmcblk 2p1179:1 0 4 M 0 part ├─mmcblk 2p2179:2 0 4 M 0 part ├─mmcblk 2p3179:3 0 64 M 0 part ├─mmcblk 2p4179:4 0 128 M 0 part ├─mmcblk 2p5179:5 0 32 M 0 part ├─mmcblk2p6179:6 0 2G 0 part /media/ido/userdata ├─mmcblk2p7179:7 0 128M 0 part /media/ido/oem └─mmcblk 2p8179:8 0 12 . 2 G 0 part / mmcblk2boot0179:32 0 4M 1 disk mmcblk2boot 1179:64 0 4 M 1 disk 查看文件系统空间 root @ido :/ #df-h FilesystemSize Used Avail Use% Mounted on /dev/root12G 3.5G 8.0G 31% / devtmpfs974M 8.0K 974M 1% /dev tmpfs985M 0 985M 0% /dev/shm tmpfs197M 7.6M 190M 4% /run tmpfs5.0M 4.0K 5.0M 1% /run/lock tmpfs985M 0 985M 0% /sys/fs/cgroup tmpfs197M 0 197M 0% /run/user/0 tmpfs197M 8.0K 197M 1% /run/user/1001 /dev/mmcblk2p7121M 12M 101M 11% /media/ido/oem /dev/mmcblk2p62.0G 36K 1.8G 1% /media/ido/userdata 查看CPU 查看CPU频率 下面数字以kHz为单位。 root @ido : /#cat/s ys/devices/ system /cpu/cpu* /cpufreq/ cpuinfo_cur_freq 408000 408000 408000 408000 查看CPU温度 下面数字以毫摄氏度为单位,需要除以1000即35摄氏度。 root @ido : /#cat/ sys /class/ thermal /thermal_zone0/ temp 34375 查看网络信息 查看网络节点及IP root @ido :~ #ifconfig enp1s0: flags=4163 mtu 1500 inet 192.168.0.96 netmask 255.255.255.0 broadcast 192.168.0.255 inet6fe80::a60a:bffe:32d2:8a02 prefixlen 64 scopeid 0x20< link ether9a: 55 : 02 : 97 :d9 :a2 txqueuelen 1000 ( Ethernet ) RXpackets 121 bytes 12817 ( 12 . 8 KB) RXerrors 0 dropped 2 overruns 0 frame 0 TXpackets 31 bytes 5749 ( 5 . 7 KB) TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0 deviceinterrupt 90 base 0xd000 eth0: flags=4099 mtu 1500 ether8a: 18 :a3 :a0 : 63 :c9 txqueuelen 1000 ( Ethernet ) RXpackets 0 bytes 0 ( 0.0 B ) RXerrors 0 dropped 0 overruns 0 frame 0 TXpackets 0 bytes 0 ( 0.0 B ) TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0 deviceinterrupt 71 eth2: flags=4099 mtu 1500 ether8e: 18 :a3 :a0 : 63 :c9 txqueuelen 1000 ( Ethernet ) RXpackets 0 bytes 0 ( 0.0 B ) RXerrors 0 dropped 0 overruns 0 frame 0 TXpackets 0 bytes 0 ( 0.0 B ) TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0 deviceinterrupt 75 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0 x10 looptxqueuelen 1000 (Local Loopback) RXpackets 192 bytes 14785 ( 14 . 7 KB) RXerrors 0 dropped 0 overruns 0 frame 0 TXpackets 192 bytes 14785 ( 14 . 7 KB) TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099 mtu 1500 etherc0:f5:35:12:5a:40 txqueuelen 1000 (Ethernet) RXpackets 0 bytes 0 ( 0.0 B ) RXerrors 0 dropped 0 overruns 0 frame 0 TXpackets 0 bytes 0 ( 0.0 B ) TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0 查看网关 root @ido :~ #route-n KernelIP routing table DestinationGateway Genmask Flags Metric Ref Use Iface 0 . 0.0.0192 . 168.0.1 0.0.0.0 UG 100 0 0 enp1s0 192.168.0.00 . 0 . 0 . 0 255.255.255.0 U 100 0 0 enp1s0 更多Linux常用系统查询命令,请关注下集。 产品简介 触觉智能 RK3562 开发板 (型号EVB3562),基于瑞芯微新一代Soc RK3562/RK3562J设计,可用于轻量级人工智能应用。EVB3562开发板配备了PCIe2.1/USB3.0 OTG/千兆网口等各类型接口,支持4G/5G通信、多摄像头及多种视频接口,可应用于物联网网关、平板电脑、智能家居、教育电子、工业显示、工业控制等行业领域。 搭载瑞芯微新一代RK3562/RK3562J芯片; 1TOPS算力NPU,支持INT8/INT16/FP16 等数据类型运算; 支持4K@30FPS与1080P@60FPS视频解码; 13M ISP,支持HDR与多路摄像头视频采集; 单路MIPI-DSI,最高2048 x 1080@60fps ; 单通道LVDS,最高1366 x 768@60fps ; 三路独立的以太网口,其中两路千兆网口, 一路百兆网口; 支持5G/4G/WiFi/蓝牙无线通信; 支持Android,Linux操作系统;