Hi Alex,
Thank you for your response. This helped us to proceed further.
We were able to compile default uboot for qspi flash. We are planing to use LS1012A to design a board based on FRDM-LS1012A. I want to store uBoot and Linux OS file system in NAND FLASH and/or SD card.
We are referring "NXP SDK 2.0-1703 documentation" document and are using Ubuntu 14.04 on host PC.
As per your earlier suggestions, we have done following changes to configure SD boot.
Device Drivers ---> MMC host controller support ---> MMC/SD/SDIO card support (CONFIG_MMC=y)
and
Command line interface ---> Device access commands ---> mmc (CONFIG_CMD_MMC=y) to get mmc command support in u-boot.
Also modified following files
1. ls1012afrdm.conf (QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1703/conf/machine/ls1012afrdm.conf)
....
....
....
UBOOT_CONFIG ??= "qspi sdcard-ifc"
UBOOT_CONFIG[qspi] = "ls1012afrdm_qspi_config,,u-boot-dtb.bin"
UBOOT_CONFIG[sdcard-ifc] = "ls1012afrdm_sdcard_ifc_config,,u-boot-with-spl-pbl.bin"
2. fsl-ls1012a-frdm.dts i (build_ls1012afrdm/tmp/work/ls1012afrdm-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git/dts/arch/arm/dts/fsl-ls1012a-frdm.dtsi)
I've activated the esdhc0 driver:
&esdhc0 {
status = "okay";
};
3. ls1012afrdm.h (include/configs/ls1012afrdm.h )
I've added:
/* MMC */
#ifdef CONFIG_MMC
#define CONFIG_FSL_ESDHC
#define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
#endif
4. ls1012afrdm.c (board/freescale/ls1012afrdm/ls1012afrdm.c )
#include <mmc.h>
#include <fsl_esdhc.h>
(...)
#ifdef CONFIG_FSL_ESDHC
struct fsl_esdhc_cfg esdhc_cfg[1] = {
{CONFIG_SYS_FSL_ESDHC_ADDR},
};
int board_mmc_init(bd_t *bis)
{
esdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK);
return fsl_esdhc_initialize(bis, &esdhc_cfg[0]);
}
#endif
5. Created ls1012afrdm_sdcard_ifc_defconfig
After execution of below command,
$ bitbake -c compile -f u-boot
We see following errors. So please suggest how to configure uboot for SD boot and for NAND boot.


Please help.