Camera - FriendlyELEC WiKi (original) (raw)
Contents
1 How to test CAM415 MIPI camera
1.1 Supported Operating Systems
- Android 14 Tablet
- Buildroot
- Ubuntu 24 Core
- Debian 11 Desktop (X11)
- FriendlyCore 20.04
- Ubuntu 20.04 Desktop (X11)
- Ubuntu 22.04 Desktop (X11 & Wayland)
- Ubuntu 24.04 Desktop (X11 & Wayland)
- Debian 13 GNOME Desktop (Wayland)
1.2 CAM415 Out-of-the-Box Ready Boards
- NanoPC-T6 / LTS
- CM3588 / CM3588-Plus
- NanoPi-M6 / NanoPi-M6V2
- NanoPi-M5
1.3 How to connect the camera
Which CSI interface should the camera connect to? Please refer to the table on the DTS files page for details.
1.4 Testing the Camera in Desktop System
On Debian 11 Desktop, you can use Cheese to record video and capture photos with a MIPI camera. Launch Cheese via Applications → Multimedia → Cheese. The interface appears as shown above:
1.5 Testing with GStreamer
1.5.1 Pre-test Setup
sudo apt update sudo apt install gstreamer1.0-tools gstreamer1.0-plugins-bad
1.5.2 Wayland
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/gstreamer-1.0 gst-launch-1.0 v4l2src device=/dev/video-camera0 ! video/x-raw,format=NV12,width=1920,height=1080, framerate=30/1 ! waylandsink
1.5.3 X11
export DISPLAY=:0.0 gst-launch-1.0 v4l2src device=/dev/video-camera0 ! video/x-raw,format=NV12,width=1920,height=1080, framerate=30/1 ! xvimagesink
1.5.4 Command Line
gst-launch-1.0 v4l2src num-buffers=20 device=/dev/video-camera0 ! video/x-raw,format=NV12,width=1920,height=1080, framerate=30/1 !
jpegenc ! multifilesink location="frame%d.jpg"
2 Frequently Asked Questions and Debugging Methods
2.1 Green Image Display (No 3A)
- Check if the rkaiq_3A_server service is running in the background
2.2 No Image
- Check if the rkaiq package is installed
sudo dpkg -l | grep rkaiq
- Check if the camera device nodes exist
pi@NanoPC-T6-LTS:$ ls /dev/video-camera0
/dev/video-camera0
pi@NanoPC-T6-LTS:$ ls /dev/video-camera1
/dev/video-camera1
2.3 Cheese Application Error or No Image
Currently, only the Cheese application on Debian 11 is supported. For other systems, please use GStreamer for camera preview.