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

Difference between revisions of "Rock3/hardware/camera/"

 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
 
Update kernel to version 4.19.193-2-rockchip or newer.
 
Update kernel to version 4.19.193-2-rockchip or newer.
  
  root@rock3a:~# apt-get install -y linux-4.19-rock-3-latest
+
  root@rock-3a:~# apt-get install -y linux-4.19-rock-3-latest
  
 
Install tool fswebcam
 
Install tool fswebcam
  
  root@rock3a:~# apt-get install -y fswebcam
+
  root@rock-3a:~# apt-get install -y fswebcam
  
 
Plug USB camera in, there shall be video devices.
 
Plug USB camera in, there shall be video devices.
  
  root@rock3a:~# ls /dev/video*
+
  root@rock-3a:~# ls /dev/video*
 
  /dev/video0  /dev/video1
 
  /dev/video0  /dev/video1
  
Line 22: Line 22:
  
 
  fswebcam /dev/video0 ./test.png
 
  fswebcam /dev/video0 ./test.png
 +
 +
=== MIPI Camera ===
 +
 +
==== Hardware connection ====
 +
 +
 +
==== Software configuration ====
 +
 +
Add dtbo
 +
 +
rock-3ab-rpi-camera-v2-imx219
 +
 +
Test command
 +
 +
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=%d.jpg
 +
 +
 +
====ROCK 3C Use OV5647 Camera====
 +
* Edit config.txt
 +
rock@rock-3c:~$ sudo vim /boot/config.txt
 +
*at the end of the file add overlay
 +
dtoverlay=rock-3c-ov5647
 +
*update extlinux.conf
 +
  rock@rock-3c:/boot$ cd /usr/local/sbin/
 +
  rock@rock-3c:sudo ./update_extlinux.sh
 +
  rock@rock-3c:sudo reboot
 +
* Use cheese to open the camera
 +
sudo apt install cheesr
 +
sudo cheese
 +
 +
  
 
=== Troubleshooting ===
 
=== Troubleshooting ===
  
 
* Post your issue on the forum: https://forum.radxa.com/c/rock3
 
* Post your issue on the forum: https://forum.radxa.com/c/rock3

Latest revision as of 07:16, 8 September 2022

    ROCK 3 >  Hardware >  Camera module

USB Camera

Update kernel to version 4.19.193-2-rockchip or newer.

root@rock-3a:~# apt-get install -y linux-4.19-rock-3-latest

Install tool fswebcam

root@rock-3a:~# apt-get install -y fswebcam

Plug USB camera in, there shall be video devices.

root@rock-3a:~# ls /dev/video*
/dev/video0  /dev/video1

Capture image

fswebcam /dev/video0 ./test.png

MIPI Camera

Hardware connection

Software configuration

Add dtbo

rock-3ab-rpi-camera-v2-imx219

Test command

gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=%d.jpg


ROCK 3C Use OV5647 Camera

  • Edit config.txt
rock@rock-3c:~$ sudo vim /boot/config.txt
  • at the end of the file add overlay
dtoverlay=rock-3c-ov5647
  • update extlinux.conf
 rock@rock-3c:/boot$ cd /usr/local/sbin/
 rock@rock-3c:sudo ./update_extlinux.sh 
 rock@rock-3c:sudo reboot
  • Use cheese to open the camera
sudo apt install cheesr
sudo cheese


Troubleshooting