Skip to contentSkip to conversation

u-boot: Restore valid default environment for running system

PATCH Superseded Otavio Salvador 1 participant 1 message Mar 31, 2020

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 u-boot: Restore valid default environment for running system

One significant change from previous OE-Core releases was the move from u-boot-fw-utils to libubootenv which offers a generic and not machine specific alternative. However, it is not fully functional as currently we don't provide the default environment nor the required configuration file to be used by it.

This change address this and include on the default u-boot.inc the needed code to generate, install and deploy the default environment.

The side effect of this change are:

- new ${PN}-env
- u-boot-initial-env on deploy
- fw_env.config on deploy

---
This change is late in the cycle but it is critical in my opinion.

The lack of default environment as well as the configuration for the tool is a regression from the previous release and this mitigates it.

 meta/recipes-bsp/u-boot/libubootenv_0.2.bb |  1 +
 meta/recipes-bsp/u-boot/u-boot.inc         | 54 ++++++++++++++++++----
 2 files changed, 46 insertions(+), 9 deletions(-)
meta/recipes-bsp/u-boot/libubootenv_0.2.bb +1 -0
index 7a7ec4c8856..89e0c4f8df7 100644
@@ -23,5 +23,6 @@ EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"
 
 PROVIDES += "u-boot-fw-utils"
 RPROVIDES_${PN}-bin += "u-boot-fw-utils"
+RRECOMMENDS_${PN}-bin += "virtual/bootloader-env"
 
 BBCLASSEXTEND = "native"
meta/recipes-bsp/u-boot/u-boot.inc +45 -9

108 lines not on this page · raw message

Signature · 1 line
2.26.0