<?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>T-SeriesのトピックRe: Compile a module in the host (T2080RDB)</title>
    <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439595#M347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the commands specified in Section 2.1 of the first document, modules.txt. You need to build the kernel first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/infocenter/topic/QORIQSDK/3069694.html" title="http://www.freescale.com/infocenter/topic/QORIQSDK/3069694.html"&gt;Customizing Linux Kernel&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 15:46:00 GMT</pubDate>
    <dc:creator>bpe</dc:creator>
    <dc:date>2015-09-10T15:46:00Z</dc:date>
    <item>
      <title>Compile a module in the host (T2080RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439592#M344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am try to compile a module in my t2080RDB working with the SDK 1.8 that is given by Freescale. However, I cannot succeed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I want? I want to compile a module in the host.&lt;BR /&gt;What is the problem? I do not have the kernel headers in my host (T2080RDB) after a bitbake fsl-image-full and turn the T2080 on with the result files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the &lt;STRONG&gt;kernel headers&lt;/STRONG&gt; for my T2080RDB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not possible, how can I compile only a module&amp;nbsp; (not a full version of the system) in the yocto enviroment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:37:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439592#M344</guid>
      <dc:creator>manoloruiz</dc:creator>
      <dc:date>2015-09-10T10:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a module in the host (T2080RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439593#M345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to build an off-kernel module with Yocto, you need to &lt;/P&gt;&lt;P&gt;create a separate package that depends on the kernel. The 'cryptodev' &lt;/P&gt;&lt;P&gt;package is as an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External module build procedures are described in details in &lt;/P&gt;&lt;P&gt;Documentation/kbuild/modules.txt. The path is from the top kernel source directory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some additional information can be found here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.tldp.org/LDP/lkmpg/2.6/html/x181.html" rel="nofollow"&gt;http://www.tldp.org/LDP/lkmpg/2.6/html/x181.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439593#M345</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2015-09-10T13:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a module in the host (T2080RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439594#M346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your answer. However, it does not work. When we build the de system with the comand&amp;nbsp; bitbake fsl-image-full, we cannot find the next directory:&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/lib/modules/$(shell uname -r)/build&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this directory should be the kernel headers. But it is not. Where can I get the headers? Are there alternative procedure to build a module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:03:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439594#M346</guid>
      <dc:creator>manoloruiz</dc:creator>
      <dc:date>2015-09-10T15:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a module in the host (T2080RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439595#M347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the commands specified in Section 2.1 of the first document, modules.txt. You need to build the kernel first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/infocenter/topic/QORIQSDK/3069694.html" title="http://www.freescale.com/infocenter/topic/QORIQSDK/3069694.html"&gt;Customizing Linux Kernel&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:46:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439595#M347</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2015-09-10T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a module in the host (T2080RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439596#M348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your answer. This are the steps I have followed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have reinstall sdk 1.8 freescale in my PC.&lt;/P&gt;&lt;P&gt;2. I&amp;nbsp; typed&amp;nbsp; &lt;STRONG&gt;./poky/scripts/host-prepare.sh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. I typed &lt;STRONG&gt;source ./poky/fsl-setup-poky -m t2080rdb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4. I typed &lt;STRONG&gt;. /home/user/QorIQ-SDK-V1.8-20150619-yocto/build_t2080rdb_release/SOURCE_THIS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5. I typed &lt;STRONG&gt;bitbake -c menuconfig virtual/kernel &lt;/STRONG&gt;and safe ".conf"&lt;/P&gt;&lt;P&gt;6. I typed &lt;STRONG&gt;bitbake -c compile -f virtual/kernel&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;7. I typed &lt;STRONG&gt;bitbake virtual/kernel&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With those steps I haved the&amp;nbsp; compiled &lt;SPAN style="line-height: 1.5;"&gt;kernel&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt; (no headers) in ../build_t2080rdb_release/tmp/deploy/images/t2080rdb/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Afterward, I came back to /home/user/build_t2080rdb_release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;8. I typed&lt;STRONG&gt; bitbake fsl-image-full&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;After a while, I get in the next directory : /home/user/QorIQ-SDK-V1.8-20150619-yocto/build_t2080rdb_release/tmp/deploy/images/t2080rdb/. I can find a root file system called "fsl-image-full-t2080rdb-20150907191330.rootfs.tar.gz". This is the root file system which is going to be in the t2080rdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After follow this steps, I cannot find the following directories:&amp;nbsp; &lt;STRONG&gt;/usr/src/&lt;STRONG&gt;header&amp;lt;version&amp;gt;&lt;/STRONG&gt;/&lt;/STRONG&gt; or &lt;STRONG&gt;/lib/modules/$(shell uname -r)/build&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without this directory&lt;STRONG&gt;(usr/src/header&amp;lt;version&amp;gt; &lt;/STRONG&gt;in ubuntu&lt;STRONG&gt;) &lt;/STRONG&gt;or the soft link&lt;STRONG&gt; (&lt;STRONG&gt;/lib/modules/$(shell uname -r)/build) &lt;/STRONG&gt;&lt;/STRONG&gt;is not possible to compile a module &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;in the target&lt;/STRONG&gt;&lt;/SPAN&gt; ( in the T2080rdb). What am I doing wrong? I want to compile in the target. If it is not possible, I would like to compile in the host, but I don't know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the next Makefile which works in ubuntu for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H6&gt;ifneq ($(KERNELRELEASE),)&lt;/H6&gt;&lt;H6&gt;# kbuild part of makefile&lt;/H6&gt;&lt;H6&gt;obj-m&amp;nbsp; :=new14.o&lt;/H6&gt;&lt;H6&gt;else&lt;/H6&gt;&lt;H6&gt;# normal makefile&lt;/H6&gt;&lt;H6&gt;&amp;nbsp; KDIR ?= /lib/modules/`uname -r`/build&lt;/H6&gt;&lt;H6&gt;&lt;/H6&gt;&lt;H6&gt;default:&lt;/H6&gt;&lt;H6&gt;&amp;nbsp; $(MAKE) -C $(KDIR) M=$$PWD&lt;/H6&gt;&lt;H6&gt;&lt;/H6&gt;&lt;H6&gt;endif&lt;/H6&gt;&lt;H6&gt;&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 16:43:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439596#M348</guid>
      <dc:creator>manoloruiz</dc:creator>
      <dc:date>2015-09-10T16:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a module in the host (T2080RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439597#M349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have kept on looking for solution. I haven't found yet. In the new realease of yocto (after daisy that is working in freescale sdk 1.8), there is a method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.yoctoproject.org/docs/latest/kernel-dev/kernel-dev.html#building-out-of-tree-modules-on-the-target" title="http://www.yoctoproject.org/docs/latest/kernel-dev/kernel-dev.html#building-out-of-tree-modules-on-the-target"&gt;Yocto Project Linux Kernel Development Manual&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;2.5.1. Building Out-of-Tree Modules on the Target&lt;SPAN class="permalink"&gt;:&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN class="permalink"&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;# cd /usr/src/kernel &lt;BR /&gt;# make scripts &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;Because all SDK image recipes include &lt;CODE class="filename" style="font-family: Courier, monospace;"&gt;dev-pkgs&lt;/CODE&gt;, the &lt;CODE class="filename" style="font-family: Courier, monospace;"&gt;kernel-dev&lt;/CODE&gt; packages will be installed as part of the SDK image and the&lt;CODE class="filename" style="font-family: Courier, monospace;"&gt;kernel-devsrc&lt;/CODE&gt; packages will be installed as part of applicable SDK images. The SDK uses the scripts when building out-of-tree modules. Once you have switched to that directory and created the scripts, you should be able to build your out-of-tree modules on the target.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I cannot find in my sdk image that works in the target (T2080rdb) the directory /usr/src/kernel.&amp;nbsp; What can I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:06:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439597#M349</guid>
      <dc:creator>manoloruiz</dc:creator>
      <dc:date>2015-09-11T09:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a module in the host (T2080RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439598#M350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please read carefully the recommended documentation, it will help you&lt;/P&gt;&lt;P&gt;to understand what you are doing. The suggestions given earlier in &lt;/P&gt;&lt;P&gt;this thread are for building a module on the _host_. This document&lt;/P&gt;&lt;P&gt;specifies clearly where to locate kernel sources after unpacking:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.freescale.com/infocenter/topic/QORIQSDK/3069694.html" rel="nofollow"&gt;http://www.freescale.com/infocenter/topic/QORIQSDK/3069694.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are _not_ automatically transferred to the target root filesystem.&lt;/P&gt;&lt;P&gt;Your makefile is not valid for cross-compiling a module because it&lt;/P&gt;&lt;P&gt;sets a wrong path to the kernel source directory. Again, study the &lt;/P&gt;&lt;P&gt;modules.txt as recommended, and specify the unpacked kernel location&lt;/P&gt;&lt;P&gt;after -C option to make.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For building on the target, transfer the kernel sources to the &lt;/P&gt;&lt;P&gt;target by hand and follow the same procedure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 17:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439598#M350</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2015-09-11T17:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compile a module in the host (T2080RDB)</title>
      <link>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439599#M351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the same problem, but that article no longer seems to exist.&amp;nbsp; Could you update this answer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 01:09:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Compile-a-module-in-the-host-T2080RDB/m-p/439599#M351</guid>
      <dc:creator>c2357</dc:creator>
      <dc:date>2019-05-23T01:09:30Z</dc:date>
    </item>
  </channel>
</rss>

