# Enabling v4l2 driver in R23.2by building Kernel from source code ?

**URL:** <https://forums.developer.nvidia.com/t/enabling-v4l2-driver-in-r23-2by-building-kernel-from-source-code/44188>\
**Category:** Jetson TK1\
**Created:** [August 4, 2016, 2:27am UTC](https://forums.developer.nvidia.com/t/enabling-v4l2-driver-in-r23-2by-building-kernel-from-source-code/44188 "2016-08-04T02:27:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leowei](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@leowei](https://forums.developer.nvidia.com/u/leowei)\
**Post date:** [August 4, 2016, 2:27am UTC](https://forums.developer.nvidia.com/t/enabling-v4l2-driver-in-r23-2by-building-kernel-from-source-code/44188/1 "2016-08-04T02:27:39Z")

</div>

hello.  
I have a TX1 board running L4T23.2 kernel,and i want to enable ov5693 v4l2 driver in L4T 23.2.  
So i do as follow:  
(1) I download source code(23.2),  
(2) apply patch(0001-ARM64-adding-OV5693-V4L2-on-E3326-jetson\_cv.patch) on top of release,  
(3) Enable OV5693 kernel driver and disable soc\_camera\_platform.  
•CONFIG\_SOC\_CAMERA\_OV5693=m  
•CONFIG\_VIDEO\_TEGRA\_VI=m  
•Disable CONFIG\_SOC\_CAMERA\_PLATFORM  
•Disable CONFIG\_SOC\_CAMERA\_OV13860  
•Disable CONFIG\_SOC\_CAMERA TC358840

(4) build the kernel as tell in the doucument of Tegra\_Linux\_Driver\_Package\_Documents\_R23.2

finally,i can get the ov5693\_v4l2.ko ov5693 tegra\_camera.ko and videobuf2\_dam-contig.ko.  
next,i remove the files(nvhost-vi.ko ov5693 tegra\_camera.ko videobuf2\_dam-contig.ko and soc\_camera\_platform.ko) from the tx1 board linux os,and add tegra\_camera.ko and videobuf2\_dam-contig.ko to the tx1 board.then i reboot the tx1 board,–sudo insmod ov5693\_v4l2.ko,sudo modprobe tegra\_camera,but when i ls /dev there is not the video0 device.

ubuntu@tegra-ubuntu:~$ lsmod  
Module Size Used by  
tegra\_camera 25164 0  
videobuf2\_dma\_contig 10244 1 tegra\_camera  
ov5693\_v4l2 25987 0  
bcmdhd 7445827 0  
rfcomm 65526 0  
cfg80211 451262 1 bcmdhd  
bnep 14792 2  
bluedroid\_pm 11252 0

this mean tegra\_camera is not depends ov5693\_v4l2.

I hope someone can tell me what can i do to enable v4l2 driver(ov5693 sensor) in R23.2 by building kernel from source code.  
Thanks in advance.

wei liu.

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [August 8, 2016, 6:15am UTC](https://forums.developer.nvidia.com/t/enabling-v4l2-driver-in-r23-2by-building-kernel-from-source-code/44188/2 "2016-08-08T06:15:59Z")

</div>

Hi leowei,

You may try to find the suggestion from below link:

[url][Typical approaches to test camera functionality for L4T R23.2 on Jetson TX1 - Jetson TX1 - NVIDIA Developer Forums](https://devtalk.nvidia.com/default/topic/934354/jetson-tx1/typical-approaches-to-test-camera-functionality-for-l4t-r23-2-on-jetson-tx1/post/4872950/#4872950%5B/url%5D)

Thanks
