# Write custom camera module with NvSIPL

**URL:** <https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187>\
**Category:** DRIVE AGX Xavier General\
**Tags:** driveos-nvmedia, camera\
**Created:** [March 17, 2021, 9:40am UTC](https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187 "2021-03-17T09:40:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hieplchan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hieplchan](https://forums.developer.nvidia.com/u/hieplchan)\
**Post date:** [March 17, 2021, 9:40am UTC](https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187/1 "2021-03-17T09:40:47Z")

</div>

We have a custom camera, we can make it work on DRIVE OS Linux 5.1.6 by mofidy _ **extimgdev** _ and _ **nvipp\_raw** _  
We want to upgrade OS to 5.2.0 and use NvSIPL instead of NvIPP camera framework, what is the best way to start? (we can not find any example source code of _ **libnvsipl\_qry\_xxx.so** _ after install via sdkmanager)  
**Software Version**  
 DRIVE OS Linux 5.2.0  
 DRIVE OS Linux 5.2.0 and DriveWorks 3.5  
 NVIDIA DRIVE™ Software 10.0 (Linux)  
 NVIDIA DRIVE™ Software 9.0 (Linux)  
 other DRIVE OS version  
 other

**Target Operating System**  
 Linux  
 QNX  
 other

**Hardware Platform**  
 NVIDIA DRIVE™ AGX Xavier DevKit (E3550)  
 NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)  
 other

**SDK Manager Version**  
 1.4.1.7402  
 other

**Host Machine Version**  
 native Ubuntu 18.04  
 other

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [March 17, 2021, 1:56pm UTC](https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187/3 "2021-03-17T13:56:59Z")

</div>

Please help to change your DevZone account to use **corporate** or **university** email address by following below links, or post with the account with **corporate** or **university** email address so we can further support you.

[My Profile | NVIDIA Developer](https://developer.nvidia.com/user) → “Edit Profile” → “Change email” → “CHANGE”

However, for this question, you can check [NvMedia Porting Guide](https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide/NvMedia/nvmedia_porting_guide.html#).

---

<div class="post-metadata">

**Author:** ![v.hieplc](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@v.hieplc](https://forums.developer.nvidia.com/u/v.hieplc)\
**Post date:** [March 18, 2021, 8:55am UTC](https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187/5 "2021-03-18T08:55:21Z")

</div>

Dear @VickNV,  
I use my business email here, please reply to my above question.

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [March 18, 2021, 1:58pm UTC](https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187/6 "2021-03-18T13:58:22Z")

</div>

Hi @v.hieplc ,

> [@hieplchan](#):
>
> We have a custom camera, we can make it work on DRIVE OS Linux 5.1.6 by mofidy _ **extimgdev** _ and _ **nvipp\_raw** _

May I know who supported you your custom camera bring-up then and if you got any extra package (besides DRIVE Software 10)? I’m asking because nvidia only supports camera selected camera partners (not via forum).

> [@hieplchan](#):
>
> We want to upgrade OS to 5.2.0 and use NvSIPL instead of NvIPP camera framework, what is the best way to start? (we can not find any example source code of _ **libnvsipl\_qry\_xxx.so** _ after install via sdkmanager)

~/nvidia/nvidia\_sdk/DRIVE\_OS\_5.2.0\_SDK\_Linux\_OS\_DDPX/DRIVEOS/drive-t186ref-linux/samples/nvmedia/nvsipl/query/database/example has some example sensor/module/platform configuration files (.json). But I need to emphazie that I don’t think custom camera bringup can be done with only DRIVE OS release so if you can tell us your previous experience on DRIVE OS 5.1.6.1 (part of DRIVE Software 10), it can clarify more.

Thanks.

---

<div class="post-metadata">

**Author:** ![v.hieplc](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@v.hieplc](https://forums.developer.nvidia.com/u/v.hieplc)\
**Post date:** [March 19, 2021, 9:49am UTC](https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187/8 "2021-03-19T09:49:11Z")

</div>

Hi @VickNV,  
We have modify `/drive-t186ref-linux/samples/nvmedia/ext_dev_prgm` to config `MAX9295` serializer through `NvMedia ISC` (I2C protocol), we rebuild & replace your origin `libnv_extimgdev.so` to make sensor work.  
We also modify `nvipp_raw` to change ISP output type & compress processed image using `NvMediaIJPE`.

I also see that NvMedia ISC is remove in DRIVE OS 5.2, so I do not know how to begin to develop driver, at least try to comunicate through I2C control bus.

 ![Screenshot from 2021-03-19 15-04-25](https://global.discourse-cdn.com/nvidia/original/3X/5/5/55bc261d1d544359c525dc00d4ab6b838c70bc1c.png) ![Screenshot from 2021-03-19 15-04-17](https://global.discourse-cdn.com/nvidia/original/3X/e/9/e9af16b910ccc99deaccdf34f35211cf76db814a.png)

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [March 22, 2021, 7:24pm UTC](https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187/9 "2021-03-22T19:24:28Z")

</div>

Please refer to the drivers under ~/nvidia/nvidia\_sdk/DRIVE\_OS\_5.2.0\_SDK\_Linux\_OS\_DDPX/DRIVEOS/drive-t186ref-linux/samples/nvmedia/nvsipl/devblk/cameramodule/MAX96712cameramodule for your porting. Thanks.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 8:03pm UTC](https://forums.developer.nvidia.com/t/write-custom-camera-module-with-nvsipl/171187/10 "2021-10-12T20:03:56Z")

</div>

Closed on October 12, 2021, 8:03pm UTC


