原创 嵌入式开发必备-RK3562演示Linux常用系统查询命令(上)触觉智能出品

2024-12-31 10:01 97 0 分类: MCU/ 嵌入式

本文介绍Linux系统查看硬件配置及常用调试命令,方便开发者快速了解开发板硬件信息及进行相关调试。触觉智能RK3562开发板演示,搭载4核A53处理器,主频高达2.0GHz;内置独立1Tops算力NPU,可应用于物联网网关、平板电脑、智能家居、教育电子、工业显示与控制等行业。

查看DDR
  • 获取内存信息

下面数字以MB为单位。

root@ido:/# free -mtotalused        free      shared  buff/cache   availableMem:           1970         287        1316          19         366        1638Swap:             0           0           0
  • 更详细信息可以使用下面命令查看

root@ido:/# cat /proc/meminfoMemTotal:        2017532 kB #总内存的大小MemFree:         1347508 kB #系统当前可用的空闲内存大小MemAvailable:    1677712 kB #系统当前可用的内存大小,这包括空闲内存和缓存的内存。Buffers:           32500 kBCached:           309484 kBSwapCached:            0 kBActive:           108648 kBInactive:         433624 kBActive(anon):       1080 kBInactive(anon):   219252 kBActive(file):     107568 kBInactive(file):   214372 kBUnevictable:        8132 kBMlocked:               0 kBSwapTotal:             0 kBSwapFree:              0 kBDirty:                 0 kBWriteback:             0 kBAnonPages:        208420 kBMapped:           189896 kBShmem:             20044 kBKReclaimable:      33300 kBSlab:              74908 kBSReclaimable:      33300 kBSUnreclaim:        41608 kBKernelStack:        5328 kBPageTables:         7736 kBNFS_Unstable:          0 kBBounce:                0 kBWritebackTmp:          0 kBCommitLimit:     1008764 kBCommitted_AS:    1675032 kBVmallocTotal:   263061440 kBVmallocUsed:       11944 kBVmallocChunk:          0 kBPercpu:              720 kBCmaTotal:          16384 kBCmaAllocated:       1600 kBCmaReleased:       14784 kBCmaFree:            2088 kB
  • 查看DDR频率
下面数字以hz为单位。
root@ido:/# free -mtotalused        free      shared  buff/cache   availableMem:           1970         287        1316          19         366        1638Swap:             0           0           0


查看存储
  • 查看物理存储空间
root@ido:~# lsblkNAMEMAJ:MIN RM  SIZE RO TYPE MOUNTPOINTmmcblk2179:0    0 14.6G  0 disk ├─mmcblk2p1179:1    0    4M  0 part ├─mmcblk2p2179:2    0    4M  0 part ├─mmcblk2p3179:3    0   64M  0 part ├─mmcblk2p4179:4    0  128M  0 part ├─mmcblk2p5179:5    0   32M  0 part ├─mmcblk2p6179:6    0    2G  0 part /media/ido/userdata├─mmcblk2p7179:7    0  128M  0 part /media/ido/oem└─mmcblk2p8179:8    0 12.2G  0 part /mmcblk2boot0179:32   0    4M  1 disk mmcblk2boot1 179:64   0    4M  1 disk 
  • 查看文件系统空间

root@ido:/# df -hFilesystemSize Used Avail Use% Mounted on/dev/root12G 3.5G 8.0G 31% /devtmpfs974M 8.0K 974M 1% /devtmpfs985M 0 985M 0% /dev/shmtmpfs197M 7.6M 190M 4% /runtmpfs5.0M 4.0K 5.0M 1% /run/locktmpfs985M 0 985M 0% /sys/fs/cgrouptmpfs197M 0 197M 0% /run/user/0tmpfs197M 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 /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq408000408000408000408000
  • 查看CPU温度
下面数字以毫摄氏度为单位,需要除以1000即35摄氏度。
root@ido:/# cat /sys/class/thermal/thermal_zone0/temp34375


查看网络信息
  • 查看网络节点及IP
root@ido:~# ifconfigenp1s0: flags=4163  mtu 1500inet192.168.0.96  netmask 255.255.255.0  broadcast 192.168.0.255inet6fe80::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 0TXpackets 31  bytes 5749 (5.7 KB)TXerrors 0  dropped 0 overruns 0  carrier 0  collisions 0deviceinterrupt 90  base 0xd000  eth0: flags=4099  mtu 1500ether8a:18:a3:a0:63:c9  txqueuelen 1000  (Ethernet)RXpackets 0  bytes 0 (0.0 B)RXerrors 0  dropped 0  overruns 0  frame 0TXpackets 0  bytes 0 (0.0 B)TXerrors 0  dropped 0 overruns 0  carrier 0  collisions 0deviceinterrupt 71  eth2: flags=4099  mtu 1500ether8e:18:a3:a0:63:c9  txqueuelen 1000  (Ethernet)RXpackets 0  bytes 0 (0.0 B)RXerrors 0  dropped 0  overruns 0  frame 0TXpackets 0  bytes 0 (0.0 B)TXerrors 0  dropped 0 overruns 0  carrier 0  collisions 0deviceinterrupt 75  lo: flags=73  mtu 65536inet127.0.0.1  netmask 255.0.0.0inet6 ::1  prefixlen 128  scopeid 0x10looptxqueuelen 1000  (Local Loopback)RXpackets 192  bytes 14785 (14.7 KB)RXerrors 0  dropped 0  overruns 0  frame 0TXpackets 192  bytes 14785 (14.7 KB)TXerrors 0  dropped 0 overruns 0  carrier 0  collisions 0wlan0: flags=4099  mtu 1500etherc0:f5:35:12:5a:40  txqueuelen 1000  (Ethernet)RXpackets 0  bytes 0 (0.0 B)RXerrors 0  dropped 0  overruns 0  frame 0TXpackets 0  bytes 0 (0.0 B)TXerrors 0  dropped 0 overruns 0  carrier 0  collisions 0
  • 查看网关
root@ido:~# route -nKernelIP routing tableDestinationGateway         Genmask         Flags Metric Ref    Use Iface0.0.0.0192.168.0.1     0.0.0.0         UG    100    0        0 enp1s0192.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操作系统;

作者: Industio_触觉智能, 来源:面包板社区

链接: https://mbb.eet-china.com/blog/uid-me-4098392.html

版权声明:本文为博主原创,未经本人允许,禁止转载!

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
0
关闭 站长推荐上一条 /3 下一条