AOM-5841 Debian 12 User Guide
產品介紹 (Product Introduction)
產品特性 (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
產品官網連結 (Product Official Website Link)
硬體介面說明 (Hardware Interface Introduction)
AOM-5841 介面佈局圖 (Board Dimension Layout)
SOM-DB2510 Connectors and Jumper Settings(default state)
Connector Locations

Jumper Locations

Switch Locations

I/O Connctor Locations

Button Locations

LED Locations

機構尺寸 (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
| Product | Image Version | Release Date | Release Version | Image Download | BSP Download Tag | SDK | Test Report |
|---|---|---|---|---|---|---|---|
| AOM-5841 | V120_v1.0.0 | 2026/06/02 | RTM | Baidu Password:a887Dropbox | RK3576_RISC_.v120_v1.0.0xml | Ask PM for Help | Test Report |
Linux 燒錄方法 (Linux Flash eMMC Method)
AOM-5841 Usering_RKTool.
- Prepare a Micro USB and Debug Cable

- 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:
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:
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.
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.
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.
Usering bootup_sd_disk made_by SDDiskTool.
Step1: Using DebianTool to create update.img
a. Put image to DebianTool\rockdev\image
b. Double click mkupdate.bat. in DebianTool\rockdev
Then you can find “update.img”in DebianTool\rockdev.
Step2:Using SDDiskTool to Create Upgrade SD
-
Insert SD Card to PC (Windows OS).
-
Decompress SDDiskTool, double click SD_Firmware_Tool.exe.
-
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.
Create the Update SD card Success
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.
- Set the SDIO jumper settings (gold fingers P34/P35/P36/P39/P40/P41/P42) of SOM-DB2510.
| Jumper Setting | Connecter Setting |
|---|---|
| J15/J16/J17/J18/J19/J20/J21(1-2) | |
| SDIO切换到底板M2接口 | |
| J15/J16/J17/J18/J19/J20/J21(2-3) (默认配置) CN3 default:2-3 | SDIO切换到底板SD接口 |
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.
HDMI Display Desktop:
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 specified I/O. If you have any problems during testing, please contact Advantech for help.
Supoort List
| Supoort List | Description | Part No. |
|---|---|---|
| Audio | ALC5640-VB-CGT Audio Codec | 9696EG57001 |
| 4G | EM05CNFD-128-SGAS M.2 3042 Key B USB2.0 | 968DD00443+9696EP73000 |
| 5G | RM520NGLAA-M20-SGASA M.2 Key B USB3.1/PCIE3.0 | 968DD00342+9696EP73000 |
| WIFI6 | RTL8852BE,PCIe + USB M.2 Key E | EWM-W179M201E + 9696EP73010 |
| MIPI Camera | Union Image IMX415 Camera | CRK8F4403-V1+ ROM-EC50 |
| MIPI DSI | G101UAN02.0, 1920 x 1200 | XMIT-G101UAN02.0 |
| eDP | B156XTN07.1, 1366 x 768 | XUTC-B156XTN07.1 |
| SPI/I2C | SPI/I2C Board | 9696EG70000 |
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:
- 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 supports 4K60Hz display and DP supports 1080P60Hz .
Configure Resolution for HDMI/DP Screen.
-
Click “Applications” -> “Settings”->“Display”.
-
Choose “HDMI-1”or “DP-1”, then choose “Resolution”.
-
Click “Apply”.
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 Setting | Pin define |
|---|---|
| J8(2-3) | +VDD_LVDS0 【Power +3.3V】 |
| J9(2-3) | LVDS0_BKLT_VDD【Power +12V】 |

eDP Setting:(LVDS1)——Module:B156XTN07.01(1366 x 768)
| Jumper Setting | Pin define |
|---|---|
| J12(2-3) | +VDD_LVDS1 【Power +3.3V】 |
| J13(2-3) | LVDS1_BKLT_VDD 【Power +12V】 |
| J14(2-3) | eDP select Setting |
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.
-
Click “Applications” ->”Multimedia”->”PulseAudio Volume Control”.
-
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.

Mute and Volume Control
Mute and volume can be configured by GUI.

Audio Test(Mode:ROM-EG57)
- 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
- 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
- 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

Configure to Static IP
- Click “Applications” -> “Settings” -> “Advanced Network Configration”.
2. Double-click “Wired Connection 1” to configure it.

Configure to DHCP
1. Click “Applications” -> “Settings -> “Advanced Network Configration”.
2. Double-click “Wired Connection 1” to configure it.

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:

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

Configure 4G/5G
-
Power off the device, then insert 4G/5G module and SIM card.
-
Power on the device, Click network connection icon,then choose “New Mobile Broadband connection”.
Then you will see the following window, click “Next” button to the next step.
- Choose Provider's country or region of the SIM card you insert in step 1.
- Choose or Set the Provider's name.
- Choose or Set APN.
- Confirm your config and finish.
# 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
- 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).

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

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

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.
- Click “Applications” -> “Settings”-> “Bluetooth manager”.Click the “Search” button to search for Bluetooth devices.

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

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

Result:

GPIO 使用方法 (GPIO Operating Method)
The RK3576 bank/bit notation for GPIOs must be formed as "GPIO<GPIO_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

# /tools/test/adv/gpio/gpio_autotest.sh
UART使用方法 (COM1-COM4)
User Debian/Linux UART/serial port access is through the tty-devices. The ttydevices 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) |

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:
- 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
- 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

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 collisions 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 collisions 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
Check mount point
# mount | grep nvme
/dev/nvme0n1p1 on /run/media/nvme0n1p1 type ext4 (rw,relatime)
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
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
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 Number | Bus Number | I2C Address | SOM-DB2510 |
|---|---|---|---|
| I2C0 | 0 | 0x51 | CN8 |
| I2C1 | 7 | 0x51 | CN7 |
Set up the test environment as follows:

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.

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 Number | Video Port | Note | SOM-DB2510 Footpront |
|---|---|---|---|
| Camera1 | 31 | (I2C 3) 2 Lane CSI0 | CSI1_FPC |
| Camera2 | 22 | (I2C 4) 4 Lane CSI1 | CSI0_FPC |

Set up the test environment as follows:
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