1

I am trying to create a buildroot config (with make menuconfig) that adds a uboot environment variable.

I detected already BR2_TARGET_UBOOT_DEFAULT_ENV_FILE but this one replaces all existing environment variables with the new file (I want to extend it only).

Furthermore I detected BR2_PACKAGE_HOST_UBOOT_TOOLS_ENVIMAGE_SOURCE but the file I passed here did not change my uboot environment at all.

I also tried to run a script that sets the required environment variables via BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE but the script I passed was also not run.

asked May 20, 2025 at 17:20
3
  • This question is similar to: Yocto add custom UBoot Environment Variables. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented May 20, 2025 at 20:02
  • The difference is that I am using a different distrubution: They use Yocro while I use buildroot. The way how to configure them is completely different (also both utilized uboot) Commented May 21, 2025 at 9:58
  • The difference in build tool is not relevant. The point is that simply adding a new environment variable to the U-Boot build typically involves an edit or patch to a macro in a header file rather than a top-level tool configuration. IOW everything you have tried so far is the wrong approach; there is no solution "to add a U-Boot environment variable with a Buildroot configuration". You're asking the wrong question. Commented May 21, 2025 at 10:49

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.