yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
RDK X5 MagicBox📖
1.RDK MagicBox
  • 1. RDK MagicBox Official Materials
  • 2. Troubleshooting boot failure
  • 3. Linux memory query
2.RDK MagicBox Introduction
  • 1. Introduction to RDK MagicBox
  • 2. Write System File
  • 3. Hardware Interface Description
3.RDK MagicBox User Guide
1. Quick Start
  • Quick Start
2. Basic Peripheral Usage
  • Basic Peripheral Usage
3. Algorithm Development
  • 1. Stereo Depth Estimation
  • 2. Gesture Interaction
  • 3. Voice Interaction
4.RDK MagicBox Basic Settings
  • 1.Network configuration
  • 2.Remote login
  • 3.Update system
  • 4.srpi-config user guide
  • 5.config. txt configuration file
  • 6.Self-startup setting
  • 7.RDK exclusive command usage
  • 8.Linux command usage
  • 9.GPIO readwrite operation
  • 10.Image classification algorithm
  • 11.Use USB camera
  • 12.MIPI Camera Usage
5.RDKX5 Magicbox Basic Development Course
For C language
  • 1. Camera Image Acquisition and Display
  • 2. Camera Image Local Saving
  • 3. Camera Image Acquisition and Encoding
  • 4. Video File Decoding and Display
  • 5. RTSP Stream Decoding
  • 6. VPS Scaling Example
  • 7. Target Detection Algorithm — focs
  • 8. Target Detection Algorithm — YOLOv5s
  • 9. Using CAN
For Python language
  • 1. Prerequisites Before Using Pin Functions
  • 2. Using GPIO
  • 3. Using PWM
  • 4. Use serial port
  • 5. Using I2C
  • 6. Using SPI
For Linux Development
  • Linux Development Guide
6.Online AI Model Course
Online AI Model Course(Text Interaction)
  • 0. Preparation before use
  • 1. OpenRouter Large Model API Aggregation Platform
  • 2. Multimodal Visual Understanding Application
  • 3. Multimodal Visual Positioning Application
  • 4. Multimodal Table Scanning Application
  • 5. Multimodal Autonomous Agent Application
Online AI Model Course(Voice Interaction)
  • 1. Online Speech‑to‑Text (ASR)
  • 2. Online Text‑to‑Speech (TTS)
  • 3. AI Large Model Voice Interaction
  • 4. Multimodal Visual Voice Interaction
  • 5. Multimodal Visual Positioning Application
  • 6. Multimodal Table Scanning Application
  • 7. Multimodal Autonomous Agent Application
  • 8. AI Large Model Online Voice Assistant
7.OpenClaw Embodied AI Development
  • 1. Introduction to OpenClaw
  • 2. OpenClaw Deployment
  • 3. OpenClaw Whatsapp Plugin Application
  • 4. OpenClaw WebChat Interaction
  • 5. OpenClaw TUI Interaction
  • 6. OpenClaw Tool Introduction
  • 7. OpenClawGate Gateway User Manual
  • 8. OpenClaw Plugin Feature Introduction
  • 9. OpenClaw ClawHub Introduction (skill installation)
  • 10. OpenClaw Application - File Management
  • 11. OpenClaw Application - Camera
  • 12. OpenClaw Application - Browser Control
  • 13. OpenClaw Application - Script Execution
  • 14. OpenClaw Application - AI‑programmed Status Light Control
  • 15. OpenClaw Application - AI‑programmed Servo Control
  • 16. OpenClaw Application - Dedicated AI Assistant
8.ROS2 Basic Tutorial
  • 1.Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
Download
  • Code
  • Software_tools
  • SystemFile
Download ZIP

Welcome to RDK X5 MagicBox repository

7.RDK exclusive command usage

RDK exclusive command usage

RDK exclusive command usage1. hrut_boardid2. hrut_ps3. rdk-miniboot-update4. rdkos_info

1. hrut_boardid

hrut_boardid command is used to get the number of the current development board (different development boards have different numbers).

⚠️ boardid will affect the initialization of the hardware at startup, please set it with caution.

  • Syntax

    xxxxxxxxxx
    hrut_boardid -h
    Usage:
            hrut_boardid: prints current boardid
            -h: Print this message

2. hrut_ps

hrut_ps command prints process status information including process number, parent process number, priority, memory, virtual memory, etc. which are not supported by busybox's ps command.

  • Syntax

xxxxxxxxxx
  hrut_ps
  • Supported information

  • pid: Process ID. Each process has a unique identification number in the operating system, called the process ID (pid). It is used to uniquely identify and identify a process in the system.

  • ppid: Parent process ID. It indicates the parent process that created the process.

  • state

    : Running state.

  • I: Idle.
  • R: Running.
  • S: Sleeping.
  • D: Disk Sleeping.
  • T: Stopped.
  • X: Dead.
  • Z: Zombie.
  • t: Tracing stop.
  • P: Parked.
  • prio: Priority. Indicates the scheduling priority of the process, usually a numerical value. A higher value indicates a higher priority, and the process may be more likely to obtain CPU time slices.
  • nice: Scheduling priority. Indicates the scheduling priority of the process, usually an integer value. A lower nice value indicates a higher priority, allowing the process to obtain CPU time more frequently.
  • rt_prio: Real-time priority. Indicates the priority of the real-time process, and a lower value indicates a higher real-time priority.
  • policy: Scheduling policy. Indicates the scheduling policy of the process, usually a scheduling algorithm, such as first-come, first-served (FIFO), round-robin, etc.
  • vsize: Virtual memory size. Indicates the virtual memory size of the process, that is, the size of the virtual address space that the process can access.
  • rss: Physical memory usage. Indicates the physical memory size currently occupied by the process, that is, the physical RAM size actually allocated to the process.
  • comm: Command name. Contains the command name of the process or the name of the executable file, used to identify the type or purpose of the process.

3. rdk-miniboot-update

rdk-miniboot-update command is used to update the minimal boot image (miniboot) of the RDK hardware.

  • Syntax

xxxxxxxxxx
sudo rdk-miniboot-update [options]... [FILE]
  • Option Description

Options are optional and not required. If run without any option parameters, rdk-miniboot-update will use the latest version of the miniboot image to complete the upgrade.

  • -f: Install the specified file instead of installing the latest applicable update.
  • -h: Display help text and exit.
  • -l: Return the full path to the latest available miniboot image according to the FIRMWARE_RELEASE_STATUS and FIRMWARE_IMAGE_DIR settings. You can see what image file is used for the update without option parameters.
  • -s: Do not display progress messages.
  • Common commands

Update the miniboot image to the latest version

xxxxxxxxxx
sudo rdk-miniboot-update

Update to use the specified miniboot image

xxxxxxxxxx
sudo rdk-miniboot-update -f /userdata/miniboot.img

Check which image file will be used for update without option parameters

xxxxxxxxxx
sunrise@ubuntu:~$ rdk-miniboot-update -l
/lib/firmware/rdk/miniboot/default/disk_nand_minimum_boot_2GB_3V3_20230413.img

4. 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 log of the RDK system at one time, so that users can quickly obtain the current system status information.

  • Syntax

xxxxxxxxxx
sudo rdkos_info [options]
  • Option Description

All options are optional, not required. If run without any option parameters, rdkos_info will install the simple mode output information by default.

  • -b: Basic output mode, no system logs will be collected.
  • -s: Simple output mode (default), output 30 lines of the latest system log.
  • -d: Detailed output mode, output 300 lines of the latest system log.
  • -v: Display version information.
  • -h: Display help information.
  • Common commands

Default usage

xxxxxxxxxx
sudo rdkos_info

Part of the output is as follows:

​x
================ RDK System Information Collection ================

[Hardware Model]:
        D-Robotics RDK X5 V1.0 (Board Id = 302)

bash: hrut_somstatus: No such file or directory
[CPU And BPU Status]:


[Total Memory]:         3.0Gi
[Used Memory]:          596Mi
[Free Memory]:          1.4Gi
[ION Memory Size]:      128MB
[ION Reserved Memory Size]:     320MB
[ION Carveout Memory Size]:     320MB


[RDK OS Version]:
        3.0.0

[RDK Kernel Version]:
        Linux ubuntu 6.1.83 #6 SMP PREEMPT Wed Sep 18 11:44:41 CST 2024 aarch64 aarch64 aarch64 GNU/Linux

[RDK Miniboot Version]:
        U-Boot 2022.10-gc224213d-dirty (Sep 06 2024 - 17:17:44 +0800)
Self-startup setting
Linux command usage

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文