4. Buildroot Application

In the Buildroot rockit version, the rkipc service starts automatically after system boot. To avoid conflicts during function tests, stop the rkipc service before testing other functions.

Stop the rkipc service
1RkLunch-stop.sh
Restart the rkipc service after testing
1RkLunch.sh

4.1 Serial Terminal

_images/debug.webp

❶ Connect the USB-to-serial module to the PC and connect the other end to the Debug UART interface on the board.

❷ Open a serial terminal tool on the PC, select the corresponding serial port, and set the baud rate to 1500000.

❸ Power on the board and check whether the boot log is displayed in the serial terminal.

Terminal_UI

4.2 Display

HDMI

The KIT1126B uses an LT9611 MIPI-to-HDMI bridge chip to convert the MIPI DSI display signal to HDMI output. The HDMI interface supports 1920×1080@60Hz video output.

HDMI status check
1cat /sys/class/lt9611/hdmi/status

Buildroot provides two variants: GStreamer and Rockit. The display output may vary depending on which firmware version is used.

4.2.1 GStreamer

Connect the board and HDMI, then start up. After the GStreamer version is started, the display output is shown in the following figure:

_images/GStreamer_display_buildroot.webp

4.2.2 Rockit

After the system boots with the Rockit version, if four MIPI cameras are connected before power-on, the system displays a combined preview of the four MIPI camera channels on the screen by default.

_images/Rockit_display_buildroot.webp

If the four MIPI cameras are not connected, the desktop UI will not be displayed after boot-up.

4.3 USB

_images/USB.webp

4.3.1 USB3.0 DRD

The KIT1126B USB3.0 DRD supports both Host and Device roles, with Device as the default configuration for image flashing/upgrading. It can be switched to host mode by command, after which it supports peripherals such as mouse, keyboards, and USB flash drives.

Switch USB3.0 DRD to USB Host mode
1echo host > /sys/kernel/debug/usb/21500000.usb/mode

In USB host mode, when a USB flash drive is connected, it is mounted automatically. The current USB connection speed can be checked in the kernel log.

  • When the device operates in USB2.0 mode, the log usually shows high-speed.

  • When the device operates in USB3.0 mode, the log usually shows SuperSpeed.

Switch USB3.0 DRD back to Device mode
1echo device > /sys/kernel/debug/usb/21500000.usb/mode
2usbdevice start

4.3.2 USB2.0 Host

The USB2.0 Host can connect peripherals such as mouse, keyboards, and flash drives.

After a USB flash drive is connected, it will be mounted automatically. Check the mounted path.

1df -h
Serial terminal output
root@rv1126b-buildroot:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       5.9G  446M  5.3G   8% /
devtmpfs        959M     0  959M   0% /dev
tmpfs           987M  844K  986M   1% /run
tmpfs           987M  256K  987M   1% /var/log
tmpfs           987M     0  987M   0% /dev/shm
tmpfs           987M  136K  987M   1% /tmp
/dev/mmcblk0p8  881M  292K  880M   1% /userdata
/dev/mmcblk0p7  124M  5.3M  118M   5% /oem
/dev/sda1        58G   46G   13G  78% /mnt/udisk

4.4 Audio

Audio

4.4.1 Audio Input

❶ Connect the MIC to the connector (2-pin/2.0mm pitch).

❷ Configure Audio input gain.

1amixer -c 0 cset name='ACodec Digital Gain Volume' 100
Serial terminal output
root@rv1126b-buildroot:/# amixer -c 0 cset name='ACodec Digital Gain Volume' 100
numid=44,iface=MIXER,name='ACodec Digital Gain Volume'c Digital Gain Volume' 100
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=127,step=0
  : values=100
  | dBscale-min=-95.00dB,step=0.75dB,mute=0

❸ Record audio.

1arecord -D hw:0,0 -f cd -t wav test.wav
Serial terminal output
root@rv1126b-buildroot:/# arecord -D hw:0,0 -f cd -t wav test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

4.4.2 Audio Output

❶ Connect the Speaker to the connector (2-pin/2.0mm pitch)

❷ Check Audio devices.

1cat /proc/asound/cards
Serial terminal output
root@rv1126b-buildroot:/# cat /proc/asound/cards
 0 [rockchiprv1126b]: rockchip_rv1126 - rockchip,rv1126b-acodec
                      rockchip,rv1126b-acodec
 1 [lt9611ex       ]: simple-card - lt9611ex
                      lt9611ex

❸ Configure Audio output volume.

1amixer -c 0 cset name='DAC Digital Volume' 250,250

❹ Play the audio file.

1aplay -D hw:0,0 test.wav
1aplay -D hw:0,0 test.wav

4.5 Ethernet

_images/Ethernet.webp

The KIT1126B provides a 100M Ethernet RJ45 interface with PoE support, allowing both data transmission and power supply through a single Ethernet cable.

❶ Connect the network cable to the Ethernet port.

Serial terminal output
[  724.401687] rk_gmac-dwmac 21c70000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  724.401713] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

❷ Check the network interface information.

1ifconfig eth0
Serial terminal output
root@rv1126b-buildroot:/# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 0A:11:04:25:8B:C9
          inet addr:192.168.0.65  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::180d:d65e:6eae:f110/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:264 errors:0 dropped:28 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21577 (21.0 KiB)  TX bytes:1410 (1.3 KiB)
          Interrupt:74

❸ Test network connectivity.

1ping -I eth0 www.armdesigner.com
Serial terminal output
# ping -I eth0 www.armdesigner.com
PING www.armdesigner.com (13.32.99.68): 56 data bytes
64 bytes from 13.32.99.68: seq=0 ttl=246 time=183.090 ms
64 bytes from 13.32.99.68: seq=1 ttl=246 time=182.210 ms
64 bytes from 13.32.99.68: seq=2 ttl=246 time=181.958 ms
64 bytes from 13.32.99.68: seq=3 ttl=246 time=182.285 ms
64 bytes from 13.32.99.68: seq=4 ttl=246 time=181.792 ms
^C
--- www.armdesigner.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 181.792/182.267/183.090 ms

4.6 SD Card

SD

After the micro SD card is inserted and recognized successfully, it will be mounted automatically. Run the following command to check the mount path of the SD card.

1df -h
Serial terminal output
root@rv1126b-buildroot:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       5.9G  447M  5.3G   8% /
devtmpfs        959M     0  959M   0% /dev
tmpfs           987M  856K  986M   1% /run
tmpfs           987M  260K  987M   1% /var/log
tmpfs           987M     0  987M   0% /dev/shm
tmpfs           987M  136K  987M   1% /tmp
/dev/mmcblk0p8  881M  292K  880M   1% /userdata
/dev/mmcblk0p7  124M  5.3M  118M   5% /oem
/dev/sda1        58G   46G   13G  78% /mnt/udisk
/dev/mmcblk1p1   60G   13G   48G  21% /mnt/sdcard

4.7 WiFi & Bluetooth

WiFi&BT

4.7.1 WiFi

❶ Connect the WiFi antenna.

❷ Check the Wi-Fi device information.

1ifconfig wlan0
Serial terminal output
root@rv1126b-buildroot:/# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 14:0A:02:C9:0B:71
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

❸ Scan for available WiFi hotspots.

1iwlist wlan0 scan

❹ Connect hotspot.

1wifi-connect.sh SSID PSK        //'SSID': user SSID, 'PSK': password

After connected, check the network status and ping URL to test.

1ifconfig wlan0
2ping -I wlan0 www.armdesigner.com

4.7.2 Bluetooth

By default, the device is configured to operate as a Bluetooth speaker. The following steps describe how to pair with and connect to a device:

❶ Start the BlueALSA A2DP sink service.

1bluealsa -p a2dp-sink &
Serial terminal output
oot@rv1126b-buildroot:/# bluealsa -p a2dp-sink &
[1] 3244
root@rv1126b-buildroot:/# bluealsa: [3244] D: storage.c:84: Initializing persistent storage: /var/lib/bluealsa
bluealsa: [3244] D: main.c:604: Starting main dispatching loop
bluealsa: [3244] D: main.c:114: Acquired D-Bus service name: org.bluealsa
bluealsa: [3244] D: bluealsa-dbus.c:392: Registering D-Bus manager: /org/bluealsa
[ 1049.319181] Bluetooth: hu 00000000b39eb7e0 retransmitting 1 pkts
[ 1049.320372] rtk_btcoex: BTCOEX hci_rev 0xbab7
[ 1049.320393] rtk_btcoex: BTCOEX lmp_subver 0x6f72
bluealsa: [3244] D: bluez.c:783: Registering battery provider: /org/bluez/hci0/battery
bluealsa: [3244] D: bluez.c:598: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/sink/1
bluealsa: [3244] D: bluez.c:509: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/sink/1
bluealsa: [3244] D: bluez.c:598: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/sink/2
bluealsa: [3244] D: bluez.c:509: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/sink/2

❷ Enter the Bluetooth control tool.

1bluetoothctl
Serial terminal output
root@rv1126b-buildroot:/# bluetoothctl
hci0 new_settings: powered bondable ssp br/edr le secure-conn
Agent registered
[CHG] Controller 14:0A:02:C9:0B:72 Pairable: yes
[bluetooth]#

❸ Enable Bluetooth and set it to discoverable mode.

1power on
2discoverable on
Serial terminal output
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
[ 1101.501592] Bluetooth: hu 00000000b39eb7e0 retransmitting 1 pkts
hci0 new_settings: powered connectable bondable ssp br/edr le secure-conn
hci0 new_settings: powered connectable discoverable bondable ssp br/edr le secure-conn
Changing discoverable on succeeded
[CHG] Controller 14:0A:02:C9:0B:72 Discoverable: yes

After this step, the Bluetooth device can be discovered by the phone.

❹ Pair and connect the Bluetooth device.

On the phone, find the Bluetooth device named BlueZ 5.77 in the Bluetooth device list, then tap it to pair and connect.

Bluetooth device list

If a pairing confirmation message appears, confirm it on both the phone and the board.

Serial terminal output
[bluetooth]# bluealsa: [3244] D: bluez.c:1199: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
[NEW] Device A8:35:12:9A:EB:4D liuy
Request confirmation
[agent] Confirm passkey 765960 (yes/no): yes
[liuy]# [ 1139.907919] rtk_btcoex: link key notify
hci0 new_link_key A8:35:12:9A:EB:4D type 0x05 pin_len 0 store_hint 1
hci0 device_flags_changed: A8:35:12:9A:EB:4D (BR/EDR)
     supp: 0x00000000  curr: 0x00000000
[CHG] Device A8:35:12:9A:EB:4D INFO: 0x0007 (7)
[CHG] Device A8:35:12:9A:EB:4D Bonded: yes
[liuy]# [ 1139.990926] rtk_btcoex: l2cap op 2, len 16, out 0
bluealsa: [3244] D: bluez.c:1199: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
[CHG] Device A8:35:12:9A:EB:4D ServicesResolved: yes
[CHG] Device A8:35:12:9A:EB:4D INFO: 0x000f (15)
[CHG] Device A8:35:12:9A:EB:4D Paired: yes
Authorize service
[agent] Authorize service 0000110d-0000-1000-8000-00805f9b34fb (yes/no): yes
[liuy]# [ 1142.392439] rtk_btcoex: l2cap op 3, len 20, out 1
[liuy]# bluealsa: [3244] D: bluez.c:1199: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
bluealsa: [3244] D: dbus.c:47: Called: org.bluez.MediaEndpoint1.SetConfiguration() on /org/bluez/hci0/A2DP/SBC/sink/1
bluealsa: [3244] D: a2dp.c:383: Selected A2DP SBC bit-pool range: [2, 53]
[NEW] Transport /org/bluez/hci0/dev_A8_35_12_9A_EB_4D/fd0
[liuy]# bluealsa: [3244] D: storage.c:117: Loading storage: /var/lib/bluealsa/A8:35:12:9A:EB:4D
bluealsa: [3244] D: bluez.c:420: A2DP Sink (SBC) configured for device A8:35:12:9A:EB:4D
bluealsa: [3244] D: bluez.c:423: A2DP selected configuration blob [len=4]: 21150235
bluealsa: [3244] D: bluez.c:425: PCM configuration: channels: 2, sampling: 44100
bluealsa: [3244] D: bluez.c:598: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/sink/3
bluealsa: [3244] D: bluez.c:509: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/sink/3
bluealsa: [3244] D: bluez.c:1199: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
bluealsa: [3244] D: bluez.c:1290: Adding new Stream End-Point: A8:35:12:9A:EB:4D: SRC: SBC
bluealsa: [3244] D: bluez.c:1199: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
bluealsa: [NEW] Endpoint /org/bluez/hci0/dev_A8_35_12_9A_EB_4D/sep1
[3244] D: bluez.c:1290: Adding new Stream End-Point: A8:35:12:9A:EB:4D: SRC: AAC[liuy]#
bluealsa: [3244] D: bluez.c:1199: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
bluealsa: [3244] D: bluez.c:1290: Adding new Stream End-Point: A8:35:12:9A:EB:4D: SRC: LDAC
bluealsa: [3244] D: bluez.c:1199: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
bluealsa: [3244] D: a2dp.c:289: Unknown vendor codec [len=12]: cf0c000001ca07140ff20800
bluealsa: [3244] D: bluez.c:1290: Adding new Stream End-Point: A8:35:12:9A:EB:4D: SRC: (null)
[liuy]# [ 1143.264791] rtk_btcoex: l2cap op 6, len 16, out 1
[ 1145.405747] input: liuy (AVRCP) as /devices/virtual/input/input3
bluealsa: [3244] D: bluez.c:1199: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
[NEW] Player /org/bluez/hci0/dev_A8_35_12_9A_EB_4D/player0 [default]
[liuy]# [ 1145.418446] rtk_btcoex: l2cap op 2, len 16, out 0
[07:02:48.986] libinput: configuring device "liuy (AVRCP)".
[07:02:48.986] associating input device event3 with output DSI-1 (none by udev)
[liuy]#

Check the log output to confirm the MAC address. In this example, the MAC address of the mobile phone is A8:35:12:9A:EB:4D.

❺ Exit bluetoothctl.

1exit

❻ Start Bluetooth audio playback.

1bluealsa-aplay A8:35:12:9A:EB:4D &
Serial terminal output
[liuy]# exit
root@rv1126b-buildroot:/# bluealsa-aplay A8:35:12:9A:EB:4D &
[2] 3269
root@rv1126b-buildroot:/# bluealsa-aplay: [3269] D: aplay.c:846: Creating IO worker A8:35:12:9A:EB:4D
bluealsa-aplay: [3269] D: aplay.c:1194: Starting main loop
bluealsa-aplay: [3270] D: aplay.c:514: Opening BlueALSA source PCM: /org/bluealsa/hci0/dev_A8_35_12_9A_EB_4D/a2dpsnk/source
bluealsa: [3271] D: dbus.c:47: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_A8_35_12_9A_EB_4D/a2dpsnk/source
bluealsa-aplay: [3270] D: aplay.c:540: Starting IO loop
root@rv1126b-buildroot:/#

After the Bluetooth connection is established, play audio on the phone. The audio should be output from the board.

4.8 IR

IR

❶ Connect the IR receiver.

❷ Enable IR debug logs.

1echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print

❸ Press remote button, key value printed to log.

4.9 RS485

RS485

❶ Connect PC and board with USB-to-RS485 adapter.

RS485 connection

RS485 connection

❷ Open two serial terminal windows. Set the debug serial port baud rate to 1500000, and set the RS485 serial port baud rate to 115200.

❸ Execute command on the terminal serial port of board.

1com /dev/ttyS1 115200 8 0 1

❹ Input character to test RS485 communication.

4.10 CAN

CAN

❶ Connect PC and board with USB-to-CAN adapter.

CAN connection

CAN connection

❷ Open the CAN application and set the baudrate to 500000 on PC.

❸ Configure and enable the CAN on the board with a bitrate of 500000.

1ip link set can0 down
2ip link set can0 type can bitrate 500000
3ip link set can0 up

❹ Configure CAN as receiver.

1candump can0

❺ Set CAN as Transmitter.

1cansend can0 123#DEADBEEFDEADBEEF

4.11 4G & GPS

4.11.1 4G

4G+SIM

❶ Insert 4G module to mPCIe slot (4G model: EC20/EC25).

❷ Connect antenna and insert SIM card.

❸ Power on.

❹ Initiate the PPP connection.

1mkdir -p var/run/pppd/lock
2pppd call quectel-ppp &
Serial terminal output
root@rv1126b-buildroot:/# mkdir -p var/run/pppd/lock
root@rv1126b-buildroot:/# pppd call quectel-ppp &
[1] 1663
root@rv1126b-buildroot:/# pppd options in effect:
debug           # (from /etc/ppp/peers/quectel-ppp)
nodetach                # (from /etc/ppp/peers/quectel-ppp)
dump            # (from /etc/ppp/peers/quectel-ppp)
noauth          # (from /etc/ppp/peers/quectel-ppp)
user test               # (from /etc/ppp/peers/quectel-ppp)
password ??????         # (from /etc/ppp/peers/quectel-ppp)
remotename 3gppp                # (from /etc/ppp/peers/quectel-ppp)
/dev/ttyUSB3            # (from /etc/ppp/peers/quectel-ppp)
115200          # (from /etc/ppp/peers/quectel-ppp)
lock            # (from /etc/ppp/peers/quectel-ppp)
connect chat -s -v -f /etc/ppp/peers/quectel-chat-connect               # (from /etc/ppp/peers/quectel-ppp)
disconnect chat -s -v -f /etc/ppp/peers/quectel-chat-disconnect         # (from /etc/ppp/peers/quectel-ppp)
nocrtscts               # (from /etc/ppp/peers/quectel-ppp)
modem           # (from /etc/ppp/peers/quectel-ppp)
hide-password           # (from /etc/ppp/peers/quectel-ppp)
novj            # (from /etc/ppp/peers/quectel-ppp)
novjccomp               # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-local               # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-remote              # (from /etc/ppp/peers/quectel-ppp)
ipparam 3gppp           # (from /etc/ppp/peers/quectel-ppp)
noipdefault             # (from /etc/ppp/peers/quectel-ppp)
ipcp-max-failure 30             # (from /etc/ppp/peers/quectel-ppp)
defaultroute            # (from /etc/ppp/peers/quectel-ppp)
usepeerdns              # (from /etc/ppp/peers/quectel-ppp)
noccp           # (from /etc/ppp/peers/quectel-ppp)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
AT^M^M
OK
 -- got it

send (ATE0^M)
expect (OK)
^M
ATE0^M^M
OK
 -- got it

send (ATI;+CSUB;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
EC25^M
Revision: EC25AUXGAR08A13M1G^M
^M
SubEdition: V01^M
^M
+CSQ: 29,99^M
^M
+CPIN: READY^M
^M
+COPS: 0,0,"CHN-CT",7^M
^M
+CGREG: 0,1^M
^M
OK
 -- got it

send (AT+CGDCONT=1,"IP","3gnet",,0,0^M)
expect (OK)
^M
^M
OK
 -- got it

send (ATD*99#^M)
expect (CONNECT)
^M
^M
CONNECT
 -- got it

Script chat -s -v -f /etc/ppp/peers/quectel-chat-connect finished (pid 1664), status = 0x0
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x22ccbdfb> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xf6f53900> <pcomp> <accomp>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xf6f53900> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x22ccbdfb> <pcomp> <accomp>]
rcvd [LCP DiscReq id=0x1 magic=0xf6f53900]
rcvd [CHAP Challenge id=0x1 <d3ea45325284303c591e8382a3f6c924>, name = "UMTS_CHAP_SRVR"]
sent [CHAP Response id=0x1 <98ae6c106ace05c5c7de18ba0e15e375>, name = "test"]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::04d2:23d6:e694:bd69>]
rcvd [IPCP ConfReq id=0x0]
sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 10.6.112.194> <ms-dns1 202.96.134.33> <ms-dns2 202.96.128.166>]
sent [IPCP ConfReq id=0x2 <addr 10.6.112.194> <ms-dns1 202.96.134.33> <ms-dns2 202.96.128.166>]
rcvd [IPCP ConfReq id=0x1]
sent [IPCP ConfAck id=0x1]
rcvd [IPCP ConfAck id=0x2 <addr 10.6.112.194> <ms-dns1 202.96.134.33> <ms-dns2 202.96.128.166>]
Could not determine remote IP address: defaulting to 10.64.64.64
not replacing default route to eth0 [192.168.0.1]
local  IP address 10.6.112.194
remote IP address 10.64.64.64
primary   DNS address 202.96.134.33
secondary DNS address 202.96.128.166
Script /etc/ppp/ip-up started (pid 1695)
Script /etc/ppp/ip-up finished (pid 1695), status = 0x0
sent [IPV6CP ConfReq id=0x1 <addr fe80::04d2:23d6:e694:bd69>]

❺ Test network.

1ifconfig ppp0
2ping -I ppp0 www.armdesigner.com
Serial terminal output
root@rv1126b-buildroot:/# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.6.112.194  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:52 (52.0 B)  TX bytes:198 (198.0 B)
root@rv1126b-buildroot:/# ping -I ppp0 www.armdesigner.com
PING d3dsoj86mhwkk6.cloudfront.net (108.138.246.71) from 10.6.112.194 ppp0: 56(84) bytes of data.
64 bytes from server-108-138-246-71.sfo5.r.cloudfront.net (108.138.246.71): icmp_seq=1 ttl=245 time=871 ms
64 bytes from server-108-138-246-71.sfo5.r.cloudfront.net (108.138.246.71): icmp_seq=2 ttl=245 time=511 ms
64 bytes from server-108-138-246-71.sfo5.r.cloudfront.net (108.138.246.71): icmp_seq=3 ttl=245 time=487 ms
64 bytes from server-108-138-246-71.sfo5.r.cloudfront.net (108.138.246.71): icmp_seq=4 ttl=245 time=432 ms
64 bytes from server-108-138-246-71.sfo5.r.cloudfront.net (108.138.246.71): icmp_seq=5 ttl=245 time=391 ms
64 bytes from server-108-138-246-71.sfo5.r.cloudfront.net (108.138.246.71): icmp_seq=6 ttl=245 time=778 ms
^C
--- d3dsoj86mhwkk6.cloudfront.net ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5001ms
rtt min/avg/max/mdev = 391.112/578.153/870.522/180.112 ms

4.11.2 GPS

❶ Insert 4G module to mPCIe socket.

❷ Connect a GPS antenna.

❸ Power on.

❹ Enable the GPS function.

1echo -e "AT+QGPS=1\r\n" > /dev/ttyUSB2

❺ Read the GPS data.

1cat /dev/ttyUSB1
Serial terminal output
root@rv1126b-buildroot:/# echo -e "AT+QGPS=1\r\n" > /dev/ttyUSB2
root@rv1126b-buildroot:/# cat /dev/ttyUSB1
$GPVTG,,T,,M,,N,,K,N*2C

$GPGSA,A,1,,,,,,,,,,,,,,,,*32

$GPGGA,,,,,,0,,,,,,,,*66

$GPRMC,,V,,,,,,,,,,N,V*29

$GPVTG,,T,,M,,N,,K,N*2C

$GPGSA,A,1,,,,,,,,,,,,,,,,*32

$GPGGA,,,,,,0,,,,,,,,*66

$GPRMC,,V,,,,,,,,,,N,V*29

4.12 Motor

Motor

Note

Note: Motor_H is temporarily unavailable because its signals are multiplexed with other interfaces on the baseboard only. This document only covers Motor_V testing.

❶ Connect the motor.

❷ Run the test command.

1motor_test /dev/motorX <steps>
  • <steps> is the number of motor steps.

  • Use a positive value for forward rotation and a negative value for reverse rotation.

  • Replace /dev/motorX with the actual motor device node.

Examples:

  • Run the motor forward for one full revolution (e.g., 4076 steps)

    motor_test /dev/motor0 4076
    
  • Run the motor in reverse for 1000 steps:

    motor_test /dev/motor0 -1000
    

4.13 ADC

ADC

This test is used to check whether the ADC raw value changes according to the input voltage.

Connect the ADC pin to two different voltage levels within 0~1.8V respectively. For each level, after setting the pin to that level, execute the test command.

Example for ADC1:

1cat /sys/bus/iio/devices/iio:\device0/in_voltage1_raw

For other ADC read commands, refer to the ADC read command description below.

Single-channel read commands
1cat /sys/bus/iio/devices/iio:\device0/in_voltage1_raw   //ADC1
2cat /sys/bus/iio/devices/iio:\device0/in_voltage2_raw   //ADC2
3cat /sys/bus/iio/devices/iio:\device0/in_voltage3_raw   //ADC3
4cat /sys/bus/iio/devices/iio:\device0/in_voltage4_raw   //ADC4
5cat /sys/bus/iio/devices/iio:\device0/in_voltage5_raw   //ADC5
6cat /sys/bus/iio/devices/iio:\device0/in_voltage6_raw   //ADC6
Read all ADC1–ADC6 raw values
1for i in 1 2 3 4 5 6; do
2    echo -n "ADC$i: "
3    cat /sys/bus/iio/devices/iio:\device0/in_voltage${i}_raw
4done

4.14 Camera

CVBS Camera

CVBS

MIPI Camera

MIPI CSI

The KIT1126B provides six camera interfaces, including two CVBS and four MIPI CSI. The two CVBS camera interfaces (CH0 and CH1) share a single input channel. Only one can be enabled for preview at a time; the other remains inactive until selected.

4.14.1 GStreamer

4.14.1.1 CVBS Camera

❶ Connect the AHD camera to the board and power on.

❷ Start the video preview.

The CH0 is selected by default.

1gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV16,width=720,height=576, framerate=25/1 ! waylandsink &
Serial terminal output
root@rv1126b-buildroot:/# gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV16,width=720,height=576, framerate=25/1 ! waylandsink &
mpp[2014]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2014]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2014]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2014]: mpp: unable to create enc vp8 for soc rv1126b unsupported
mpp[2014]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
Setting pipeline to PAUSED ...
[  611.365118] gm7150bc 0-005c: __gm7150_power_on(258)
Using mplane plugin for capture
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[  611.438259] rkcif-dvp: stream[0] start streaming
[  611.439251] rkcif-dvp: Allocate dummy buffer, size: 0x003f5000
[  611.439265] rkcif-dvp: get vblank fail, vblank_def 0, vblank_curr 0
[  611.439277] rkcif-dvp: set dual edge mode(off,0x2000000)!!!
[  611.439837] gm7150bc 0-005c: gm7150_querystd: get PAL_B_D_N signal.
[  611.439864] gm7150bc 0-005c: gm7150_stream: on: 1, 720x576
[  611.440683] gm7150bc 0-005c: gm7150_full_init ok, channel: CH1
[  611.972069] gm7150bc 0-005c: gm7150_check_signal: value:0x7e.
[  611.972109] gm7150bc 0-005c: have signal
[  611.972709] gm7150bc 0-005c: gm7150_get_mode: get PAL_B_D_N signal.
[  611.972729] gm7150bc 0-005c: stream on, wait for BT656 sync...
Redistribute latency...
[08:16:17.785] seeing the first app
0:00:25.6 / 99:99:99.

❸ Switch to the desired CVBS interface after starting the preview.

1echo 0 > /sys/class/gm7150/gm7150_4/input_channel
Serial terminal output
0:02:03.2 / 99:99:99.m7150/gm7150_4/input_channel0:02:02.4 / 99:99:99.
[  734.835008] gm7150bc 0-005c: switch to input CH1 (reg=0x00)
[  735.169999] gm7150bc 0-005c: gm7150_check_signal: value:0x7a.
[  735.170027] gm7150bc 0-005c: ======No signal
[  735.170522] gm7150bc 0-005c: gm7150_get_mode: get PAL_B_D_N signal.
0:02:05.9 / 99:99:99.t:/# 0:02:03.6 / 99:99:99.

❹ Verify that the image from the selected CVBS interface is displayed correctly.

Additional Commands
# Note: Ensure the GM7150 is powered on and the camera preview is running.
# Display supported V4L2 controls
v4l2-ctl -d /dev/v4l-subdev24 --list-ctrls

# Set image brightness (0~255)
v4l2-ctl -d /dev/v4l-subdev24 --set-ctrl brightness=200

# Set image contrast (0~255)
v4l2-ctl -d /dev/v4l-subdev24 --set-ctrl contrast=150

# Set image saturation (0~255)

v4l2-ctl -d /dev/v4l-subdev24 --set-ctrl saturation=100
# Set image hue (0~255)
v4l2-ctl -d /dev/v4l-subdev24 --set-ctrl hue=128

# Read current input channel (0=CH1, 1=CH2)
cat /sys/class/gm7150/gm7150_4/input_channel

# Switch to CH0
echo 0 > /sys/class/gm7150/gm7150_4/input_channel

# Switch to CH1
echo 1 > /sys/class/gm7150/gm7150_4/input_channel

# Read signal status (1=signal detected, 0=no signal)
cat /sys/class/gm7150/gm7150_4/signal_status

# Read detected video standard (NTSC/PAL/SECAM)
cat /sys/class/gm7150/gm7150_4/video_standard

4.14.1.2 MIPI Camera

❶ Connect the MIPI camera to the board and power on.

❷ Check the camera preview device nodes.

1grep "" /sys/class/video4linux/v*/name | grep mainpath
2grep "" /sys/class/video4linux/v*/name | grep selfpath
Serial terminal output
root@rv1126b-buildroot:/# grep "" /sys/class/video4linux/v*/name | grep mainpath
/sys/class/video4linux/video55/name:rkisp_mainpath4linux/v*/name | grep mainpath
/sys/class/video4linux/video63/name:rkisp_mainpath
/sys/class/video4linux/video71/name:rkisp_mainpath
/sys/class/video4linux/video79/name:rkisp_mainpath
root@rv1126b-buildroot:/# grep "" /sys/class/video4linux/v*/name | grep selfpath
/sys/class/video4linux/video56/name:rkisp_selfpath4linux/v*/name | grep selfpath
/sys/class/video4linux/video64/name:rkisp_selfpath
/sys/class/video4linux/video72/name:rkisp_selfpath
/sys/class/video4linux/video80/name:rkisp_selfpath

❸ Preview the camera.

1gst-launch-1.0 v4l2src device=/dev/video55 ! video/x-raw,format=NV16,width=1920,height=1080, framerate=25/1 ! waylandsink
Serial terminal output
root@rv1126b-buildroot:/#
aw,format=NV16,width=1920,height=1080, framerate=25/1 ! waylandsink5 ! video/x-ra
Setting pipeline to PAUSED ...
Using mplane plugin for capture
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[   91.615024] rkisp_hw 21d00000.isp: set isp clk = 297000000Hz
[   91.617253] rkcif-mipi-lvds: stream[0] start streaming
[   91.617503] rockchip-mipi-csi2 mipi0-csi2: stream on, src_sd: 00000000376b3e3c, sd_name:rockchip-csi2-dphy1
[   91.617521] rockchip-mipi-csi2 mipi0-csi2: stream ON
[   91.617563] rockchip-csi2-dphy1: dphy1, data_rate_mbps 742
[   91.617592] rockchip-csi2-dphy csi2-dphy1: csi2_dphy_s_stream stream on:1, dphy1, ret 0
[   91.617605] sc200ai 3-0030: 1920x1080@10, mode 0, vts 0xd2f
Redistribute latency...
[08:20:26.168] seeing the first app
0:00:09.1 / 99:99:99.

4.14.2 Rockit

4.14.2.1 CVBS Camera

❶ Stop the default rkipc service.

1RkLunch-stop.sh
Serial terminal output
root@rv1126b-buildroot:/# RkLunch-stop.sh
Stop Application ...
[rkipc.c][sig_proc]:received signo 15
killall: udhcpc: no process killed
[network.c][rk_network_get_cable_state]:read Cable state
[network.c][rk_network_get_cable_state]:
[wlan0] link down
rkipc exit
ls: cannot access '/oem/usr/etc/init.d/S??*': No such file or directory
root@rv1126b-buildroot:/# [server.c][rkipc_server_deinit]:rkipc_server_deinit failed
[osd.c][osd_time_server]:exit
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [2] failed with 0xa0038005

❷ Check the network status and obtain the Ethernet IP address of the board.

1ifconfig eth0
Serial terminal output
root@rv1126b-buildroot:/# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 0A:11:04:25:8B:C9
          inet addr:192.168.0.65  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::39c0:5524:e017:def5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:685 errors:0 dropped:1 overruns:0 frame:0
          TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:59446 (58.0 KiB)  TX bytes:7434 (7.2 KiB)
          Interrupt:76

❸ Start the CVBS camera demo.

1sample_demo_cvbs_camera &
Serial terminal output
root@rv1126b-buildroot:/# sample_demo_cvbs_camera &
[1] 2221
root@rv1126b-buildroot:/# === V4L2 Single-Camera RTSP Streamer ===
Config: /dev/video0 720x576 @ 30fps -> H265 -> rtsp://*:554/live/0
[INFO  rtsp_demo.c:280:rtsp_new_demo] rtsp server demo starting on port 554
[   20.660672] vsys_release, 6
[DEBUG rtsp_demo.c:480:rtsp_new_session] add session path: /live/0
rockit_load start
v4l2_tx probe successv4l2_rx_probe success
rockit_load end
rockit log path (null), log_size = 0
log_file = (nil)
(null)           09:31:26-152 {log_level_init    :209}

 please use echo name=level > /tmp/rt_log_level set log level
        name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
        log_level: 0 1 2 3 4 5 6

rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change

❹ Open VLC media player on the PC.

_images/VLC.webp

❺ Select Media -> Open Network Stream…

_images/VLC_open.png

❻ Enter the following RTSP URL to preview the camera stream.

1rtsp://192.168.0.65:554/live/0
_images/VLC_RTSP.png

Note

Replace 192.168.0.65 with the actual Ethernet IP address of the board.

❼ Switch to the desired CVBS interface.

1echo 0 > /sys/class/gm7150/gm7150_4/input_channel
Serial terminal output
root@rv1126b-buildroot:/# echo 0 > /sys/class/gm7150/gm7150_4/input_channel
[  175.293502] gm7150bc 0-005c: switch to input CH1 (reg=0x00)
[  175.604151] gm7150bc 0-005c: gm7150_check_signal: value:0x70.
[  175.604182] gm7150bc 0-005c: ======No signal
[  175.604683] gm7150bc 0-005c: gm7150_get_mode: get PAL_B_D_N signal.

❽ Verify that the image from the selected CVBS interface is displayed correctly.

Rockit_Verify_image_Buildroot

4.14.2.2 MIPI Camera

❶ Connect the MIPI camera to the board and power on.

After the system boots, the stitched preview image from all four camera channels is displayed by default.

❷ Stop the default rkipc service.

1RkLunch-stop.sh
Serial terminal output
root@rv1126b-buildroot:/# RkLunch-stop.sh
Stop Application ...
[rkipc.c][sig_proc]:received signo 15
killall: udhcpc: no process killed
[network.c][rk_network_get_cable_state]:read Cable state
[network.c][rk_network_get_cable_state]:
[wlan0] link down
rkipc exit
ls: cannot access '/oem/usr/etc/init.d/S??*': No such file or directory
root@rv1126b-buildroot:/# [server.c][rkipc_server_deinit]:rkipc_server_deinit failed
[osd.c][osd_time_server]:exit
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [2] failed with 0xa0038005
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [3] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [4] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [11] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [5] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [12] failed with 0xa0038005
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [6] failed with 0xa0038005

❸ Start the rkaiq_3A_server service.

1rkaiq_3A_server &
Serial terminal output
root@rv1126b-buildroot:/# rkaiq_3A_server &
[1] 2228
root@rv1126b-buildroot:/# media get entity by name: rkisp-isp-subdev is null
media get entity by name: rkisp-input-params is null
media get entity by name: rkisp-statistics is null
media get entity by name: rkisp_mainpath is null
Cound not find rkisp dev names, skipped /dev/media0
ERR: Bad media topology for: /dev/media0
media get entity by name: rkisp-isp-subdev is null
media get entity by name: rkisp-input-params is null
media get entity by name: rkisp-statistics is null
media get entity by name: rkisp_mainpath is null
Cound not find rkisp dev names, skipped /dev/media1
ERR: Bad media topology for: /dev/media1
media get entity by name: rkisp-isp-subdev is null
media get entity by name: rkisp-input-params is null
media get entity by name: rkisp-statistics is null
media get entity by name: rkisp_mainpath is null

❹ Check the network status and obtain the Ethernet IP address of the board.

1ifconfig eth0
Serial terminal output
root@rv1126b-buildroot:/# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 0A:11:04:25:8B:C9
          inet addr:192.168.0.65  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::39c0:5524:e017:def5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:870 errors:0 dropped:2 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:72538 (70.8 KiB)  TX bytes:8410 (8.2 KiB)
          Interrupt:76

❺ Start the four-channel camera demo.

1sample_demo_four_camera
Serial terminal output
root@rv1126b-buildroot:/# sample_demo_four_camera
No arguments provided, using default settings for 4 cameras.
usage example:
        sample_demo_four_camera -s 0 -W 1920 -H 1080 -w 720 -h 576 -f 30 -r 0 -s 1 -W 1920 -H 1080 -w 720 -h 576 -f 30 -r 0 -s 2 -W 1920 -H 1080 -w 720 -h 576 -f 30 -r 0 -s 3 -W 1920 -H 1080 -w 720 -h 576 -f 30 -r 0 -n 0 -b 1
        rtsp://xx.xx.xx.xx/live/0, camera 0 main-stream
        rtsp://xx.xx.xx.xx/live/1, camera 0 sub-stream
        rtsp://xx.xx.xx.xx/live/2, camera 1 main-stream
        rtsp://xx.xx.xx.xx/live/3, camera 1 sub-stream
        rtsp://xx.xx.xx.xx/live/4, camera 2 main-stream
        rtsp://xx.xx.xx.xx/live/5, camera 2 sub-stream
        rtsp://xx.xx.xx.xx/live/6, camera 3 main-stream
        rtsp://xx.xx.xx.xx/live/7, camera 3 sub-stream
        -s | --sensor id (0~3)
        -f | --fps: frame per second, Default 30
        -r | --hdr: high dynamic range, Default 0
        -W | --main_width: main-stream width, Default 1920
        -H | --main_height: main-stream height, Default 1080
        -w | --sub_width: sub-stream width, Default 720
        -h | --sub_height: sub-stream height, Default 576
        -n | --enable_npu: enable npu, Default 0
        -b | --buf_share: enable buf share, Default 1
Starting with default config...

❻ Open VLC media player on the PC.

_images/VLC.webp

❼ Select Media -> Open Network Stream…

_images/VLC_open.png

❽ Enter the following RTSP URL to preview the camera stream.

Camera0
1rtsp://192.168.0.65:554/live/0
Camera1
1rtsp://192.168.0.65:554/live/2
Camera2
1rtsp://192.168.0.65:554/live/4
Camera3
1rtsp://192.168.0.65:554/live/6
_images/Rockit_VLC_RTSP_MIPI_Buildroot.png

Note

Replace 192.168.0.65 with the actual Ethernet IP address of the board.

❾ Verify that the image from the selected CVBS interface is displayed correctly.

Rockit_Verify_image_MIPI_Buildroot

4.15 Video Playback

4.15.1 GStreamer

4.15.1.1 Built-in Script

The script instruction directory is in /rockchip-test/video/, just run it.

root@rv1126b-buildroot:/# /rockchip-test/video/test_gst_video.sh
mpp[2030]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2030]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2030]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2030]: mpp: unable to create enc vp8 for soc rv1126b unsupported
mpp[2030]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
mpp[2029]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2029]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2029]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2029]: mpp: unable to create enc vp8 for soc rv1126b unsupported
mpp[2029]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2029]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
Redistribute latency...
mpp[2029]: h264d_api: is_avcC=1
mpp[2029]: mpp_buf_slot: mismatch h_stride_by_pixel 1472 - 1280
mpp[2029]: mpp_buf_slot: mismatch h_stride_by_byte 1472 - 1280
mpp[2029]: mpp_buf_slot: mismatch size_total 1589760 - 1843200
mpp[2029]: mpp_buf_slot: mismatch h_stride_by_pixel 1472 - 1280
mpp[2029]: mpp_buf_slot: mismatch h_stride_by_byte 1472 - 1280
mpp[2029]: mpp_buf_slot: mismatch size_total 1589760 - 1843200
Pipeline is PREROLLED ...
Prerolled, waiting for async message to finish...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
0:00:05.0 / 0:00:29.5 (17.1 %)

4.15.1.2 Command Line

1export GST_MPP_VIDEODEC_DEFAULT_ARM_AFBC=1
2gst-play-1.0 /mnt/udisk/video/4KP30/4K30P-BLACKPINK-DDU-DU_DDU-DU.mp4 --audiosink="alsasink device=hw:1,0"

Command explanation

  • export GST_MPP_VIDEODEC_DEFAULT_ARM_AFBC=1: Open AFBC.

  • /mnt/udisk/video/4KP30/4K30P-BLACKPINK-DDU-DU_DDU-DU.mp4: The media file path to be played.

  • --audiosink="alsasink device=hw:1,0": Specifies the audio output device as hw:1,0.

Serial terminal output
root@rv1126b-buildroot:/# export GST_MPP_VIDEODEC_DEFAULT_ARM_AFBC=1
root@rv1126b-buildroot:/#
U-DU_DDU-DU.mp4 --audiosink="alsasink device=hw:1,0"deo/4KP30/4K30P-BLACKPINK-DDU
Press 'k' to see a list of keyboard shortcuts.
Now playing /mnt/udisk/video/4KP30/4K30P-BLACKPINK-DDU-DU_DDU-DU.mp4
Redistribute latency...
Redistribute latency...
mpp[2104]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2104]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2104]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2104]: mpp: unable to create enc vp8 for soc rv1126b unsupported
mpp[2104]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
mpp[2104]: mpp_info: mpp version: 958803d7 author: Herman Chen   2026-02-26 fix[h265d_rkv]: Fix rkv ref and poc setup overflow
Redistribute latency...
Redistribute latency...
mpp[2104]: h264d_api: is_avcC=1
mpp[2104]: mpp_buf_slot: mismatch h_stride_by_pixel 4032 - 3840
mpp[2104]: mpp_buf_slot: mismatch h_stride_by_byte 4032 - 3840
mpp[2104]: mpp_buf_slot: mismatch size_total 13063680 - 16588800
mpp[2104]: mpp_buf_slot: mismatch h_stride_by_pixel 4032 - 3840
mpp[2104]: mpp_buf_slot: mismatch h_stride_by_byte 4032 - 3840
mpp[2104]: mpp_buf_slot: mismatch size_total 13063680 - 16588800
[  372.441075] [drm:vop_plane_atomic_check] *ERROR* Invalid source: 3840x2160. max input: 1920x1920
Redistribute latency..

4.15.2 Rockit

❶ Stop the default rkipc service.

1RkLunch-stop.sh

❷ Run the simple_vdec_bind_vo command to play video.

1simple_vdec_bind_vo -i /mnt/udisk/testh264.h264

Command explanation

  • simple_vdec_bind_vo: Video decoding and display test tool.

  • -i: Specifies the input video file.

  • /mnt/udisk/testh264.h264: Input H.264 file path.

Note

This command supports H.264 elementary stream files, such as .h264 files. Standard MP4 files are not supported.