Difference between revisions of "Sony IMX214 Linux Driver"
Efernandez (talk | contribs) (→Enabling IMX214 Linux Driver) |
m |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <seo title="Sony IMX214 Linux Driver | IMX214 Linux Driver for NVIDIA Jetson | RidgeRun" titlemode="replace" | + | <seo title="Sony IMX214 Linux Driver | IMX214 Linux Driver for NVIDIA Jetson | RidgeRun" titlemode="replace" metakeywords="GStreamer, Embedded Linux, Device Drivers, NVIDIA, Xilinx, TI, NXP, Freescale, IMX214 Jetson Nano, IMX214, V4L2 Driver, Sony IMX214, Sony IMX214, IMX214 Linux driver, Sony IMX214 Linux Driver, Sony, Sony IMX214, IMX214 Linux driver support" metadescription="Check out our comprehensive overview and features of the Sony IMX214 Linux driver for NVIDIA Jetson!."></seo> |
<table> | <table> | ||
Line 5: | Line 5: | ||
<td><div class="clear; float:right">__TOC__</div></td> | <td><div class="clear; float:right">__TOC__</div></td> | ||
<td> | <td> | ||
− | + | {{Shopping cart mpo for V4L2 camera drivers}} | |
− | + | <td> | |
− | + | {{NVIDIA Preferred Partner logo}} | |
− | + | <td> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
<td> | <td> | ||
{{GStreamer debug}} | {{GStreamer debug}} | ||
Line 266: | Line 17: | ||
</tr> | </tr> | ||
</table> | </table> | ||
+ | <br> | ||
− | == Sony IMX214 | + | == Sony IMX214 CMOS image sensor features == |
− | IMX214 is a diagonal 5.867mm(Type 1/3.06) 13 Mega-pixel CMOS active pixel type stacked image sensor with a square pixel array. It adopts Exmor RS™ technology to achieve high speed | + | IMX214 is a diagonal 5.867mm(Type 1/3.06) 13 Mega-pixel CMOS active pixel type stacked image sensor with a square pixel array. It adopts Exmor RS™ technology to achieve high speed image capturing by column parallel A/D converter circuits and high sensitivity and low noise image (comparing with conventional CMOS image sensor) through the backside illuminated imaging pixel structure. R, G, and B pigment primary color mosaic filter is employed. (Taken from [https://www.mouser.com/datasheet/2/897/ProductBrief_IMX214_20150428-1289331.pdf Mouser webpage]). |
− | == | + | == Linux driver support == |
* NVIDIA Jetson Nano | * NVIDIA Jetson Nano | ||
− | == | + | == Linux driver features == |
<center> | <center> | ||
Line 310: | Line 62: | ||
* {{Download}} Follow the instructions in [[Jetson_Xavier_NX/Development/Building_the_Kernel_from_Source#Download_the_kernel_sources_for_L4T_32.4.3 | (Downloading sources)]] to get the kernel source code. | * {{Download}} Follow the instructions in [[Jetson_Xavier_NX/Development/Building_the_Kernel_from_Source#Download_the_kernel_sources_for_L4T_32.4.3 | (Downloading sources)]] to get the kernel source code. | ||
− | * Once you have the source code, apply the following patch in order to add the changes required for the IMX214 camera at kernel and dtb level. | + | * Once you have the source code, apply the following patch in order to add the changes required for the IMX214 camera at the kernel and dtb level. |
<pre> | <pre> | ||
Line 316: | Line 68: | ||
</pre> | </pre> | ||
− | * Follow the instructions in [[ | + | * Follow the instructions in [[Jetson_Nano/Development/Building_the_Kernel_from_Source | (Build Kernel)]] for building the kernel, and then flash the image. |
− | Make sure to enable | + | Make sure to enable IMX214 driver support: |
<pre> | <pre> | ||
make menuconfig | make menuconfig | ||
Line 330: | Line 82: | ||
</pre> | </pre> | ||
− | + | Testing the IMX214 Linux Driver== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <pre style=" | + | ===GStreamer=== |
− | + | Video capture with a single camera. | |
− | + | <pre style="white-space: pre-wrap;"> | |
− | gst-launch-1.0 | + | gst-launch-1.0 nvarguscamerasrc sensor-id=<0 or 1> ! nvvidconv ! xvimagesink |
</pre> | </pre> | ||
+ | Video capture with simultaneous dual cameras. | ||
− | + | <pre style="white-space: pre-wrap;"> | |
− | + | gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! nvvidconv ! xvimagesink nvarguscamerasrc sensor-id=1 ! nvvidconv ! xvimagesink | |
− | |||
− | |||
− | |||
− | <pre style=" | ||
− | |||
</pre> | </pre> | ||
− | == | + | ===v4l2-ctl=== |
− | + | Capture an image. | |
− | + | <pre style="white-space: pre-wrap;"> | |
− | <pre style=" | + | v4l2-ctl -d /dev/video<0 or 1> --set-fmt-video=width=4160,height=3120,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw |
− | v4l2-ctl -d /dev/ | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{ContactUs}} | {{ContactUs}} | ||
[[Category:Jetson]][[Category:Jetson V4L2 Drivers]][[Category:Sony]] | [[Category:Jetson]][[Category:Jetson V4L2 Drivers]][[Category:Sony]] |
Latest revision as of 14:02, 17 March 2023
|
|
|
|
Sony IMX214 CMOS image sensor features
IMX214 is a diagonal 5.867mm(Type 1/3.06) 13 Mega-pixel CMOS active pixel type stacked image sensor with a square pixel array. It adopts Exmor RS™ technology to achieve high speed image capturing by column parallel A/D converter circuits and high sensitivity and low noise image (comparing with conventional CMOS image sensor) through the backside illuminated imaging pixel structure. R, G, and B pigment primary color mosaic filter is employed. (Taken from Mouser webpage).
Linux driver support
- NVIDIA Jetson Nano
Linux driver features
Nano |
|
---|
Enabling IMX214 Linux Driver
In order to use this driver, you have to patch and compile the kernel source using JetPack:
Follow the instructions in (Downloading sources) to get the kernel source code.
- Once you have the source code, apply the following patch in order to add the changes required for the IMX214 camera at the kernel and dtb level.
4.6_B-82_03_imx214_v0.1.patch
- Follow the instructions in (Build Kernel) for building the kernel, and then flash the image.
Make sure to enable IMX214 driver support:
make menuconfig
-> Device Drivers -> Multimedia support -> NVIDIA overlay Encoders, decoders, sensors and other helper chips -> <*> IMX214 camera sensor support
Testing the IMX214 Linux Driver==
GStreamer
Video capture with a single camera.
gst-launch-1.0 nvarguscamerasrc sensor-id=<0 or 1> ! nvvidconv ! xvimagesink
Video capture with simultaneous dual cameras.
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! nvvidconv ! xvimagesink nvarguscamerasrc sensor-id=1 ! nvvidconv ! xvimagesink
v4l2-ctl
Capture an image.
v4l2-ctl -d /dev/video<0 or 1> --set-fmt-video=width=4160,height=3120,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw
RidgeRun Resources | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Visit our Main Website for the RidgeRun Products and Online Store. RidgeRun Engineering informations are available in RidgeRun Professional Services, RidgeRun Subscription Model and Client Engagement Process wiki pages. Please email to support@ridgerun.com for technical questions and contactus@ridgerun.com for other queries. Contact details for sponsoring the RidgeRun GStreamer projects are available in Sponsor Projects page. | ![]() ![]() |