Skip to main content

AOM-5841 Debian 12 User Guide

產品介紹 (Product Introduction)

AOM-5841_20260731_084546

產品特性 (Product Features)

  • Processor: Rockchip RK3576 Quad Cortex-A72 & Quad Cortex-A53 , Built-in NPU with processing performance of up to 6 TOPS
  • Memory: Onboard 4/8GB LPDDR5 memory and 64GB eMMC
  • Display: Supports 1 x HDMI/eDP, 1 x DP, 1 x MIPI-DSI, Supports 8K@30fps/4K@120fps H.264/H.265 video decoder
  • I/O: 1 x USB 3.2 Gen1 Signal , 1 x USB 2.0, 1 x USB 2.0 OTG, 4 x UART, 1 x PCIe 2.1, 2 x MIPI CSI, 2 x Gigabit LAN
  • OS Support:  Debian12, Android15

AOM-5841 - Advantech

硬體介面說明 (Hardware Interface Introduction)

AOM-5841 介面佈局圖 (Board Dimension Layout)

png_20260731_161052 png_20260731_161116

SOM-DB2510 Connectors and Jumper Settings(default state)

Connector Locations

SOM-DB2510_Connector_Locations_20260731_161725 SOM-DB2510_Connect_Locations_1_20260731_161754

Jumper Locations

SOM-DB2510_Jumper_Locations_20260731_162138 SOM-DB2510_Jumper_Locations1_20260731_162152

Switch Locations

SOM-DB2510_Switch_Locations_20260731_161844

I/O Connctor Locations

SOM-DB2510_IO_Connector_Locations_20260731_161903

Button Locations

SOM-DB2510_Button_Locations_20260731_161926

LED Locations

SOM-DB2510_LED_Locations_20260731_161959

機構尺寸 (Mechanical Characteristics)

> Unit: mm

快速入門 (Quick Start)

系統下載 (OS Download)

Download OS image from:

Note:LIV=Yocto Linux , UIV=Ubuntu,DIV=Debain,AIV=Android LBV=BSP,LIV=Image

ProductImage VersionRelease DateRelease VersionImage DownloadBSP Download TagSDKTest Report
AOM-5841V120_v1.0.02026/06/02RTMBaidu Password:a887DropboxRK3576_RISC_.v120_v1.0.0xmlAsk PM for HelpTest Report

Linux 燒錄方法 (Linux Flash eMMC Method)

AOM-5841 Usering_RKTool.

  • Prepare a Micro USB and Debug Cable

Mirco_USB_20260814_151936 SOM-DB2510_Debug_Cable_20260814_151946

  • A 12V, 3A power supply is used to power and enable the baseboard SOM-DB2510.

Step1:Insert the aforementioned cable into the corresponding position on the base board SOM-DB2510, as shown in the following figure:

AOM-5841_for_SOM-DB2510_20260814_152407

Introduction: Download the image, extract it on your PC, and then proceed with the following steps for hands-on practice.

Step2:Enter MASKROM mode: (board default AT mode)

a)     Hardware way to enter MASKROM.

AT Mode: On the SOM-DB2510 baseboard, set switch SW4 to ON for position 5 and OFF for all others.

ATX Mode: Set switch SW4 to ON for position 5 and OFF for all others; then press the POWER_BTN# button on the SOM-DB2510 baseboard.

b)      Software way to enter MASKROM.

When the device boot up to android or debian, you can use ADB or Debug console, send command "reboot loader" .

Or Press "ctrl + c" key when booting into uboot, until get the following information on debug console :

Android :

Hit any key to stop autoboot: 0
rkboot # <INTERRUPT>
rkboot # loader

Debian :

Hit any key to stop autoboot: 0
rkboot # <INTERRUPT>
rkboot # rbrom

Step2-1:Select the following path and open the "config.ini" file. You can choose the tool language as shown in the following illustration:

AOM-5841_step3-1_20260814_154243 AOM-5841_step3-1.1_20260814_154321 AOM-5841_step3-1.2_20260814_154436

Step3:Double-click the RENESAS Microelectronics development tool V3.37 application with the computer mouse.

Step4:After entering the MASKROM mode, click "Run" to start the burning of the image.

AOM-5841_Step4_20260814_154748 AOM-5841_Step4.1_20260814_154849

Start burning. Please wait patiently...

Step5:After the board card is programmed, as shown in the following picture:

Note: After the board card is programmed, it will automatically restart once. Please be informed.

AOM-5841_Step5_20260814_155051

Step6:Open the "Putty" tool, connect to the debug serial port to enter the OS, and check the image version as well as the default display mode.

AOM-5841_Step6_20260814_155130

Usering bootup_sd_disk made_by SDDiskTool.

Step1: Using DebianTool to create update.img

a.     Put image to DebianTool\rockdev\image

AOM-5841_SD_Step1_20260814_155658

b.   Double click mkupdate.bat. in  DebianTool\rockdev

AOM-5841_SD_Step1.1_20260814_155732 AOM-5841_SD_Step1.2_20260814_155753 AOM-5841_SD_Step1.3_20260814_155822

Then you can find “update.img”in DebianTool\rockdev.

AOM-5841_SD_Step2_20260814_170021

Step2:Using SDDiskTool to Create Upgrade SD

  1. Insert SD Card to PC (Windows OS).

  2. Decompress SDDiskTool, double click SD_Firmware_Tool.exe.

  3. Create upgrade SD card.

      (1)Choose the SD device.

      (2)Choose the "Upgrade firmware".

      (3)Choose the update.img path.

      (4)Create the update SD.

AOM-5841_SD_Step2.1_20260814_170032 AOM-5841_SD_Step2.2_20260814_170051

Create the Update SD card Success

AOM-5841_SD_Step3_20260814_170550

Step 3:Insert the SD card into the SD card slot of SOM-DB2510.

Note: The R226 and R266 resistors on the baseplate SOM-DB2510 need to be removed.

  1. Set the SDIO jumper settings (gold fingers P34/P35/P36/P39/P40/P41/P42) of SOM-DB2510.
Jumper SettingConnecter Setting
J15/J16/J17/J18/J19/J20/J21(1-2)
SDIO切换到底板M2接口
J15/J16/J17/J18/J19/J20/J21(2-3) 默认配置) CN3 default:2-3SDIO切换到底板SD接口

AOM-5841_SD_Step4_20260814_170655

Step4:Power on and start the machine. The SD card will automatically update the image. After the SD card is burned, please follow the prompts to remove the SD card.

AOM-5841_SD_Step4.1_20260814_170745

HDMI Display Desktop:

AOM-5841_SD_Step5_20260814_170847

Step5:After removing the SD card, the board restarts and the OS information of the board is checked.

Linux 系統的基本使用 (Linux System Basic Operating Method)

Preface

All test tools must be verified using the AOM-5841 evaluation kit (Develop. Board

SOM-DB2510). Please prepare the required test fixtures before verifying each speci￾fied I/O. If you have any problems during testing, please contact Advantech for help.

Supoort List

Supoort  ListDescriptionPart No.
AudioALC5640-VB-CGT Audio Codec9696EG57001
4GEM05CNFD-128-SGAS M.2 3042 Key B  USB2.0968DD00443+9696EP73000
5GRM520NGLAA-M20-SGASA M.2 Key B  USB3.1/PCIE3.0968DD00342+9696EP73000
WIFI6RTL8852BE,PCIe + USB M.2 Key EEWM-W179M201E + 9696EP73010
MIPI CameraUnion Image IMX415 Camera CRK8F4403-V1+ ROM-EC50
MIPI DSI G101UAN02.0, 1920 x 1200XMIT-G101UAN02.0
eDPB156XTN07.1, 1366 x 768XUTC-B156XTN07.1
SPI/I2CSPI/I2C Board9696EG70000

Display Setting (AOM-5841)

AOM-5841 supports three kinds of displays — HDMI, DP, DSI or eDP, DP, DSI.

AOM-5841 supports eDP XUTC-B156XTN07.1, MIPI DSI XMIT-G101UAN02.0.

Confirm the current display settings 

# fw_printenv | grep display

Output may resemble:

display0=hdmi0-default
display2=dp0-default

Note:

  1. HDMI and eDP multiplexing.

2.If no information is obtained, use the default value (HDMI on display0 and DP on display2)

| Port | Advantech number | Resolution ration | Size | Level (V) | Backlight (V) | SOM-DB2510 Number | | :--- | :--- | :--- | :--- | :--- | :--- | :--- | | HDMI | Dell P2422HE | 1920x1080 | 24" | NA | NA | DP0_HDMI1 | | EDP | B156XTN07.1 | 1366x768 | 15.6" | 3.3 | 12 | LVDS1 | | DSI | G101UAN02.0 | 1920x1200 | 10.1" | 3.3 | 12 | LVDS0 |

Single-Display

  • HDMI
# fw_setenv display0 hdmi0-default
# fw_setenv display1
# fw_setenv display2
# reboot
  • DP
# fw_setenv display0 
# fw_setenv display1
# fw_setenv display2 dp0-default
# reboot
  • DSI
# fw_setenv display0 
# fw_setenv display1 mipi0-gl0uan
# fw_setenv display2
# reboot
  • eDP
# fw_setenv display0 edp0-1366x768
# fw_setenv display1
# fw_setenv display2
# reboot

HDMI/DP Screen

HDMI and DP support multi resolutions. They can be configured by GUI. HDMI sup￾ports 4K60Hz display and DP supports 1080P60Hz .

Configure Resolution for HDMI/DP Screen.

  1. Click “Applications” -> “Settings”->“Display”.

  2. Choose “HDMI-1”or “DP-1”, then choose “Resolution”.

  3. Click “Apply”.

AOM-5841_HDMI_20260821_151834

Dual-Display

“HDMI + DP” is the default configuration.

  • HDMI + DP
# fw_setenv display0 hdmi0-default
# fw_setenv display1
# fw_setenv display2 dp0-default
# reboot
  • HDMI + DSI
# fw_setenv display0 hdmi0-default
# fw_setenv display1 mipi0-gl0uan
# fw_setenv display2
# reboot
  • DSI + DP
# fw_setenv display0
# fw_setenv display1 mipi0-gl0uan
# fw_setenv display2 dp0-default
# reboot
  • eDP +DP
# fw_setenv display0 edp0-1366x768
# fw_setenv display1
# fw_setenv display2 dp0-default
# reboot
  • eDP + DSI
# fw_setenv display0 edp0-1366x768
# fw_setenv display1 mipi0-gl0uan
# fw_setenv display2
# reboot

Triple-Display

  • HDMI + DP + DSI
# fw_setenv display0 hdmi0-default
# fw_setenv display1 mipi0-gl0uan
# fw_setenv display2 dp0-default
# reboot
  • eDP + DP +DSI
# fw_setenv display0 edp0-1366x768
# fw_setenv display1 mipi0-gl0uan
# fw_setenv display2 dp0-default
# reboot

SOM-DB2510 Display Setting

DSI Setting:(LVDS0)——Module:G101UAN02.0(1920 x 1080)

Jumper SettingPin define
J8(2-3)+VDD_LVDS0 【Power +3.3V】
J9(2-3)LVDS0_BKLT_VDD【Power +12V】

AOM-5841_DSI_20260731_144410

eDP Setting:(LVDS1)——Module:B156XTN07.01(1366 x 768)

Jumper SettingPin define
J12(2-3)+VDD_LVDS1 【Power +3.3V】
J13(2-3)LVDS1_BKLT_VDD 【Power +12V】
J14(2-3)eDP select Setting

AOM-5841_eDP_20260731_144315 AOM-5841_eDP_20260731_144421

Audio

AOM-5841 supports three kinds of sound cards:

“1 rt5640-codec”,(9696EG57001)

“2 hdmi”,

“3 dp0”.

Set the default audio output when playing media files.

  1. Click “Applications” ->”Multimedia”->”PulseAudio Volume Control”.

  2. Select “Build-in Audio stereo” for rt5640-codec output, or select “HDMI” for HDMI output, or select “Build-in Audio Display Port 1 Stereo” for DP output.

AOM-5841_Audio_1_20260821_153316 AOM-5841_Audio_2_20260821_153421

Mute and Volume Control

Mute and volume can be configured by GUI.

AOM-5841_Audio_20260821_153632

Audio Test(Mode:ROM-EG57

  1. Get sound card ID.
# cat /proc/asound/cards
0 [rockchiprt5640c]: simple-card - rockchip,rt5640-codec
rockchip,rt5640-codec
1 [rockchipdp0 ]: rockchip-dp0 - rockchip-dp0
rockchip-dp0
2 [rockchiphdmi ]: rockchip-hdmi - rockchip-hdmi
rockchip-hdmi
  1. Record

Take Card ID 0 for example:

# CARD_ID=0
# arecord -c 2 -Dplughw:$CARD_ID,0 -f S16_LE -r 16000 -d 10 -t wav test.wav
  1. Playback

Take Card ID 0 for example:

# CARD_ID=0
# aplay -Dplughw:$CARD_ID,0 -t wav test.wav

See details of the usage of “aplay”: 

# aplay --help
… …
-D, --device=NAME select PCM by name
-t, --file-type TYPE file type (voc, wav, raw or au)
… …

Ethernet 

AOM-5841 supports two Ethernet ports: eth0/eth1. All ports are using the “DHCP” mode by default. The following configurations and tests are taking eth0 as an example

AOM-5841_LAN_20260821_152712

Configure to Static IP

  1. Click “Applications” -> “Settings” -> “Advanced Network Configration”.

AOM-5841_Ether_1_20260821_152954

2. Double-click “Wired Connection 1” to configure it.

AOM-5841_Ether_2_20260821_152958

Configure to DHCP

1. Click “Applications” -> “Settings -> “Advanced Network Configration”.

AOM-5841_Ether_3_20260821_153040

2. Double-click “Wired Connection 1” to configure it.

AOM-5841_Ether_4_20260821_153045

After connection, Ethernet will create a net point “eth0”,“eth1”.

# #---- Test eth0 ----# #
# ping -I eth0 www.advantech.com
# #---- Test eth1 ----# #
# ping -I eth1 www.advantech.com

4G/5G 

AOM-5841 supports RM520NGLAA(USB Interface)/EM05CNFD. Device preparation: 9696EP73000 (PCIe to M.2 key B board w/ USB) + USB Cable + I2C Cable.

#Module: ROM-EP73 (BOM: M.2_B, M.2_E)

#4G/5G SIM card & 4G antenna stick and cable

#Connect J2 (pins 1-2) of ROM-EP73 to Pin 2 and Pin 3 on CN7 interface of the baseboard. (PM provides cable)

#Jump J1 and J3 of ROM-EP73 to positions 2-3

#One USB-to-USB cable is required; connect one end to the USB port on EP73, and the other end to the lower USB port on USB12 of the baseboard.

Set up testing environment:

AOM-5841_4G_20260821_154107

Check and identify 5G (RM520-GL USB type) devices:

lsusb

AOM-5841_4G_1_20260821_154211

Configure 4G/5G

  1. Power off the device, then insert 4G/5G module and SIM card.

  2. Power on the device, Click network connection icon,then choose “New Mobile Broadband connection”.

AOM-5841_4G_2_20260821_154504 AOM-5841_4G_2.2_20260821_154559

Then you will see the following window, click “Next” button to the next step.

AOM-5841_4G_3_20260821_154724

  1. Choose Provider's country or region of the SIM card you insert in step 1.

AOM-5841_4G_4_20260821_154906

  1. Choose or Set the Provider's name.

AOM-5841_4G_5_20260821_154912

  1. Choose or Set APN.

AOM-5841_4G_6_20260821_154915

  1. Confirm your config and finish.

AOM-5841_4G_7_20260821_155228

# ifconfig –a
# # ping -I wwan0 www.baidu.com

WIFI/BT

AOM-5841 supports WIFI6 module EWM-W179M201E.

Device preparation: 9696EP73010 (PCIe to M.2 key E board w/ USB) + USB Cable + I2C Cable

Base plate: SOM-DB2510

Connector: PCIEA_X4

#SOM-DB2510 Jumper Setting:Jumper the J15-J21 jumper of the soleplate SOM-DB2510 to 1-2;Set the W_DISABLE_SEL1 of SOM-DB2510 on the baseboard to 1-OFF and 2-ON

Module: ROM-EP73 M.2_E Key

WiFi module + antenna rod and Cable

J2 (1-2) of ROM-EP73 is connected to Pin 2 and Pin 3 on the CN7 interface of the base plate. (The PM has a cable)

J1 and J3 of ROM-EP73 are jumpered to 2-3

A USB to USB cable is required. One end is plugged into the USB port of ROM-EP73, and the other end is plugged into the USB interface below USB12 on the base plate.

Configure WIFI

  1. Click the network icon in the top right corner of the screen and click the line of "Available networks" to select a Wi-Fi connection (for example, Advantech for guest).

AOM-5841_WIFI_1_20260821_162335

  1. Enter the Wi-Fi password to connect to the device.

AOM-5841_WIFI_2_20260821_162339

  1. If the password is correct, the device will connect quickly.

AOM-5841_WIFI_3_20260821_162344 AOM-5841_WIFI_3.1_20260821_162413

After connection, Wi-Fi will create a net point “wlan0”.

# ping -I wlan0 www.baidu.com 

BT

The instruction for checking the WiFi module is as follows.

  1. Click “Applications” -> “Settings”-> “Bluetooth manager”.Click the “Search” button to search for Bluetooth devices.

AOM-5841_BT_20260821_162916 AOM-5841_BT1_20260821_163235

2. Right-click to select a device, such as “Mate”, and send a file.

AOM-5841_BT2_20260821_163243

  1. AOM-5841 will start sending files when the receiver device, such as “Mate”, confirms bluetooth reception.

AOM-5841_BT3_20260821_163250

Result:

AOM-5841_BT4_20260821_163255

GPIO 使用方法 (GPIO Operating Method)

The RK3576 bank/bit notation for GPIOs must be formed as "GPIO<GPI￾O_bank>_<gpio_bit>".

The numeric value of GPIO is calculated as follows: 32 x (gpio_bank) + gpio_bit

gpio_bit: A0A7 0-7 B0B7 8-15 C0C7 16-23 D0D7 24-31

E.g. GPIO0_B5 becomes 13

| GPIO Number | GPIO formed | Numeric Representation | | :--- | :--- | :--- | | GPIO0 | GPIO3_D0 | 120 (default used by CAM0_PWR) | | GPIO1 | GPIO3_C7 | 119 (default used by CAM1_PWR) | | GPIO2 | GPIO3_D6 | 126 (default used by CAM0_RST) | | GPIO3 | GPIO3_A4 | 100 (default used by CAM1_RST) | | GPIO4 | GPIO4_B0 | 136 | | GPIO5 | GPIO2_D6 | 94 | | GPIO6 | GPIO4_B1 | 137 | | GPIO7 | GPIO0_A2 | 2 | | GPIO8 | GPIO0_B0 | 8 | | GPIO9 | GPIO1_D2 | 58 | | GPIO10 | GPIO1_D3 | 59 | | GPIO11 | GPIO0_C4 | 20 | | GPIO12 | GPIO3_C5 | 117 | | GPIO13 | GPIO3_C6 | 118 |

The remaining GPIOs marked on the test board have been used as other functional pins and cannot be set as GPIOs. Export GPIO then you can use control GPIO from user space through sysfs.

GPIO4 and GPIO5 are taken as an example: Connect GPIO4 and GPIO5.

  • Export GPIO4 and GPIO5.
# echo 136 > /sys/class/gpio/export
# echo 94 > /sys/class/gpio/export
  • Set GPIO4 to output and GPIO5 to input.
# echo "out" > /sys/class/gpio/gpio136/direction
# echo "in" > /sys/class/gpio/gpio94/direction
  • Change GPIO4 to 1 and read GPIO5 value.
# echo 1 > /sys/class/gpio/gpio136/value
# cat /sys/class/gpio/gpio94/value
1
  • Change GPIO4 to 0 and read GPIO5 value
# echo 0 > /sys/class/gpio/gpio136/value
# cat /sys/class/gpio/gpio94/value
0

RKTool GPIO Loopback

AOM-5841_GPIO1_20260814_172631 AOM-5841_GPIO_Pin_20260814_172558

# /tools/test/adv/gpio/gpio_autotest.sh

UART使用方法 (COM1-COM4)

User Debian/Linux UART/serial port access is through the tty-devices. The tty￾devices have different names depending on UART drivers for different boards. 

| Device Node | SOM-DB2510 COM Port Name | | :--- | :--- | | /dev/ttyFIQ0 | COM4(Debug) | | /dev/ttyS2 | COM2(RS232 2-wire) | | /dev/ttyS4 | COM1(RS232 4-wire) | | /dev/ttyS10 | COM3(RS232 4-wire) |

AOM-5841_UART_20260814_172913

Send and Receive Data

Taking COM1 as receiver or sender (An external COM is required to do the sending or receiving).

For example, AOM-5841 is responsible for receiving and inputting instructions. The PC computer is connected via a cable and COM1. The PC computer uses the Putty serial port tool, opens the COM port, configures the baud rate to 115200, data bits to 8, stop bits to 1, parity to none, flow control to none, and sends "pass" to the serial port assistant. If no error, the external COM receiver will receive “pass”.

# #---- COM1 as receiver ----# #
# stty -F /dev/ttyS2 115200 cs8 -cstopb -parenb
# cat /dev/ttyS2 &
# #---- COM1 as sender ----# #
# stty -F /dev/ttyS2 115200 cs8 -cstopb -parenb
# echo pass > /dev/ttyS2
# #----If no error, the external COM receiver will receive “pass”---
-# #
pass

RTC

Set the system to the current time then set the RTC.

# date 021710452016 && hwclock -w && date
Wed Feb 17 10:45:00 UTC 2016
Wed Feb 17 10:45:01 UTC 2016

Set one incorrect time, then read RTC to verify.

# date 010100002000 && hwclock -r && date
Sat Jan 1 12:00:00 AM UTC 2000
2016-02-17 10:45:14.178208+00:00
Sat Jan 1 12:00:00 AM UTC 2000

Restore the RTC time to system time.

# hwclock -s && date
Wed Feb 17 10:45:30 AM UTC 2016

Watchdog

A Watchdog Timer (WDT) is a hardware circuit that can reset the computer system in case of a software fault.

AOM-5841 supports one external watchdog. The default value of timeout is 60 seconds, and it can be set from 1 second to 6527 seconds.

Check Watchdog Device

List watchdog device.

# ls /dev/watchdog
/dev/watchdog

Usage

Here are two ways to use watchdog:

  1. Use “echo” command. Writing any character except the specific magic character 'V' will open the watchdog, and write once before the timeout (60 seconds by default) passes, otherwise the system will reboot.
# echo A > /dev/watchdog

Writing the specific magic character 'V' to stop the watchdog.cc

# echo V > /dev/watchdog
  1. Write a program using “ioctl” See more details in [BSP]/kernel/Documentation/watchdog/watchdog-api.rst.

CAN

AOM-5841 has two CAN ports.

Use the “candump” and “cansend” tools directly to send and receive messages. The tools have been embedded into the system.

SOM-DB2510 CAN Pin define

AOM-5841_CAN_20260821_164827

Preparation:

  • Connect CAN0's CAN_L (PIN2 DB9) to CAN1's CAN_L (PIN2 DB9).
  • Connect CAN0's CAN_H (PIN7 DB9) to CAN1's CAN_H (PIN7 DB9).

Testing

Run the following command on DUT Terminal、ADB or Debug console:

can0 is receiver, can1 is sender

# /tools/test/adv/can/can_test.sh can0 can1

can1 is receiver, can0 is sender

# /tools/test/adv/can/can_test.sh can1 can0

Check Network Ports

Check network ports of can0 and can1: 

# ifconfig -a
… …
can0: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 colli￾sions 0
can1: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 colli￾sions 0
… …

Configure

Use “ip” command to configure can port.

See details of the usage of “ip link”:

# ip link help
… …
ip link set { DEVICE | dev DEVICE | group DEVGROUP }
[ { up | down } ]
[ type TYPE ARGS ]
… …
# ip link help can
… …
ip link set DEVICE type can
[ bitrate BITRATE [ sample-point SAMPLE-POINT] ] |
[ dbitrate BITRATE [ dsample-point SAMPLE-POINT] ] |
[ fd { on | off } ]
… …

For example, set can0

“birate rate” to 1000000

“dbitrate rate” to 2000000

“fd” to on

# #---- For can0 ----# #
# ip link set can0 down
# ip link set can0 type can bitrate 1000000 dbitrate 2000000
fd on
# ip link set can0 up

Send and Receive Data

 As receiver

# #---- As receiver ----# #
# ip link set can0 down
# ip link set can0 type can bitrate 1000000 dbitrate 2000000
fd on
# ip link set can0 up
# candump can0 &

 As sender

# #---- As sender ----# #
# ip link set can1 down
# ip link set can1 type can bitrate 1000000 dbitrate 2000000
fd on
# ip link set can1 up
# cansend can1 123##155
# #----If no error, the receiver will receive the following
data----# #
can0 123 [01] 55

See more details of the usage of “candump” and “cansend”: 

# candump --help
# cansend --help

PCIE

AOM-5841 supports one PCIE port PCIe_A (BOM option with sata0).

Using the PCIE disk (SQF-C8BV2-128G-EDE) to test the PCIE_A interface.

Set up the environment:

Just insert the SQF-C8BV2-128G-EDE into the ROM-EP73 (M.2_B Key). (No USB cable or I2C Cable is required to be connected)

ROM-EP73 is installed in the PCIE*4 card slot of SOM-DB2510.

 List disk information.

# fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: SQF-C8BV2-128G-EDE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd9795945

Device Boot Start End Sectors Size Id Type
/dev/nvme0n1p1 2048 250069679 250067632 119.2G 83 Linux

AOM-5841_PCIE_20260821_165911

 Check mount point

# mount | grep nvme
/dev/nvme0n1p1 on /run/media/nvme0n1p1 type ext4 (rw,relatime)

AOM-5841_PCIE1_20260821_170148

 Speed Test.

    Read Speed

# echo 3 > /proc/sys/vm/drop_caches
# dd if=/dev/nvme0n1 of=/dev/zero bs=1M count=400
400+0 records in
400+0 records out
419430400 bytes (419 MB, 400 MiB) copied, 1.02849 s, 408 MB/s

AOM-5841_PCIE2_20260821_170152

 Write Speed

# echo 3 > /proc/sys/vm/drop_caches
# dd if=/dev/zero of=/dev/nvme0n1 bs=1M count=400
400+0 records in
400+0 records out
419430400 bytes (419 MB, 400 MiB) copied, 0.625337 s, 671 MB/s

AOM-5841_PCIE3_20260821_170159

SATA

AOM-5841 supports one SATA port.

 List disk information.

# fdisk -l /dev/sda

 Check mount point

# mount | grep sda

 Speed Test.

    Read Speed

# echo 3 > /proc/sys/vm/drop_caches
# dd if=/dev/sda of=/dev/zero bs=1M count=400

Write Speed

# echo 3 > /proc/sys/vm/drop_caches
# dd if=/dev/zero of=/dev/sda bs=1M count=400

I2C PIN Header

AOM-5841 has two I2C-PIN-Header channels. Device preparation 9696EG70000 + Cable.

I2C NumberBus  NumberI2C AddressSOM-DB2510
I2C000x51CN8
I2C170x51CN7

Set up the test environment as follows:

AOM-5841_I2C_20260828_101422

Using ROM-EG70 (3.3V) Test Board to read I2C flash. Using I2C0 as an example:

root@linaro-alip:/# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 51 -- 53 -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@linaro-alip:/# i2ctransfer -y 0 w4@0x51 0x1f 0xf0 0x22 0x33
root@linaro-alip:/# i2ctransfer -y 0 w2@0x51 0x1f 0xf0 r2
0x22 0x33

 SPI PIN Header

AOM-5841 supports two SPI. SPIs on Carrier Board SOM-DB2510 have multi-functions, change to SPI PIN Header (SPI_CN1 & CN10). Device preparation 9696EG70000 + cable.

Using ROM-EG70 (1.8V)Test Board to read SPI flash.

AOM-5841_SPI_CN1_20260828_114824 AOM-5841_SPI_CN10_20260828_114832

Test one SPI port alternatively:

# cat /proc/mtd | grep –c mtd0
1

Test two SPI ports at the same time:

# cat /proc/mtd | grep –c mtd1
1

Camera

AOM-5841 supports two MIPI-CSI camera ports.

AOM-5841 supports Union Image IMX415 Camera, device preparation:

CRK8F4403-V1 + ROM-EC50 + 2 Lane/4 Lane Cable.

Camera NumberVideo PortNoteSOM-DB2510 Footpront
Camera131(I2C 3) 2 Lane CSI0CSI1_FPC
Camera222(I2C 4) 4 Lane CSI1CSI0_FPC

AOM-5841_Camera_Cable_20260828_141855 AOM-5841_Camera_CSI0_FBC_20260828_142133 AOM-5841_Camera_CSI1_FBC_20260828_142029

Set up the test environment as follows:

avatar_20260828_143710

View Resolution

Taking port 22 as an example, you can enter the following instructions to view information such as the resolution, pixel format, Field, Number of planes, Flags, Color space, Transfer Function, YCbCr/HSV Encoding, Quantization, Bytes per Line and Size Image.

# v4l2-ctl -d /dev/video22 --get-fmt-video
Format Video Capture Multiplanar:
Width/Height : 1920/1080
Pixel Format : 'NV12' (Y/UV 4:2:0)
Field : None
Number of planes : 1
Flags :
Colorspace : Default
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization : Full Range
Plane 0 :
Bytes per Line : 1920
Size Image : 3110400

Set Resolution

Taking port 22 as an example, you can enter the following commands to set the resolution to 1920*1080.

# v4l2-ctl -d /dev/video22 --set-fmt
video=width=1920,height=1080,\
pixelformat='NV12'

Preview Camera

Taking port 22 as an example, you can set the preview of the camera video by using the following command.

# export DISPLAY=:0.0
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64
linux-gnu/gstreamer-1.0
#gst-launch-1.0 v4l2src device=/dev/video22 \
! video/x-raw,format=NV12,width=1920,height=1080,framer
ate=30/1 \
! xvimagesink

Camera Photography

Taking port 22 as an example, the following command can be used to take a camera photo, and the save address is picture.jpg in the current directory.

# gst-launch-1.0 v4l2src device=/dev/video22 num-buffers=1 \
! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc !
filesink location= picture.jpg

Camera Screen Recording

Taking port 22 as an example, the following command can be used to record videos with the camera, and the save address is video.mp4 in the current directory.

# gst-launch-1.0 -e \
v4l2src device=/dev/video22 \
!
video/x-raw,format=NV12,width=1920,height=1080,framer
ate=25/1 \
! videoconvert \
! x264enc bitrate=5000 speed-preset=ultrafast tune=zerolatency
\
! h264parse \
! mp4mux \
! filesink location= video.mp4

Build Known Issue

Linux BSP User Guide for RK3576 Series Debian12 | AIM-Linux Developer Center