<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Developing a V4L2 camera driver for IMX6Solo/RioTboard</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Developing-a-V4L2-camera-driver-for-IMX6Solo-RioTboard/m-p/328836#M44253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a camera project using a RioTBoard (an IMX6 Solo based development board).&lt;/P&gt;&lt;P&gt;My project uses a IMX214 camera module, which some of you may know as the module powering the OnePlus One.&lt;/P&gt;&lt;P&gt;Currently, I'm working on a V4L2 driver for it and already did a fair amount of progress on the matter, but now I'm kind of stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started by adapting the IMX074 driver present on the Linux Kernel (&lt;A href="http://lxr.free-electrons.com/source/drivers/media/i2c/soc_camera/imx074.c?v=3.10" title="http://lxr.free-electrons.com/source/drivers/media/i2c/soc_camera/imx074.c?v=3.10"&gt;Linux/drivers/media/i2c/soc_camera/imx074.c - Linux Cross Reference - Free Electrons&lt;/A&gt;) to the IMX214,&lt;/P&gt;&lt;P&gt;created a layer in Yocto for my image, created a patch that adds my driver code in the kernel sourcecode,&lt;/P&gt;&lt;P&gt;edited the devicetree to add the location of the IMX214 in the I2C BUS, and finally used 'menuconfig' to activate the drivers. &lt;/P&gt;&lt;P&gt;The code compiles successfully, and I can find the driver on the compiled image. I think I went through all the necessary loopholes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when the board boots up, the I2C-Core fails to instantiate the device. Bootlogd displays the following message:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;imx214 3-001a: IMX214: missing platform data!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;imx214: probe of 3-001a failed with error -22&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error was thrown by the line 436 on the reference driver, when &lt;A href="http://lxr.free-electrons.com/ident?v=3.10;i=soc_camera_i2c_to_desc"&gt;soc_camera_i2c_to_desc&lt;/A&gt;(&lt;A href="http://lxr.free-electrons.com/ident?v=3.10;i=client"&gt;client&lt;/A&gt;) returned NULL.&lt;/P&gt;&lt;P&gt;This function is declared here (&lt;A href="http://lxr.free-electrons.com/source/include/media/soc_camera.h#L386" title="http://lxr.free-electrons.com/source/include/media/soc_camera.h#L386"&gt;Linux/include/media/soc_camera.h - Linux Cross Reference - Free Electrons&lt;/A&gt;), indicating that &lt;A href="http://lxr.free-electrons.com/ident?i=client"&gt;client&lt;/A&gt;-&amp;gt;&lt;A href="http://lxr.free-electrons.com/ident?i=dev"&gt;dev&lt;/A&gt;.&lt;A href="http://lxr.free-electrons.com/ident?i=platform_data"&gt;platform_data&lt;/A&gt; is null.&lt;/P&gt;&lt;P&gt;However, since the 'client' is given by the Kernel, I have no idea whatsoever why platform_data is null, or what could've gone wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 23:16:33 GMT</pubDate>
    <dc:creator>yurioliveirapet</dc:creator>
    <dc:date>2015-03-18T23:16:33Z</dc:date>
    <item>
      <title>Developing a V4L2 camera driver for IMX6Solo/RioTboard</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Developing-a-V4L2-camera-driver-for-IMX6Solo-RioTboard/m-p/328836#M44253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a camera project using a RioTBoard (an IMX6 Solo based development board).&lt;/P&gt;&lt;P&gt;My project uses a IMX214 camera module, which some of you may know as the module powering the OnePlus One.&lt;/P&gt;&lt;P&gt;Currently, I'm working on a V4L2 driver for it and already did a fair amount of progress on the matter, but now I'm kind of stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started by adapting the IMX074 driver present on the Linux Kernel (&lt;A href="http://lxr.free-electrons.com/source/drivers/media/i2c/soc_camera/imx074.c?v=3.10" title="http://lxr.free-electrons.com/source/drivers/media/i2c/soc_camera/imx074.c?v=3.10"&gt;Linux/drivers/media/i2c/soc_camera/imx074.c - Linux Cross Reference - Free Electrons&lt;/A&gt;) to the IMX214,&lt;/P&gt;&lt;P&gt;created a layer in Yocto for my image, created a patch that adds my driver code in the kernel sourcecode,&lt;/P&gt;&lt;P&gt;edited the devicetree to add the location of the IMX214 in the I2C BUS, and finally used 'menuconfig' to activate the drivers. &lt;/P&gt;&lt;P&gt;The code compiles successfully, and I can find the driver on the compiled image. I think I went through all the necessary loopholes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when the board boots up, the I2C-Core fails to instantiate the device. Bootlogd displays the following message:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;imx214 3-001a: IMX214: missing platform data!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;imx214: probe of 3-001a failed with error -22&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error was thrown by the line 436 on the reference driver, when &lt;A href="http://lxr.free-electrons.com/ident?v=3.10;i=soc_camera_i2c_to_desc"&gt;soc_camera_i2c_to_desc&lt;/A&gt;(&lt;A href="http://lxr.free-electrons.com/ident?v=3.10;i=client"&gt;client&lt;/A&gt;) returned NULL.&lt;/P&gt;&lt;P&gt;This function is declared here (&lt;A href="http://lxr.free-electrons.com/source/include/media/soc_camera.h#L386" title="http://lxr.free-electrons.com/source/include/media/soc_camera.h#L386"&gt;Linux/include/media/soc_camera.h - Linux Cross Reference - Free Electrons&lt;/A&gt;), indicating that &lt;A href="http://lxr.free-electrons.com/ident?i=client"&gt;client&lt;/A&gt;-&amp;gt;&lt;A href="http://lxr.free-electrons.com/ident?i=dev"&gt;dev&lt;/A&gt;.&lt;A href="http://lxr.free-electrons.com/ident?i=platform_data"&gt;platform_data&lt;/A&gt; is null.&lt;/P&gt;&lt;P&gt;However, since the 'client' is given by the Kernel, I have no idea whatsoever why platform_data is null, or what could've gone wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 23:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Developing-a-V4L2-camera-driver-for-IMX6Solo-RioTboard/m-p/328836#M44253</guid>
      <dc:creator>yurioliveirapet</dc:creator>
      <dc:date>2015-03-18T23:16:33Z</dc:date>
    </item>
  </channel>
</rss>

