Essential Embedded Development: RK3562 Linux Commands (Part 1)

Essential Embedded Development: RK3562 Linux Commands (Part 1)
This article introduces commands for checking the hardware configuration and common debugging commands in the Linux system, helping developers quickly understand the hardware information of the development board and perform related debugging.Touch Intelligence RK3562 Development Board demonstration, equipped with a quad-core A53 processor, with a main frequency of up to 2.0GHz; built-in independent 1TOPS computing power NPU, applicable in industries such as IoT gateways, tablets, smart homes, educational electronics, and industrial displays and controls.
Essential Embedded Development: RK3562 Linux Commands (Part 1)
Essential Embedded Development: RK3562 Linux Commands (Part 1)
Check DDR
  • Get memory information

The following numbers are in MB.

root@ido:/# free -m              total        used        free      shared  buff/cache   availableMem:           1970         287        1316          19         366        1638Swap:             0           0           0
  • For more detailed information, you can use the command below
root@ido:/# cat /proc/meminfoMemTotal:        2017532 kB #Total memory sizeMemFree:         1347508 kB #Current available free memory sizeMemAvailable:    1677712 kB #Current available memory size, including free memory and cached memory.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
  • Check DDR frequency
The following numbers are in Hz.
root@ido:/# free -m              total        used        free      shared  buff/cache   availableMem:           1970         287        1316          19         366        1638Swap:             0           0           0

Essential Embedded Development: RK3562 Linux Commands (Part 1)

Essential Embedded Development: RK3562 Linux Commands (Part 1)
Check Storage
  • Check physical storage space
root@ido:~# lsblkNAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTmmcblk2      179:0    0 14.6G  0 disk ├─mmcblk2p1  179:1    0    4M  0 part ├─mmcblk2p2  179:2    0    4M  0 part ├─mmcblk2p3  179:3    0   64M  0 part ├─mmcblk2p4  179:4    0  128M  0 part ├─mmcblk2p5  179:5    0   32M  0 part ├─mmcblk2p6  179:6    0    2G  0 part /media/ido/userdata├─mmcblk2p7  179:7    0  128M  0 part /media/ido/oem└─mmcblk2p8  179:8    0 12.2G  0 part /mmcblk2boot0 179:32   0    4M  1 disk mmcblk2boot1 179:64   0    4M  1 disk 
  • Check filesystem space

root@ido:/# df -hFilesystem      Size  Used Avail Use% Mounted on/dev/root        12G  3.5G  8.0G  31% /devtmpfs        974M  8.0K  974M   1% /devtmpfs           985M     0  985M   0% /dev/shmtmpfs           197M  7.6M  190M   4% /runtmpfs           5.0M  4.0K  5.0M   1% /run/locktmpfs           985M     0  985M   0% /sys/fs/cgrouptmpfs           197M     0  197M   0% /run/user/0tmpfs           197M  8.0K  197M   1% /run/user/1001/dev/mmcblk2p7  121M   12M  101M  11% /media/ido/oem/dev/mmcblk2p6  2.0G   36K  1.8G   1% /media/ido/userdata
Essential Embedded Development: RK3562 Linux Commands (Part 1)
Essential Embedded Development: RK3562 Linux Commands (Part 1)
Check CPU
  • Check CPU frequency

The following numbers are in kHz.

root@ido:/# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq408000408000408000408000
  • Check CPU temperature

The following numbers are in millidegrees Celsius, divide by 1000 for Celsius.
root@ido:/# cat /sys/class/thermal/thermal_zone0/temp34375
Essential Embedded Development: RK3562 Linux Commands (Part 1)Essential Embedded Development: RK3562 Linux Commands (Part 1)
Check Network Information
  • Check network nodes and IP
root@ido:~# ifconfigenp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500        inet 192.168.0.96  netmask 255.255.255.0  broadcast 192.168.0.255        inet6 fe80::a60a:bffe:32d2:8a02  prefixlen 64  scopeid 0x20<link>        ether 9a:55:02:97:d9:a2  txqueuelen 1000  (Ethernet)        RX packets 121  bytes 12817 (12.8 KB)        RX errors 0  dropped 2  overruns 0  frame 0        TX packets 31  bytes 5749 (5.7 KB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0        device interrupt 90  base 0xd000  eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500        ether 8a:18:a3:a0:63:c9  txqueuelen 1000  (Ethernet)        RX packets 0  bytes 0 (0.0 B)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 0  bytes 0 (0.0 B)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0        device interrupt 71  eth2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500        ether 8e:18:a3:a0:63:c9  txqueuelen 1000  (Ethernet)        RX packets 0  bytes 0 (0.0 B)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 0  bytes 0 (0.0 B)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0        device interrupt 75  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536        inet 127.0.0.1  netmask 255.0.0.0        inet6 ::1  prefixlen 128  scopeid 0x10<host>        loop  txqueuelen 1000  (Local Loopback)        RX packets 192  bytes 14785 (14.7 KB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 192  bytes 14785 (14.7 KB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500        ether c0:f5:35:12:5a:40  txqueuelen 1000  (Ethernet)        RX packets 0  bytes 0 (0.0 B)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 0  bytes 0 (0.0 B)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  • Check Gateway
root@ido:~# route -nKernel IP routing tableDestination     Gateway         Genmask         Flags Metric Ref    Use Iface0.0.0.0         192.168.0.1     0.0.0.0         UG    100    0        0 enp1s0192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 enp1s0
For more common Linux system query commands, please follow the next episode.
Essential Embedded Development: RK3562 Linux Commands (Part 1)
Essential Embedded Development: RK3562 Linux Commands (Part 1)Product Introduction
Touch IntelligenceRK3562 Development Board (Model EVB3562), designed based on Rockchip’s new generation SoC RK3562/RK3562J, suitable for lightweight artificial intelligence applications. The EVB3562 development board is equipped with PCIe 2.1/USB 3.0 OTG/gigabit Ethernet ports and supports 4G/5G communication, multiple cameras, and various video interfaces, applicable in fields such as IoT gateways, tablets, smart homes, educational electronics, industrial displays, and industrial control.
Essential Embedded Development: RK3562 Linux Commands (Part 1)
  • Equipped with Rockchip’s new generation RK3562/RK3562J chip;
  • 1TOPS computing power NPU, supports INT8/INT16/FP16
    and other data types operations;
  • Supports 4K@30FPS and 1080P@60FPS video decoding;
  • 13M ISP, supports HDR and multi-camera video acquisition;
  • Single MIPI-DSI channel, up to 2048 x 1080@60fps;
  • Single LVDS channel, up to 1366 x 768@60fps;
  • Three independent Ethernet ports, two gigabit Ethernet ports,
    one hundred megabit Ethernet port;
  • Supports 5G/4G/WiFi/Bluetooth wireless communication;
  • Supports Android and Linux operating systems;
Taobao Purchase Link:https://item.taobao.com/item.htm?ft=t&id=739666345147
END
Essential Embedded Development: RK3562 Linux Commands (Part 1)

Leave a Comment