6. Buildroot Application

6.1 Display

_images/Display_interface.png

EM3288 buildroot supports LVDS and HDMI dual-screen display by default.

EM3288_dual_display

If only HDMI is required to be displayed separately and displayed in full screen, you need to execute the following command to turn off the LVDS display.

echo off > /sys/class/drm/card0-LVDS-1/status

6.2 SD Card

_images/SD.jpg

Step 1, insert the micro SD card into the card slot

Step 2, Check SD Card usage on a mounted filesystem.

df -h
_images/buildroot_SD.png

6.3 USB Host

_images/USB2.jpg

Check U-disk usage on a mounted filesystem

df -h
_images/buildroot_USB.png

6.4 Video playback

6.4.1 Built-in playback

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

_images/Built-in_playback.png

6.4.2 Browser playback

Start the browser with a command to play.

chromium --no-sandbox xx.mp4                //xx.mp4 is the video file name
_images/Browser_playback.png

6.5 Ethernet

_images/Ethernet.jpg

Connect the Board and router with an Ethernet cable.

ifconfig
ping -I eth0 www.armdesigner.com
Debian_Test_Ethernet ping URL

6.6 Record & Audio

_images/MIC.jpg

EM3288 supports recording via line-in(headset) or differential MIC.

Recording via MIC.

amixer -c 0 cset numid=21 2
amixer -c 0 cset numid=33 0
arecord -Dhw:0,0 -f cd ww.wav
_images/record_MIC.png

Recording via Line_in (Audio input via PC).

amixer -c 0 cset numid=21 2
amixer -c 0 cset numid=33 1
arecord -Dhw:0,0 -f cd ww.wav
_images/record_Line-in.png

Audio playback

aplay -Dhw:0,0 ww.wav     //HDMI and headset output synchronously
_images/Audio_play.png

View more audio parameter configurations

amixer -c 0 contents

6.7 RTC

_images/RTC.png

Insert a CR1220 battery before test. It keeps the time running when the main power is off. If we do not insert the battery, the time information is lost if the main power is off and you need to set the time again.

date -s "2023-11-17 11:37:00"       //set system date
hwclock -w                   //set the hardware clock to current system time
hwclock
_images/buildroot_set_system_date.png

Power off. Wait for a moment, power on again, and then execute the command hwclock. You will find that the time is saved.

buildroot_Test_RTC

6.8 WiFi

_images/WiFi%2Bbt.png
ifconfig           //check the status of network interfaces
_images/Buildroot_check_WiFi.png
iwlist wlan0 scan  //list the available WiFi hotspots
_images/Buildroot_list_hotspot.png
vi /etc/wpa_supplicant.conf      //configure the SSID and password of the hotspot
_images/buildroot_SSID_PW.png
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf   //Connect hotspot
_images/Buildroot_hotspot_connected.png
ping -I wlan0 www.armdesigner.com   //ping URL to test
_images/buildroot_WiFi_ping.png

6.9 Bluetooth

_images/WiFi%2Bbt.png
hciconfig -a           //view device status
hciconfig hci0 piscan  //allow Bluetooth to be searched
bluetoothctl           //allow Bluetooth to be pairable
_images/buildroot_Bt_status.png _images/buildroot_Bt_searched.png _images/buildroot_Bt_pairable.png

EM3288 Bluetooth name in buildroot is BlueZ 5.62. Click BlueZ 5.62 in mobile device to pair.

_images/buildroot_Bt_pair.jpg

Regarding the pairing process, authorization authentication is required. Click PAIR on the mobile device side.

_images/buildroot_bt_pair-1.jpg

Input yes in the serial terminal, until the pairing is successful.

_images/buildroot_bt_pair-2.png _images/buildroot_bt_pair-3.png

Pairing successful

_images/buildroot_bt_pair_OK.jpg
exit         //exit the current bluetooth test
_images/buildroot_bt_exit.png

6.10 4G

_images/4G-EC.jpg

Step 1, Insert 4G module to PCIe slot (4G model: EC20/EC25).

Step 2, Connect antenna and insert SIM card.

Step 3, Execute follow command to connect 4G network after power on.

pppd call quectel-ppp &             //realize ppp dialing
ifconfig                            //view the network interface status
ping -I ppp0 www.armdesigner.com    //check network
_images/buildroot_4G-1.png _images/buildroot_4G-2.png _images/buildroot_4G-3.png

6.11 GPS

_images/GPS.jpg

EC20 module combines high-speed wireless connectivity with embedded multi-constellation high-sensitivity GPS+GLONASS receiver for positioning.

echo -e "AT+QGPS=1\r\n" > /dev/ttyUSB2
cat /dev/ttyUSB1
_images/buildroot_GPS.png

In addition, the development board also supports a standalone GPS module (Model: ST-91-U7).

cat /dev/ttyS3

6.12 Camera

_images/camera_ov13850.png

Connect the camera module (OV13850) to the development board before power on.

Check if there are threads in rkisp_3A_server, which indicates automatic startup.

pidof rkisp_3A_server

rkisp_3A_server has started

_images/rkisp_started.png

If there are no threads, execute the following command to start rkisp_3A_server.

/etc/init.d/rkisp_3A.sh start

Execute the following command to preview

/rockchip-test/camera/camera_rkisp_test.sh

6.13 UART

_images/UART1.jpg

Connect the transmit (TX) pin to the receive (RX) pin of UART1. After executes the command, input character to test UART.

com /dev/ttyS1 115200 8 0 1
_images/buildroot_UART.png

6.14 ADB

_images/Micro_USB.jpg

Install the ADB driver to PC before test.

Connect Micro USB cable and power on. Use the shortcut keys WIN + R to open the windows command run box, type cmd, open the windows console command window.

_images/cmd.png
adb shell    //enable ADB
_images/Buildroot_enable_ADB.png

6.15 SATA

_images/SATA.png
ls /dev                                //view SATA device name
mkdir /mnt/sata                        //create a Mount Point
mount /dev/sda /mnt/sata               //mount SATA
ls /mnt/sata/                          //view SATA contents
df -h                                  //view the space size of the mounted disk
_images/buildroot_sata_name.png _images/buildroot_sata.png