<?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>topic Add precompiled Module to Yocto Image in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Add-precompiled-Module-to-Yocto-Image/m-p/755131#M117502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a little confused about the correct way, how to add a precompiled module to my Yocto Image. I thought the easiest way is to create a new recipe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recipe:&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;DESCRIPTION = "Install of several kernel modules"&lt;BR /&gt;LICENSE = "CLOSED"&lt;/P&gt;&lt;P&gt;kmoddir = "/lib/modules/${KERNEL_VERSION}/wlan"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRC_URI = "file://modules/compat.ko \&lt;BR /&gt; file://modules/sxcfg80211.ko \&lt;BR /&gt; file://modules/wlan.ko \&lt;BR /&gt; "&lt;/P&gt;&lt;P&gt;FILES_${PN} += "/lib/modules/ ${kmoddir} ${kmoddir}/compat.ko ${kmoddir}/sxcfg80211.ko ${kmoddir}/wlan.ko"&lt;/P&gt;&lt;P&gt;do_install() {&lt;BR /&gt; install -d ${D}${kmoddir}&lt;BR /&gt; install -m 0755 ${WORKDIR}/modules/compat.ko ${D}${kmoddir}&lt;BR /&gt; install -m 0755 ${WORKDIR}/modules/sxcfg80211.ko ${D}${kmoddir}&lt;BR /&gt; install -m 0755 ${WORKDIR}/modules/wlan.ko ${D}${kmoddir}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The recipe built is successfully, the modules are available in the rootfs, but not at the correct location. The modules are located in "/lib/modules/wlan" but the correct path should be "/lib/modules/KERNEL_VERSION/wlan".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I checked the ${KERNEL_VERSION} variable and it´s empty.&amp;nbsp;How can I access this variable in my recipe? Do I need a special include?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My second idea was to add the module by inherit module to my recipe. T&lt;/SPAN&gt;&lt;SPAN&gt;here is also an example located in poky/meta-skeleton/recipes-kernel/hello-mod. My main problem is that the module recipes tries always to compile my own recipe. But there is nothing to compile, my kernel images are precompiled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So that´s why I am confused and not sure which is the correct approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Thanks for any help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2018 11:42:51 GMT</pubDate>
    <dc:creator>patrick_jakob</dc:creator>
    <dc:date>2018-04-23T11:42:51Z</dc:date>
    <item>
      <title>Add precompiled Module to Yocto Image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Add-precompiled-Module-to-Yocto-Image/m-p/755131#M117502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a little confused about the correct way, how to add a precompiled module to my Yocto Image. I thought the easiest way is to create a new recipe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recipe:&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;DESCRIPTION = "Install of several kernel modules"&lt;BR /&gt;LICENSE = "CLOSED"&lt;/P&gt;&lt;P&gt;kmoddir = "/lib/modules/${KERNEL_VERSION}/wlan"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRC_URI = "file://modules/compat.ko \&lt;BR /&gt; file://modules/sxcfg80211.ko \&lt;BR /&gt; file://modules/wlan.ko \&lt;BR /&gt; "&lt;/P&gt;&lt;P&gt;FILES_${PN} += "/lib/modules/ ${kmoddir} ${kmoddir}/compat.ko ${kmoddir}/sxcfg80211.ko ${kmoddir}/wlan.ko"&lt;/P&gt;&lt;P&gt;do_install() {&lt;BR /&gt; install -d ${D}${kmoddir}&lt;BR /&gt; install -m 0755 ${WORKDIR}/modules/compat.ko ${D}${kmoddir}&lt;BR /&gt; install -m 0755 ${WORKDIR}/modules/sxcfg80211.ko ${D}${kmoddir}&lt;BR /&gt; install -m 0755 ${WORKDIR}/modules/wlan.ko ${D}${kmoddir}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The recipe built is successfully, the modules are available in the rootfs, but not at the correct location. The modules are located in "/lib/modules/wlan" but the correct path should be "/lib/modules/KERNEL_VERSION/wlan".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I checked the ${KERNEL_VERSION} variable and it´s empty.&amp;nbsp;How can I access this variable in my recipe? Do I need a special include?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My second idea was to add the module by inherit module to my recipe. T&lt;/SPAN&gt;&lt;SPAN&gt;here is also an example located in poky/meta-skeleton/recipes-kernel/hello-mod. My main problem is that the module recipes tries always to compile my own recipe. But there is nothing to compile, my kernel images are precompiled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So that´s why I am confused and not sure which is the correct approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Thanks for any help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 11:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Add-precompiled-Module-to-Yocto-Image/m-p/755131#M117502</guid>
      <dc:creator>patrick_jakob</dc:creator>
      <dc:date>2018-04-23T11:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add precompiled Module to Yocto Image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Add-precompiled-Module-to-Yocto-Image/m-p/755132#M117503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess KERNEL_VERSION should be declare or is not part of yocto, you have to use the whole kernel version you are using.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:36:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Add-precompiled-Module-to-Yocto-Image/m-p/755132#M117503</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-04-25T13:36:05Z</dc:date>
    </item>
  </channel>
</rss>

