From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Tue, 1 Nov 2016 19:06:34 -0700 Subject: [U-Boot] [RFC PATCH 3/3] ARM: imx: mx6memcal: allow build of combined SPL+U-Boot In-Reply-To: <1478052394-21499-1-git-send-email-eric@nelint.com> References: <1478031230-7263-1-git-send-email-eric@nelint.com> <1478052394-21499-1-git-send-email-eric@nelint.com> Message-ID: <1478052394-21499-4-git-send-email-eric@nelint.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add an imximage config file to construct u-boot.imx with SPL as a plugin and use it as a straw-man for the mx6memcal virtual board. Note that this breaks the build of SPL because only one value can be listed for IMX_CONFIG. As it stands, all imx SPL builds use an almost empty .cfg file from arch/arm/configs/spl_sd.cfg. This could be hard-coded for use in building SPL if we just remove the comments from the file (copyright). Signed-off-by: Eric Nelson --- arch/arm/imx-common/spl-plus-u-boot.cfg | 4 ++++ configs/mx6memcal_defconfig | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 arch/arm/imx-common/spl-plus-u-boot.cfg diff --git a/arch/arm/imx-common/spl-plus-u-boot.cfg b/arch/arm/imx-common/spl-plus-u-boot.cfg new file mode 100644 index 0000000..5940cb0 --- /dev/null +++ b/arch/arm/imx-common/spl-plus-u-boot.cfg @@ -0,0 +1,4 @@ +IMAGE_VERSION 2 +BOOT_FROM sd +PLUGIN spl/u-boot-spl.bin 0x00907000 + diff --git a/configs/mx6memcal_defconfig b/configs/mx6memcal_defconfig index 7e07182..06aa85f 100644 --- a/configs/mx6memcal_defconfig +++ b/configs/mx6memcal_defconfig @@ -6,7 +6,7 @@ CONFIG_MX6_DDRCAL=y CONFIG_TARGET_MX6MEMCAL=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL_WATCHDOG_SUPPORT=y -CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,SPL,MX6QDL" +CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl-plus-u-boot.cfg,SPL,MX6QDL" CONFIG_SPL=y CONFIG_HUSH_PARSER=y # CONFIG_CMD_BOOTD is not set -- 2.7.4