<?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 Yocto Memory - Multiple Configurations in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Memory-Multiple-Configurations/m-p/779712#M121160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom board that provides two different memory configuration. I am trying to use a build option in the defconfig file to select the desired configuration but the settings don't appear to be identified. Will what I am trying work? Has anybody done something like this? When I attempt to build the u-boot image, I get the bold error message in the file below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;defconfig settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_ARM=y&lt;BR /&gt;CONFIG_ARCH_MX6=y&lt;BR /&gt;CONFIG_TARGET_MX6DLC428=y&lt;BR /&gt;CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6dlc428/mx6dl.cfg,MX6DL,&lt;STRONG&gt;DDR_MB=1024&lt;/STRONG&gt;"&lt;BR /&gt;CONFIG_SPI_FLASH=y&lt;BR /&gt;CONFIG_SPI_FLASH_STMICRO=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mx6dl.cfg (memory configuration file):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* SPDX-License-Identifier: GPL-2.0+&lt;BR /&gt; *&lt;BR /&gt; * Refer docs/README.imxmage for more details about how-to configure&lt;BR /&gt; * and create imximage boot image&lt;BR /&gt; *&lt;BR /&gt; * The syntax is taken as close as possible with the kwbimage&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;/* image version */&lt;BR /&gt;IMAGE_VERSION 2&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * Boot Device : one of spi, sd&lt;BR /&gt; */&lt;BR /&gt;BOOT_FROM sd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if &lt;STRONG&gt;CONFIG_DDR_MB==1024&lt;/STRONG&gt;&lt;BR /&gt;#include "mx6dl_1GBx32.cfg"&lt;BR /&gt;#elif&lt;STRONG&gt; CONFIG_DDR_MB==2048&lt;/STRONG&gt;&lt;BR /&gt;#include "mx6dl_2GBx64.cfg"&lt;BR /&gt;#else&lt;BR /&gt;#error "&lt;STRONG&gt;unknown DDR size&lt;/STRONG&gt;"&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "clocks.cfg"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2017 17:52:30 GMT</pubDate>
    <dc:creator>PaulDeMetrotion</dc:creator>
    <dc:date>2017-12-11T17:52:30Z</dc:date>
    <item>
      <title>Yocto Memory - Multiple Configurations</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Memory-Multiple-Configurations/m-p/779712#M121160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom board that provides two different memory configuration. I am trying to use a build option in the defconfig file to select the desired configuration but the settings don't appear to be identified. Will what I am trying work? Has anybody done something like this? When I attempt to build the u-boot image, I get the bold error message in the file below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;defconfig settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_ARM=y&lt;BR /&gt;CONFIG_ARCH_MX6=y&lt;BR /&gt;CONFIG_TARGET_MX6DLC428=y&lt;BR /&gt;CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6dlc428/mx6dl.cfg,MX6DL,&lt;STRONG&gt;DDR_MB=1024&lt;/STRONG&gt;"&lt;BR /&gt;CONFIG_SPI_FLASH=y&lt;BR /&gt;CONFIG_SPI_FLASH_STMICRO=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mx6dl.cfg (memory configuration file):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* SPDX-License-Identifier: GPL-2.0+&lt;BR /&gt; *&lt;BR /&gt; * Refer docs/README.imxmage for more details about how-to configure&lt;BR /&gt; * and create imximage boot image&lt;BR /&gt; *&lt;BR /&gt; * The syntax is taken as close as possible with the kwbimage&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;/* image version */&lt;BR /&gt;IMAGE_VERSION 2&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * Boot Device : one of spi, sd&lt;BR /&gt; */&lt;BR /&gt;BOOT_FROM sd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if &lt;STRONG&gt;CONFIG_DDR_MB==1024&lt;/STRONG&gt;&lt;BR /&gt;#include "mx6dl_1GBx32.cfg"&lt;BR /&gt;#elif&lt;STRONG&gt; CONFIG_DDR_MB==2048&lt;/STRONG&gt;&lt;BR /&gt;#include "mx6dl_2GBx64.cfg"&lt;BR /&gt;#else&lt;BR /&gt;#error "&lt;STRONG&gt;unknown DDR size&lt;/STRONG&gt;"&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "clocks.cfg"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 17:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Memory-Multiple-Configurations/m-p/779712#M121160</guid>
      <dc:creator>PaulDeMetrotion</dc:creator>
      <dc:date>2017-12-11T17:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Memory - Multiple Configurations</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Memory-Multiple-Configurations/m-p/779713#M121161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Paul DeMetrotion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m not sure if the conditional would work as expected although it’s logically correct. However, my recommendation would be creating a new machine for each hardware configuration, as this is a most common approach in Yocto. If you have two different boards that differ by the RAM available you would create two machine configurations. It is possible to create a base machine and then on the new machine configuration inherit the base machine and just add the configuration unique to the specific machine.&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, 19 Dec 2017 20:34:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Memory-Multiple-Configurations/m-p/779713#M121161</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2017-12-19T20:34:02Z</dc:date>
    </item>
  </channel>
</rss>

