From: Łukasz Stelmach Date: Wed, 2 Aug 2023 13:10:47 +0000 (+0200) Subject: configs: tizen_starfive_visionfive2: Load custom envitonment if possible X-Git-Tag: accepted/tizen/unified/20231106.171643~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e22d5923b356fcd1952456fa461a9e77a341b38;p=platform%2Fkernel%2Fu-boot.git configs: tizen_starfive_visionfive2: Load custom envitonment if possible Check if loadbootenv and importbootenv environment variables are available and use them to load additional environment variables. Change-Id: I667783263575de8421df852a9921f5c938620409 Signed-off-by: Łukasz Stelmach --- diff --git a/configs/tizen_starfive_visionfive2_defconfig b/configs/tizen_starfive_visionfive2_defconfig index e407f65257..8f2dd45cc2 100644 --- a/configs/tizen_starfive_visionfive2_defconfig +++ b/configs/tizen_starfive_visionfive2_defconfig @@ -28,7 +28,7 @@ CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS0,115200 debug rootwait earlycon=sbi" CONFIG_BOOTCOMMAND="load ${bootdevtype} ${bootdevnum}:${bootpart} ${scriptaddr} ${prefix}${script}; devtype=${bootdevtype}; devnum=${bootdevnum}; distro_bootpart=${bootpart}; source ${scriptaddr}" CONFIG_USE_PREBOOT=y -CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr};fdt addr ${fdtcontroladdr};" +CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr}; fdt addr ${fdtcontroladdr}; test -n \"${loadbootenv}\" -a -n \"${importbootenv}\" && run loadbootenv && run importbootenv;" CONFIG_DEFAULT_FDT_FILE="jh7110-starfive-visionfive-2-v1.3b.dtb" CONFIG_DISPLAY_CPUINFO=y CONFIG_DISPLAY_BOARDINFO=y