RDK-specific commands usage

1. devmem

devmem is a command in busybox. It is possible to read and write the values of hardware registers. By using the mmap method in the/dev/mem driver through the mmap function, the device's memory is mapped to user space, enabling read and write operations on these physical addresses.

2. hrut_boardid

The hrutdboardid command is used to obtain the current development board number (different development boards have different numbers).

⚠️Boardid can affect the initialization of hardware during startup, please set it carefully.

 MeaningLengthValue range
auto detectDDR automatic detection function1bit [31]0x0:auto detection 0x1:Do not use LPDDR4 auto detection function
modelDDR manufacturer information3bit [30:28]0x0: auto detection 0x1: hynix,0x2: micron,0x3: samsung
ddr_typeDDR type4bit [27:24]0x0: auto detection 0x1: LPDDR4 0x2: LPDDR4X 0x3: DDR4 0x4: DDR3L
frequencyDDR frequency4bit [23:20]0x0: auto detection 0x1: 667 0x2: 1600 0x3: 2133 0x4: 2666 0x5: 3200 0x6: 3733 0x7: 4266 0x8: 1866 0x9: 2400 0xa: 100 0xb: 3600
capacityDDR capacity4bit [19:16]0x0: auto detection 0x1: 1GB 0x2: 2GB 0x4: 4GB
ecc 4bit [15:12]0x0: default ECC config 0x1: inline ECC all 0x2: inline ecc option1 0x3: inline ecc option2
som_typeSOM types 4bit [11:8]0x0: auto detection 0x3:sdb v3 0x4:sdb v4 0x5:RDK X3 v1 0x6:RDK X3 v1.2 0x8:RDK X3 v2 0xb:RDK Module 0xF: X3E
DFS ENFM enable position1bit [7]1: Enable FM function 0: Do not enable FM function
alternativealternaive paramter3bit [6:4]0x0: default configure 0x1: config1
base_board_typeBottom plate type4bit [3:0]0x0: auto detection 0x1: X3 DVB 0x4: X3 SDB 0x5: customer board

The definitions of each field are as follows:

3. hrut_ps

The hrut-ps command prints process status information that is not supported by busybox's ps command, including process number, parent process number, priority, memory, virtual memory, etc.

 

4. hrut_socid

hrut-socid command prints the UID (unique identifier) of the current SOC chip.

4

5. hrut_somstatus

The hrut-somstatus command can obtain the temperature sensor temperature, CPU/BPU operating frequency, and BPU load.

温度

**temperature:

cpu frequency:

**bpu status information:

6. rdk-miniboot-update

rdk-miniboot-update

This command is used to update the minimum boot image (miniboot) of RDK hardware.

All options are optional and not mandatory. If run without any option parameters, rdk-miniboot-updatewill use the latest version of the minibootimage to complete the upgrade and update.

Update the minibootimage to the latest version.

Update to use the specifiedminibootimage.

What image file will be used for updating when viewing without option parameters.

7. rdkos_info

rdkos_info command is used to collect the software and hardware versions, driver loading list, RDK software package installation list, and the latest system logs of the RDK system at once, making it convenient for users to quickly obtain the current system status information.

All options are optional and not mandatory. If run without any option parameters,,rdkos_infowill default to installing concise mode to output information.

Default Usage

Partial outputs are as follows.