<?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 Re: porting guide errors in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1586393#M200486</link>
    <description>&lt;P&gt;Thanks for your solution. For some reasons all my configuration fragments are not being applied and `kernel_configcheck` told me it's being overridden by the defconfig without telling me why; I have been pulling my hair out over this, and I had been closely following Yocto kirkstone guide to create configuration fragments.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Adding this `DELTA_KERNEL_DEFCONFIG = "custom.cfg"` seems to be the difference maker for linux-imx kernel recipes, and it has finally applied the appropriate fragments.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Edit: Looking through `linux-imx_5.10.bb` in "meta-imx/meta-bsp/recipes-kernel/linux/linux-imx_5.10.bb" suggests that this is why config fragments don't work.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# Use a verbatim copy of the defconfig from the linux-imx repo.&lt;BR /&gt;# IMPORTANT: This task effectively disables kernel config fragments&lt;BR /&gt;# since the config fragments applied in do_kernel_configme are replaced.&lt;BR /&gt;addtask copy_defconfig after do_kernel_configme before do_kernel_localversion&lt;BR /&gt;do_copy_defconfig () {&lt;BR /&gt;install -d ${B}&lt;BR /&gt;if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then&lt;BR /&gt;# copy latest IMX_KERNEL_CONFIG_AARCH32 to use for mx6, mx6ul and mx7&lt;BR /&gt;mkdir -p ${B}&lt;BR /&gt;cp ${S}/arch/arm/configs/${IMX_KERNEL_CONFIG_AARCH32} ${B}/.config&lt;BR /&gt;else&lt;BR /&gt;# copy latest IMX_KERNEL_CONFIG_AARCH64 to use for mx8&lt;BR /&gt;mkdir -p ${B}&lt;BR /&gt;cp ${S}/arch/arm64/configs/${IMX_KERNEL_CONFIG_AARCH64} ${B}/.config&lt;BR /&gt;fi&lt;BR /&gt;}&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 00:25:29 GMT</pubDate>
    <dc:creator>portheng</dc:creator>
    <dc:date>2023-01-23T00:25:29Z</dc:date>
    <item>
      <title>porting guide errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1325483#M178675</link>
      <description>&lt;P&gt;I am following&amp;nbsp;i.MX Porting Guide , Rev. LF5.10.35_2.0.0, 30 June 2021 (the latest to date)&lt;/P&gt;&lt;P&gt;I can build the whole demo image and the linux-imx kernel just fine for the standard iMX8mp evk&lt;/P&gt;&lt;P&gt;I am attempting to use section 2.1.2&amp;nbsp; How to build and load Kernel in Yocto Project&lt;/P&gt;&lt;P&gt;I followed the instructions exactly but can not get my custom kernel to build.&lt;/P&gt;&lt;P&gt;I have a modified MACHINE name and I have a slightly modified kernel defconfig that just adds some extra drivers, I renamed "custom_defconfig" and placed it in a modified recipe under my new layer.&lt;/P&gt;&lt;P&gt;i.e. recipes-kernel/linux_imx/files&lt;/P&gt;&lt;P&gt;I have linux-imx_5.10.bbappend with just the following:&lt;/P&gt;&lt;P&gt;FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"&lt;BR /&gt;SRC_URI_append = "file://custom_defconfig"&lt;/P&gt;&lt;P&gt;COMPATIBLE_MACHINE = "(mx8)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set my custom layer to a high priority (10)&lt;/P&gt;&lt;P&gt;I have no patches ... just added another kernel driver only&lt;/P&gt;&lt;P&gt;I can tell my custom layer is being picked up by using&amp;nbsp; bitbake-layers show-layers that is ok&lt;/P&gt;&lt;P&gt;when I run bitbake linux-imx it seems to stall at the do_fetch stage.&lt;/P&gt;&lt;P&gt;There is something quite obviously wrong with the documentation as written.&lt;/P&gt;&lt;P&gt;I have tried this several times with several different permutations but nothing works.&lt;/P&gt;&lt;P&gt;I can only conclude it was never tested with the latest release. I can see several of the linux-imx bitbake tasks were changed from what I remember in previously releases, maybe that has something to do with it?&lt;/P&gt;&lt;P&gt;Afer a LOOOONG time in the do_fetch I get this warning:&lt;/P&gt;&lt;P&gt;NOTE: Executing Tasks&lt;BR /&gt;WARNING: linux-imx-5.10.35+gitAUTOINC+ef3f2cfc60-r0 do_fetch: Failed to fetch URL git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https;branch=lf-5.10.yfile://custom_defconfig, attempting MIRRORS if available&lt;BR /&gt;C&lt;/P&gt;&lt;P&gt;It then tries mirror etc.&lt;/P&gt;&lt;P&gt;I do not know why it is trying fetch custom_defconfig remotely as it is local.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 14:21:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1325483#M178675</guid>
      <dc:creator>davidvescovi</dc:creator>
      <dc:date>2021-08-18T14:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: porting guide errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1325719#M178686</link>
      <description>&lt;P&gt;seems I am not the only one having this issue&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Processor-Expert-Software/howto-add-my-kernel-defconfig-file-to-yocto/m-p/1323792/highlight/false#M4796" target="_blank"&gt;Re: howto add my kernel defconfig file to yocto - NXP Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 19:39:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1325719#M178686</guid>
      <dc:creator>davidvescovi</dc:creator>
      <dc:date>2021-08-18T19:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: porting guide errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1326574#M178789</link>
      <description>&lt;P&gt;It seems the in-tree kernel recipe&amp;nbsp; now kind of follows the Qoriq builds and the documentation has not caught up.&lt;/P&gt;&lt;P&gt;I was able to insert a kernel configuration fragment by creating a linux-imx_5.10.bbappend file with the following:&lt;/P&gt;&lt;P&gt;FILESEXTRAPATHS_prepend := "${THISDIR}/files:"&lt;/P&gt;&lt;P&gt;# add custom fragment&lt;BR /&gt;SRC_URI += "file://build/custom.cfg"&lt;/P&gt;&lt;P&gt;DELTA_KERNEL_DEFCONFIG = "custom.cfg"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: "${THISDIR}/&lt;STRONG&gt;files&lt;/STRONG&gt;:" and&amp;nbsp;SRC_URI += "file://&lt;STRONG&gt;build&lt;/STRONG&gt;/custom.cfg" to place fragment at proper directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 02:46:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1326574#M178789</guid>
      <dc:creator>davidvescovi</dc:creator>
      <dc:date>2021-08-20T02:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: porting guide errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1420703#M187598</link>
      <description>&lt;PRE&gt;Failed to fetch URL git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https;branch=lf-5.10.yfile://custom_defconfig&lt;/PRE&gt;&lt;P&gt;If this is copy-pasted directly from your build machine without modification, then you've just missed adding whitespace between your SRC_URI entries.&lt;/P&gt;&lt;P&gt;In general you should use the "+=" operator with SRC_URI, which automatically appends with spaces (&lt;A href="http://%20https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#appending-and-prepending-with-spaces" target="_self"&gt;ref&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 17:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1420703#M187598</guid>
      <dc:creator>kevinrowland</dc:creator>
      <dc:date>2022-02-28T17:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: porting guide errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1578030#M199614</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3776"&gt;@davidvescovi&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188880"&gt;@kevinrowland&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I couldn't use my custom defconfig, but with fragments it worked, adding in my "linux-imx_5.10.bbappend":&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FILESEXTRAPATHS_prepend := "${THISDIR}/files:"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SRC_URI_append = " \&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; file://custom1.cfg \&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; file://custom2.cfg \&lt;BR /&gt;"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DELTA_KERNEL_DEFCONFIG_append = "custom1.cfg custom2.cfg"&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;without the reference to a "build" directory and appending to DELTA_KERNEL_DEFCONFIG&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Build Configuration:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;BB_VERSION = "1.50.0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;BUILD_SYS = "x86_64-linux"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NATIVELSBSTRING = "ubuntu-20.04"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TARGET_SYS = "arm-poky-linux-gnueabi"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MACHINE = "imx6soloce"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DISTRO = "fsl-imx-x11"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DISTRO_VERSION = "5.10-hardknott"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TUNE_FEATURES = "arm vfp cortexa9 neon thumb callconvention-hard"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TARGET_FPU = "hard"&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 13:50:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1578030#M199614</guid>
      <dc:creator>paolamg</dc:creator>
      <dc:date>2023-01-05T13:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: porting guide errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1586393#M200486</link>
      <description>&lt;P&gt;Thanks for your solution. For some reasons all my configuration fragments are not being applied and `kernel_configcheck` told me it's being overridden by the defconfig without telling me why; I have been pulling my hair out over this, and I had been closely following Yocto kirkstone guide to create configuration fragments.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Adding this `DELTA_KERNEL_DEFCONFIG = "custom.cfg"` seems to be the difference maker for linux-imx kernel recipes, and it has finally applied the appropriate fragments.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Edit: Looking through `linux-imx_5.10.bb` in "meta-imx/meta-bsp/recipes-kernel/linux/linux-imx_5.10.bb" suggests that this is why config fragments don't work.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# Use a verbatim copy of the defconfig from the linux-imx repo.&lt;BR /&gt;# IMPORTANT: This task effectively disables kernel config fragments&lt;BR /&gt;# since the config fragments applied in do_kernel_configme are replaced.&lt;BR /&gt;addtask copy_defconfig after do_kernel_configme before do_kernel_localversion&lt;BR /&gt;do_copy_defconfig () {&lt;BR /&gt;install -d ${B}&lt;BR /&gt;if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then&lt;BR /&gt;# copy latest IMX_KERNEL_CONFIG_AARCH32 to use for mx6, mx6ul and mx7&lt;BR /&gt;mkdir -p ${B}&lt;BR /&gt;cp ${S}/arch/arm/configs/${IMX_KERNEL_CONFIG_AARCH32} ${B}/.config&lt;BR /&gt;else&lt;BR /&gt;# copy latest IMX_KERNEL_CONFIG_AARCH64 to use for mx8&lt;BR /&gt;mkdir -p ${B}&lt;BR /&gt;cp ${S}/arch/arm64/configs/${IMX_KERNEL_CONFIG_AARCH64} ${B}/.config&lt;BR /&gt;fi&lt;BR /&gt;}&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 00:25:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1586393#M200486</guid>
      <dc:creator>portheng</dc:creator>
      <dc:date>2023-01-23T00:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: porting guide errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1588841#M200702</link>
      <description>&lt;P&gt;One alternative is to modify copy_defconfig function in recipe to:&lt;BR /&gt;-# Use a verbatim copy of the defconfig from the linux-imx repo.&lt;BR /&gt;-# IMPORTANT: This task effectively disables kernel config fragments&lt;BR /&gt;-# since the config fragments applied in do_kernel_configme are replaced.&lt;BR /&gt;-addtask copy_defconfig after do_kernel_configme before do_kernel_localversion&lt;BR /&gt;+addtask copy_defconfig after do_patch before do_preconfigure&lt;BR /&gt;And then you just specify your kernel fragments in SRC_URI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I missed here is how to modify function in .bbappend recipe, so I had to change it in .bb.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 11:58:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/porting-guide-errors/m-p/1588841#M200702</guid>
      <dc:creator>vik</dc:creator>
      <dc:date>2023-01-27T11:58:37Z</dc:date>
    </item>
  </channel>
</rss>

