<?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>LayerscapeのトピックKernel modules not present in manual build</title>
    <link>https://community.nxp.com/t5/Layerscape/Kernel-modules-not-present-in-manual-build/m-p/520561#M1289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have an LS2080A RDB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following these instructions &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/yipingwang"&gt;yipingwang&lt;/A&gt;​:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$ bitbake virtual/kernel -c cleansstate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$ bitbake virtual/kernel -c patch -f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;cd build_&amp;lt;platform&amp;gt;_release/tmp/work/&amp;lt;platform&amp;gt;-fsl-linux/linux-ls2-sdk/4.1-r0/git.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, sans-serif; font-size: 10.5pt;"&gt;$cp arch/arm64/configs/defconfig .config &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$ make ARCH=arm64 menuconfig&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #666666;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Assume Toolchain is installed in /opt/fsl-networking/LS2080A-SDK/sysroots/x86_64-fsl-linux/usr/bin/aarch64-fsl-linux/.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Build Kernel image with the following commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$ make ARCH=arm64 CROSS_COMPILE="/opt/fsl-networking/LS2080A-SDK/sysroots/x86_64-fsl-linux/usr/bin/aarch64-fsl-linux/aarch64-fsl-linux-" LD=aarch64-fsl-linux-ld.bfd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;This works fine. During the compile, I can see e.g. drivers/staging/fsl-dpaa2/ethernet/fsl-dpaa2-eth.ko being compiled, and these are also present in the modules.builtin file that gets written at the end of the build.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;However, when I install this kernel on the board, and do&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$cat /lib/modules/XXX/modules.builtin, I don't see any freescale-specific items at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Conversely, if I do a normal bitbake of the virtual/kernel and load that to the board, e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;bitbake virtual/kernel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;the modules are present in modules.builtin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;One other (possibly-related) thing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;In my manual kernel build, when I boot the board, the modules.builtin file is in directory /lib/modules/3.16.0-4-arm64, but using the Yocto project I have /lib/modules/4.1.8-rt8+gbd51a. I build both on the same machine (3.16.0 is the Linux version of that machine). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;I don't understand why my manual and yocto kernel builds give different module installations, and I don't understand why the kernel version is different between the two builds.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 15:28:46 GMT</pubDate>
    <dc:creator>thomasculverhou</dc:creator>
    <dc:date>2016-06-14T15:28:46Z</dc:date>
    <item>
      <title>Kernel modules not present in manual build</title>
      <link>https://community.nxp.com/t5/Layerscape/Kernel-modules-not-present-in-manual-build/m-p/520561#M1289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have an LS2080A RDB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following these instructions &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/yipingwang"&gt;yipingwang&lt;/A&gt;​:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$ bitbake virtual/kernel -c cleansstate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$ bitbake virtual/kernel -c patch -f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;cd build_&amp;lt;platform&amp;gt;_release/tmp/work/&amp;lt;platform&amp;gt;-fsl-linux/linux-ls2-sdk/4.1-r0/git.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, sans-serif; font-size: 10.5pt;"&gt;$cp arch/arm64/configs/defconfig .config &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$ make ARCH=arm64 menuconfig&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #666666;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Assume Toolchain is installed in /opt/fsl-networking/LS2080A-SDK/sysroots/x86_64-fsl-linux/usr/bin/aarch64-fsl-linux/.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Build Kernel image with the following commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$ make ARCH=arm64 CROSS_COMPILE="/opt/fsl-networking/LS2080A-SDK/sysroots/x86_64-fsl-linux/usr/bin/aarch64-fsl-linux/aarch64-fsl-linux-" LD=aarch64-fsl-linux-ld.bfd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;This works fine. During the compile, I can see e.g. drivers/staging/fsl-dpaa2/ethernet/fsl-dpaa2-eth.ko being compiled, and these are also present in the modules.builtin file that gets written at the end of the build.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;However, when I install this kernel on the board, and do&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;$cat /lib/modules/XXX/modules.builtin, I don't see any freescale-specific items at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Conversely, if I do a normal bitbake of the virtual/kernel and load that to the board, e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;bitbake virtual/kernel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;the modules are present in modules.builtin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;One other (possibly-related) thing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;In my manual kernel build, when I boot the board, the modules.builtin file is in directory /lib/modules/3.16.0-4-arm64, but using the Yocto project I have /lib/modules/4.1.8-rt8+gbd51a. I build both on the same machine (3.16.0 is the Linux version of that machine). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;I don't understand why my manual and yocto kernel builds give different module installations, and I don't understand why the kernel version is different between the two builds.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 15:28:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Kernel-modules-not-present-in-manual-build/m-p/520561#M1289</guid>
      <dc:creator>thomasculverhou</dc:creator>
      <dc:date>2016-06-14T15:28:46Z</dc:date>
    </item>
  </channel>
</rss>

