5.5.3. Common Operations

5.5.3.1. Check Out Dev Board’s Image Version

​Run uname -a to check system version.

root@x3dvbx3-micron1G-3200:/userdata# uname -a
Linux x3dvbx3-micron1G-3200 4.14.74 #2 SMP PREEMPT Fri Oct 23 10:47:39 CST 2020 aarch64 GNU/Linux

Note

  • SMP indicates that the system can support Symmetrical Multi-Processing.

  • PREEMPT indicates that the system can support preemption core.

  • Oct 23 10:47:39 CST 2020 represents release time of the system image.

  • aarch64 indicates that the aarch64 platform is used.

5.5.3.2. Check System Logs

x3 Yocoto system

root@x3dvbx3-micron1G-3200:/userdata# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.74 (jenkins@sysgbj8) (gcc version 6.5.0 (Linaro GCC 6.5-2018.12)) #2 SMP PREEMPT Fri Oct 23 10:47:39 CST 2020
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Machine model: Hobot X3 SOC MP DVB
[    0.000000] earlycon: hobot0 at MMIO 0x00000000a5000000 (options '')
[    0.000000] bootconsole [hobot0] enabled
...

xj3 ubuntu system

root@xj3ubuntu:/userdata# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.87 (root@sysgbj9) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #2 SMP PREEMPT RT Thu Mar 24 20:46:18 CST 2022
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Machine model: Hobot XJ3 SOC SDB
[    0.000000] earlycon: hobot0 at MMIO 0x00000000a5000000 (options '')
[    0.000000] bootconsole [hobot0] enabled
...

If system failure (e.g. the program is killed or mem allocation failed) takes place when running programs in dev board, run dmesg to see the cause of system failure.

5.5.3.3. Check BPU Utilization

Run hrut_somstatus to check existing BPU utilization of dev board. The outputs are shown as below:

=====================1=====================
temperature-->
  BOARD    : 31.5 (C)
  CPU      : 33.7 (C)
cpu frequency-->
        min       cur     max
  cpu0: 240000        1200000 1200000
  cpu1: 240000        1200000 1200000
  cpu2: 240000        1200000 1200000
  cpu3: 240000        1200000 1200000
bpu status information---->
        min         cur       max       ratio
  bpu0: 400000000     1000000000      1000000000      0      // bpu核0使用率
  bpu1: 400000000     1000000000      1000000000      0      // bpu核1使用率
root@x3dvbx3-micron1G-3200:~#