AnsweredAssumed Answered

Yocto Memory - Multiple Configurations

Question asked by Paul DeMetrotion on Dec 11, 2017
Latest reply on Dec 19, 2017 by gusarambula

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.

 

defconfig settings:

 

CONFIG_ARM=y
CONFIG_ARCH_MX6=y
CONFIG_TARGET_MX6DLC428=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6dlc428/mx6dl.cfg,MX6DL,DDR_MB=1024"
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_STMICRO=y

 

mx6dl.cfg (memory configuration file):

 

/*
* SPDX-License-Identifier: GPL-2.0+
*
* Refer docs/README.imxmage for more details about how-to configure
* and create imximage boot image
*
* The syntax is taken as close as possible with the kwbimage
*/

/* image version */
IMAGE_VERSION 2

/*
* Boot Device : one of spi, sd
*/
BOOT_FROM sd

 

#if CONFIG_DDR_MB==1024
#include "mx6dl_1GBx32.cfg"
#elif CONFIG_DDR_MB==2048
#include "mx6dl_2GBx64.cfg"
#else
#error "unknown DDR size"
#endif

 

#include "clocks.cfg"

Outcomes