<?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: Adding External Kernel Modules to Yocto</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Adding-External-Kernel-Modules-to-Yocto/m-p/800294#M123689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Oguzhan Dalgic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend checking the recipe you copied. The recipe I found for the hello-mod example as part of the meta-skeleton branch of poky inherited the module class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the module class definition, you should see he variables that is taking including the KERNEL_PATH variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2018 20:02:13 GMT</pubDate>
    <dc:creator>gusarambula</dc:creator>
    <dc:date>2018-07-11T20:02:13Z</dc:date>
    <item>
      <title>Adding External Kernel Modules to Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Adding-External-Kernel-Modules-to-Yocto/m-p/800293#M123688</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 would like to add an external device driver as kernel module. Before that, I wanted to try the example &lt;STRONG&gt;hello-mod&lt;/STRONG&gt; shipped with poky, however I get an error related to linux headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example I am trying to bitbake is available in the following path:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;sources/poky/meta-skeleton/recipes-kernel/hello-mod/&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I created a layer named "&lt;STRONG&gt;meta-fsl-test&lt;/STRONG&gt;" using poky's &lt;STRONG&gt;yocto-layer&lt;/STRONG&gt; script and copied the &lt;EM&gt;&lt;STRONG&gt;hello-mod &lt;/STRONG&gt;&lt;/EM&gt;folder into the created layer folder.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;bitbake hello-mod&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;above command returns below error,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;| DEBUG: Executing shell function do_compile&lt;BR /&gt;| helloworld.c:1:26: &lt;STRONG&gt;fatal error: linux/module.h: No such file or directory&lt;/STRONG&gt;&lt;BR /&gt;| compilation terminated.&lt;BR /&gt;| WARNING: exit code 1 from a shell command.&lt;BR /&gt;| ERROR: Function failed: do_compile&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me to which places does the &lt;STRONG&gt;do_compile&lt;/STRONG&gt; function looks for the headers? How can I solve this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Bests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 06:35:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Adding-External-Kernel-Modules-to-Yocto/m-p/800293#M123688</guid>
      <dc:creator>oguzhandalgic</dc:creator>
      <dc:date>2018-07-11T06:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding External Kernel Modules to Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Adding-External-Kernel-Modules-to-Yocto/m-p/800294#M123689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Oguzhan Dalgic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend checking the recipe you copied. The recipe I found for the hello-mod example as part of the meta-skeleton branch of poky inherited the module class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the module class definition, you should see he variables that is taking including the KERNEL_PATH variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 20:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Adding-External-Kernel-Modules-to-Yocto/m-p/800294#M123689</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2018-07-11T20:02:13Z</dc:date>
    </item>
  </channel>
</rss>

