<?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のトピックCan't compile custom Kernel without patch or bbapend</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-compile-custom-Kernel-without-patch-or-bbapend/m-p/776554#M120552</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;we have a custom board based on iMX6Sx.&lt;BR /&gt;We pulled from official git and crate our branch (on our git server) of 4.9.11-1.0.0 kernel and crate a meta-&lt;EM&gt;custom &lt;/EM&gt;meta layer.&lt;BR /&gt;We added to the ./fsl-release-bsp/source/ folder:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;meta-custom/

meta-custom/conf/
meta-custom/conf/layer.conf
meta-custom/conf/machine
meta-custom/conf/machine/ourmachine.conf

meta-custom/recipes-bsp/
meta-custom/recipes-bsp/u-boot/
meta-custom/recipes-bsp/u-boot/u-boot-ourmachine_2017.03.bb

meta-custom/recipes-kernel/
meta-custom/recipes-kernel/linux/
meta-custom/recipes-kernel/linux/linux-ourmachine_4.9.11.bb
meta-custom/recipes-kernel/linux/linux-ourmachine-4.9.11/
meta-custom/recipes-kernel/linux/linux-ourmachine-4.9.11/defconfig

meta-custom/recipes-custom/
meta-custom/recipes-custom/images/
meta-custom/recipes-custom/images/ourmachine-image-develop.bb
meta-custom/recipes-custom/images/ourmachine-image-minimal.bb‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We configure the build folder with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;DISTRO=fsl-imx-x11 MACHINE=ourmachine source fsl-setup-release.sh -b ./build&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the ourmachine.conf / uboot bb / kernel bb / images&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to bitabke the image and the kernel. I've start with &lt;STRONG&gt;bitbake linux-ourmachine&amp;nbsp;&lt;/STRONG&gt;but this fetch and compile the linux-imx recipes, and during do_compile, linux-imx&amp;nbsp;obviously broke&amp;nbsp;with:&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Task (/home/user/fsl-release-bsp/source/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.9.11.bb:do_compile) failed with exit code '1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make[3]: *** No rule to make target 'arch/arm/boot/dts/ourmachine.dtb'. Stop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the imx-kernel our dts do not exist, but exist in our kernel!&lt;BR /&gt;Whatever I run bitbake, the linux-imx recipe is always executed, even when is not expected, and it crashes&amp;nbsp;with the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I forgot to do? How can I compile my image and my kernel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance and have a nice day&lt;/P&gt;&lt;P&gt;L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;BB_Version 1.32.0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Yocto Morty&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Build System Ubuntu 14.04 x64&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2018 12:11:05 GMT</pubDate>
    <dc:creator>lucaschettini</dc:creator>
    <dc:date>2018-04-27T12:11:05Z</dc:date>
    <item>
      <title>Can't compile custom Kernel without patch or bbapend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-compile-custom-Kernel-without-patch-or-bbapend/m-p/776554#M120552</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;we have a custom board based on iMX6Sx.&lt;BR /&gt;We pulled from official git and crate our branch (on our git server) of 4.9.11-1.0.0 kernel and crate a meta-&lt;EM&gt;custom &lt;/EM&gt;meta layer.&lt;BR /&gt;We added to the ./fsl-release-bsp/source/ folder:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;meta-custom/

meta-custom/conf/
meta-custom/conf/layer.conf
meta-custom/conf/machine
meta-custom/conf/machine/ourmachine.conf

meta-custom/recipes-bsp/
meta-custom/recipes-bsp/u-boot/
meta-custom/recipes-bsp/u-boot/u-boot-ourmachine_2017.03.bb

meta-custom/recipes-kernel/
meta-custom/recipes-kernel/linux/
meta-custom/recipes-kernel/linux/linux-ourmachine_4.9.11.bb
meta-custom/recipes-kernel/linux/linux-ourmachine-4.9.11/
meta-custom/recipes-kernel/linux/linux-ourmachine-4.9.11/defconfig

meta-custom/recipes-custom/
meta-custom/recipes-custom/images/
meta-custom/recipes-custom/images/ourmachine-image-develop.bb
meta-custom/recipes-custom/images/ourmachine-image-minimal.bb‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We configure the build folder with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;DISTRO=fsl-imx-x11 MACHINE=ourmachine source fsl-setup-release.sh -b ./build&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the ourmachine.conf / uboot bb / kernel bb / images&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to bitabke the image and the kernel. I've start with &lt;STRONG&gt;bitbake linux-ourmachine&amp;nbsp;&lt;/STRONG&gt;but this fetch and compile the linux-imx recipes, and during do_compile, linux-imx&amp;nbsp;obviously broke&amp;nbsp;with:&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Task (/home/user/fsl-release-bsp/source/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.9.11.bb:do_compile) failed with exit code '1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make[3]: *** No rule to make target 'arch/arm/boot/dts/ourmachine.dtb'. Stop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the imx-kernel our dts do not exist, but exist in our kernel!&lt;BR /&gt;Whatever I run bitbake, the linux-imx recipe is always executed, even when is not expected, and it crashes&amp;nbsp;with the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I forgot to do? How can I compile my image and my kernel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance and have a nice day&lt;/P&gt;&lt;P&gt;L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;BB_Version 1.32.0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Yocto Morty&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Build System Ubuntu 14.04 x64&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 12:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-compile-custom-Kernel-without-patch-or-bbapend/m-p/776554#M120552</guid>
      <dc:creator>lucaschettini</dc:creator>
      <dc:date>2018-04-27T12:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't compile custom Kernel without patch or bbapend</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-compile-custom-Kernel-without-patch-or-bbapend/m-p/776555#M120553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is related to bitbake not being able to fund your .dtb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be that your layer is not on the conf/bblayers.conf file inside the build directory and this it’s not considering these folders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you mentions that the dts does exists in your kernel but not on imx-kernel, so it looks like your layer is being reachable. It is possible that since your kernel is requiring linux-imx-inc and linux-dtb.inc it is adding tasks from these includes. If you are not needing some of these tasks you could change this requirement.&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>Tue, 01 May 2018 20:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-compile-custom-Kernel-without-patch-or-bbapend/m-p/776555#M120553</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2018-05-01T20:53:35Z</dc:date>
    </item>
  </channel>
</rss>

