<?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中的主题 Re: Camera Kernel module load order</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1391062#M184909</link>
    <description>&lt;P&gt;what source code do you change? pls share your dts file with me&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 04:05:48 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2021-12-23T04:05:48Z</dc:date>
    <item>
      <title>Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1381363#M183952</link>
      <description>&lt;P&gt;I'm working on bringing up a mipi camera on the imx8mp board. &amp;nbsp; Android 11 2.2.0 is using GKI kernel config, which means all the custom modules we use for our board are compiled as .ko objects. &amp;nbsp;Even if I select to compile them as built in modules, the build process modifies the .config and creates kernel modules anyway. &amp;nbsp;But I think whether it is built in or external isn't the most important issue.&lt;/P&gt;&lt;P&gt;The problem is, that the imx8_media_dev module is loading before my camera module. &amp;nbsp;So when that module loads, it isn't finding any cameras. &amp;nbsp;Here is the output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[    1.304994] mxc-isi 32e00000.isi: mxc_isi.0 registered successfully
[    1.338977] mx8-img-md: Registered mxc_isi.0.capture as /dev/video2
[    1.351040] unregister ISI channel: mxc_isi.0&lt;/LI-CODE&gt;&lt;P&gt;After unregister, there is no longer a /dev/video2 device.&lt;/P&gt;&lt;P&gt;My camera kernel module loads slightly thereafter and never does anything because no video links are created.&lt;/P&gt;&lt;P&gt;The Basler kernel module loads before the imx8_media_dev module and if we're using that camera, video links are created and all works as expected. &amp;nbsp;In addition, if I manually unload the imx8_media_dev module after boot, and manually load it again (having already loaded our camera driver), the video links are created properly and our camera can work.&lt;/P&gt;&lt;P&gt;So I seem to be missing something in the build process or setup of our system that ensures our camera driver loads before imx8_media_dev. &amp;nbsp;Can someone suggest how this is accomplished? &amp;nbsp;I've placed my kernel module in the vendor_ramdisk, same location as the Basler kernel module is located but that doesn't seem to do the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 17:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1381363#M183952</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2021-12-03T17:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1381470#M183961</link>
      <description>&lt;P&gt;Did you add I2C handle of the camera? Which camera are you using?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2021 09:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1381470#M183961</guid>
      <dc:creator>artsiomstaliaro</dc:creator>
      <dc:date>2021-12-04T09:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1381514#M183970</link>
      <description>&lt;P&gt;We use a custom camera and ISP. &amp;nbsp;The driver is very similar to the OV5640 or Basler sample cameras though.&lt;/P&gt;&lt;P&gt;I'm not sure what you mean by an I2C handle. &amp;nbsp;This is our v4l subbev init code though:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    v4l2_i2c_subdev_init(sd, client, &amp;amp;camera_subdev_ops);

    sd-&amp;gt;flags |= V4L2_SUBDEV_FL_HAS_DEVNODE|V4L2_SUBDEV_FL_IS_I2C;
    sd-&amp;gt;entity.function = MEDIA_ENT_F_CAM_SENSOR;
    camera_data.pad.flags = MEDIA_PAD_FL_SOURCE;
    sd-&amp;gt;entity.ops = &amp;amp;camera_sd_media_ops;
    retval = media_entity_pads_init(&amp;amp;sd-&amp;gt;entity, 1, &amp;amp;camera_data.pad);
    if (retval&amp;lt;0) {
        dev_err(&amp;amp;client-&amp;gt;dev, "media entity pad init fail: %d", retval );
        return retval;
     }

    retval = v4l2_async_register_subdev_sensor_common(sd);&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 05 Dec 2021 17:16:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1381514#M183970</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2021-12-05T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1387140#M184469</link>
      <description>&lt;P&gt;did you try the demo images? what board do you use? nxp board or customized board? I haven't tested this version before, let me reproduce this&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 08:37:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1387140#M184469</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-12-15T08:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1387469#M184515</link>
      <description>&lt;P&gt;The demo image works fine with the Basler camera demo. &amp;nbsp;(Variscite Development Board).&lt;/P&gt;&lt;P&gt;Only our custom camera driver (which is very similar to Basler) loads AFTER media-dev instead of before.. causing the issue.&lt;/P&gt;&lt;P&gt;I have worked around the issue by modifying the gki_config to have built in mipi and csi drivers as well as our camera driver and this allows our camera to load before media dev and establish a camera media channel. &amp;nbsp;This doesn't seem to be the correct solution though as it would be more desirable to not modify the default gki_config for the board.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 16:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1387469#M184515</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2021-12-15T16:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1387995#M184563</link>
      <description>&lt;P&gt;which camera do you refer to? basler or ov5640, they use the different path&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 09:07:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1387995#M184563</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-12-16T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1388184#M184581</link>
      <description>&lt;P&gt;Our camera driver is more similar to the ov5640 driver.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1388184#M184581</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2021-12-16T14:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1391062#M184909</link>
      <description>&lt;P&gt;what source code do you change? pls share your dts file with me&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 04:05:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1391062#M184909</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-12-23T04:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Camera Kernel module load order</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1417743#M187360</link>
      <description>&lt;P&gt;In case anyone comes across this, it seems the module load order can be controlled. &amp;nbsp;We just needed to put our camera module after the appropriate CSI modules in SharedBoardConfig.mk. &amp;nbsp;The CSI modules can then load first and the camera module does cause the appropriate channels to be created.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 22:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-Kernel-module-load-order/m-p/1417743#M187360</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2022-02-22T22:50:53Z</dc:date>
    </item>
  </channel>
</rss>

