4.7.14. hrut_somstatus

hrut_somstatus is used to monitor and output system hardware status information in real time. It retrieves data such as temperature, CPU frequency, BPU frequency, DDR frequency, and GPU frequency by reading system device files, and displays the information in a specified format.

4.7.14.1. Syntax Description

Below is the Usage output from executing hrut_somstatus -h:

hrut_somstatus -h
Usage: /usr/hobot/bin/hrut_somstatus [-n count] [-d second]

4.7.14.2. Option Arguments Description

The following are the options supported by hrut_somstatus and their descriptions:

  • -n count: Specifies the number of times the script executes (default is 1).

  • -d second: Sets the sleep duration between each output (default is 1 second).

  • -h: Displays help information.

4.7.14.3. Command Options and Functional Descriptions

Default Usage

Command:

root@buildroot:~# hrut_somstatus

Output:

=====================1=====================
temperature-->
        DDR      : 53.0 (C)
        BPU      : 52.2 (C)
        CPU      : 52.3 (C)
cpu frequency-->
              min(M)    cur(M)  max(M)
        cpu0: 300       1500    1500
        cpu1: 300       1200    1500
        cpu2: 300       1500    1500
        cpu3: 300       1200    1500
        cpu4: 300       1200    1500
        cpu5: 300       1200    1500
        cpu6: 300       1500    1500
        cpu7: 300       1200    1500
bpu status information---->
              min(M)    cur(M)  max(M)  ratio
        bpu0: 500       1000    1000    0
ddr frequency information---->
              min(M)    cur(M)  max(M)
        ddr:  266       4266    4266
GPU gc8000 frequency information---->
              min(M)    cur(M)  max(M)
        gc8000:  200    1000    1000

Functionality:
By default, this command displays temperature, CPU frequency, BPU frequency, DDR frequency, and GPU frequency information once in the specified format.

Result Interpretation:

  • temperature

    • DDR: Indicates DDR temperature, currently at 53.0°C.

    • BPU: Indicates BPU temperature, currently at 52.2°C.

    • CPU: Indicates CPU temperature, currently at 52.3°C.

  • cpu frequency

    • min: The minimum frequency at which the CPU can operate.

    • cur: The current operating frequency of the CPU.

    • max: The maximum frequency at which the CPU can operate.

  • bpu status information

    • min: The minimum frequency at which the BPU can operate.

    • cur: The current operating frequency of the BPU.

    • max: The maximum frequency at which the BPU can operate.

    • ratio: The load ratio during BPU operation.

  • ddr frequency information

    • min: The minimum frequency at which DDR can operate.

    • cur: The current operating frequency of DDR.

    • max: The maximum frequency at which DDR can operate.

  • GPU gc8000 frequency information

    • min: The minimum frequency at which the GPU can operate.

    • cur: The current operating frequency of the GPU.

    • max: The maximum frequency at which the GPU can operate.

Display Multiple Status Readings

Command:

root@buildroot:~# hrut_somstatus -n 5

Functionality:
This command prints temperature, CPU frequency, BPU frequency, DDR frequency, and GPU frequency information five times consecutively, formatted as specified.

=====================5=====================
temperature-->
        DDR      : 53.1 (C)
        BPU      : 52.5 (C)
        CPU      : 52.6 (C)
cpu frequency-->
              min(M)    cur(M)  max(M)
        cpu0: 300       1500    1500
        cpu1: 300       1200    1500
        cpu2: 300       1200    1500
        cpu3: 300       1500    1500
        cpu4: 300       1200    1500
        cpu5: 300       1200    1500
        cpu6: 300       1500    1500
        cpu7: 300       1200    1500
bpu status information---->
              min(M)    cur(M)  max(M)  ratio
        bpu0: 500       1000    1000    0
ddr frequency information---->
              min(M)    cur(M)  max(M)
        ddr:  266       4266    4266
GPU gc8000 frequency information---->
              min(M)    cur(M)  max(M)
        gc8000:  200    1000    1000

Set Interval Time Between Outputs

Command:

hrut_somstatus -n 5 -d 2

Functionality:
This command prints temperature, CPU frequency, BPU frequency, DDR frequency, and GPU frequency information five times consecutively, with a 2-second delay between each output.