
youyeetoo123456

Install the RK USB driver and download the adb software.
Connect the OTG port on the back of the development board to the computer using a Type-C cable, as shown in the figure:


adb shell
sudo apt-get install android-tools-adb
mkdir -p ~/.android
vi ~/.android/adb_usb.ini
# Add the following line
0x2207
sudo vi /etc/udev/rules.d/51-android.rules
# Add the following line:
SUBSYSTEM=="usb", ATTR{idVendor}=="2207", MODE="0666"
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo adb kill-server
adb start-server
adb shell
The baud rate of YY3588 DEBUG serial port is
1500000




The hardware connection is as follows:

sudo date
sudo date --set='2025-12-30 15:17:42'
sudo hwclock --systohc
sudo hwclock --show
hwclock ----hctosys

There are many types of Ubuntu desktop systems, among which the Gnome desktop system is the default desktop system for Ubuntu. However, due to the high resource consumption required to run the Gnome desktop system, without GPU support, the RK chip is difficult to run and can easily cause freezing during operation. And this Ubuntu is a Gnome desktop system with GPU support. It can run smoothly on the RK3588 chip.
RK3588 integrates MALI G610 GPU. You can use the glmark2 graphics performance testing tool to test the GPU performance of RK3588.
Execute the following command on the shell terminal to test the performance of graphics engine, shaders, lighting, textures, and other aspects.
glmark2
During the process of running glmark2, you can open another terminal and execute the following command to check GPU usage
cat /sys/devices/platform/fb000000.gpu/devfreq/fb000000.gpu/load

The actual glmark score is around 1059.

The Linux camera driver adopts the v4l2 framework. The camera corresponds to two devices in user space, one for image or video capture and the other for metadata capture.
Before using a camera, it is necessary to know the corresponding nodes and supported camera parameters. The following introduces the process of using the camera.
1、The first step is to identify the device nodes.
v4l2-ctl --list-devices
Find the keywords rkisp0-vir0 (corresponding to the CSI1 interface on the board) and rkisp1-vir0 (corresponding to the CSI2 interface on the board) among all the printed devices. Below them are the corresponding camera nodes.

And displaying usb-xhci-hcd.3.auto-1.4 below indicates the USB camera node.

2、 Step 2, list the preview support formats for the specified device
# Check the supported formats of CSI1 camera
v4l2-ctl --list-formats-ext --device /dev/video22

# Check the supported formats of USB cameras
v4l2-ctl --list-formats-ext --device /dev/video41

3、Step three, capture frames. Taking the USb camera as an example, let's see the effect
# frame grabbing
v4l2-ctl -d /dev/video41 --set-fmt-video=width=1280,height=720,pixelformat=MJPG --stream-mmap --stream-to=/sdcard/out.jpg --stream-count=1
4、Step four, use gstreamer to play the camera image, taking a USB camera as an example.
# Display MJPG format, 1280* 720@30fps video
gst-launch-1.0 v4l2src device=/dev/video41 ! image/jpeg,width=1280,height=720,framerate=30/1 ! jpegdec ! videoconvert ! xvimagesink

# Display YUV format
gst-launch-1.0 v4l2src device=/dev/video41 ! video/x-raw,format=YUY2,width=1280,height=720,framerate=10/1 ! videorate ! videoscale ! videoconvert ! xvimagesink

Ffmpeg is a very useful toolkit for processing audio and video. It is like a universal toolbox, covering a series of audio and video processing functions such as recording, conversion, streaming, etc. It supports massive audio and video formats such as AVI, MP4, MOV, FLV, WMV, MPEG, MKV, etc. Below is a brief introduction to the usage of ffmpeg for playing and converting video formats
ffplay /media/youyeetoo/userdata/200frames_count.h264

ffmpeg -f h264 -i /media/youyeetoo/userdata/200frames_count.h264 -vcodec copy output.mp4
ffplay output.mp4

sudo docker pull ubuntu
sudo docker run -ti --net=host e149199029d1 /bin/bash
exit
docker export <Container ID> -o ubuntu.tar
docker import ubuntu.tar ubuntu:laster
Switch to command-line mode without graphical interface
youyeetoo_utils --display=0
sudo reboot
Enter your account password to log in

Switch to graphical mode
youyeetoo_utils --display=1
sudo reboot