# IMX135 on TX1

**URL:** <https://forums.developer.nvidia.com/t/imx135-on-tx1/44654>\
**Category:** Jetson TX1\
**Created:** [August 31, 2016, 2:09pm UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654 "2016-08-31T14:09:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zubfurer1994](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zubfurer1994](https://forums.developer.nvidia.com/u/zubfurer1994)\
**Post date:** [August 31, 2016, 2:09pm UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/1 "2016-08-31T14:09:09Z")

</div>

Hi,  
I am trying to use imx135\_v4l2 driver on TX1 R23.2, then I will modify it to use for my own sensor. I enabled CONFIG\_SOC\_CAMERA\_IMX135, disabled CONFIG\_SOC\_CAMERA\_PLATFORM in the kernel and reflashed the board. When I load imx135\_v4l2 and tegra\_camera, /dev/video0 was not created. As I know /dev/video0 will be created, even without connecting the sensor. Do I make or know something wrong?

Thank you.

---

<div class="post-metadata">

**Author:** ![Nfeng](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nfeng/32/14043_2.png) [@Nfeng](https://forums.developer.nvidia.com/u/Nfeng)\
**Post date:** [September 1, 2016, 1:00am UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/2 "2016-09-01T01:00:43Z")

</div>

Did you notice any error when you insmod the sensor driver? And can you add some prints in probing to check if it’s returned successfully?

---

<div class="post-metadata">

**Author:** ![zubfurer1994](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zubfurer1994](https://forums.developer.nvidia.com/u/zubfurer1994)\
**Post date:** [September 1, 2016, 6:18am UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/3 "2016-09-01T06:18:24Z")

</div>

Hi nVConan,

When I try to use insmod it prompts me that there is not such a module, however using modprobe command I can add the modules. I will try to put prints in probe function, however can you mention about the mechanism when I load the tegra\_camera should it call the probe function in imx135\_v4l2?

Thank you.

---

<div class="post-metadata">

**Author:** ![Nfeng](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nfeng/32/14043_2.png) [@Nfeng](https://forums.developer.nvidia.com/u/Nfeng)\
**Post date:** [September 1, 2016, 7:10am UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/4 "2016-09-01T07:10:49Z")

</div>

Yes, tegra\_camera will iterate all the v4l2 driver in the list.

---

<div class="post-metadata">

**Author:** ![zubfurer1994](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zubfurer1994](https://forums.developer.nvidia.com/u/zubfurer1994)\
**Post date:** [September 1, 2016, 7:24am UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/5 "2016-09-01T07:24:57Z")

</div>

So when and in which circumstances will the /dev/video0 be created?

---

<div class="post-metadata">

**Author:** ![zubfurer1994](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zubfurer1994](https://forums.developer.nvidia.com/u/zubfurer1994)\
**Post date:** [September 1, 2016, 8:27am UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/6 "2016-09-01T08:27:57Z")

</div>

Also I tried putting printk in imx135 probe function but I could not see anthing when I typed dmesg.

---

<div class="post-metadata">

**Author:** ![Nfeng](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nfeng/32/14043_2.png) [@Nfeng](https://forums.developer.nvidia.com/u/Nfeng)\
**Post date:** [September 2, 2016, 1:00am UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/7 "2016-09-02T01:00:51Z")

</div>

You can start from the func soc\_camera\_host\_register()@ $KERNEL/drivers/media/platform/soc\_camera/soc\_camera.c.

---

<div class="post-metadata">

**Author:** ![zubfurer1994](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zubfurer1994](https://forums.developer.nvidia.com/u/zubfurer1994)\
**Post date:** [September 2, 2016, 8:33am UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/8 "2016-09-02T08:33:15Z")

</div>

Thank you but I did not understand what are you trying to say? And can you please say when and in which circumstances will the /dev/video0 be created?

---

<div class="post-metadata">

**Author:** ![Nfeng](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nfeng/32/14043_2.png) [@Nfeng](https://forums.developer.nvidia.com/u/Nfeng)\
**Post date:** [September 9, 2016, 6:01am UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/9 "2016-09-09T06:01:48Z")

</div>

The device node will be created in the function I mentioned.

---

<div class="post-metadata">

**Author:** ![DavidSoto-RidgeRun](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/davidsoto-ridgerun/32/273049_2.png) [@DavidSoto-RidgeRun](https://forums.developer.nvidia.com/u/DavidSoto-RidgeRun)\
**Post date:** [November 17, 2016, 12:55pm UTC](https://forums.developer.nvidia.com/t/imx135-on-tx1/44654/10 "2016-11-17T12:55:49Z")

</div>

I would recommend you to use media controller instead of soc camera, RidgeRun can help you porting or creating the driver. Also which insmod/modprobe command are you using? Please recall that insmod needs the full path of the module as parameter not only the name as modprobe. Are you running similar commands to this?

[https://developer.ridgerun.com/wiki/index.php?title=Toshiba\_TC358743\_Linux\_driver\_for\_Tegra\_X1#Mount\_the\_kernel\_module](https://developer.ridgerun.com/wiki/index.php?title=Toshiba_TC358743_Linux_driver_for_Tegra_X1#Mount_the_kernel_module)
