OmniVision OV4689 Linux driver for Jetson
|
Problems running the pipelines shown on this page? Please see our GStreamer Debugging guide for help. |
OmniVision OV4689 Sensor features
Reference: OmniVision OV4689 sensor
Supported resolutions and formats
Feature | Value |
---|---|
Resolution | 1280x720 |
Framerate(fps) | 30 |
Format | BGGR |
Pixel depth | 10 |
Controls
- Gain
- Exposure
Build kernel using Jetpack and ov4689 driver
Building kernel sources
Follow the instructions in NVIDIA_Jetson_Nano - Building the Kernel from Source to build the kernel sources.
Enable driver
Once you are following the guide there is a step make menuconfig, which allows you to enable the ov4689 driver as built-in.
make ARCH=arm64 O=$KERNEL_OUT menuconfig
Select the driver. The menu option is located:
-> Device Drivers -> Multimedia support (MEDIA_SUPPORT [=y]) -> NVIDIA overlay Encoders, decoders, sensors and other helper chips <*> OV4689 camera sensor support
Test your Kernel image using Jetpack root file system
Check the kernel version. At this moment you can test the image created in order to see the new kernel is working correctly. You have to see a new kernel version with the correct date of compilation:
uname -a Linux nvidia 4.9.140 #6 SMP PREEMPT Tue May 7 16:25:38 CST 2019 aarch64 aarch64 aarch64 GNU/Linux
You can see that the driver is probed, execute the line: dmesg | grep "ov4689"
Expected output:
nvidia@nvidia:~$ dmesg | grep "ov4689" [ 1.667200] ov4689 6-001a: detected ov4689 sensor
video devices created:
ls /dev/video* /dev/video0
Examples
GStreamer pipelines
1280x720p@30fps
gst-launch-1.0 nvarguscamerasrc sensor-id=1 ! "video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12, framerate=(fraction)30/1" ! nvvidconv ! "video/x-raw, width=1280, height=720, format=(string)I420, framerate=30/1" ! xvimagesink -e
For direct inquiries, please refer to the contact information available on our Contact page. Alternatively, you may complete and submit the form provided at the same link. We will respond to your request at our earliest opportunity.
Links to RidgeRun Resources and RidgeRun Artificial Intelligence Solutions can be found in the footer below.