Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rock5/accessories/radxa-camera-4k

    ROCK 5 >  Accessories >  How to use Radxa Camera 4K

How to use Radxa Camera 4K

Hardware connection

Rock-5b-radxa-camera-4k.jpeg

Software configuration

  • Add one line to file /boot/config.txt. Like this.
dtoverlay=rock-5ab-camera-imx415
  • And then execute command.
# update_extlinux.sh
  • Reboot the device, you would see devices /dev/video0 to /dev/video19 are created.
  • Check media pineline
# media-ctl -p
  • Start rkaiq camera preview.

Execute the following command with root user in terminal on desktop.

$ sudo su
# test_camera_rkaiq.sh

The content of file test_camera_rkaiq.sh

# cat /usr/local/bin/test_camera_rkaiq.sh
#!/bin/bash

#export GST_DEBUG=*:5
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64-linux-gnu/gstreamer-1.0
echo "Start RKAIQ Camera Preview!"

# Example: Radxa Camera 4K on ROCK 5B
gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink

Troubleshooting