4. Debian 12 Application
Account: linaro Password: linaro
4.1 Serial Terminal
Connect the board and PC with USB Serial cable, then power on, the terminal will output boot information. The default baudrate is 1500000.
Serial Terminal
4.2 Display
EM3576 supports MIPI LCD, HDMI and Type-C(DP Alt Mode) triple-display.
The RGB signal is multiplexed with several interfaces. If RGB is required, please modify the hardware and kernel.
Debian Triple-display
4.3 USB Type-C
Features supported by the Type-C interface:
Reversible Design: Allows insertion in either orientation for user convenience.
Data Transmission Roles: Supports flexible designation of host and device roles.
Multiple Protocol Support: Compatible with USB 3.0 and DisplayPort, enabling high-speed data transmission.
4.3.1 ADB
❶ Connect the board and PC host with Type-C cable.
❷ Install ADB driver on Windows system.
❸ Press Windows + R to open the Run program. Type cmd and press Enter
❹ Execute the follow commands to enable ADB.
1adb shell
4.3.2 Type-C to USB
EM3576 supports Type-C to USB. After inserting the USB flash drive, an icon will appear on the desktop. Click the icon to automatically mount the device.
Mounted U-disk
4.3.3 DP Alt Mode
DisplayPort Alternate Mode (DP Alt Mode) is a technology that facilitates the transmission of DisplayPort video signals through a USB Type-C interface. It enables devices to output video and audio via a USB-C connection without requiring a dedicated DisplayPort connector. This allows users to connect a display using a single USB-C port while transmitting video, audio, and additional data.
Boardcon has conducted the testing at Type-C to HDMI/DP (3840 x 2160 @ 60fps).
Type-C to HDMI
4.4 USB Host
After inserting the USB flash drive, an icon will appear on the desktop. Click the icon to automatically mount the device.
USB Device
4.5 Ethernet
❶ Connect the Board and router with an Ethernet cable.
❷ View the status of the Network interface.
1ifconfig
root@linaro-alip:/# ifconfig
end1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.216 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::d9ee:fef5:287e:a836 prefixlen 64 scopeid 0x20<link>
ether b2:ef:e7:4f:bf:85 txqueuelen 1000 (Ethernet)
RX packets 370 bytes 41403 (40.4 KiB)
RX errors 0 dropped 8 overruns 0 frame 0
TX packets 153 bytes 13818 (13.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 64
❸ Ping URL to test Network.
1ping -I end1 www.armdesigner.com
root@linaro-alip:/# ping -I end1 www.armdesigner.com
PING www.armdesigner.com (67.222.54.196) from 192.168.0.216 end1: 56(84) bytes of data.
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=1 ttl=48 time=194 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=2 ttl=48 time=192 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=3 ttl=48 time=193 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=4 ttl=48 time=193 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=5 ttl=48 time=192 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=6 ttl=48 time=193 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=7 ttl=48 time=196 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=8 ttl=48 time=193 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=9 ttl=48 time=193 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=10 ttl=48 time=192 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=11 ttl=48 time=193 ms
^C
--- www.armdesigner.com ping statistics ---
11 packets transmitted, 11 received, 0% packet loss, time 10015ms
rtt min/avg/max/mdev = 192.094/192.977/195.780/0.990 ms
4.6 SATA
Important
SATA cannot be used with USB2.0 Host simultaneously. Boardcon Debian firmware default SATA is unavailable. To enable SATA, please reflash the image boot-sata.img
❶ Connect SATA and SATA power(5V).
❷ Power on.
❸ Format SATA to ext4. If the device is in ext4 format, skip this step.
1mke2fs -t ext4 /dev/sda
Warning
This operation will permanently erase all existing data on the selected partition. Before running the command below, double‑check that the device path is correct.
❹ If the SATA is successfully recognized, an icon will appear on the desktop. Click the icon to automatically mount the device.
Mounted SATA
4.7 SD Card
After inserting the SD Card, an icon will appear on the desktop. Click the icon to automatically mount the device.
SD card
4.8 M.2 SSD
EM3576 only supports SSD in ext4 format.
❶ Connect SSD to the M.2 socket.
❷ Power on.
❸ Format SSD to ext4. If the device is in ext4 format, skip this step.
1mke2fs -t ext4 /dev/nvme0n1
❹ If the SSD is successfully recognized, an icon will appear on the desktop. Click the icon to automatically mount the device.
4.9 WiFi & Bluetooth
4.9.1 WiFi
❶ Connect the WiFi antenna.
❷ Click the network icon in the top right corner of the UI interface.
❸ Click Available Networks, select the SSID from the list of available networks and enter the password.
SSID
After connected, user can open Browser or ping URL/IP at terminal to test network.
Browser
1ifconfig
2ping -I wlan0 www.armdesigner.com
4.9.2 Bluetooth
❶ Click the Bluetooth icon in the top right corner of the UI interface.
❷ The Bluetooth device name is hidden by default. Set the Bluetooth device name to be visible.
Click Adapter -> Preferences -> Always visible
❸ Click Search to start searching and select the available device in the list to pair.
After pairing, devices can connect with each other automatically.
4.10 Audio I/O
4.10.1 Audio in
4.10.1.1 Line in
❶ Plug the Microphone into the 3.5mm Audio jack(Line in).
❷ Switch to the Line in channel.
1amixer -c0 cset name='Right PGA Mux' 1
2amixer -c0 cset name='Left PGA Mux' 1
root@linaro-alip:/# amixer -c0 cset name='Right PGA Mux' 1
numid=69,iface=MIXER,name='Right PGA Mux'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'Line 1R'
; Item #1 'Line 2R'
; Item #2 'DifferentialR'
: values=1
root@linaro-alip:/# amixer -c0 cset name='Left PGA Mux' 1
numid=68,iface=MIXER,name='Left PGA Mux'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'Line 1L'
; Item #1 'Line 2L'
; Item #2 'DifferentialL'
: values=1
❸ Start recording.
1arecord -D hw:0,0 -f cd -r 44100 -c 2 -t wav test.wav
Press Ctrl + C to exit recording.
4.10.1.2 MIC
❶ Connect a MIC to the connector (2pin/2.0mm pitch).
❷ Switch to the microphone(MIC) channel.
1amixer -c0 cset name='Right PGA Mux' 2
2amixer -c0 cset name='Left PGA Mux' 2
root@linaro-alip:/# amixer -c0 cset name='Right PGA Mux' 2
numid=69,iface=MIXER,name='Right PGA Mux'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'Line 1R'
; Item #1 'Line 2R'
; Item #2 'DifferentialR'
: values=2
root@linaro-alip:/# amixer -c0 cset name='Left PGA Mux' 2
numid=68,iface=MIXER,name='Left PGA Mux'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'Line 1L'
; Item #1 'Line 2L'
; Item #2 'DifferentialL'
: values=2
❸ Start recording.
1arecord -D hw:0,0 -f cd -r 44100 -c 2 -t wav test.wav
Press Ctrl + C to exit recording.
4.10.2 Audio out
❶ View sound card.
1cat /proc/asound/cards
root@linaro-alip:/# cat /proc/asound/cards
0 [rockchipes8388 ]: rockchip-es8388 - rockchip-es8388
rockchip-es8388
1 [rockchipdp0 ]: rockchip-dp0 - rockchip-dp0
rockchip-dp0
2 [rockchiphdmi ]: rockchip-hdmi - rockchip-hdmi
rockchip-hdmi
0- Line out1- Type-C(DP AIT mode)2- HDMI
❷ Select Audio output device to play test.wav
1amixer -c0 cset name='Speaker Switch' 1
2amixer -c0 cset name='Output 2 Playback Volume' 10 //(0-33)
3amixer -c0 cset name='PCM Volume' 140 //(0-192)
4aplay -Dhw:0,0 test.wav
1aplay -Dhw:1,0 record.wav
1aplay -Dhw:2,0 record.wav
4.11 RTC
❶ Insert a CR1220 battery before test. It keeps the time running when the main power is off.
❷ Set date and time manually.
1date -s "2024-12-19 14:16:30" //set system date
2hwclock -w //set the hardware clock to current system time
3hwclock //display date and time
root@linaro-alip:/# date -s "2024-12-19 14:16:30"
Thu Dec 19 02:16:30 PM UTC 2024
root@linaro-alip:/# hwclock -w
root@linaro-alip:/# hwclock
2024-12-19 14:16:38.196019+00:00
root@linaro-alip:/# hwclock
2024-12-19 14:16:57.107916+00:00
root@linaro-alip:/# hwclock
2024-12-19 14:17:06.993356+00:00
❸ Power off the board. Wait a while, then reapply power. If the RTC is functioning correctly, the clock should maintain its time and keep running while the board is powered off.
root@linaro-alip:/# hwclock
2024-12-19 14:41:24.294090+00:00
root@linaro-alip:/# hwclock
2024-12-19 14:41:36.702625+00:00
root@linaro-alip:/# hwclock
2024-12-19 14:42:00.991369+00:00
root@linaro-alip:/# hwclock
2024-12-19 14:42:32.525379+00:00
4.12 RS485
❶ Connect PC and board with USB-to-RS485 adapter.
RS485 connection
❷ Open the Serial Terminal and set baud rate for RS485 adapter and EM3576 respectively.
Baud rate: EM3576 - 1500000; RS485 adapter - 115200
❸ Execute command in the terminal of the board.
1com /dev/ttyS5 115200 8 0 1
❹ Input character to test RS485 communication.
4.13 CAN
❶ Connect PC and board with USB-to-CAN adapter.
CAN connection
❷ Open the CAN application and set the baudrate to 500000 on PC.
❸ Execute commands on Serial Terminal to configure CAN.
1ip link set can0 down
2ip link set can0 type can bitrate 500000 dbitrate 2000000 fd on
3ip link set can0 up
❹ Configure CAN as receiver.
1candump can0
❺ Configure CAN as Transmitter.
1cansend can0 123#DEADBEEFDEADBEEF
4.14 UART
The UART loopback test is for reference only.
❶ Connect RX and TX of UART.
❷ Execute command and input character to test.
1com /dev/ttyS10 115200 8 0 1 //test UART10
root@linaro-alip:/# com /dev/ttyS10 115200 8 0 1
port = /dev/ttyS10
baudrate = 115200
cs = 8
parity = 0
stopb = 1
GGGGGGGGG
RECV: GGGGGGGGG
IIIIII22222
RECV: IIIIII22222
❸ Press Ctrl + C to exit UART10 testing.
❹ Execute command to test UART11.
1com /dev/ttyS11 115200 8 0 1
4.15 SPI
❶ Connect SPI3_MISO and SPI3_MOSI of SPI.
❷ Execute the test script spidev_test.
1spidev_test
root@linaro-alip:/# spidev_test
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)
FF FF FF FF FF FF
40 00 00 00 00 95
FF FF FF FF FF FF
FF FF FF FF FF FF
FF FF FF FF FF FF
DE AD BE EF BA AD
F0 0D
4.16 Camera
❶ Connect AHD camera to the development board.
❷ Preview.
1./rockchip-test/camera/camera_ahd_test.sh
To preview any specific camera, just modify the device ID.
1gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV16,width=1920,height=1080, framerate=25/1 ! xvimagesink
1gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,format=NV16,width=1920,height=1080, framerate=25/1 ! xvimagesink
4.17 Video Playback
4.17.1 Built-in playback
The script instruction directory is in /rockchip-test/video/, just run it.
root@linaro-alip:/# ls /rockchip-test/video/
test_dec-gst.sh test_enc-gst.sh test_gst_video.sh
test_dec-mpv.sh test_gst_multivideo.sh video_stresstest.sh
test_dec-parole.sh test_gst_video_fps.sh video_test.sh
test_dec-qt.sh test_gst_video_maxfps.sh
root@linaro-alip:/# ./rockchip-test/video/test_gst_video.sh
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
mpp[2281]: mpp_info: mpp version: 48962a10 author: Hongjin Li 2024-09-19 fix[avsd]: Fix attach dev error issue
mpp[2281]: mpp_info: mpp version: 48962a10 author: Hongjin Li 2024-09-19 fix[avsd]: Fix attach dev error issue
mpp[2281]: mpp_info: mpp version: 48962a10 author: Hongjin Li 2024-09-19 fix[avsd]: Fix attach dev error issue
mpp[2281]: mpp: unable to create enc vp8 for soc rk3576 unsupported
mpp[2281]: mpp_info: mpp version: 48962a10 author: Hongjin Li 2024-09-19 fix[avsd]: Fix attach dev error issue
mpp[2281]: mpp_info: mpp version: 48962a10 author: Hongjin Li 2024-09-19 fix[avsd]: Fix attach dev error issue
Redistribute latency...
mpp[2281]: h264d_api: is_avcC=1
Pipeline is PREROLLED ...
Prerolled, waiting for async message to finish...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
0:00:03.5 / 0:00:29.5 (12.1 %
4.17.2 Browser playback
❶ Right-click Video file, select Open With Other Application…
❷ Select Chromium Browser in the list, click open
4.17.3 Command line
1gst-play-1.0 --videosink=xvimagesink /media/linaro/5488-0CF6/video/8KP30/H265_8KP30-2.mp4 --audiosink="alsasink device=hw:0,0"
Command explanation:
/media/linaro/5488-0CF6/video/8KP30/H265_8KP30-2.mp4The media file path to be played.--audiosink="alsasink device=hw:0,0"Specifies the Audio output device.
Note
The EM3576 supports 4K@60 video playback and decoding of VP8, H.264, H.265, VP9, and AV1, but H.265 compatibility depends on specific encoding profiles.