AnsweredAssumed Answered

BSP24.0 Yocto u-boot compilation error

Question asked by Xiaodong Hu on May 27, 2020
Latest reply on Jun 30, 2020 by Xiaodong Hu



I am using bsp24.0 and trying to build u-boot with my own patch, this patch is only reconfig some ddr pins due to hardwar pins swapping, when I applied this patch, "bitbake -c compile -f u-boot" is able to pass, but when I did "bitbake fsl-image-base", I got environment file is too large error, see below please. I did cleansstate and clean for both uboot and fsl-image-base before building.



ERROR: u-boot-environment-1.0+fslgit-r0 do_compile: Execution of '/home/xhu/workspace/fsl-auto-yocto-bsp/build_s32g274aevb/tmp/work/aarch64-fsl-linux/u-boot-environment/1.0+fslgit-r0/temp/run.do_compile.12603' failed with exit code 1:
*** / *** 8192 ***
The environment file is too large for the target environment storage
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/xhu/workspace/fsl-auto-yocto-bsp/build_s32g274aevb/tmp/work/aarch64-fsl-linux/u-boot-environment/1.0+fslgit-r0/temp/log.do_compile.12603



My patch is pretty simple, did not touch any env related files, ddr only, see below


board/freescale/s32-gen1/ddrss_regconf.c | 3 ++
board/freescale/s32-gen1/ddrss_s32g274a.c | 56 ++++++++++++++++++++++++++++++-
2 files changed, 58 insertions(+), 1 deletion(-)



Here is the bb file I add my for own patch, the 0001 patch is the default from bsp24.0.


diff --git a/recipes-bsp/u-boot/ b/recipes-bsp/u-boot/
index c024cc6..3c64872 100644
--- a/recipes-bsp/u-boot/
+++ b/recipes-bsp/u-boot/
@@ -7,4 +7,5 @@ SRCREV = "f4d904327e7d7f807bfcbfe5312eea92875c37cc"
# Support for generating default environment
SRC_URI += " \
file://0001-env-Add-Makefile-rule-to-generate-default-environment-2018.patch \

file://0003-DRAM-config-for-safety-controller.patch \


Can you tell me anything wrong on my approach or how to fix/bypass this error?