BSP24.0 Yocto u-boot compilation error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BSP24.0 Yocto u-boot compilation error

Jump to solution
1,556 Views
xhu
Contributor I

Hello,

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/u-boot-s32_2018.07.bb b/recipes-bsp/u-boot/u-boot-s32_2018.07.bb
index c024cc6..3c64872 100644
--- a/recipes-bsp/u-boot/u-boot-s32_2018.07.bb
+++ b/recipes-bsp/u-boot/u-boot-s32_2018.07.bb
@@ -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?

Thanks,

Xiaodong

0 Kudos
1 Solution
1,448 Views
f_frank
Contributor I

I also have this issue. The reason seems to be the environment is never cleaned automatically so if you have this error just run:

bitbake -c cleansstate u-boot-environment

before building the image.

It would be nice if the environment recipe could do this automatically.

View solution in original post

2 Replies
1,448 Views
xhu
Contributor I

Thank you, Florian. You saved me a lot of time.

Thanks,

Xiaodong

0 Kudos
1,449 Views
f_frank
Contributor I

I also have this issue. The reason seems to be the environment is never cleaned automatically so if you have this error just run:

bitbake -c cleansstate u-boot-environment

before building the image.

It would be nice if the environment recipe could do this automatically.