I am trying to add Falcon Mode to an existing IMX6 Yocto project (imx_v2015.04.4.1.15_1.2.0_ga). I have added a u-boot patch referenced in Diego Dorta's blog (Link: How to decrease boot time on iMX6 - i.MXDev Blog ).
In the patch the MENU_BUTTON is used to select falcon mode vs u-boot:
Falcon Mode Patch |
---|
From 0833cfaa104d226ec9ea64c7fdabba29d59659e5 Mon Sep 17 00:00:00 2001 --- diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c |
I also added a patch for mx6solosabresd_defconfig to enable SPL, etc:
mx6solosabresd_defconfig patch |
---|
From 2fe3ff5179a47a7ca5967b878a8946942c3ad760 Mon Sep 17 00:00:00 2001 --- diff --git a/configs/mx6solosabresd_defconfig b/configs/mx6solosabresd_defconfig |
I have also set SPL_BINARY = "SPL" in u-boot.inc.
The problem is that Yocto does not build or deploy SPL and I get errors such as "mx6solosabresd_defconfig/SPL - no such directory". I have confirmed that the "SPL EXPORT" command does get built, however SPL.c itself always fails to build during the bitbake "package u-boot-imx" command.
Typical bitbake commands to rebuild |
---|
bitbake -c clean u-boot-imx bitbake -v -D -f -c deploy u-boot-imx bitbake -v _D -f -c rootfs humboldt-image |
Am I missing something simple here? What is the correct way to tell Yocto to build and include SPL in the u-boot image?
Have you build by typing this "bitbake u-boot-imx"?
Yes, I essentially use variations of the following list of commands for rebuilding u-boot:
bitbake -c clean u-boot-imx
bitbake -v -D -f -c package u-boot-imx ###errors occur here
bitbake -v -D -f -c deploy u-boot-imx
bitbake -v _D -f -c rootfs humboldt-image
NOTE: since my previous post I have determined that the following #defines need to be in the board header file (mx6sabresd.h) and not in the defconfig file:
#define CONFIG_SPL_BUILD=y
#define CONFIG_SPL_OS_BUILD=y
#define CONFIG_CMD_SPL=y
I can build v2015_04 u-boot with SPL using the toolchain but I still can not direct bitbake recipes to build SPL.
I did find that in the poky u-boot.inc recipe include file, there is no script to support the compile of SPL - there is only script to install and deploy SPL.
Rich